Question Answering
Transformers
PyTorch
English
longformer
DocVQA
Document Question Answering
Document Visual Question Answering
Instructions to use rubentito/longformer-base-mpdocvqa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rubentito/longformer-base-mpdocvqa 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="rubentito/longformer-base-mpdocvqa")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("rubentito/longformer-base-mpdocvqa") model = AutoModelForQuestionAnswering.from_pretrained("rubentito/longformer-base-mpdocvqa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
22382ce
-
Update README.md
cbafd48
-
Update README.md
25f5bc8 -
Update README.md
2c43df6
-
Update README.md
6d5463e -
Update README.md
b3e51bd -
Update README.md
6c1691c -
Update README.md
8d1afd2 -
Update README.md
f37b903 -
Initial commit
aad1b7b -
Update README.md
e36eb6f -
initial commit
Rubèn Tito5ed0c36