Instructions to use aware-ai/longformer-squadv2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aware-ai/longformer-squadv2 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="aware-ai/longformer-squadv2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("aware-ai/longformer-squadv2") model = AutoModelForQuestionAnswering.from_pretrained("aware-ai/longformer-squadv2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (a9c36f19fa0d2cd667f0125f1e6a46c210296391) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>b040cae
-
Update config.json
74f1fe8 -
Update tf_model.h5
0603b38
-
Update training_args.bin
3d3b1d3 -
Update scheduler.pt
3b82e14 -
Update config.json
483e2fd -
Update special_tokens_map.json
9313c76 -
Update merges.txt
26a1749 -
Update vocab.json
7f4f9c1 -
Update tokenizer_config.json
cba5b62 -
Update pytorch_model.bin
e892864 -
Update optimizer.pt
59f91b6 -
Update model_args.json
a55d17d
-
Update nbest_predictions_test.json
dc9954e -
Update null_odds_test.json
f506a57 -
Update config.json
d3481e1 -
Update special_tokens_map.json
35745b7 -
Update merges.txt
be706e2 -
Update vocab.json
b8eb0be -
Update tokenizer_config.json
9b758a7 -
Update predictions_test.json
a463afb -
Update model_args.json
12b5a78 -
initial commit
b117a9e