Downloads · 30 days
102
7% of all-time downloads
akahana/roberta-base-indonesia
roberta-base-indonesia is a feature extraction model from akahana. Use it when you need embeddings to search or compare text. It is set up for transformers. The card lists the license as mit.
Downloads · 30 days
102
7% of all-time downloads
All-time downloads
1.4K
Public
Parameters
125M
3.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt998 MB · 40%
How the weights are stored.
F32125M · 100%
From the Hugging Face model README
from transformers import pipeline
pretrained_name = "akahana/roberta-base-indonesia"
fill_mask = pipeline(
"fill-mask",
model=pretrained_name,
tokenizer=pretrained_name
)
fill_mask("Gajah <mask> sedang makan di kebun binatang.")
from transformers import RobertaModel, RobertaTokenizerFast
pretrained_name = "akahana/roberta-base-indonesia"
model = RobertaModel.from_pretrained(pretrained_name)
tokenizer = RobertaTokenizerFast.from_pretrained(pretrained_name)
prompt = "Gajah <mask> sedang makan di kebun binatang."
encoded_input = tokenizer(prompt, return_tensors='pt')
output = model(**encoded_input)