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")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("distilbert/distilbert-base-uncased") model = AutoModelForMaskedLM.from_pretrained("distilbert/distilbert-base-uncased") - Inference
- Notebooks
- Google Colab
- Kaggle
404 Client Error is observed when tokenizer is used with latest transformers library
#24
by DhruvSharma-845 - opened
Transformers library version == 4.57.1
Code Snippet:
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("distilbert/distilbert-base-uncased")
Error in detail:
RemoteEntryNotFoundError: 404 Client Error.
Entry Not Found for url: https://huggingface.co/api/models/distilbert/distilbert-base-uncased/tree/main/additional_chat_templates?recursive=false&expand=false.
additional_chat_templates does not exist on "main"
Same