Views
No views yet
Qwen/Qwen3.5-4B for tool-calling, trained on Salesforce/xlam-function-calling-60k with Unsloth + TRL.Gate disclosure (v1.0): This adapter is published below the +3pp BFCL gate defined in the project brief (delta -8.30pp on the in-tree V3 evaluator). The regression is concentrated inirrelevance/live_irrelevancecategories -- see ADR 0006 for the locked diagnosis and the Phase 3.5 remediation spec (deferred for v1.0).
| Model | Overall accuracy |
|---|---|
| Base (Qwen/Qwen3.5-4B) | 87.3% |
| This adapter | 79.0% |
| Delta | -8.3pp |
| Category | Base | Tuned | Delta |
|---|---|---|---|
| irrelevance | 80.0% | 42.0% | -38.0pp |
| live_irrelevance | 98.0% | 78.0% | -20.0pp |
| live_multiple | 78.0% | 78.0% | +0.0pp |
| live_parallel | 81.2% | 68.8% | -12.5pp |
| live_parallel_multiple | 95.8% | 91.7% | -4.2pp |
| live_relevance | 66.7% | 77.8% | +11.1pp |
| live_simple | 80.0% | 74.0% | -6.0pp |
| multiple | 92.0% | 90.0% | -2.0pp |
| parallel | 88.0% | 88.0% | +0.0pp |
| parallel_multiple | 98.0% | 92.0% | -6.0pp |
| simple | 90.0% | 88.0% | -2.0pp |
xlam (Salesforce/xlam-function-calling-60k)preserve (preserves Qwen 3.5's default reasoning trace; xLAM rows have no <think> content so the three strategies converge in practice)FastLanguageModel + TRL's SFTTrainer. Adapter only — base weights are frozen. Single A100 (40 GB), bf16, gradient checkpointing on.| Knob | Value |
|---|---|
base_model | Qwen/Qwen3.5-4B |
lora.rank | 16 |
lora.alpha | 32 |
lora.dropout | 0.0 |
lora.target_modules | q_proj, k_proj, v_proj, o_proj |
optimizer | adamw_8bit |
learning_rate | 0.0002 |
warmup_ratio | 0.03 |
weight_decay | 0.0 |
batch_size | 16 |
grad_accum_steps | 1 |
effective_batch_size | 16 |
epochs | 1 |
max_steps | n/a |
max_seq_len | 2048 |
packing | True |
seed | 42 |
<tool_call> blocks (or XML-tagged <function=...> calls; the inference helper parses both).Qwen/Qwen3.5-4B.pyproject.toml; the lockfile (uv.lock) is the reproducibility contract.1git clone https://github.com/sukhrobnurali/tooltuned-qwen
2cd tooltuned-qwen
3uv sync
4# Run on Colab Pro A100; see notebooks/colab_main.ipynb1@misc{nurali_tooltuned_qwen_2026,
2 author = {Sukhrob Nurali},
3 title = {tooltuned-qwen-3.5-4b: a tool-calling LoRA for Qwen 3.5 4B},
4 year = {2026},
5 howpublished = {\url{https://huggingface.co/sukhrobnurali/tooltuned-qwen-3.5-4b}}
6}sukhrobnurali@gmail.com