Views
No views yet
Trainer class. PyTorch was used as the backend framework during training, but the model remains compatible with TensorFlow nonetheless.| Model | #params | Arch. | Training/Validation data (text) |
|---|---|---|---|
javanese-roberta-small | 124M | RoBERTa | Javanese Wikipedia (319 MB of text) |
| train loss | valid loss | perplexity | total time |
|---|---|---|---|
| 3.481 | 3.506 | 33.30 | 1:11:43 |
1from transformers import pipeline
2
3pretrained_name = "w11wo/javanese-roberta-small"
4
5fill_mask = pipeline(
6 "fill-mask",
7 model=pretrained_name,
8 tokenizer=pretrained_name
9)
10
11fill_mask("Meja lan kursine lagi <mask>.")1from transformers import RobertaModel, RobertaTokenizerFast
2
3pretrained_name = "w11wo/javanese-roberta-small"
4model = RobertaModel.from_pretrained(pretrained_name)
5tokenizer = RobertaTokenizerFast.from_pretrained(pretrained_name)
6
7prompt = "Indonesia minangka negara gedhe."
8encoded_input = tokenizer(prompt, return_tensors='pt')
9output = model(**encoded_input)1@inproceedings{wongso2021causal,
2 title={Causal and Masked Language Modeling of Javanese Language using Transformer-based Architectures},
3 author={Wongso, Wilson and Setiawan, David Samuel and Suhartono, Derwin},
4 booktitle={2021 International Conference on Advanced Computer Science and Information Systems (ICACSIS)},
5 pages={1--7},
6 year={2021},
7 organization={IEEE}
8}