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

opticalmaterials
/
opticalpurebert_qa_squadv1_uncased

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

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

  • Libraries
  • Transformers

    How to use opticalmaterials/opticalpurebert_qa_squadv1_uncased 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="opticalmaterials/opticalpurebert_qa_squadv1_uncased")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForQuestionAnswering
    
    tokenizer = AutoTokenizer.from_pretrained("opticalmaterials/opticalpurebert_qa_squadv1_uncased")
    model = AutoModelForQuestionAnswering.from_pretrained("opticalmaterials/opticalpurebert_qa_squadv1_uncased", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
opticalpurebert_qa_squadv1_uncased
437 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
opticalmaterials's picture
opticalmaterials
Upload vocab.txt
aa4d253 about 4 years ago
  • .gitattributes
    1.38 kB
    initial commit about 4 years ago
  • config.json
    713 Bytes
    Upload config.json about 4 years ago
  • pytorch_model.bin
    436 MB
    xet
    Upload pytorch_model.bin about 4 years ago
  • special_tokens_map.json
    112 Bytes
    Upload special_tokens_map.json about 4 years ago
  • tokenizer.json
    703 kB
    Upload tokenizer.json about 4 years ago
  • tokenizer_config.json
    473 Bytes
    Upload tokenizer_config.json about 4 years ago
  • training_args.bin
    3.25 kB
    xet
    Upload training_args.bin about 4 years ago
  • vocab.txt
    222 kB
    Upload vocab.txt about 4 years ago