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
      • Hardware
      • 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-cased-distilled-squad

Question Answering
Transformers
PyTorch
google-tensorflow TensorFlow
Rust
Safetensors
OpenVINO
English
distilbert
Eval Results (legacy)
Model card Files Files and versions
xet
Community
15

Instructions to use distilbert/distilbert-base-cased-distilled-squad with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use distilbert/distilbert-base-cased-distilled-squad with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("question-answering", model="distilbert/distilbert-base-cased-distilled-squad")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForQuestionAnswering
    
    tokenizer = AutoTokenizer.from_pretrained("distilbert/distilbert-base-cased-distilled-squad")
    model = AutoModelForQuestionAnswering.from_pretrained("distilbert/distilbert-base-cased-distilled-squad", device_map="auto")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
distilbert-base-cased-distilled-squad
Ctrl+K
Ctrl+K
  • 10 contributors
History: 21 commits
lysandre's picture
lysandre HF Staff
Updates incorrect tokenizer configuration file (#10)
564e9b5 verified about 2 years ago
  • .gitattributes
    399 Bytes
  • README.md
    9.52 kB
  • config.json
    473 Bytes
  • model.safetensors
    261 MB
    xet
  • openvino_model.bin
    261 MB
    xet
  • openvino_model.xml
    513 kB
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    261 MB
    xet
  • rust_model.ot
    261 MB
    xet
  • saved_model.tar.gz
    241 MB
    xet
  • tf_model.h5
    261 MB
    xet
  • tfjs.tar.gz
    241 MB
    xet
  • tokenizer.json
    436 kB
  • tokenizer_config.json
    49 Bytes
  • vocab.txt
    213 kB