Run this model with HF Jobs
Run TeeA/MATCHA-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/MATCHA-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/MATCHA-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/MATCHA-ViChart with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TeeA/MATCHA-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/MATCHA-ViChart")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("TeeA/MATCHA-ViChart") model = AutoModelForMultimodalLM.from_pretrained("TeeA/MATCHA-ViChart", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload Pix2StructForConditionalGeneration
Browse filesFiles changed (3)
- config.jsonAdded+31
- generation_config.jsonAdded+8
- model.safetensorsAdded+3
12345678910111213141516171819202122232425262728293031{ "_name_or_path": "google/matcha-chartqa", "architectures": [ "Pix2StructForConditionalGeneration" ], "decoder_start_token_id": 0, "eos_token_id": 1, "initializer_factor": 1.0, "initializer_range": 0.02, "is_encoder_decoder": true, "is_vqa": false, "model_type": "pix2struct", "pad_token_id": 0, "text_config": { "encoder_hidden_size": 768, "initializer_range": 0.02, "model_type": "pix2struct_text_model", "vocab_size": 36096 }, "tie_word_embeddings": false, "torch_dtype": "float32", "transformers_version": "4.35.2", "vision_config": { "initializer_range": 0.02, "layer_norm_bias": false, "model_type": "pix2struct_vision_model", "num_channels": 3, "patch_size": 16, "projection_dim": 768 }}12345678{ "_from_model_config": true, "decoder_start_token_id": 0, "eos_token_id": 1, "pad_token_id": 0, "transformers_version": "4.35.2", "use_cache": false}123version https://git-lfs.github.com/spec/v1oid sha256:5c4601b1a3aee5ef8002305f06e60d4d9fab8ef0467deee9d42685fd0f6cf043size 1042252608config.jsonAdded+31
generation_config.jsonAdded+8
model.safetensorsAdded+3