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

elgeish
/
cs224n-squad2.0-albert-large-v2

Question Answering
Transformers
PyTorch
albert
exbert
Model card Files Files and versions
xet
Community
1

Instructions to use elgeish/cs224n-squad2.0-albert-large-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use elgeish/cs224n-squad2.0-albert-large-v2 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="elgeish/cs224n-squad2.0-albert-large-v2")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForQuestionAnswering
    
    tokenizer = AutoTokenizer.from_pretrained("elgeish/cs224n-squad2.0-albert-large-v2")
    model = AutoModelForQuestionAnswering.from_pretrained("elgeish/cs224n-squad2.0-albert-large-v2", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
cs224n-squad2.0-albert-large-v2
71.5 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
julien-c's picture
julien-c HF Staff
Migrate model card from transformers-repo
eaf92e7 almost 6 years ago
  • .gitattributes
    345 Bytes
    initial commit over 6 years ago
  • README.md
    3.05 kB
    Migrate model card from transformers-repo almost 6 years ago
  • config.json
    700 Bytes
    Update config.json over 6 years ago
  • pytorch_model.bin
    70.8 MB
    xet
    Update pytorch_model.bin over 6 years ago
  • special_tokens_map.json
    156 Bytes
    Update special_tokens_map.json over 6 years ago
  • spiece.model
    760 kB
    Update spiece.model over 6 years ago
  • tokenizer_config.json
    39 Bytes
    Update tokenizer_config.json over 6 years ago