Instructions to use bugkiller2025/smolvlm-instruct-thinkv4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bugkiller2025/smolvlm-instruct-thinkv4 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("bugkiller2025/smolvlm-instruct-thinkv4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
smolvlm-instruct-thinkv4
Browse filesFiles changed (14)
- README.mdAdded+68
- adapter_config.jsonAdded+37
- adapter_model.safetensorsAdded+3
- added_tokens.jsonAdded+5
- chat_template.jinjaAdded+2
- merges.txtAdded
- preprocessor_config.jsonAdded+28
- processor_config.jsonAdded+4
- runs/Sep17_00-08-02_0e3cc5127c47/events.out.tfevents.1758067723.0e3cc5127c47.620.0Added+3
- special_tokens_map.jsonAdded+53
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+182
- training_args.binAdded+3
- vocab.jsonAdded
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768---base_model: HuggingFaceTB/SmolVLM-Instructlibrary_name: transformersmodel_name: smolvlm-instruct-thinkv4tags:- generated_from_trainer- trl- grpolicence: license---
# Model Card for smolvlm-instruct-thinkv4
This model is a fine-tuned version of [HuggingFaceTB/SmolVLM-Instruct](https://huggingface.co/HuggingFaceTB/SmolVLM-Instruct).It has been trained using [TRL](https://github.com/huggingface/trl).
## Quick start
```pythonfrom transformers import pipeline
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"generator = pipeline("text-generation", model="bugkiller2025/smolvlm-instruct-thinkv4", device="cuda")output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]print(output["generated_text"])```
## Training procedure
This model was trained with GRPO, a method introduced in [DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models](https://huggingface.co/papers/2402.03300).
### Framework versions
- TRL: 0.23.0- Transformers: 4.56.1- Pytorch: 2.8.0+cu126- Datasets: 4.0.0- Tokenizers: 0.22.0
## Citations
Cite GRPO as:
```bibtex@article{shao2024deepseekmath, title = {{DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models}}, author = {Zhihong Shao and Peiyi Wang and Qihao Zhu and Runxin Xu and Junxiao Song and Mingchuan Zhang and Y. K. Li and Y. Wu and Daya Guo}, year = 2024, eprint = {arXiv:2402.03300},}
```
Cite TRL as: ```bibtex@misc{vonwerra2022trl, title = {{TRL: Transformer Reinforcement Learning}}, author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec}, year = 2020, journal = {GitHub repository}, publisher = {GitHub}, howpublished = {\url{https://github.com/huggingface/trl}}}```12345678910111213141516171819202122232425262728293031323334353637{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": null, "bias": "none", "corda_config": null, "eva_config": null, "exclude_modules": null, "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "layer_replication": null, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_alpha": 32, "lora_bias": false, "lora_dropout": 0.1, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "peft_type": "LORA", "qalora_group_size": 16, "r": 8, "rank_pattern": {}, "revision": null, "target_modules": [ "q_proj", "v_proj" ], "target_parameters": null, "task_type": "CAUSAL_LM", "trainable_token_indices": null, "use_dora": false, "use_qalora": false, "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:b4e0892148bd56edf480f4a30cea0030f3752f5abcf55f41200079ac512e5c54size 1030643212345{ "<end_of_utterance>": 49154, "<fake_token_around_image>": 49152, "<image>": 49153}12<|im_start|>{% for message in messages %}{{message['role'] | capitalize}}{% if message['content'][0]['type'] == 'image' %}{{':'}}{% else %}{{': '}}{% endif %}{% for line in message['content'] %}{% if line['type'] == 'text' %}{{line['text']}}{% elif line['type'] == 'image' %}{{ '<image>' }}{% endif %}{% endfor %}<end_of_utterance>{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}12345678910111213141516171819202122232425262728{ "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": "Idefics3ImageProcessor", "image_std": [ 0.5, 0.5, 0.5 ], "max_image_size": { "longest_edge": 384 }, "processor_class": "Idefics3Processor", "resample": 1, "rescale_factor": 0.00392156862745098, "size": { "longest_edge": 1536 }}1234{ "image_seq_len": 81, "processor_class": "Idefics3Processor"}123version https://git-lfs.github.com/spec/v1oid sha256:bcc5bba8987f6dcffaf4efa313e1aa1eecedf077debbfabe092d48b18d5c2b01size 1391551234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253{ "additional_special_tokens": [ { "content": "<fake_token_around_image>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, { "content": "<image>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, { "content": "<end_of_utterance>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false } ], "bos_token": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "<end_of_utterance>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "unk_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182{ "add_prefix_space": false, "added_tokens_decoder": { "0": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "3": { "content": "<repo_name>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "4": { "content": "<reponame>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "5": { "content": "<file_sep>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "6": { "content": "<filename>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "7": { "content": "<gh_stars>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "8": { "content": "<issue_start>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "9": { "content": "<issue_comment>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "10": { "content": "<issue_closed>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "11": { "content": "<jupyter_start>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "12": { "content": "<jupyter_text>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "13": { "content": "<jupyter_code>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "14": { "content": "<jupyter_output>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "15": { "content": "<jupyter_script>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "16": { "content": "<empty_output>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "49152": { "content": "<fake_token_around_image>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "49153": { "content": "<image>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "49154": { "content": "<end_of_utterance>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "additional_special_tokens": [ "<fake_token_around_image>", "<image>", "<end_of_utterance>" ], "bos_token": "<|im_start|>", "clean_up_tokenization_spaces": false, "eos_token": "<end_of_utterance>", "extra_special_tokens": {}, "legacy": false, "model_max_length": 16384, "pad_token": "<|im_end|>", "processor_class": "Idefics3Processor", "tokenizer_class": "GPT2Tokenizer", "truncation_side": "left", "unk_token": "<|endoftext|>", "vocab_size": 49152}123version https://git-lfs.github.com/spec/v1oid sha256:8fadeaeda8a8f5e59b1863707a077b4bd28c7c108708b76364782e107164395csize 7185README.mdAdded+68
adapter_config.jsonAdded+37
adapter_model.safetensorsAdded+3
added_tokens.jsonAdded+5
chat_template.jinjaAdded+2
merges.txtAdded
preprocessor_config.jsonAdded+28
processor_config.jsonAdded+4
runs/Sep17_00-08-02_0e3cc5127c47/events.out.tfevents.1758067723.0e3cc5127c47.620.0Added+3
special_tokens_map.jsonAdded+53
tokenizer.jsonAdded
tokenizer_config.jsonAdded+182
training_args.binAdded+3
vocab.jsonAdded