Views
No views yet
unshuffled_deduplicated_su subset, the Sundanese mC4 subset, the Sundanese CC100 subset, and Sundanese Wikipedia.| Model | #params | Arch. | Training/Validation data (text) |
|---|---|---|---|
sundanese-gpt2-base | 124M | GPT-2 | OSCAR, mC4, CC100, Wikipedia (758 MB) |
| train loss | valid loss | valid PPL | total time |
|---|---|---|---|
| 2.436 | 3.61 | 36.97 | 7:1:54 |
1from transformers import pipeline
2
3pretrained_name = "w11wo/sundanese-gpt2-base"
4
5nlp = pipeline(
6 "text-generation",
7 model=pretrained_name,
8 tokenizer=pretrained_name
9)
10
11nlp("Nami abdi Budi, ti Indonésia")1from transformers import GPT2Model, GPT2TokenizerFast
2
3pretrained_name = "w11wo/sundanese-gpt2-base"
4model = GPT2Model.from_pretrained(pretrained_name)
5tokenizer = GPT2TokenizerFast.from_pretrained(pretrained_name)
6
7prompt = "Nami abdi Budi, ti Indonésia"
8encoded_input = tokenizer(prompt, return_tensors='pt')
9output = model(**encoded_input)1@article{rs-907893,
2 author = {Wongso, Wilson
3 and Lucky, Henry
4 and Suhartono, Derwin},
5 journal = {Journal of Big Data},
6 year = {2022},
7 month = {Feb},
8 day = {26},
9 abstract = {The Sundanese language has over 32 million speakers worldwide, but the language has reaped little to no benefits from the recent advances in natural language understanding. Like other low-resource languages, the only alternative is to fine-tune existing multilingual models. In this paper, we pre-trained three monolingual Transformer-based language models on Sundanese data. When evaluated on a downstream text classification task, we found that most of our monolingual models outperformed larger multilingual models despite the smaller overall pre-training data. In the subsequent analyses, our models benefited strongly from the Sundanese pre-training corpus size and do not exhibit socially biased behavior. We released our models for other researchers and practitioners to use.},
10 issn = {2693-5015},
11 doi = {10.21203/rs.3.rs-907893/v1},
12 url = {https://doi.org/10.21203/rs.3.rs-907893/v1}
13}