Instructions to use etweedy/roberta-base-squad-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use etweedy/roberta-base-squad-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="etweedy/roberta-base-squad-v2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("etweedy/roberta-base-squad-v2") model = AutoModelForQuestionAnswering.from_pretrained("etweedy/roberta-base-squad-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
43b1eb8 -
Update README.md
b8612e3
-
Update README.md
17ecaf7 -
Update README.md
9c6d61c
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (2ac56cf50cbc18088e3f5a579892226b7b109fb7) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>5077c56 -
Create README.md
6f70cc2 -
Upload 7 files
71d894c -
initial commit
4b3c917