cahya / gpt2-small-indonesian-522M

huggingface.co
Total runs: 993
24-hour runs: 0
7-day runs: -207
30-day runs: -324
Model's Last Updated: November 07 2024
text-generation

Introduction of gpt2-small-indonesian-522M

Model Details of gpt2-small-indonesian-522M

Indonesian GPT2 small model

Model description

It is GPT2-small model pre-trained with indonesian Wikipedia using a causal language modeling (CLM) objective. This model is uncased: it does not make a difference between indonesia and Indonesia.

This is one of several other language models that have been pre-trained with indonesian datasets. More detail about its usage on downstream tasks (text classification, text generation, etc) is available at Transformer based Indonesian Language Models

Intended uses & limitations
How to use

You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we set a seed for reproducibility:

>>> from transformers import pipeline, set_seed
>>> generator = pipeline('text-generation', model='cahya/gpt2-small-indonesian-522M')
>>> set_seed(42)
>>> generator("Kerajaan Majapahit adalah", max_length=30, num_return_sequences=5, num_beams=10)

[{'generated_text': 'Kerajaan Majapahit adalah sebuah kerajaan yang pernah berdiri di Jawa Timur pada abad ke-14 hingga abad ke-15. Kerajaan ini berdiri pada abad ke-14'}, 
{'generated_text': 'Kerajaan Majapahit adalah sebuah kerajaan yang pernah berdiri di Jawa Timur pada abad ke-14 hingga abad ke-16. Kerajaan ini berdiri pada abad ke-14'}, 
{'generated_text': 'Kerajaan Majapahit adalah sebuah kerajaan yang pernah berdiri di Jawa Timur pada abad ke-14 hingga abad ke-15. Kerajaan ini berdiri pada abad ke-15'}, 
{'generated_text': 'Kerajaan Majapahit adalah sebuah kerajaan yang pernah berdiri di Jawa Timur pada abad ke-14 hingga abad ke-16. Kerajaan ini berdiri pada abad ke-15'}, 
{'generated_text': 'Kerajaan Majapahit adalah sebuah kerajaan yang pernah berdiri di Jawa Timur pada abad ke-14 hingga abad ke-15. Kerajaan ini merupakan kelanjutan dari Kerajaan Majapahit yang'}]

Here is how to use this model to get the features of a given text in PyTorch:

from transformers import GPT2Tokenizer, GPT2Model

model_name='cahya/gpt2-small-indonesian-522M'
tokenizer = GPT2Tokenizer.from_pretrained(model_name)
model = GPT2Model.from_pretrained(model_name)
text = "Silakan diganti dengan text apa saja."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)

and in Tensorflow:

from transformers import GPT2Tokenizer, TFGPT2Model

model_name='cahya/gpt2-small-indonesian-522M'
tokenizer = GPT2Tokenizer.from_pretrained(model_name)
model = TFGPT2Model.from_pretrained(model_name)
text = "Silakan diganti dengan text apa saja."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
Training data

This model was pre-trained with 522MB of indonesian Wikipedia. The texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a vocabulary size of 52,000. The inputs are sequences of 128 consecutive tokens.

Runs of cahya gpt2-small-indonesian-522M on huggingface.co

993
Total runs
0
24-hour runs
-105
3-day runs
-207
7-day runs
-324
30-day runs

More Information About gpt2-small-indonesian-522M huggingface.co Model

More gpt2-small-indonesian-522M license Visit here:

https://choosealicense.com/licenses/mit

gpt2-small-indonesian-522M huggingface.co

gpt2-small-indonesian-522M huggingface.co is an AI model on huggingface.co that provides gpt2-small-indonesian-522M's model effect (), which can be used instantly with this cahya gpt2-small-indonesian-522M model. huggingface.co supports a free trial of the gpt2-small-indonesian-522M model, and also provides paid use of the gpt2-small-indonesian-522M. Support call gpt2-small-indonesian-522M model through api, including Node.js, Python, http.

gpt2-small-indonesian-522M huggingface.co Url

https://huggingface.co/cahya/gpt2-small-indonesian-522M

cahya gpt2-small-indonesian-522M online free

gpt2-small-indonesian-522M huggingface.co is an online trial and call api platform, which integrates gpt2-small-indonesian-522M's modeling effects, including api services, and provides a free online trial of gpt2-small-indonesian-522M, you can try gpt2-small-indonesian-522M online for free by clicking the link below.

cahya gpt2-small-indonesian-522M online free url in huggingface.co:

https://huggingface.co/cahya/gpt2-small-indonesian-522M

gpt2-small-indonesian-522M install

gpt2-small-indonesian-522M is an open source model from GitHub that offers a free installation service, and any user can find gpt2-small-indonesian-522M on GitHub to install. At the same time, huggingface.co provides the effect of gpt2-small-indonesian-522M install, users can directly use gpt2-small-indonesian-522M installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

gpt2-small-indonesian-522M install url in huggingface.co:

https://huggingface.co/cahya/gpt2-small-indonesian-522M

Url of gpt2-small-indonesian-522M

gpt2-small-indonesian-522M huggingface.co Url

Provider of gpt2-small-indonesian-522M huggingface.co

cahya
ORGANIZATIONS

Other API from cahya

huggingface.co

Total runs: 67
Run Growth: -27
Growth Rate: -40.30%
Updated:March 01 2025
huggingface.co

Total runs: 60
Run Growth: 40
Growth Rate: 67.80%
Updated:November 24 2022
huggingface.co

Total runs: 21
Run Growth: 8
Growth Rate: 38.10%
Updated:February 19 2023
huggingface.co

Total runs: 15
Run Growth: -64
Growth Rate: -426.67%
Updated:March 24 2022
huggingface.co

Total runs: 15
Run Growth: 3
Growth Rate: 21.43%
Updated:June 24 2024
huggingface.co

Total runs: 12
Run Growth: 12
Growth Rate: 50.00%
Updated:February 01 2022
huggingface.co

Total runs: 10
Run Growth: -8
Growth Rate: -80.00%
Updated:April 17 2025
huggingface.co

Total runs: 10
Run Growth: 1
Growth Rate: 10.00%
Updated:February 01 2023
huggingface.co

Total runs: 5
Run Growth: -1
Growth Rate: -20.00%
Updated:July 06 2021
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 04 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 12 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 21 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 04 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 11 2025