Instructions to use BasselNashaat/SmolVLM2-2.2B-chartqa-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BasselNashaat/SmolVLM2-2.2B-chartqa-lora with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("BasselNashaat/SmolVLM2-2.2B-chartqa-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download processor_config.json from BasselNashaat/SmolVLM2-2.2B-chartqa-lora: direct link, hf CLI and curl.
- Browser
- Download file 1.46 kB
-
https://huggingface.co/BasselNashaat/SmolVLM2-2.2B-chartqa-lora/resolve/main/processor_config.json
- Command line
-
hf download hf://BasselNashaat/SmolVLM2-2.2B-chartqa-lora/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/BasselNashaat/SmolVLM2-2.2B-chartqa-lora/resolve/main/processor_config.json
1.46 kB
| { | |
| "image_processor": { | |
| "do_convert_rgb": true, | |
| "do_image_splitting": true, | |
| "do_normalize": true, | |
| "do_pad": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_processor_type": "SmolVLMImageProcessor", | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "max_image_size": { | |
| "longest_edge": 384 | |
| }, | |
| "resample": 1, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "longest_edge": 768 | |
| }, | |
| "video_sampling": { | |
| "fps": 1, | |
| "max_frames": 64, | |
| "video_size": { | |
| "longest_edge": 384 | |
| } | |
| } | |
| }, | |
| "image_seq_len": 81, | |
| "processor_class": "SmolVLMProcessor", | |
| "video_processor": { | |
| "do_convert_rgb": true, | |
| "do_image_splitting": true, | |
| "do_normalize": true, | |
| "do_pad": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "do_sample_frames": false, | |
| "fps": 1, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "max_image_size": { | |
| "longest_edge": 384 | |
| }, | |
| "num_frames": 64, | |
| "resample": 1, | |
| "rescale_factor": 0.00392156862745098, | |
| "return_metadata": false, | |
| "size": { | |
| "longest_edge": 1536 | |
| }, | |
| "video_processor_type": "SmolVLMVideoProcessor", | |
| "video_sampling": { | |
| "fps": 1, | |
| "max_frames": 64, | |
| "video_size": { | |
| "longest_edge": 1536 | |
| } | |
| } | |
| } | |
| } | |