Instructions to use optimum/roberta-base-squad2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use optimum/roberta-base-squad2 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="optimum/roberta-base-squad2")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForQuestionAnswering model = AutoModelForQuestionAnswering.from_pretrained("optimum/roberta-base-squad2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Upload model.onnx
499f015
-
Create README.md
db07770 -
Upload tokenizer.json
5a033cf -
Upload special_tokens_map.json
2bb45a2 -
Upload config.json
b3026b4 -
Upload tokenizer_config.json
aa90830 -
Upload vocab.json
cb38f3d -
Upload model.onnx with git-lfs
c0b4411 -
Upload merges.txt
95ca86a -
initial commit
979fe2d