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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

allenai
/
longformer-large-4096-finetuned-triviaqa

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

Instructions to use allenai/longformer-large-4096-finetuned-triviaqa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use allenai/longformer-large-4096-finetuned-triviaqa 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="allenai/longformer-large-4096-finetuned-triviaqa")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForQuestionAnswering
    
    tokenizer = AutoTokenizer.from_pretrained("allenai/longformer-large-4096-finetuned-triviaqa")
    model = AutoModelForQuestionAnswering.from_pretrained("allenai/longformer-large-4096-finetuned-triviaqa", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
longformer-large-4096-finetuned-triviaqa
3.48 GB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 8 commits
dirkgr's picture
dirkgr
lbourdois's picture
lbourdois
Upload README.md with huggingface_hub (#1)
541df51 about 4 years ago
  • .gitattributes
    345 Bytes
    initial commit over 6 years ago
  • README.md
    21 Bytes
    Upload README.md with huggingface_hub (#1) about 4 years ago
  • config.json
    866 Bytes
    Update config.json about 6 years ago
  • merges.txt
    456 kB
    Add vocab almost 6 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.FloatStorage"

    What is a pickle import?

    1.74 GB
    xet
    Update pytorch_model.bin over 6 years ago
  • tf_model.h5
    1.74 GB
    xet
    Update tf_model.h5 about 6 years ago
  • tokenizer.json
    1.36 MB
    Move files from roberta-large over 5 years ago
  • vocab.json
    899 kB
    Add vocab almost 6 years ago