Instructions to use ahmed-masry/ChartInstruct-FlanT5-XL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ahmed-masry/ChartInstruct-FlanT5-XL with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("ahmed-masry/ChartInstruct-FlanT5-XL", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from ahmed-masry/ChartInstruct-FlanT5-XL: direct link, hf CLI and curl.
- Browser
- Download file 774 Bytes
-
https://huggingface.co/ahmed-masry/ChartInstruct-FlanT5-XL/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://ahmed-masry/ChartInstruct-FlanT5-XL/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/ahmed-masry/ChartInstruct-FlanT5-XL/resolve/main/preprocessor_config.json
774 Bytes
| { | |
| "_valid_processor_keys": [ | |
| "images", | |
| "do_resize", | |
| "size", | |
| "resample", | |
| "do_thumbnail", | |
| "do_align_long_axis", | |
| "do_pad", | |
| "random_padding", | |
| "do_rescale", | |
| "rescale_factor", | |
| "do_normalize", | |
| "image_mean", | |
| "image_std", | |
| "return_tensors", | |
| "data_format", | |
| "input_data_format" | |
| ], | |
| "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": "LlavaProcessor", | |
| "resample": 2, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "height": 512, | |
| "width": 512 | |
| } | |
| } | |