Instructions to use aware-ai/longformer-QA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aware-ai/longformer-QA 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-QA")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("aware-ai/longformer-QA") model = AutoModelForQuestionAnswering.from_pretrained("aware-ai/longformer-QA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (e52e39ecbdfe1207fad75fe70714a10c2f9bb7c2) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>52c860f
-
Update config.json
15ade5c -
Update tf_model.h5
2ff1b56
-
Update model_args.json
77aa54e -
Update merges.txt
14bf135 -
Update training_args.bin
3d391b9 -
Update pytorch_model.bin
509729c -
Update vocab.json
ee8fb88 -
Update tokenizer_config.json
a26c018 -
Update optimizer.pt
598f191 -
Update scheduler.pt
8108367 -
Update special_tokens_map.json
28de78b -
Update config.json
03b0ad3 -
initial commit
014ef34