Instructions to use LazarusNLP/IndoNanoT5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LazarusNLP/IndoNanoT5-base with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("LazarusNLP/IndoNanoT5-base") model = AutoModelForSeq2SeqLM.from_pretrained("LazarusNLP/IndoNanoT5-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
IndoNanoT5 Base
IndoNanoT5 Base is an Indonesian sequence-to-sequence language model based on the T5 architecture. We conducted pre-training on an open-source Indonesian corpus of uonlp/CulturaX. On a held-out subset of the corpus, our model achieved an evaluation loss of 2.082 or a perplexity of about 8.02.
This model was trained using the nanoT5 PyTorch framework. All training was done on an NVIDIA H100 GPU. LazarusNLP/IndoNanoT5-base is released under Apache 2.0 license.
Model Detail
- Developed by: LazarusNLP
- Model type: Encoder-decoder T5 transformer language model
- Language(s): Indonesian
- License: Apache 2.0
- Contact: Wilson Wongso
Use in 🤗Transformers
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model_checkpoint = "LazarusNLP/IndoNanoT5-base"
tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
model = AutoModelForSeq2SeqLM.from_pretrained(model_checkpoint)
Training Datasets
Around 4B tokens from the following corpora were used during pre-training.
Training Hyperparameters
The following hyperparameters were used during training:
total_steps: 65536input_length: 512batch_size: 128grad_acc: 1base_lr: 5e-3optimizer: AdamWScaled withbetas=(0.9,0.999)andepsilon=1e-08weight_decay: 0.0lr_scheduler: cosinewarmup_steps: 10000final_cosine: 1e-5grad_clip: 1.0precision:bf16
Acknowledgements
We would like to acknowledge nanoT5 for inspiring this project.
Credits
BhinnekaLM is developed with love by:
- Downloads last month
- 204