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

valhalla
/
longformer-base-4096-finetuned-squadv1

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

Instructions to use valhalla/longformer-base-4096-finetuned-squadv1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use valhalla/longformer-base-4096-finetuned-squadv1 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("question-answering", model="valhalla/longformer-base-4096-finetuned-squadv1")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForQuestionAnswering
    
    tokenizer = AutoTokenizer.from_pretrained("valhalla/longformer-base-4096-finetuned-squadv1")
    model = AutoModelForQuestionAnswering.from_pretrained("valhalla/longformer-base-4096-finetuned-squadv1", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
longformer-base-4096-finetuned-squadv1
Ctrl+K
Ctrl+K
  • 3 contributors
History: 1 commit
system's picture
system HF Staff
initial commit
6231494 over 6 years ago
  • .gitattributes
    345 Bytes
    initial commit over 6 years ago