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

shreyasmeher
/
BERT-base-cased-squad2

Question Answering
Transformers
Safetensors
English
bert
squad
squad_v2
conflibert
extractive-qa
Eval Results (legacy)
Model card Files Files and versions
xet
Community

Instructions to use shreyasmeher/BERT-base-cased-squad2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use shreyasmeher/BERT-base-cased-squad2 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="shreyasmeher/BERT-base-cased-squad2")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForQuestionAnswering
    
    tokenizer = AutoTokenizer.from_pretrained("shreyasmeher/BERT-base-cased-squad2")
    model = AutoModelForQuestionAnswering.from_pretrained("shreyasmeher/BERT-base-cased-squad2", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
BERT-base-cased-squad2
432 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
shreyasmeher's picture
shreyasmeher
remove macOS resource-fork files
8e0b2a8 verified about 1 month ago
  • .gitattributes
    1.52 kB
    initial commit about 1 month ago
  • README.md
    2.5 kB
    SQuAD 2.0 fine-tune with unanswerables (abstains) about 1 month ago
  • config.json
    658 Bytes
    SQuAD 2.0 fine-tune with unanswerables (abstains) about 1 month ago
  • model.safetensors
    431 MB
    xet
    SQuAD 2.0 fine-tune with unanswerables (abstains) about 1 month ago
  • special_tokens_map.json
    132 Bytes
    SQuAD 2.0 fine-tune with unanswerables (abstains) about 1 month ago
  • tokenizer.json
    669 kB
    SQuAD 2.0 fine-tune with unanswerables (abstains) about 1 month ago
  • tokenizer_config.json
    1.28 kB
    SQuAD 2.0 fine-tune with unanswerables (abstains) about 1 month ago
  • vocab.txt
    213 kB
    SQuAD 2.0 fine-tune with unanswerables (abstains) about 1 month ago