Instructions to use ashurudra09/alfred-2b-v4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ashurudra09/alfred-2b-v4 with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ashurudra09/alfred-2b-v4 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf ashurudra09/alfred-2b-v4 # Run inference directly in the terminal: llama cli -hf ashurudra09/alfred-2b-v4
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ashurudra09/alfred-2b-v4 # Run inference directly in the terminal: llama cli -hf ashurudra09/alfred-2b-v4
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf ashurudra09/alfred-2b-v4 # Run inference directly in the terminal: ./build/bin/llama cli -hf ashurudra09/alfred-2b-v4
Use Docker
docker model run hf.co/ashurudra09/alfred-2b-v4
- Llama new
- LM Studio
- Jan
- vLLM
How to use ashurudra09/alfred-2b-v4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ashurudra09/alfred-2b-v4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ashurudra09/alfred-2b-v4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ashurudra09/alfred-2b-v4
- Ollama
How to use ashurudra09/alfred-2b-v4 with Ollama:
ollama run hf.co/ashurudra09/alfred-2b-v4
- Unsloth Desktop
- Pi
How to use ashurudra09/alfred-2b-v4 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ashurudra09/alfred-2b-v4
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ashurudra09/alfred-2b-v4" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use ashurudra09/alfred-2b-v4 with Docker Model Runner:
docker model run hf.co/ashurudra09/alfred-2b-v4
- Lemonade
How to use ashurudra09/alfred-2b-v4 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ashurudra09/alfred-2b-v4
Run and chat with the model
lemonade run user.alfred-2b-v4-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use ashurudra09/alfred-2b-v4 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ashurudra09/alfred-2b-v4
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default ashurudra09/alfred-2b-v4
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ashurudra09/alfred-2b-v4 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ashurudra09/alfred-2b-v4
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "ashurudra09/alfred-2b-v4" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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
We're not able to determine the quantization variants.