Instructions to use indobenchmark/indobart with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use indobenchmark/indobart with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("indobenchmark/indobart") model = AutoModelForSeq2SeqLM.from_pretrained("indobenchmark/indobart", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Samuel Cahyawijaya commited on
Commit ·
8ede563
1
Parent(s): 344cc78
first commit
Browse filesFiles changed (6)
- README.mdAdded+38
- config.jsonAdded+73
- pytorch_model.binAdded+3
- sentencepiece.bpe.modelAdded+3
- special_tokens_map.jsonAdded+1
- tokenizer_config.jsonAdded+1
1234567891011121314151617181920212223242526272829303132333435363738---language: idtags:- indogpt- indobenchmark- indonlglicense: mitinference: falsedatasets:- Indo4B+---
# IndoBART Model
[IndoBART](https://arxiv.org/abs/2104.08200) is a state-of-the-art language model for Indonesian based on the BART model. The pretrained model is trained using the BART training objective.
## All Pre-trained Models
| Model | #params | Training data ||--------------------------------|--------------------------------|-----------------------------------|| `indobenchmark/indobart` | 132M | Indo4B (23.79 GB of text) |
## Authors
<b>IndoBART</b> was trained and evaluated by Samuel Cahyawijaya*, Genta Indra Winata*, Bryan Wilie*, Karissa Vincentio*, Xiaohong Li*, Adhiguna Kuncoro*, Sebastian Ruder, Zhi Yuan Lim, Syafri Bahar, Masayu Leylia Khodra, Ayu Purwarianti, Pascale Fung
## CitationIf you use our work, please cite:
```bibtex@article{cahyawijaya2021indonlg, title={IndoNLG: Benchmark and Resources for Evaluating Indonesian Natural Language Generation}, author={Cahyawijaya, Samuel and Winata, Genta Indra and Wilie, Bryan and Vincentio, Karissa and Li, Xiaohong and Kuncoro, Adhiguna and Ruder, Sebastian and Lim, Zhi Yuan and Bahar, Syafri and Khodra, Masayu Leylia and others}, journal={arXiv preprint arXiv:2104.08200}, year={2021}}```12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273{ "activation_dropout": 0.1, "activation_function": "gelu", "add_bias_logits": false, "add_final_layer_norm": false, "architectures": [ "BartModel" ], "attention_dropout": 0.1, "bos_token_id": 0, "classif_dropout": 0.1, "classifier_dropout": 0.0, "d_model": 768, "decoder_attention_heads": 12, "decoder_ffn_dim": 3072, "decoder_layerdrop": 0.0, "decoder_layers": 6, "decoder_start_token_id": 2, "dropout": 0.1, "early_stopping": true, "encoder_attention_heads": 12, "encoder_ffn_dim": 3072, "encoder_layerdrop": 0.0, "encoder_layers": 6, "eos_token_id": 2, "forced_eos_token_id": 2, "gradient_checkpointing": false, "id2label": { "0": "LABEL_0", "1": "LABEL_1", "2": "LABEL_2" }, "init_std": 0.02, "is_encoder_decoder": true, "label2id": { "LABEL_0": 0, "LABEL_1": 1, "LABEL_2": 2 }, "max_position_embeddings": 1024, "model_type": "bart", "no_repeat_ngram_size": 3, "normalize_before": false, "normalize_embedding": true, "num_beams": 4, "num_hidden_layers": 6, "pad_token_id": 1, "scale_embedding": false, "task_specific_params": { "summarization": { "length_penalty": 1.0, "max_length": 128, "min_length": 12, "num_beams": 4 }, "summarization_cnn": { "length_penalty": 2.0, "max_length": 142, "min_length": 56, "num_beams": 4 }, "summarization_xsum": { "length_penalty": 1.0, "max_length": 62, "min_length": 11, "num_beams": 6 } }, "transformers_version": "4.7.0.dev0", "use_cache": true, "tokenizer_class": "IndoNLGTokenizer", "vocab_size": 40004}123version https://git-lfs.github.com/spec/v1oid sha256:2e94a19add60ca13097d6dd9dc6f8277aaa20157864b2826baf433a8cc64489bsize 649139539123version https://git-lfs.github.com/spec/v1oid sha256:5cb3d03b6ee703250d8e2a82f9987cf8aa2cc61402a0875f93734e2bc077d053size 9321021{"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true}, "additional_special_tokens": ["[java]", "[sunda]", "[indo]", "<mask>"]}1{"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "cls_token": "<s>", "pad_token": "<pad>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "additional_special_tokens": ["[java]", "[sunda]", "[indo]", "<mask>"]}README.mdAdded+38
config.jsonAdded+73
pytorch_model.binAdded+3
sentencepiece.bpe.modelAdded+3
special_tokens_map.jsonAdded+1
tokenizer_config.jsonAdded+1