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
Download pytorch_model.bin from distilbert/distilbert-base-uncased: direct link, hf CLI and curl.
- Browser
- Download file 268 MB
-
https://huggingface.co/distilbert/distilbert-base-uncased/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://distilbert/distilbert-base-uncased/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/distilbert/distilbert-base-uncased/resolve/main/pytorch_model.bin
268 MB
- Xet hash:
- 7995348b5737791dc8eed636d95a1f6bfb6cbbdd1f587670655c922bd2c663c1
- Size of remote file:
- 268 MB
- SHA256:
- e60d71610916da4787c5513c81bc026d415708528295502fb3e1a6fe1485ea7c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.