Run this model with HF Jobs
Run gbv/SmolLM2-1.7B-Instruct-thinking-function_calling-V0 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/gbv/SmolLM2-1.7B-Instruct-thinking-function_calling-V0. 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/gbv/SmolLM2-1.7B-Instruct-thinking-function_calling-V0 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 gbv/SmolLM2-1.7B-Instruct-thinking-function_calling-V0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gbv/SmolLM2-1.7B-Instruct-thinking-function_calling-V0 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("gbv/SmolLM2-1.7B-Instruct-thinking-function_calling-V0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
gbv/SmolLM2-1.7B-Instruct-thinking-function_calling-V0
Browse filesFiles changed (11)
- README.mdAdded+58
- adapter_config.jsonAdded+39
- adapter_model.safetensorsAdded+3
- added_tokens.jsonAdded+12
- merges.txtAdded
- runs/Feb19_15-08-50_iai01/events.out.tfevents.1739977741.iai01Added+3
- special_tokens_map.jsonAdded+36
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+243
- training_args.binAdded+3
- vocab.jsonAdded
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758---base_model: HuggingFaceTB/SmolLM2-1.7B-Instructlibrary_name: transformersmodel_name: SmolLM2-1.7B-Instruct-thinking-function_calling-V0tags:- generated_from_trainer- trl- sftlicence: license---
# Model Card for SmolLM2-1.7B-Instruct-thinking-function_calling-V0
This model is a fine-tuned version of [HuggingFaceTB/SmolLM2-1.7B-Instruct](https://huggingface.co/HuggingFaceTB/SmolLM2-1.7B-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="gbv/SmolLM2-1.7B-Instruct-thinking-function_calling-V0", 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 SFT.
### Framework versions
- TRL: 0.15.1- Transformers: 4.49.0- Pytorch: 2.6.0- Datasets: 3.3.1- Tokenizers: 0.21.0
## Citations
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édec}, year = 2020, journal = {GitHub repository}, publisher = {GitHub}, howpublished = {\url{https://github.com/huggingface/trl}}}```123456789101112131415161718192021222324252627282930313233343536373839{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "HuggingFaceTB/SmolLM2-1.7B-Instruct", "bias": "none", "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": 64, "lora_bias": false, "lora_dropout": 0.05, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "peft_type": "LORA", "r": 16, "rank_pattern": {}, "revision": null, "target_modules": [ "o_proj", "gate_proj", "lm_head", "q_proj", "embed_tokens", "down_proj", "up_proj", "v_proj", "k_proj" ], "task_type": "CAUSAL_LM", "use_dora": false, "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:5e96f9f9ceb00679f79f934174d8f0eceaecb383a594414a6ddb9b5784ab5e62size 481687136123456789101112{ "</think>": 49156, "</tool_call>": 49158, "</tool_reponse>": 49160, "</tools>": 49154, "<eos>": 49161, "<pad>": 49152, "<think>": 49155, "<tool_call>": 49157, "<tool_reponse>": 49159, "<tools>": 49153}123version https://git-lfs.github.com/spec/v1oid sha256:88a360ce6f74916bb96683283f5958b2f04a14147f61aebfbfab64c02db661f9size 38101123456789101112131415161718192021222324252627282930313233343536{ "additional_special_tokens": [ "<tools>", "</tools>", "<think>", "</think>", "<tool_call>", "</tool_call>", "<tool_reponse>", "</tool_reponse>", "<pad>", "<eos>" ], "bos_token": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": "<pad>", "unk_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243{ "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": "<pad>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "49153": { "content": "<tools>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "49154": { "content": "</tools>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "49155": { "content": "<think>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "49156": { "content": "</think>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "49157": { "content": "<tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "49158": { "content": "</tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "49159": { "content": "<tool_reponse>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "49160": { "content": "</tool_reponse>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "49161": { "content": "<eos>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "additional_special_tokens": [ "<tools>", "</tools>", "<think>", "</think>", "<tool_call>", "</tool_call>", "<tool_reponse>", "</tool_reponse>", "<pad>", "<eos>" ], "bos_token": "<|im_start|>", "chat_template": "{{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{{ '<start_of_turn>' + message['role'] + '\n' + message['content'] | trim + '<end_of_turn><eos>\n' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}", "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "extra_special_tokens": {}, "model_max_length": 8192, "pad_token": "<pad>", "tokenizer_class": "GPT2Tokenizer", "unk_token": "<|endoftext|>", "vocab_size": 49152}123version https://git-lfs.github.com/spec/v1oid sha256:a2debabb8a1af139f63769c0a65cd8fb8b2c86b1fb98611dec21143a601ed269size 5624README.mdAdded+58
adapter_config.jsonAdded+39
adapter_model.safetensorsAdded+3
added_tokens.jsonAdded+12
merges.txtAdded
runs/Feb19_15-08-50_iai01/events.out.tfevents.1739977741.iai01Added+3
special_tokens_map.jsonAdded+36
tokenizer.jsonAdded
tokenizer_config.jsonAdded+243
training_args.binAdded+3
vocab.jsonAdded