Text Generation
Transformers
TensorBoard
Safetensors
English
retrain-pipelines
function-calling
LLM Agent
code
unsloth
conversational
Eval Results (legacy)
Run this model with HF Jobs
Run retrain-pipelines/function_caller_lora 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 and TRL to fine-tune https://huggingface.co/retrain-pipelines/function_caller_lora. 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/retrain-pipelines/function_caller_lora 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.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/retrain-pipelines/function_caller_lora. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/retrain-pipelines/function_caller_lora. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use retrain-pipelines/function_caller_lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use retrain-pipelines/function_caller_lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="retrain-pipelines/function_caller_lora") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("retrain-pipelines/function_caller_lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use retrain-pipelines/function_caller_lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "retrain-pipelines/function_caller_lora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "retrain-pipelines/function_caller_lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/retrain-pipelines/function_caller_lora
- SGLang
How to use retrain-pipelines/function_caller_lora with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "retrain-pipelines/function_caller_lora" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "retrain-pipelines/function_caller_lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "retrain-pipelines/function_caller_lora" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "retrain-pipelines/function_caller_lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use retrain-pipelines/function_caller_lora with Docker Model Runner:
docker model run hf.co/retrain-pipelines/function_caller_lora
v0.1 - 2025-03-11 01:36:07 UTC - retrain-pipelines v0.1.1 - Upload model and tokenizer with README.
Browse filesFiles changed (12)
- .gitattributes+1
- README.mdAdded+114
- adapter_config.jsonAdded+40
- adapter_model.safetensorsAdded+3
- added_tokens.jsonAdded+24
- merges.txtAdded
- runs/cpt/events.out.tfevents.1741638128.7858027e9f8a.5185.0Added+3
- runs/sft/events.out.tfevents.1741638928.7858027e9f8a.9078.0Added+3
- special_tokens_map.jsonAdded+31
- tokenizer.jsonAdded+3
- tokenizer_config.jsonAdded+209
- 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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114---# @see https://github.com/huggingface/hub-docs/blob/main/modelcard.md# @see https://huggingface.co/docs/huggingface_hub/guides/model-cards#update-metadata# @see https://huggingface.co/docs/hub/model-cards#model-card-metadata
version: '0.1'
timestamp: '20250311_013607311_UTC'
model_name: retrain-pipelines Function Caller
base_model: unsloth/Qwen2.5-1.5Bbase_model_relation: adapterlibrary_name: transformersdatasets:- retrain-pipelines/func_calls_ds
license: apache-2.0
language:- en
task_categories:- text2text-generation
tags:- retrain-pipelines- function-calling- LLM Agent- code- unsloth
thumbnail: https://cdn-avatars.huggingface.co/v1/production/uploads/651e93137b2a2e027f9e55df/96hzBved0YMjCq--s0kad.png
# @see https://huggingface.co/docs/hub/models-widgets#enabling-a-widget# @see https://huggingface.co/docs/hub/models-widgets-examples# @see https://huggingface.co/docs/hub/en/model-cards#specifying-a-task--pipelinetag-pipeline_tag: text2text-generationwidget: - text: >- Hello example_title: No function call output: text: '[]' - text: >- Is 49 a perfect square? example_title: Perfect square output: text: '[{"name": "is_perfect_square", "arguments": {"num": 49}}]'
mf_run_id: '25'
# @see https://huggingface.co/docs/huggingface_hub/guides/model-cards#include-evaluation-results# @see https://huggingface.co/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.EvalResultmodel-index:- name: retrain-pipelines Function Caller results: - task: type: text2text-generation name: Text2Text Generation dataset: name: retrain-pipelines Function Calling type: retrain-pipelines/func_calls_ds split: validation revision: 0d724ca7d347f10eab9357c180ac7b4ba30efb56 metrics: - type: precision value: 0.5526211857795715 - type: recall value: 0.5526326298713684 - type: f1 value: 0.5523678064346313 - type: jaccard value: 0.5371795892715454
---
# retrain-pipelines Function Caller
`version 0.1` - `2025-03-11 01:36:07 UTC`(retraining<a target="_blank" href="https://huggingface.co/retrain-pipelines/function_caller_lora/tree/retrain-pipelines_source-code/v0.1_20250311_013607311_UTC">source-code</a> |<a target="_blank" href="https://huggingface.co/spaces/retrain-pipelines/online_pipeline_card_renderer/?model_repo_id=retrain-pipelines/function_caller_lora&version_id=v0.1_20250311_013607311_UTC">pipeline-card</a>)
Training dataset :- <code>retrain-pipelines/func_calls_ds v0.4</code>(<a href="https://huggingface.co/datasets/retrain-pipelines/func_calls_ds/blob/0d724ca7d347f10eab9357c180ac7b4ba30efb56/README.md" target="_blank">0d724ca</a> - 2025-03-10 20:20:59 UTC)
Base model :- <code>unsloth/Qwen2.5-1.5B</code>(<a href="https://huggingface.co/unsloth/Qwen2.5-1.5B/blob/2d0a015faee2c1af360a6725a30c4d7a258ac4d4/README.md" target="_blank">2d0a015</a> - 2025-02-06 02:32:14 UTC)<br />arxiv :<br /> - <code><a href="https://huggingface.co/papers/2407.10671" target="_blank">2407.10671</a></code><br /><br /><br /><br /><br /><br />
<hr />Powered by<code><a target="_blank" href="https://github.com/aurelienmorgan/retrain-pipelines">retrain-pipelines 0.1.1</a></code> - <code>Run by <a target="_blank" href="https://huggingface.co/Aurelien-Morgan-Bot">Aurelien-Morgan-Bot</a></code> -<em><b>UnslothFuncCallFlow</b></em> - mf_run_id : <code>25</code>12345678910111213141516171819202122232425262728293031323334353637383940{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "unsloth/Qwen2.5-1.5B", "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": 32, "lora_bias": false, "lora_dropout": 0, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": [ "lm_head", "embed_tokens" ], "peft_type": "LORA", "r": 128, "rank_pattern": {}, "revision": null, "target_modules": [ "down_proj", "q_proj", "gate_proj", "v_proj", "k_proj", "o_proj", "up_proj" ], "task_type": "CAUSAL_LM", "use_dora": false, "use_rslora": true}123version https://git-lfs.github.com/spec/v1oid sha256:8cec6c91ed99dff0615a3343cb3c463b5d402122d2b5b22220b8a8e920ce216bsize 2457916480123456789101112131415161718192021222324{ "</tool_call>": 151658, "<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, "<|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:c09f8191b97438480e68441c3d871a93cf7447233ac2786bbbc7703e9dde0edasize 61022123version https://git-lfs.github.com/spec/v1oid sha256:d7dab325924d97c36475fc7ebeab287f8a98532430b9bd4265a339eade40d31fsize 72114512345678910111213141516171819202122232425262728293031{ "additional_special_tokens": [ "<|im_start|>", "<|im_end|>", "<|object_ref_start|>", "<|object_ref_end|>", "<|box_start|>", "<|box_end|>", "<|quad_start|>", "<|quad_end|>", "<|vision_start|>", "<|vision_end|>", "<|vision_pad|>", "<|image_pad|>", "<|video_pad|>" ], "eos_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "<|vision_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123version https://git-lfs.github.com/spec/v1oid sha256:9c5ae00e602b8860cbd784ba82a8aa14e8feecec692e7076590d014d7b7fdafasize 11421896123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209{ "add_bos_token": false, "add_prefix_space": false, "added_tokens_decoder": { "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 } }, "additional_special_tokens": [ "<|im_start|>", "<|im_end|>", "<|object_ref_start|>", "<|object_ref_end|>", "<|box_start|>", "<|box_end|>", "<|quad_start|>", "<|quad_end|>", "<|vision_start|>", "<|vision_end|>", "<|vision_pad|>", "<|image_pad|>", "<|video_pad|>" ], "bos_token": null, "chat_template": "You specialize in generating tool calls. Given a query, your task is to return a list of tool calls based on your knowledge of known tools.\n\nRules:\n1. You can only use tools you know. Do not create new tools under any circumstances.\n2. If a query does not match any known tool, return an empty list ([]).\n3. If information is missing to use a known tool, do not attempt to use it.\n4. Your response must always be a valid JSON array, and nothing else.\n\nBe precise and do not guess.\n\n# query:\n {}\n# response:\n {}", "clean_up_tokenization_spaces": false, "eos_token": "<|endoftext|>", "errors": "replace", "extra_special_tokens": {}, "model_max_length": 32768, "pad_token": "<|vision_pad|>", "padding_side": "left", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null}.gitattributes+1
README.mdAdded+114
adapter_config.jsonAdded+40
adapter_model.safetensorsAdded+3
added_tokens.jsonAdded+24
merges.txtAdded
runs/cpt/events.out.tfevents.1741638128.7858027e9f8a.5185.0Added+3
runs/sft/events.out.tfevents.1741638928.7858027e9f8a.9078.0Added+3
special_tokens_map.jsonAdded+31
tokenizer.jsonAdded+3
tokenizer_config.jsonAdded+209
vocab.jsonAdded