Run this model with HF Jobs
Run Badribn/Qwen2.5-Coder-7B_function_calling_instruct 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/Badribn/Qwen2.5-Coder-7B_function_calling_instruct. 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/Badribn/Qwen2.5-Coder-7B_function_calling_instruct 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 Badribn/Qwen2.5-Coder-7B_function_calling_instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Badribn/Qwen2.5-Coder-7B_function_calling_instruct with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Badribn/Qwen2.5-Coder-7B_function_calling_instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (13)
- .gitattributes+1
- README.mdAdded+58
- adapter_config.jsonAdded+39
- adapter_model.safetensorsAdded+3
- added_tokens.jsonAdded+30
- merges.txtAdded
- runs/Mar11_06-03-17_215d55e723fe/events.out.tfevents.1741673543.215d55e723fe.1308.0Added+3
- runs/Mar11_06-03-17_215d55e723fe/events.out.tfevents.1741673766.215d55e723fe.1308.1Added+3
- special_tokens_map.jsonAdded+33
- tokenizer.jsonAdded+3
- tokenizer_config.jsonAdded+259
- training_args.binAdded+3
- vocab.jsonAdded
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758---base_model: Qwen/Qwen2.5-Coder-7B-Instructlibrary_name: transformersmodel_name: Qwen2.5-Coder-7B_function_calling_instructtags:- generated_from_trainer- trl- sftlicence: license---
# Model Card for Qwen2.5-Coder-7B_function_calling_instruct
This model is a fine-tuned version of [Qwen/Qwen2.5-Coder-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-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="Badribn/Qwen2.5-Coder-7B_function_calling_instruct", device="cuda")output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]print(output["generated_text"])```
## Training procedure
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/badrinarayan-analytics-vidhya/codellama_instruct_finetuning/runs/byeljv9s)
This model was trained with SFT.
### Framework versions
- TRL: 0.15.2- Transformers: 4.48.3- Pytorch: 2.5.1- Datasets: 3.3.2- 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": "Qwen/Qwen2.5-Coder-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": 16, "lora_bias": false, "lora_dropout": 0.1, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "peft_type": "LORA", "r": 8, "rank_pattern": {}, "revision": null, "target_modules": [ "embed_tokens", "up_proj", "k_proj", "lm_head", "down_proj", "v_proj", "o_proj", "gate_proj", "q_proj" ], "task_type": "CAUSAL_LM", "use_dora": false, "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:3c4fb836d522231e0561ce9c9973eca511b812a5f31270188d31ca55cd2847c6size 2260130816123456789101112131415161718192021222324252627282930{ "</tool_call>": 151658, "<pad>": 151665, "<tool_call>": 151657, "<|box_end|>": 151649, "<|box_start|>": 151648, "<|endoftext|>": 151643, "<|file_sep|>": 151664, "<|fim_middle|>": 151660, "<|fim_pad|>": 151662, "<|fim_prefix|>": 151659, "<|fim_suffix|>": 151661, "<|im_end|>": 151645, "<|im_start|>": 151644, "<|im_start|>assistant": 151667, "<|im_start|>function-call": 151669, "<|im_start|>function-response": 151670, "<|im_start|>system": 151668, "<|im_start|>user": 151666, "<|image_pad|>": 151655, "<|object_ref_end|>": 151647, "<|object_ref_start|>": 151646, "<|quad_end|>": 151651, "<|quad_start|>": 151650, "<|repo_name|>": 151663, "<|video_pad|>": 151656, "<|vision_end|>": 151653, "<|vision_pad|>": 151654, "<|vision_start|>": 151652}123version https://git-lfs.github.com/spec/v1oid sha256:4ef443c296360d7e9ba2baebd581e23e3f867485dac6d1709a784ed7c377628dsize 6576123version https://git-lfs.github.com/spec/v1oid sha256:f9971159cbc17796e5ec668713ff6245900741d2ea211f935028e0272e0e356fsize 40974123456789101112131415161718192021222324252627282930313233{ "additional_special_tokens": [ "<|im_start|>user", "<|im_start|>assistant", "<|im_start|>system", "<|im_start|>function-call", "<|im_start|>function-response", "<|im_end|>", "<s>", "<pad>" ], "bos_token": { "content": "<s>", "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": "<pad>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123version https://git-lfs.github.com/spec/v1oid sha256:aa12f6e193397a63f270cafe55dcdedcfdf0bf50977c40077a8ba21e0ab59d72size 11423252123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259{ "add_bos_token": false, "add_prefix_space": false, "added_tokens_decoder": { "128245": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151643": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151644": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151645": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151646": { "content": "<|object_ref_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151647": { "content": "<|object_ref_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151648": { "content": "<|box_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151649": { "content": "<|box_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151650": { "content": "<|quad_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151651": { "content": "<|quad_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151652": { "content": "<|vision_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151653": { "content": "<|vision_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151654": { "content": "<|vision_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151655": { "content": "<|image_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151656": { "content": "<|video_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151657": { "content": "<tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151658": { "content": "</tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151659": { "content": "<|fim_prefix|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151660": { "content": "<|fim_middle|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151661": { "content": "<|fim_suffix|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151662": { "content": "<|fim_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151663": { "content": "<|repo_name|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151664": { "content": "<|file_sep|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151665": { "content": "<pad>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151666": { "content": "<|im_start|>user", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151667": { "content": "<|im_start|>assistant", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151668": { "content": "<|im_start|>system", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151669": { "content": "<|im_start|>function-call", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151670": { "content": "<|im_start|>function-response", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "additional_special_tokens": [ "<|im_start|>user", "<|im_start|>assistant", "<|im_start|>system", "<|im_start|>function-call", "<|im_start|>function-response", "<|im_end|>", "<s>", "<pad>" ], "bos_token": "<s>", "chat_template": "{% for message in messages %}\n{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% if loop.last and add_generation_prompt %}{{'<|im_start|>assistant\n' }}{% endif %}{% endfor %}", "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "errors": "replace", "extra_special_tokens": {}, "model_max_length": 32768, "pad_token": "<pad>", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null}123version https://git-lfs.github.com/spec/v1oid sha256:17298ec933553a65ddb89b52b05e3e11a0e43220eccd42f7e29226096d921acesize 5688.gitattributes+1
README.mdAdded+58
adapter_config.jsonAdded+39
adapter_model.safetensorsAdded+3
added_tokens.jsonAdded+30
merges.txtAdded
runs/Mar11_06-03-17_215d55e723fe/events.out.tfevents.1741673543.215d55e723fe.1308.0Added+3
runs/Mar11_06-03-17_215d55e723fe/events.out.tfevents.1741673766.215d55e723fe.1308.1Added+3
special_tokens_map.jsonAdded+33
tokenizer.jsonAdded+3
tokenizer_config.jsonAdded+259
training_args.binAdded+3
vocab.jsonAdded