cahya / distilbert-base-indonesian

huggingface.co
Total runs: 1.7K
24-hour runs: -30
7-day runs: -85
30-day runs: 556
Model's Last Updated: February 08 2021
fill-mask

Introduction of distilbert-base-indonesian

Model Details of distilbert-base-indonesian

Indonesian DistilBERT base model (uncased)

Model description

This model is a distilled version of the Indonesian BERT base model . This model is uncased.

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 masked language modeling:

>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='cahya/distilbert-base-indonesian')
>>> unmasker("Ayahku sedang bekerja di sawah untuk [MASK] padi")

[
  {
    "sequence": "[CLS] ayahku sedang bekerja di sawah untuk menanam padi [SEP]",
    "score": 0.6853187084197998,
    "token": 12712,
    "token_str": "menanam"
  },
  {
    "sequence": "[CLS] ayahku sedang bekerja di sawah untuk bertani padi [SEP]",
    "score": 0.03739545866847038,
    "token": 15484,
    "token_str": "bertani"
  },
  {
    "sequence": "[CLS] ayahku sedang bekerja di sawah untuk memetik padi [SEP]",
    "score": 0.02742469497025013,
    "token": 30338,
    "token_str": "memetik"
  },
  {
    "sequence": "[CLS] ayahku sedang bekerja di sawah untuk penggilingan padi [SEP]",
    "score": 0.02214187942445278,
    "token": 28252,
    "token_str": "penggilingan"
  },
  {
    "sequence": "[CLS] ayahku sedang bekerja di sawah untuk tanam padi [SEP]",
    "score": 0.0185895636677742,
    "token": 11308,
    "token_str": "tanam"
  }
]

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

from transformers import DistilBertTokenizer, DistilBertModel

model_name='cahya/distilbert-base-indonesian'
tokenizer = DistilBertTokenizer.from_pretrained(model_name)
model = DistilBertModel.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 DistilBertTokenizer, TFDistilBertModel

model_name='cahya/distilbert-base-indonesian'
tokenizer = DistilBertTokenizer.from_pretrained(model_name)
model = TFDistilBertModel.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 distiled with 522MB of indonesian Wikipedia and 1GB of indonesian newspapers . The texts are lowercased and tokenized using WordPiece and a vocabulary size of 32,000. The inputs of the model are then of the form:

[CLS] Sentence A [SEP] Sentence B [SEP]

Runs of cahya distilbert-base-indonesian on huggingface.co

1.7K
Total runs
-30
24-hour runs
-8
3-day runs
-85
7-day runs
556
30-day runs

More Information About distilbert-base-indonesian huggingface.co Model

More distilbert-base-indonesian license Visit here:

https://choosealicense.com/licenses/mit

distilbert-base-indonesian huggingface.co

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

distilbert-base-indonesian huggingface.co Url

https://huggingface.co/cahya/distilbert-base-indonesian

cahya distilbert-base-indonesian online free

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

cahya distilbert-base-indonesian online free url in huggingface.co:

https://huggingface.co/cahya/distilbert-base-indonesian

distilbert-base-indonesian install

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

distilbert-base-indonesian install url in huggingface.co:

https://huggingface.co/cahya/distilbert-base-indonesian

Url of distilbert-base-indonesian

distilbert-base-indonesian huggingface.co Url

Provider of distilbert-base-indonesian huggingface.co

cahya
ORGANIZATIONS

Other API from cahya

huggingface.co

Total runs: 69
Run Growth: -13
Growth Rate: -18.84%
Updated:March 01 2025
huggingface.co

Total runs: 64
Run Growth: 57
Growth Rate: 86.36%
Updated:November 24 2022
huggingface.co

Total runs: 41
Run Growth: 29
Growth Rate: 70.73%
Updated:February 19 2023
huggingface.co

Total runs: 16
Run Growth: 2
Growth Rate: 12.50%
Updated:June 24 2024
huggingface.co

Total runs: 11
Run Growth: -63
Growth Rate: -572.73%
Updated:March 24 2022
huggingface.co

Total runs: 10
Run Growth: 0
Growth Rate: 0.00%
Updated:April 17 2025
huggingface.co

Total runs: 9
Run Growth: -15
Growth Rate: -166.67%
Updated:February 01 2022
huggingface.co

Total runs: 9
Run Growth: 4
Growth Rate: 36.36%
Updated:February 01 2023
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:May 21 2024
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:February 04 2025
huggingface.co

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