Instructions to use Li/roberta-base-squad2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Li/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="Li/roberta-base-squad2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("Li/roberta-base-squad2") model = AutoModelForQuestionAnswering.from_pretrained("Li/roberta-base-squad2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (c61484616671fd1f5508e15674127446f21af896) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>581ffe0
-
Update README.md
58f0e7b -
Update config.json
cb72b7c -
Create README.md
9151649 -
Upload pytorch_model.bin with git-lfs
22579c9 -
Upload merges.txt
b6068bc -
Upload vocab.json
6696ef5 -
Upload tokenizer.json
b2a925c -
Upload tokenizer_config.json
a96790c -
Upload special_tokens_map.json
001bfe1 -
Upload config.json
75be5fe -
initial commit
fd6d9f2