Alfred 2B v4

Qwen3.5-2B fine-tuned with LoRA to run Alfred, an offline assistant for Windows that calls 26 local tools (files, notes, reminders, memory, system info, search by meaning) through an MCP server, on a laptop CPU. Code, data pipeline, evaluation and every report: github.com/ashurudra09/alfred (tag v4-final).

Files

File What
alfred-2b-v4c-q8.gguf The shipped model: merged weights, Q8_0, 2.08 GB, for llama.cpp (built with b11804)
lora/ The LoRA adapter (r = 16, alpha 32) and the tokenizer / chat template it was trained with
sft_2b_v4c.yaml, train_summary.json, log_history.json, loss.png Training config and logs (run C)

Use

The model expects Alfred's system prompt (1.2) and tool list (contracts 1.3); it is trained for that tool set, not as a general chat model. With the app:

git clone https://github.com/ashurudra09/alfred && cd alfred && uv sync
# put alfred-2b-v4c-q8.gguf at runs/sft_2b_v4c/alfred-2b-v4c-q8.gguf, or pass --model <path>
uv run alfred        # terminal
uv run alfred-ui     # web UI on http://127.0.0.1:7860

The app starts llama-server on the GGUF itself. Non-thinking mode.

Results

Q8_0, temperature 0, each model with the tool list it was trained on; full tables, intervals and paired tests in RESULTS.md.

Qwen3.5-2B base Alfred v3 Alfred v4
Hard multi-step tasks, checked on the final files (124) 62.1% 61.3% 83.9%
50-task end-to-end suite through the real tools โ€“ 49/50 50/50
In-domain single requests (249) โ€“ 99.2% 98.8%
Every tool and argument renamed at random (249) โ€“ 67.1% 93.6%
Prompt-injection attacks that succeed (209) 6% proposed 0/209 0/209
When2Call (3,652, public) 41.2% 69.0% 71.5%
When2Call tool hallucination (lower is better) 14.7% 3.1% 6.2%
BFCL v4 subset (mean of 5 categories) 72.1% 77.8% 75.9%

Training

  • LoRA r = 16 on the attention and MLP projections, one free Kaggle T4 per run, float32. Run A: fresh adapter, 1,340 steps. Run C (this model): run A's adapter plus one epoch on the corrected mix, 1,398 steps, lr 1e-4 cosine, effective batch 8, about 10.8 h; val loss 0.189 โ†’ 0.140.
  • About 11,000 conversations: synthetic data from gpt-oss-120b and Claude Haiku, validated by the evaluation scorer; 865 on-policy trajectories (the model's own runs through the real tools, the failing turn rewritten by a teacher, kept only if the task's check passes on the final files); NVIDIA When2Call and Salesforce xLAM (CC-BY-4.0); tool and argument names masked in about a fifth of the examples. English only. Dataset card: data/card.md.

Limitations

  • Calls a tool when none fits more often than v3 (When2Call hallucination 6.2% vs 3.1%, BFCL irrelevance 75.0% vs 90.4%, both significant).
  • Weakest on tasks held out of training: acting on the files a list names, bulk renames (patch notes list all 23 hard-suite misses).
  • The test sets were drafted by Claude, which also wrote part of the training data; the hard suite is scored on the real files, which depends least on that. One training run, so intervals cover test items, not seeds.
  • The app's safety (confirmation before every write, undo journal, no overwrite or permanent delete, known folders only) is enforced by the tool server, not by the model.

License

Apache 2.0, as the base model. The training data includes When2Call and xLAM (CC-BY-4.0).

Downloads last month
203
GGUF
Model size
2B params
Architecture
qwen35
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for ashurudra09/alfred-2b-v4

Finetuned
Qwen/Qwen3.5-2B
Adapter
(88)
this model