Question Answering
Transformers
PyTorch
Safetensors
English
bart
squad
squad_v2
Eval Results (legacy)
Instructions to use sjrhuschlee/bart-base-squad2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sjrhuschlee/bart-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="sjrhuschlee/bart-base-squad2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("sjrhuschlee/bart-base-squad2") model = AutoModelForQuestionAnswering.from_pretrained("sjrhuschlee/bart-base-squad2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Librarian Bot: Add base_model information to model (#1)
- Librarian Bot: Add base_model information to model (478aa2fe438b905ab5b3ceb1ece1a2520b82f631) Co-authored-by: Librarian Bot (Bot) <librarian-bot@users.noreply.huggingface.co>a7e8577
-
Update README.md
bdfca93
-
Update README.md
da11330 -
Upload model.safetensors with huggingface_hub
859875b -
Update README.md
61772bf -
Upload pytorch_model.bin with huggingface_hub
85446c9 -
Update README.md
e9839d3 -
Upload vocab.json with huggingface_hub
ddfc3c8 -
Upload merges.txt with huggingface_hub
97008a8 -
Upload tokenizer_config.json with huggingface_hub
b801f39 -
Upload tokenizer.json with huggingface_hub
1b486a2 -
Upload special_tokens_map.json with huggingface_hub
636fe63 -
Upload config.json with huggingface_hub
5022552 -
initial commit
a2cc140