Instructions to use primer-ai/bart-squad2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use primer-ai/bart-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="primer-ai/bart-squad2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("primer-ai/bart-squad2") model = AutoModelForQuestionAnswering.from_pretrained("primer-ai/bart-squad2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Migrate model card from transformers-repo
Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/Primer/bart-squad2/README.md7217207
-
Update config.json
ceacc9a
-
Update special_tokens_map.json
8ae4990 -
Update vocab.json
704d37b -
Update pytorch_model.bin
c8806e2 -
Update tokenizer_config.json
3fdcd79 -
Update merges.txt
2663c3b -
Update config.json
5b49306 -
Update special_tokens_map.json
6df0199 -
Update vocab.json
099ec7c -
Update tokenizer_config.json
cbe8768 -
Update config.json
a56db02 -
initial commit
55f9e1b