Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • 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
distilbert-base-uncased
1.53 GB
Ctrl+K
Ctrl+K
  • 7 contributors
History: 22 commits
lysandre's picture
lysandre HF Staff
Updates incorrect tokenizer configuration file (#12)
12040ac verified about 2 years ago
  • .gitattributes
    445 Bytes
    Adding `safetensors` variant of this model (#6) over 3 years ago
  • LICENSE
    11.4 kB
    Upload LICENSE (#1) almost 4 years ago
  • README.md
    8.58 kB
    Changed distillation URL (#8) almost 3 years ago
  • config.json
    483 Bytes
    add flax model over 4 years ago
  • flax_model.msgpack
    268 MB
    xet
    add flax model over 4 years ago
  • model.safetensors
    268 MB
    xet
    Adding `safetensors` variant of this model (#6) over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch.FloatStorage",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    268 MB
    xet
    Update pytorch_model.bin over 6 years ago
  • rust_model.ot
    362 MB
    xet
    Update rust_model.ot about 6 years ago
  • tf_model.h5
    363 MB
    xet
    Update tf_model.h5 over 6 years ago
  • tokenizer.json
    466 kB
    Update tokenizer.json over 5 years ago
  • tokenizer_config.json
    48 Bytes
    Updates incorrect tokenizer configuration file (#12) about 2 years ago
  • vocab.txt
    232 kB
    Add vocab over 5 years ago