Image-Text-to-Text
PEFT
Safetensors
English
lora
sft
trl
smolvlm2
vision-language-model
chartqa
conversational
Instructions to use tuggspeedman-ai/SmolVLM2-2.2B-chartqa-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use tuggspeedman-ai/SmolVLM2-2.2B-chartqa-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolVLM2-2.2B-Instruct") model = PeftModel.from_pretrained(base_model, "tuggspeedman-ai/SmolVLM2-2.2B-chartqa-lora") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from tuggspeedman-ai/SmolVLM2-2.2B-chartqa-lora: direct link, hf CLI and curl.
- Browser
- Download file 868 Bytes
-
https://huggingface.co/tuggspeedman-ai/SmolVLM2-2.2B-chartqa-lora/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://tuggspeedman-ai/SmolVLM2-2.2B-chartqa-lora/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/tuggspeedman-ai/SmolVLM2-2.2B-chartqa-lora/resolve/main/tokenizer_config.json
868 Bytes
| { | |
| "add_prefix_space": false, | |
| "backend": "tokenizers", | |
| "bos_token": "<|im_start|>", | |
| "clean_up_tokenization_spaces": false, | |
| "end_of_utterance_token": "<end_of_utterance>", | |
| "eos_token": "<end_of_utterance>", | |
| "errors": "replace", | |
| "fake_image_token": "<fake_token_around_image>", | |
| "global_image_token": "<global-img>", | |
| "image_token": "<image>", | |
| "is_local": false, | |
| "legacy": false, | |
| "local_files_only": false, | |
| "model_max_length": 16384, | |
| "model_specific_special_tokens": { | |
| "end_of_utterance_token": "<end_of_utterance>", | |
| "fake_image_token": "<fake_token_around_image>", | |
| "global_image_token": "<global-img>", | |
| "image_token": "<image>" | |
| }, | |
| "pad_token": "<|im_end|>", | |
| "processor_class": "SmolVLMProcessor", | |
| "tokenizer_class": "GPT2Tokenizer", | |
| "truncation_side": "left", | |
| "unk_token": "<|endoftext|>", | |
| "vocab_size": 49152 | |
| } | |