Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

johnt
/
bert_ft_qa

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

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

  • Libraries
  • Transformers

    How to use johnt/bert_ft_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="johnt/bert_ft_qa")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForQuestionAnswering
    
    tokenizer = AutoTokenizer.from_pretrained("johnt/bert_ft_qa")
    model = AutoModelForQuestionAnswering.from_pretrained("johnt/bert_ft_qa", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
bert_ft_qa
2.67 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 10 commits
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model
6581664 verified almost 2 years ago
  • .gitattributes
    1.48 kB
    initial commit almost 4 years ago
  • config.json
    675 Bytes
    Upload BertForQuestionAnswering over 3 years ago
  • model.safetensors
    1.34 GB
    xet
    Adding `safetensors` variant of this model almost 2 years ago
  • pytorch_model.bin
    1.34 GB
    xet
    Upload BertForQuestionAnswering almost 4 years ago