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

primer-ai
/
bart-squad2

Question Answering
Transformers
PyTorch
English
bart
Model card Files Files and versions
xet
Community
1

Instructions to use primer-ai/bart-squad2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use primer-ai/bart-squad2 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("question-answering", model="primer-ai/bart-squad2")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForQuestionAnswering
    
    tokenizer = AutoTokenizer.from_pretrained("primer-ai/bart-squad2")
    model = AutoModelForQuestionAnswering.from_pretrained("primer-ai/bart-squad2")
  • Notebooks
  • Google Colab
  • Kaggle
bart-squad2
1.63 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 13 commits
julien-c's picture
julien-c HF Staff
Migrate model card from transformers-repo
7217207 over 5 years ago
  • .gitattributes
    345 Bytes
    initial commit over 5 years ago
  • README.md
    1.82 kB
    Migrate model card from transformers-repo over 5 years ago
  • config.json
    968 Bytes
    Update config.json over 5 years ago
  • merges.txt
    456 kB
    Update merges.txt over 5 years ago
  • pytorch_model.bin
    1.63 GB
    xet
    Update pytorch_model.bin over 5 years ago
  • special_tokens_map.json
    772 Bytes
    Update special_tokens_map.json over 5 years ago
  • tokenizer_config.json
    50 Bytes
    Update tokenizer_config.json over 5 years ago
  • vocab.json
    899 kB
    Update vocab.json over 5 years ago