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

aware-ai
/
longformer-squadv2

Question Answering
Transformers
PyTorch
google-tensorflow TensorFlow
Safetensors
longformer
Model card Files Files and versions
xet
Community
1

Instructions to use aware-ai/longformer-squadv2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use aware-ai/longformer-squadv2 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("question-answering", model="aware-ai/longformer-squadv2")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForQuestionAnswering
    
    tokenizer = AutoTokenizer.from_pretrained("aware-ai/longformer-squadv2")
    model = AutoModelForQuestionAnswering.from_pretrained("aware-ai/longformer-squadv2")
  • Notebooks
  • Google Colab
  • Kaggle
longformer-squadv2
591 kB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 3 commits
system's picture
system HF Staff
Update predictions_test.json
a463afb almost 6 years ago
  • .gitattributes
    345 Bytes
    initial commit almost 6 years ago
  • model_args.json
    1.55 kB
    Update model_args.json almost 6 years ago
  • predictions_test.json
    589 kB
    Update predictions_test.json almost 6 years ago