🚀 IndoBERT-Lite大模型 (阶段1 - 不区分大小写)
IndoBERT 是一个基于BERT模型的印尼语先进语言模型。预训练模型使用掩码语言建模(MLM)目标和下一句预测(NSP)目标进行训练。
🚀 快速开始
IndoBERT是基于BERT模型专门为印尼语打造的先进语言模型,通过特定目标训练,可用于多种自然语言处理任务。
✨ 主要特性
- 基于BERT模型架构,适用于印尼语处理。
- 使用掩码语言建模(MLM)和下一句预测(NSP)目标进行预训练。
📦 安装指南
文档未提供安装步骤,可参考transformers
库的安装方式来使用该模型。
💻 使用示例
基础用法
from transformers import BertTokenizer, AutoModel
tokenizer = BertTokenizer.from_pretrained("indobenchmark/indobert-lite-large-p1")
model = AutoModel.from_pretrained("indobenchmark/indobert-lite-large-p1")
高级用法
import torch
x = torch.LongTensor(tokenizer.encode('aku adalah anak [MASK]')).view(1,-1)
print(x, model(x)[0].sum())
📚 详细文档
所有预训练模型
属性 |
详情 |
模型类型 |
indobenchmark/indobert-base-p1 、indobenchmark/indobert-base-p2 、indobenchmark/indobert-large-p1 、indobenchmark/indobert-large-p2 、indobenchmark/indobert-lite-base-p1 、indobenchmark/indobert-lite-base-p2 、indobenchmark/indobert-lite-large-p1 、indobenchmark/indobert-lite-large-p2 |
训练数据 |
Indo4B (23.43 GB文本数据) |
模型 |
参数数量 |
架构 |
训练数据 |
indobenchmark/indobert-base-p1 |
1.245亿 |
基础 |
Indo4B (23.43 GB文本数据) |
indobenchmark/indobert-base-p2 |
1.245亿 |
基础 |
Indo4B (23.43 GB文本数据) |
indobenchmark/indobert-large-p1 |
3.352亿 |
大型 |
Indo4B (23.43 GB文本数据) |
indobenchmark/indobert-large-p2 |
3.352亿 |
大型 |
Indo4B (23.43 GB文本数据) |
indobenchmark/indobert-lite-base-p1 |
1170万 |
基础 |
Indo4B (23.43 GB文本数据) |
indobenchmark/indobert-lite-base-p2 |
1170万 |
基础 |
Indo4B (23.43 GB文本数据) |
indobenchmark/indobert-lite-large-p1 |
1770万 |
大型 |
Indo4B (23.43 GB文本数据) |
indobenchmark/indobert-lite-large-p2 |
1770万 |
大型 |
Indo4B (23.43 GB文本数据) |
📄 许可证
本项目采用MIT许可证。
👨💻 作者
IndoBERT 由 Bryan Wilie*、Karissa Vincentio*、Genta Indra Winata*、Samuel Cahyawijaya*、Xiaohong Li、Zhi Yuan Lim、Sidik Soleman、Rahmad Mahendra、Pascale Fung、Syafri Bahar、Ayu Purwarianti 训练和评估。
📚 引用
如果您使用了我们的工作,请引用:
@inproceedings{wilie2020indonlu,
title={IndoNLU: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},
author={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},
booktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},
year={2020}
}