Visual Question Answering
Transformers
Safetensors
Vietnamese
vision-encoder-decoder
image-text-to-text
Run this model with HF Jobs
Run TeeA/DONUT-ViChart on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/TeeA/DONUT-ViChart. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/TeeA/DONUT-ViChart on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use TeeA/DONUT-ViChart with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TeeA/DONUT-ViChart with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "visual-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("visual-question-answering", model="TeeA/DONUT-ViChart")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("TeeA/DONUT-ViChart") model = AutoModelForMultimodalLM.from_pretrained("TeeA/DONUT-ViChart", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Config
Browse filesFiles changed (6)
- added_tokens.jsonAdded+11
- dict.txtAdded
- preprocessor_config.jsonAdded+26
- sentencepiece.bpe.modelAdded+3
- special_tokens_map.jsonAdded+15
- tokenizer_config.jsonAdded+128
1234567891011{ "</s_cols>": 40033, "</s_rows>": 40031, "</s_text>": 40035, "</s_vichart>": 40037, "<s_cols>": 40032, "<s_rows>": 40030, "<s_text>": 40034, "<s_vichart>": 40036, "<sep/>": 40038}1234567891011121314151617181920212223242526{ "do_align_long_axis": false, "do_normalize": true, "do_pad": true, "do_rescale": true, "do_resize": true, "do_thumbnail": true, "image_mean": [ 0.5, 0.5, 0.5 ], "image_processor_type": "DonutImageProcessor", "image_std": [ 0.5, 0.5, 0.5 ], "processor_class": "DonutProcessor", "resample": 2, "rescale_factor": 0.00392156862745098, "size": [ 960, 1280 ]}123version https://git-lfs.github.com/spec/v1oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865size 5069051123456789101112131415{ "bos_token": "<s>", "cls_token": "<s>", "eos_token": "</s>", "mask_token": { "content": "<mask>", "lstrip": true, "normalized": true, "rstrip": false, "single_word": false }, "pad_token": "<pad>", "sep_token": "</s>", "unk_token": "<unk>"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128{ "added_tokens_decoder": { "0": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<pad>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "3": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "40029": { "content": "<mask>", "lstrip": true, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "40030": { "content": "<s_rows>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": false }, "40031": { "content": "</s_rows>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": false }, "40032": { "content": "<s_cols>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": false }, "40033": { "content": "</s_cols>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": false }, "40034": { "content": "<s_text>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": false }, "40035": { "content": "</s_text>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": false }, "40036": { "content": "<s_vichart>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": false }, "40037": { "content": "</s_vichart>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": false }, "40038": { "content": "<sep/>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": false } }, "bos_token": "<s>", "clean_up_tokenization_spaces": true, "cls_token": "<s>", "eos_token": "</s>", "mask_token": "<mask>", "model_max_length": 1024, "pad_token": "<pad>", "processor_class": "DonutProcessor", "sep_token": "</s>", "sp_model_kwargs": {}, "tokenizer_class": "BartphoTokenizer", "unk_token": "<unk>"}added_tokens.jsonAdded+11
dict.txtAdded
preprocessor_config.jsonAdded+26
sentencepiece.bpe.modelAdded+3
special_tokens_map.jsonAdded+15
tokenizer_config.jsonAdded+128