Views
No views yet
unshuffled_original_ms subset. The model used was English BERT model and fine-tuned on the Malaysian dataset. The model achieved a perplexity of 9.46 on a 20% validation dataset. Many of the techniques used are based on a Hugging Face tutorial notebook written by Sylvain Gugger, and fine-tuning tutorial notebook written by Pierre Guillou. The model is available both for PyTorch and TensorFlow use.| Step | Training loss |
|---|---|
| 500 | 5.051300 |
| 1000 | 3.701700 |
| 1500 | 3.288600 |
| 2000 | 3.024000 |
| 2500 | 2.833500 |
| 3000 | 2.741600 |
| 3500 | 2.637900 |
| 4000 | 2.547900 |
| 4500 | 2.451500 |
| 5000 | 2.409600 |
| 5500 | 2.388300 |
| 6000 | 2.351600 |
1from transformers import pipeline
2pretrained_name = "StevenLimcorn/MelayuBERT"
3fill_mask = pipeline(
4 "fill-mask",
5 model=pretrained_name,
6 tokenizer=pretrained_name
7)
8fill_mask("Saya [MASK] makan nasi hari ini.")1from transformers import AutoTokenizer, AutoModelForMaskedLM
2
3tokenizer = AutoTokenizer.from_pretrained("StevenLimcorn/MelayuBERT")
4
5model = AutoModelForMaskedLM.from_pretrained("StevenLimcorn/MelayuBERT")