PEFT
Safetensors
English
lora
function-calling
tool-use
qwen2.5

⚠️ Warning

This model was fine-tuned for experimental purposes, as part of an investigation into reducing over-triggered tool calls (i.e., getting the model to correctly abstain when no tool is relevant).

nvidia/When2Call (train_sft) was included in training to improve this behavior. However, this had an unintended side effect: the model's core tool-calling ability degraded significantly. It now frequently asks the user for clarification/input even for simple, complete, unambiguous tool-call requests where all required parameters are already provided.

Do not use this model in production or for tool-calling tasks. It is kept public only as a record of this experiment (see BFCL eval results above — simple_python_acc and multiple_acc collapsed while irrelevance_acc hit ceiling, indicating over-correction rather than genuine improvement).

Qwen2.5-3B-Instruct — Tool Call (EN, Mixed + When2Call)

LoRA fine-tune of Qwen/Qwen2.5-3B-Instruct for function/tool calling.

Data

  • Salesforce/xlam-function-calling-60k — 54,000 (tool-call)
  • HuggingFaceH4/no_robots — 8,000, filtered ≤2,000 chars (no-tool SFT)
  • nvidia/When2Call (train_sft) — 13,500 (irrelevance/negative signal)
  • Concatenated, shuffled, formatted via apply_chat_template

LoRA

r=32, lora_alpha=64, lora_dropout=0.05, target_modules=all-linear, bias=none, task_type=CAUSAL_LM

Training

lr=2e-4, epochs=1, per_device_batch=8, grad_accum=16 (effective 128), warmup_ratio=0.03, max_grad_norm=0.3, bf16=True, attn_implementation=sdpa, loss_type=nll

Training Results (step 588, final)

train_loss=0.328, val_loss=0.172, mean_token_accuracy=0.958, runtime≈4h55m (A100)

BFCL Eval Results (inspect_evals/bfcl)

Metric Score
accuracy (all) 0.534
irrelevance_acc 0.996
multiple_acc 0.190
parallel_acc 0.775
parallel_multiple_acc 0.735
simple_python_acc 0.207

Note: irrelevance_acc is near-ceiling but simple_python_acc / multiple_acc collapsed — sign of overcorrection (model over-abstains from calling tools). When2Call ratio (~18%) likely too high in this run; next iteration should reduce it (e.g. ~5-6%).

Comparison to prior runs

Run accuracy irrelevance_acc simple_python_acc multiple_acc
Base Qwen2.5-3B 0.815 0.608 0.953 0.910
EN-only (xlam 60k) 0.705 0.213 0.893 0.865
EN + no_robots 0.730 0.225 0.910 0.875
EN + no_robots + When2Call (this model) 0.534 0.996 0.207 0.190
Downloads last month
11
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for canbingol/qwen2.5-3B-Instruct-tool-call-en-mixed-when2call

Base model

Qwen/Qwen2.5-3B
Adapter
(1,533)
this model

Datasets used to train canbingol/qwen2.5-3B-Instruct-tool-call-en-mixed-when2call