Run this model with HF Jobs
Run Cotum/Qwen2.5-3B-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/Cotum/Qwen2.5-3B-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/Cotum/Qwen2.5-3B-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 Cotum/Qwen2.5-3B-Instruct-thinking-function_calling-V0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Cotum/Qwen2.5-3B-Instruct-thinking-function_calling-V0 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Cotum/Qwen2.5-3B-Instruct-thinking-function_calling-V0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Improve language tag (#1)
Browse files- Improve language tag (e72c8b2055c427afe8fb4ec927ac354bbb10c754)
Co-authored-by: Loïck BOURDOIS <lbourdois@users.noreply.huggingface.co>
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879---base_model: Qwen/Qwen2.5-3B-Instructlibrary_name: transformersmodel_name: Qwen2.5-3B-Instruct-thinking-function_calling-V0tags:- generated_from_trainer- trl- sftlicence: license---# Model Card for Qwen2.5-3B-Instruct-thinking-function_calling-V0This model is a fine-tuned version of [Qwen/Qwen2.5-3B-Instruct](https://huggingface.co/Qwen/Qwen2.5-3B-Instruct).It has been trained using [TRL](https://github.com/huggingface/trl).## Quick start```pythonfrom transformers import pipelineprompt="""<bos><start_of_turn>humanYou are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags.You may call one or more functions to assist with the user query.Don't make assumptions about what values to plug into functions.Here are the available tools:<tools>[{'type': 'function', 'function': {'name': 'convert_currency', 'description': 'Convert from one currency to another', 'parameters': {'type': 'object', 'properties': {'amount': {'type': 'number', 'description': 'The amount to convert'}, 'from_currency': {'type': 'string', 'description': 'The currency to convert from'}, 'to_currency': {'type': 'string', 'description': 'The currency to convert to'}}, 'required': ['amount', 'from_currency', 'to_currency']}}},{'type': 'function', 'function': {'name': 'calculate_distance', 'description': 'Calculate the distance between two locations', 'parameters': {'type': 'object', 'properties': {'start_location': {'type': 'string', 'description': 'The starting location'}, 'end_location': {'type': 'string', 'description': 'The ending location'}}, 'required': ['start_location', 'end_location']}}}{'type': 'function', 'function': {'name': 'send_email', 'description': 'Send an email to a customer', 'parameters': {'type': 'object', 'properties': {'customer': {'type': 'string', 'description': 'The customer to send the email to'}, 'subject': {'type': 'string', 'description': 'The subject of the email'}, 'body': {'type': 'string', 'description': 'The body of the email'}}, 'required': ['customer', 'subject', 'body']}}}]</tools>Use the following pydantic model json schema for each tool call you will make:{'title': 'FunctionCall', 'type': 'object', 'properties': {'arguments': {'title': 'Arguments', 'type': 'object'}, 'name': {'title': 'Name', 'type': 'string'}}, 'required': ['arguments', 'name']}For each function call return a json object with function name and arguments within <tool_call></tool_call> XML tags as follows:<tool_call>{tool_call}</tool_call>Also, before making a call to a function take the time to plan the function to take. Make that thinking process between <think>{your thoughts}</think>Hi, I need you to tell John@doe.com that I received his package ?<end_of_turn><eos><start_of_turn>model<think>"""generator = pipeline("text-generation", model="Cotum/Qwen2.5-3B-Instruct-thinking-function_calling-V0", device="cuda")output = generator([{"role": "user", "content": prompt}], max_new_tokens=128, return_full_text=False)[0]print(output["generated_text"])```## Training procedureThis model was trained with SFT following the Bonus Unit 1 of the Agent Course of Hugging Face : https://huggingface.co/agents-course/notebooks/blob/main/bonus-unit1/bonus-unit1.ipynb### Framework versions- TRL: 0.15.1- Transformers: 4.49.0- Pytorch: 2.6.0- Datasets: 3.3.2- Tokenizers: 0.21.0## CitationsCite 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}}}```<div align="center" style="line-height: 1;"><a href="https://www.huggingface.co/Cotum" target="_blank" style="margin: 2px;"><img alt="Follow" src="https://huggingface.co/datasets/Cotum/MATH-500-french-thoughts/resolve/main/Cotum_banner.png" style="display: inline-block; vertical-align: middle; width: 200px;"/></a></div>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293---base_model: Qwen/Qwen2.5-3B-Instructlibrary_name: transformersmodel_name: Qwen2.5-3B-Instruct-thinking-function_calling-V0tags:- generated_from_trainer- trl- sftlicence: licenselanguage:- zho- eng- fra- spa- por- deu- ita- rus- jpn- kor- vie- tha- ara---# Model Card for Qwen2.5-3B-Instruct-thinking-function_calling-V0This model is a fine-tuned version of [Qwen/Qwen2.5-3B-Instruct](https://huggingface.co/Qwen/Qwen2.5-3B-Instruct).It has been trained using [TRL](https://github.com/huggingface/trl).## Quick start```pythonfrom transformers import pipelineprompt="""<bos><start_of_turn>humanYou are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags.You may call one or more functions to assist with the user query.Don't make assumptions about what values to plug into functions.Here are the available tools:<tools>[{'type': 'function', 'function': {'name': 'convert_currency', 'description': 'Convert from one currency to another', 'parameters': {'type': 'object', 'properties': {'amount': {'type': 'number', 'description': 'The amount to convert'}, 'from_currency': {'type': 'string', 'description': 'The currency to convert from'}, 'to_currency': {'type': 'string', 'description': 'The currency to convert to'}}, 'required': ['amount', 'from_currency', 'to_currency']}}},{'type': 'function', 'function': {'name': 'calculate_distance', 'description': 'Calculate the distance between two locations', 'parameters': {'type': 'object', 'properties': {'start_location': {'type': 'string', 'description': 'The starting location'}, 'end_location': {'type': 'string', 'description': 'The ending location'}}, 'required': ['start_location', 'end_location']}}}{'type': 'function', 'function': {'name': 'send_email', 'description': 'Send an email to a customer', 'parameters': {'type': 'object', 'properties': {'customer': {'type': 'string', 'description': 'The customer to send the email to'}, 'subject': {'type': 'string', 'description': 'The subject of the email'}, 'body': {'type': 'string', 'description': 'The body of the email'}}, 'required': ['customer', 'subject', 'body']}}}]</tools>Use the following pydantic model json schema for each tool call you will make:{'title': 'FunctionCall', 'type': 'object', 'properties': {'arguments': {'title': 'Arguments', 'type': 'object'}, 'name': {'title': 'Name', 'type': 'string'}}, 'required': ['arguments', 'name']}For each function call return a json object with function name and arguments within <tool_call></tool_call> XML tags as follows:<tool_call>{tool_call}</tool_call>Also, before making a call to a function take the time to plan the function to take. Make that thinking process between <think>{your thoughts}</think>Hi, I need you to tell John@doe.com that I received his package ?<end_of_turn><eos><start_of_turn>model<think>"""generator = pipeline("text-generation", model="Cotum/Qwen2.5-3B-Instruct-thinking-function_calling-V0", device="cuda")output = generator([{"role": "user", "content": prompt}], max_new_tokens=128, return_full_text=False)[0]print(output["generated_text"])```## Training procedureThis model was trained with SFT following the Bonus Unit 1 of the Agent Course of Hugging Face : https://huggingface.co/agents-course/notebooks/blob/main/bonus-unit1/bonus-unit1.ipynb### Framework versions- TRL: 0.15.1- Transformers: 4.49.0- Pytorch: 2.6.0- Datasets: 3.3.2- Tokenizers: 0.21.0## CitationsCite 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}}}```<div align="center" style="line-height: 1;"><a href="https://www.huggingface.co/Cotum" target="_blank" style="margin: 2px;"><img alt="Follow" src="https://huggingface.co/datasets/Cotum/MATH-500-french-thoughts/resolve/main/Cotum_banner.png" style="display: inline-block; vertical-align: middle; width: 200px;"/></a></div>
README.md+92-78