Instructions to use distilbert/distilbert-base-cased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use distilbert/distilbert-base-cased with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="distilbert/distilbert-base-cased")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("distilbert/distilbert-base-cased") model = AutoModelForMaskedLM.from_pretrained("distilbert/distilbert-base-cased", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Updates incorrect tokenizer configuration file (#8)
Verified signature- Adds tokenizer_config.json file (ce05ca694ab40ff96269817aad1cf609c8fd434a)6ea8117
-
Adding `safetensors` variant of this model (#7)
- Adding `safetensors` variant of this model (b8c7b4d024d865db7d183f4cec50c189b49bb3bb) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>0dacbb0
-
Fix architectures in config.json (#6)
- Fix architectures in config.json (5d69c5c6c648e7d49fa8ca39b8a7691e039c9951) Co-authored-by: Joshua <Xenova@users.noreply.huggingface.co>f76fcef
-
Adding ONNX file of this model (#4)
- Adding ONNX file of this model (1b56d8260adaab5bf2cf0535b2ec625fc9794b69) Co-authored-by: Hmida <Firas@users.noreply.huggingface.co>4dc145c
-
Update README.md (#2)
- Update README.md (c66c58b6d926dd0d37987e69cb6083e4e40afb89) Co-authored-by: Bartek Szmelczynski <Bearnardd@users.noreply.huggingface.co>9d7568e
-
Update model card (#1)
- Update model card (1d75627c7a6b917b119d05ae2f5198af4ea25df6) - Update README.md (20b9bba050dbc1e9ad4336f6601d453395f1fb13) Co-authored-by: Marissa Gerchick <Marissa@users.noreply.huggingface.co>8d708de
-
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-cased-README.md935ac13
-
For clarity, delete deprecated modelcard.json
We now use the README.md model card instead Approved-by: Julien Chaumond <julien@huggingface.co>18426bd
-
Add vocab
Thomas Wolfe69489d -
Add tokenizer configuration
Thomas Wolf6bee31a
-
Update tokenizer.json
894ecb1
-
Update config.json
06cafc4
-
Update config.json
7c93865
-
Update modelcard.json
716c86b -
Update pytorch_model.bin
4ee43e9 -
Update tf_model.h5
0fe7555 -
Update config.json
afd45e7 -
initial commit
b9836d5