Run this model with HF Jobs
Run skbose/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/skbose/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/skbose/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 skbose/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 skbose/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("skbose/SmolLM2-1.7B-Instruct-thinking-function_calling-V0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
skbose/SmolLM2-1.7B-Instruct-thinking-function_calling-V0
Browse filesFiles changed (11)
- README.mdAdded+58
- adapter_config.jsonAdded+41
- adapter_model.safetensorsAdded+3
- added_tokens.jsonAdded+10
- merges.txtAdded
- runs/May09_11-55-21_8d14ca3631d0/events.out.tfevents.1746791740.8d14ca3631d0.348.0Added+3
- special_tokens_map.jsonAdded+41
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+226
- 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="skbose/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.17.0- Transformers: 4.47.1- Pytorch: 2.5.1+cu121- Datasets: 3.6.0- 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{\'e}dec}, year = 2020, journal = {GitHub repository}, publisher = {GitHub}, howpublished = {\url{https://github.com/huggingface/trl}}}```1234567891011121314151617181920212223242526272829303132333435363738394041{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "HuggingFaceTB/SmolLM2-1.7B-Instruct", "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": 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": [ "k_proj", "up_proj", "lm_head", "o_proj", "down_proj", "q_proj", "gate_proj", "embed_tokens", "v_proj" ], "task_type": "CAUSAL_LM", "trainable_token_indices": null, "use_dora": false, "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:31c08ea13520eaf715912db4591afdcf0be5ce793f6a097df61fb015479ceb90size 48167049612345678910{ "</think>": 49155, "</tool_call>": 49157, "</tool_reponse>": 49159, "</tools>": 49153, "<think>": 49154, "<tool_call>": 49156, "<tool_reponse>": 49158, "<tools>": 49152}123version https://git-lfs.github.com/spec/v1oid sha256:3af80ccfa99550d7f2e0ec16e8f33b6101c27fc947a78bf8c1ffaaa5d298a9e0size 419691234567891011121314151617181920212223242526272829303132333435363738394041{ "additional_special_tokens": [ "<tools>", "</tools>", "<think>", "</think>", "<tool_call>", "</tool_call>", "<tool_reponse>", "</tool_reponse>", "<|im_end|>" ], "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": { "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 }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226{ "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": "<tools>", "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": "<think>", "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": "<tool_call>", "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_reponse>", "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 } }, "additional_special_tokens": [ "<tools>", "</tools>", "<think>", "</think>", "<tool_call>", "</tool_call>", "<tool_reponse>", "</tool_reponse>", "<|im_end|>" ], "bos_token": "<|im_start|>", "chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}", "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "extra_special_tokens": {}, "model_max_length": 8192, "pad_token": "<|im_end|>", "tokenizer_class": "GPT2Tokenizer", "unk_token": "<|endoftext|>", "vocab_size": 49152}123version https://git-lfs.github.com/spec/v1oid sha256:eed74d8903339b4e3e8747ab39a2959556eff5ded65a07928f6844aff2e447e7size 5752README.mdAdded+58
adapter_config.jsonAdded+41
adapter_model.safetensorsAdded+3
added_tokens.jsonAdded+10
merges.txtAdded
runs/May09_11-55-21_8d14ca3631d0/events.out.tfevents.1746791740.8d14ca3631d0.348.0Added+3
special_tokens_map.jsonAdded+41
tokenizer.jsonAdded
tokenizer_config.jsonAdded+226
training_args.binAdded+3
vocab.jsonAdded