Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

distilbert
/
distilbert-base-uncased

Fill-Mask
Transformers
PyTorch
google-tensorflow TensorFlow
JAX
Rust
Safetensors
English
distilbert
exbert
Model card Files Files and versions
xet
Community
27

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
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

globals

#27 opened 2 months ago by
Kiranpdevops1

Fixed hyperlinks

#26 opened 3 months ago by
1Bananas1

update the training code url

#25 opened 6 months ago by
Karzan

404 Client Error is observed when tokenizer is used with latest transformers library

1
#24 opened 6 months ago by
DhruvSharma-845

Poor Performance on multi class

#22 opened about 1 year ago by
eyinlojuoluwa

Update README.md

#19 opened over 1 year ago by
ninon64

Adding ONNX file of this model

#18 opened over 1 year ago by
Vanda26

Update README.md

#17 opened over 1 year ago by
Levaillant

Create CreditCardDueCollectionIntentClassification

#16 opened almost 2 years ago by
PabitraJiban

Minor grammar fix

#15 opened about 2 years ago by
soura-b

I need Some Help

3
#14 opened about 2 years ago by
thebryanalvarado

[AUTOMATED] Model Memory Requirements

#11 opened over 2 years ago by
model-sizer-bot

'DistilBertTokenizer' object has no attribute 'vocab'

#10 opened over 2 years ago by
Creaves0622

Fix malformed tokenizer_config and add special_tokens_map.json

#7 opened about 3 years ago by
Xenova

how can i add gru layer in distilbert???

#5 opened almost 4 years ago by
jarif

Amazon sagemaker deploy inputs

#4 opened almost 4 years ago by
ghpkishore

Broken link in model card

5
#2 opened almost 4 years ago by
Marissa
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs