rubentito / longt5-tglobal-base-mpdocvqa

huggingface.co
Total runs: 7
24-hour runs: 0
7-day runs: -1
30-day runs: 3
Model's Last Updated: November 20 2023
text-generation

Introduction of longt5-tglobal-base-mpdocvqa

Model Details of longt5-tglobal-base-mpdocvqa

LongT5 base with transient-global attention fine-tuned on MP-DocVQA

This is LongT5 trained on SQuADv2, CoQA and TryoCoQA datasets from Tryolabs hub , and fine-tuned on Multipage DocVQA (MP-DocVQA) dataset.

How to use

Here is how to use this model to get the features of a given text in PyTorch:

import torch
from transformers import AutoTokenizer, LongT5ForConditionalGeneration

tokenizer = AutoTokenizer.from_pretrained("rubentito/longt5-tglobal-base-mpdocvqa")
model = LongT5ForConditionalGeneration.from_pretrained("rubentito/longt5-tglobal-base-mpdocvqa")

context = "Huggingface has democratized NLP. Huge thanks to Huggingface for this."
question = "What has Huggingface done?"
input_text = "question: {:s}  context: {:s}".format(question, context)

encoding = tokenizer(input_text, return_tensors="pt")
output = self.model.generate(**encoding)
answer = tokenizer.decode(output['sequences'], skip_special_tokens=True)
Metrics

Average Normalized Levenshtein Similarity (ANLS)

The standard metric for text-based VQA tasks (ST-VQA and DocVQA). It evaluates the method's reasoning capabilities while smoothly penalizes OCR recognition errors. Check Scene Text Visual Question Answering for detailed information.

Answer Page Prediction Accuracy (APPA)

In the MP-DocVQA task, the models can provide the index of the page where the information required to answer the question is located. For this subtask accuracy is used to evaluate the predictions: i.e. if the predicted page is correct or not. Check Hierarchical multimodal transformers for Multi-Page DocVQA for detailed information.

Model results

Extended experimentation can be found in Table 2 of Hierarchical multimodal transformers for Multi-Page DocVQA . You can also check the live leaderboard at the RRC Portal .

Model HF name Parameters ANLS APPA
Bert large rubentito/bert-large-mpdocvqa 334M 0.4183 51.6177
Longformer base rubentito/longformer-base-mpdocvqa 148M 0.5287 71.1696
BigBird ITC base rubentito/bigbird-base-itc-mpdocvqa 131M 0.4929 67.5433
LayoutLMv3 base rubentito/layoutlmv3-base-mpdocvqa 125M 0.4538 51.9426
T5 base rubentito/t5-base-mpdocvqa 223M 0.5050 0.0000
Hi-VT5 rubentito/hivt5-base-mpdocvqa 316M 0.6201 79.23
Citation Information
@article{tito2022hierarchical,
  title={Hierarchical multimodal transformers for Multi-Page DocVQA},
  author={Tito, Rub{\`e}n and Karatzas, Dimosthenis and Valveny, Ernest},
  journal={arXiv preprint arXiv:2212.05935},
  year={2022}
}

Runs of rubentito longt5-tglobal-base-mpdocvqa on huggingface.co

7
Total runs
0
24-hour runs
0
3-day runs
-1
7-day runs
3
30-day runs

More Information About longt5-tglobal-base-mpdocvqa huggingface.co Model

More longt5-tglobal-base-mpdocvqa license Visit here:

https://choosealicense.com/licenses/gpl-3.0

longt5-tglobal-base-mpdocvqa huggingface.co

longt5-tglobal-base-mpdocvqa huggingface.co is an AI model on huggingface.co that provides longt5-tglobal-base-mpdocvqa's model effect (), which can be used instantly with this rubentito longt5-tglobal-base-mpdocvqa model. huggingface.co supports a free trial of the longt5-tglobal-base-mpdocvqa model, and also provides paid use of the longt5-tglobal-base-mpdocvqa. Support call longt5-tglobal-base-mpdocvqa model through api, including Node.js, Python, http.

longt5-tglobal-base-mpdocvqa huggingface.co Url

https://huggingface.co/rubentito/longt5-tglobal-base-mpdocvqa

rubentito longt5-tglobal-base-mpdocvqa online free

longt5-tglobal-base-mpdocvqa huggingface.co is an online trial and call api platform, which integrates longt5-tglobal-base-mpdocvqa's modeling effects, including api services, and provides a free online trial of longt5-tglobal-base-mpdocvqa, you can try longt5-tglobal-base-mpdocvqa online for free by clicking the link below.

rubentito longt5-tglobal-base-mpdocvqa online free url in huggingface.co:

https://huggingface.co/rubentito/longt5-tglobal-base-mpdocvqa

longt5-tglobal-base-mpdocvqa install

longt5-tglobal-base-mpdocvqa is an open source model from GitHub that offers a free installation service, and any user can find longt5-tglobal-base-mpdocvqa on GitHub to install. At the same time, huggingface.co provides the effect of longt5-tglobal-base-mpdocvqa install, users can directly use longt5-tglobal-base-mpdocvqa installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

longt5-tglobal-base-mpdocvqa install url in huggingface.co:

https://huggingface.co/rubentito/longt5-tglobal-base-mpdocvqa

Url of longt5-tglobal-base-mpdocvqa

longt5-tglobal-base-mpdocvqa huggingface.co Url

Provider of longt5-tglobal-base-mpdocvqa huggingface.co

rubentito
ORGANIZATIONS

Other API from rubentito