Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

philschmid
/
distilbert-neuron

Question Answering
Transformers
English
distilbert
Model card Files Files and versions
xet
Community

Instructions to use philschmid/distilbert-neuron with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use philschmid/distilbert-neuron with Transformers:

    # Use a pipeline as a high-level helper
    # Warning: Pipeline type "question-answering" is no longer supported in transformers v5.
    # You must load the model directly (see below) or downgrade to v4.x with:
    # pip install "transformers<5.0.0"
    from transformers import pipeline
    
    pipe = pipeline("question-answering", model="philschmid/distilbert-neuron")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForQuestionAnswering
    
    tokenizer = AutoTokenizer.from_pretrained("philschmid/distilbert-neuron")
    model = AutoModelForQuestionAnswering.from_pretrained("philschmid/distilbert-neuron", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
distilbert-neuron
160 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits

This model has 1 file scanned as suspicious.

philschmid's picture
philschmid
Upload config.json
9d73805 over 4 years ago
  • .gitattributes
    1.18 kB
    initial commit over 4 years ago
  • config.json
    625 Bytes
    Upload config.json over 4 years ago
  • neuron_model.pt
    160 MB
    xet
    Upload neuron_model.pt with git-lfs over 4 years ago
  • vocab.txt
    213 kB
    Upload vocab.txt over 4 years ago