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-distilled-squad

Question Answering
Transformers
PyTorch
google-tensorflow TensorFlow
LiteRT
Core ML
Safetensors
English
distilbert
Model card Files Files and versions
xet
Community
9

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

  • Libraries
  • Transformers

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

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("question-answering", model="distilbert/distilbert-base-uncased-distilled-squad")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForQuestionAnswering
    
    tokenizer = AutoTokenizer.from_pretrained("distilbert/distilbert-base-uncased-distilled-squad")
    model = AutoModelForQuestionAnswering.from_pretrained("distilbert/distilbert-base-uncased-distilled-squad")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Update README.md

1
#9 opened about 2 years ago by
nijatzeynalov

Adding ONNX file of this model

1
#7 opened over 2 years ago by
ariesjzj

Unable to download "distilbert-base-uncased-distilled-squad.tar.gz"

1
#6 opened about 3 years ago by
priyanka98

Error on DistilBertForQuestionAnswering.from_pretrained()

#5 opened about 3 years ago by
ravneetg
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs