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

madlag
/
albert-base-v2-squad

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

Instructions to use madlag/albert-base-v2-squad with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use madlag/albert-base-v2-squad 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="madlag/albert-base-v2-squad")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForQuestionAnswering
    
    tokenizer = AutoTokenizer.from_pretrained("madlag/albert-base-v2-squad")
    model = AutoModelForQuestionAnswering.from_pretrained("madlag/albert-base-v2-squad", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
albert-base-v2-squad
45.8 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
madlag's picture
madlag
Update README.md
f0bd07c over 5 years ago
  • .gitattributes
    690 Bytes
    initial commit over 5 years ago
  • README.md
    360 Bytes
    Update README.md over 5 years ago
  • config.json
    811 Bytes
    Inital commit. over 5 years ago
  • data_args.json
    433 Bytes
    Inital commit. over 5 years ago
  • eval_metrics.json
    69 Bytes
    Inital commit. over 5 years ago
  • evaluate_timing.json
    85 Bytes
    Inital commit. over 5 years ago
  • model_args.json
    166 Bytes
    Inital commit. over 5 years ago
  • predictions.json
    586 kB
    Inital commit. over 5 years ago
  • pytorch_model.bin
    44.4 MB
    xet
    Inital commit. over 5 years ago
  • scheduler.pt
    623 Bytes
    xet
    Inital commit. over 5 years ago
  • sparse_args.json
    1.16 kB
    Inital commit. over 5 years ago
  • special_tokens_map.json
    245 Bytes
    Inital commit. over 5 years ago
  • spiece.model
    760 kB
    xet
    Inital commit. over 5 years ago
  • tokenizer_config.json
    428 Bytes
    Inital commit. over 5 years ago
  • trainer_state.json
    19.4 kB
    Inital commit. over 5 years ago
  • training_args.bin
    2.48 kB
    xet
    Inital commit. over 5 years ago