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

abhijithneilabraham
/
longformer_covid_qa

Question Answering
Transformers
PyTorch
longformer
Model card Files Files and versions
xet
Community
2

Instructions to use abhijithneilabraham/longformer_covid_qa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use abhijithneilabraham/longformer_covid_qa 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="abhijithneilabraham/longformer_covid_qa")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForQuestionAnswering
    
    tokenizer = AutoTokenizer.from_pretrained("abhijithneilabraham/longformer_covid_qa")
    model = AutoModelForQuestionAnswering.from_pretrained("abhijithneilabraham/longformer_covid_qa", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
longformer_covid_qa
Ctrl+K
Ctrl+K
  • 1 contributor
History: 10 commits
abhijithneilabraham's picture
abhijithneilabraham
Update README.md
56f4dbe over 5 years ago
  • .gitattributes
    690 Bytes
    initial commit over 5 years ago
  • README.md
    7.4 kB
    Update README.md over 5 years ago
  • config.json
    757 Bytes
    commit from abhijithneilabraham over 5 years ago
  • merges.txt
    456 kB
    commit from abhijithneilabraham over 5 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    595 MB
    xet
    commit from abhijithneilabraham over 5 years ago
  • special_tokens_map.json
    150 Bytes
    commit from abhijithneilabraham over 5 years ago
  • tokenizer_config.json
    176 Bytes
    commit from abhijithneilabraham over 5 years ago
  • training_args.bin

    Detected Pickle imports (2)

    • "transformers.training_args.TrainingArguments",
    • "torch.device"

    How to fix it?

    1.26 kB
    xet
    commit from abhijithneilabraham over 5 years ago
  • vocab.json
    798 kB
    commit from abhijithneilabraham over 5 years ago