julien-c HF staff commited on
Commit
5b3f705
1 Parent(s): 43bcbb4

Migrate model card from transformers-repo

Browse files

Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755
Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/indobenchmark/indobert-lite-base-p1/README.md

Files changed (1) hide show
  1. README.md +60 -0
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: id
3
+ tags:
4
+ - indobert
5
+ - indobenchmark
6
+ - indonlu
7
+ license: mit
8
+ inference: false
9
+ datasets:
10
+ - Indo4B
11
+ ---
12
+
13
+ # IndoBERT-Lite Base Model (phase1 - uncased)
14
+
15
+ [IndoBERT](https://arxiv.org/abs/2009.05387) is a state-of-the-art language model for Indonesian based on the BERT model. The pretrained model is trained using a masked language modeling (MLM) objective and next sentence prediction (NSP) objective.
16
+
17
+ ## All Pre-trained Models
18
+
19
+ | Model | #params | Arch. | Training data |
20
+ |--------------------------------|--------------------------------|-------|-----------------------------------|
21
+ | `indobenchmark/indobert-base-p1` | 124.5M | Base | Indo4B (23.43 GB of text) |
22
+ | `indobenchmark/indobert-base-p2` | 124.5M | Base | Indo4B (23.43 GB of text) |
23
+ | `indobenchmark/indobert-large-p1` | 335.2M | Large | Indo4B (23.43 GB of text) |
24
+ | `indobenchmark/indobert-large-p2` | 335.2M | Large | Indo4B (23.43 GB of text) |
25
+ | `indobenchmark/indobert-lite-base-p1` | 11.7M | Base | Indo4B (23.43 GB of text) |
26
+ | `indobenchmark/indobert-lite-base-p2` | 11.7M | Base | Indo4B (23.43 GB of text) |
27
+ | `indobenchmark/indobert-lite-large-p1` | 17.7M | Large | Indo4B (23.43 GB of text) |
28
+ | `indobenchmark/indobert-lite-large-p2` | 17.7M | Large | Indo4B (23.43 GB of text) |
29
+
30
+ ## How to use
31
+
32
+ ### Load model and tokenizer
33
+ ```python
34
+ from transformers import BertTokenizer, AutoModel
35
+ tokenizer = BertTokenizer.from_pretrained("indobenchmark/indobert-lite-base-p1")
36
+ model = AutoModel.from_pretrained("indobenchmark/indobert-lite-base-p1")
37
+ ```
38
+
39
+ ### Extract contextual representation
40
+ ```python
41
+ x = torch.LongTensor(tokenizer.encode('aku adalah anak [MASK]')).view(1,-1)
42
+ print(x, model(x)[0].sum())
43
+ ```
44
+
45
+ ## Authors
46
+
47
+ <b>IndoBERT</b> was trained and evaluated by Bryan Wilie\*, Karissa Vincentio\*, Genta Indra Winata\*, Samuel Cahyawijaya\*, Xiaohong Li, Zhi Yuan Lim, Sidik Soleman, Rahmad Mahendra, Pascale Fung, Syafri Bahar, Ayu Purwarianti.
48
+
49
+
50
+ ## Citation
51
+ If you use our work, please cite:
52
+
53
+ ```bibtex
54
+ @inproceedings{wilie2020indonlu,
55
+ title={IndoNLU: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},
56
+ 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},
57
+ 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},
58
+ year={2020}
59
+ }
60
+ ```