Instructions to use distilbert/distilbert-base-uncased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use distilbert/distilbert-base-uncased with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="distilbert/distilbert-base-uncased")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("distilbert/distilbert-base-uncased") model = AutoModelForMaskedLM.from_pretrained("distilbert/distilbert-base-uncased", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Updates incorrect tokenizer configuration file (#12)
Verified signature- Adds tokenizer_config.json file (a554786b79131e029e454a06bdd0626f36523c63)12040ac
-
Changed distillation URL (#8)
- Changed distillation URL (6d41c99324f814900c77849756a0160739dddeb7) Co-authored-by: Kalluri <RatnaKumar@users.noreply.huggingface.co>6cdc0aa
-
Adding `safetensors` variant of this model (#6)
- Adding `safetensors` variant of this model (15e2238f2cd797b3a86485eddbc884f204cfedf0) Co-authored-by: Nicolas Patry <Narsil@users.noreply.huggingface.co>1c4513b
-
Fix broken link in opening section (#3)
- Fix broken link in opening section (f8354bcfbd3068faf2c5149654881cb4214e931d) Co-authored-by: Marissa Gerchick <Marissa@users.noreply.huggingface.co>043235d
-
Upload LICENSE (#1)
- Upload LICENSE (1dc539edbc0f17c0864e6f6e88b41745758fd966)54e8136
-
add flax model
b22dbc4 -
allow flax
3f08e1e
-
Migrate model card from transformers-repo
Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/distilbert-base-uncased-README.mdeceec7f
-
For clarity, delete deprecated modelcard.json
We now use the README.md model card instead Approved-by: Julien Chaumond <julien@huggingface.co>0571395
-
Add vocab
Thomas Wolfeb7dc0a -
Add tokenizer configuration
Thomas Wolf182a12c
-
Update tokenizer.json
93a53c7
-
Update rust_model.ot
959d503 -
Update config.json
554bcd2
-
Update config.json
1b40ea2
-
Update modelcard.json
3fb557e
-
Update tf_model.h5
5462574 -
Update config.json
713fdbc
-
Update config.json
830f63a -
Update pytorch_model.bin
00c3efe
-
Update config.json
b8e399a -
initial commit
967adc3