Can a 1.5B Local Model Run a Desktop Voice Agent?
Most people think a desktop voice assistant needs a big cloud model. You say "open WhatsApp", the audio goes to a server, a frontier model thinks, and an answer comes back.
Sanyam Asopa posted a demo on LinkedIn that pushes the other way. His project, Unleash-Agent, runs a 1.5B model (986 MB) on Ollama on his laptop. He reports zero cloud LLM calls. In the video, he speaks and WhatsApp opens on his Windows desktop. His point, in his own framing: you don't always need a bigger model. Sometimes a better harness is enough.
So the real question is this. Can a tiny local model actually run a desktop voice agent, and where does the time go?
We read the code in his public repo to see how each piece works. Then we built a small Linux version of the same idea and ran it on a CPU-only VM, with real timings.
The short answer
Yes, for short, fixed commands. The trick is that the model does very little. Most of the work happens in plain code around it:
- A voice activity detector decides when someone is talking.
- A local speech model turns the audio into text.
- A wake-word check runs on that text.
- A regex fast path answers simple things like the time with no model at all.
- Only what is left goes to the 1.5B model, and it may only answer in a tight JSON format.
- Plain code then runs the chosen tool and a local voice reads the reply.
The model is one box in a pipeline of about ten.

Which 1.5B model is it?
The post says 1.5B and 986 MB. The repo's code defaults to a model tag called jarvis-qlora:latest. The README describes it as a QLoRA fine-tune that was baked into an Ollama GGUF file at Q4_K_M quantization. The repo does not name the base model.
Two clues point the same way. The repo's own model recommender lists Qwen/Qwen2.5-Coder-1.5B-Instruct for its compact tier. And on our machine, ollama list shows qwen2.5:1.5b at exactly 986 MB. So the base is very likely a Qwen2.5 1.5B model. That is our inference from the size match, not something the repo states.
The Qwen2.5 page in Ollama's library says the family was improved at producing structured output, especially JSON. That matters for everything below.
How the harness works, piece by piece
All snippets below are short excerpts from sanyam47/unleash-agent at commit 9097923. The repo is under the PolyForm Noncommercial License 1.0.0, so we quote only small parts for commentary. Read the full files in the repo.
1. Ears: VAD, then speech to text
The listener first asks Silero VAD whether a chunk of audio contains speech. Silero is a small voice activity model. Its README says one 30 ms chunk takes under 1 ms on a single CPU thread.
pythonopts = VadOptions(threshold=0.45, min_speech_duration_ms=140, min_silence_duration_ms=120)
From backend/core/wake_word_listener.py, Unleash-Agent.
Speech then goes to faster-whisper, a fast reimplementation of OpenAI's Whisper. The repo loads the small base model on CPU with INT8 weights, and falls back to tiny if needed. It also passes hotwords="Jarvis" to bias the decoder toward the wake word.
2. The wake word is checked on the transcript
This surprised us. There is no separate wake-word model. The repo transcribes the utterance, then checks if "jarvis" appears near the start.
pythonfor alias in ("hey jarvis", "jarvis", "jarvus", "jervis", "jarvish"):
From match_wake_word in wake_word_listener.py, Unleash-Agent.
It allows up to two filler words before the wake word, so "okay hey jarvis" works but a mid-sentence "jarvis" does not. It also adds sound-alike spellings, because Whisper often mishears a name.
The trade-off is cost. Every stretch of speech that passes the VAD gets fully transcribed, even when nobody is talking to the assistant. A dedicated wake-word model would be cheaper to run all day. This design is simpler and needs no extra model.
3. A regex fast path skips the model
Before the model is called, a Tier 1 router tries plain regular expressions. Time, date, volume, mute, lock, battery and RAM questions are answered here with no LLM call.
pythonfast_res = try_fast_path_os_dispatch(text) if isinstance(fast_res, dict) and fast_res.get("reply"): reply = fast_res["reply"]
From handle_wake_activation in wake_word_listener.py, Unleash-Agent.
This is the biggest latency win in the whole design. The fastest model call is the one you never make.
4. The JSON router: how a tiny model does tool calling
Everything else goes to the model with a strict instruction: reply with one JSON object. The action field must be one of a fixed list: launch_app, open_url, web_lookup, system_control, hardware_telemetry, desktop_perception, inspect_screen, auxiliary_task or conversational. Other fields carry the details, like app, url or query.
python"format": "json", "stream": False, "options": { "temperature": float(scaff.get("executive_temperature", 0.1)),
From dispatch_semantic_executive_action in backend/core/jarvis_executive.py, Unleash-Agent.
Why does this help a small model? Free-form tool calling asks the model to do three hard things at once: pick a tool, format a call, and write correct arguments. A 1.5B model often gets one of them wrong. A fixed JSON shape removes most of the choice. The model only has to fill a few short fields, and one of them is picked from a short list.
Ollama's "format": "json" forces valid JSON. Ollama also supports passing a full JSON schema as format, which constrains decoding to that exact shape. The repo uses the simpler JSON mode, then adds a safety net in code: _extract_json_object strips code fences or stray prose, and if parsing still fails, it retries once with a stricter "return only JSON" prompt.
5. Parameter-adaptive scaffolding
The repo checks how big the active model is by asking Ollama's /api/show endpoint. It then sorts it into a tier: compact (up to about 4B), balanced (5B to 15B), or frontier (16B and up, or cloud).
For the compact tier it turns on extra help:
- few-shot examples in the prompt, like "open whatsapp" mapping to
launch_appwithWhatsApp - a list of real installed app names, so the model picks a name that exists
- JSON repair and one retry
- temperature 0.05 and a cap of 160 output tokens
- only the last 2 turns of history
For frontier models it drops the examples and the repair step, because big models do not need them. This is the "better harness" idea in code form. The harness gets heavier as the model gets smaller.
6. Hands: app discovery, telemetry and web lookup
To open "WhatsApp", the agent must know what WhatsApp is called on this machine. The repo scans Windows Store apps through PowerShell Get-StartApps, Start Menu shortcuts, the registry App Paths and PATH. It caches the list for 24 hours.
Matching goes from strict to loose: exact name, then ignoring spaces, then word tokens, then difflib fuzzy matching with a 0.78 cutoff. The model only has to say "whatsapp". Plain code finds the real program.
Telemetry and web lookup work the same way. The model picks the action. Code reads the CPU and RAM numbers, or fetches the search result.
7. Mouth: Piper TTS
Replies are spoken with Piper, a fast local neural text-to-speech engine that runs ONNX voice models on CPU. The repo splits replies into sentences so speech can start before the whole answer is synthesized. It falls back to edge-tts or Windows SAPI if Piper is missing.
8. The HUD
The floating 3D "Gyro Sphere" reacts to mic and speech energy. It is a nice signal of state (listening, thinking, speaking). It is not part of the decision path, and we did not run it.
The full pipeline
flowchart LR A[Mic audio] --> B{Silero VAD<br/>speech?} B -- no --> A B -- yes --> C[faster-whisper<br/>speech to text] C --> D{Wake word<br/>near start?} D -- no --> A D -- yes --> E{Regex fast path<br/>match?} E -- yes --> H[Run OS action] E -- no --> F[1.5B model<br/>JSON only] F --> G{Valid JSON?} G -- no, retry once --> F G -- yes --> H H --> I[Piper TTS] I --> J[Speaker]
sequenceDiagram participant U as User participant V as VAD participant S as Whisper STT participant R as Router participant M as 1.5B model participant T as Tool participant P as Piper TTS U->>V: "Hey Jarvis, open WhatsApp" V->>S: speech segment S->>R: text plus wake word found R->>R: regex fast path, no match R->>M: prompt plus JSON rules M-->>R: {"action":"launch_app","app":"WhatsApp"} R->>T: find app, launch it T-->>R: done R->>P: "Opening WhatsApp." P-->>U: spoken reply
Try this: a minimal Linux version
We rebuilt the core idea in about 100 lines of Python. It is not Unleash-Agent. It is our own small copy of the same pipeline, so you can see each stage and time it:
- Silero VAD through
faster_whisper.vad - faster-whisper
base, INT8, on CPU qwen2.5:1.5bon Ollama, with a full JSON schema informat- four tools:
get_time,system_stats,launch_app(dry run, it only finds the binary) andweb_lookup(a stub, no network) - Piper with the
en_US-lessac-mediumvoice
Setup:
bashpython3 -m venv .venv .venv/bin/pip install faster-whisper piper-tts ollama pull qwen2.5:1.5b mkdir voices && cd voices curl -LO https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_US/lessac/medium/en_US-lessac-medium.onnx curl -LO https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_US/lessac/medium/en_US-lessac-medium.onnx.json
The router is the heart of it. The schema limits action to five values, so the model cannot invent a tool:
pythonSCHEMA = { "type": "object", "properties": { "action": {"type": "string", "enum": ["get_time", "system_stats", "launch_app", "web_lookup", "chat"]}, "app": {"type": ["string", "null"]}, "query": {"type": ["string", "null"]}, "reply": {"type": "string"}, }, "required": ["action", "app", "query", "reply"], # see the failures below } def route(text): body = {"model": "qwen2.5:1.5b", "stream": False, "format": SCHEMA, "options": {"temperature": 0.05, "num_predict": 120, "num_ctx": 2048}, "messages": [{"role": "system", "content": SYSTEM}, {"role": "user", "content": text}]} req = urllib.request.Request("http://127.0.0.1:11434/api/chat", data=json.dumps(body).encode(), headers={"Content-Type": "application/json"}) with urllib.request.urlopen(req, timeout=900) as r: return json.loads(json.loads(r.read())["message"]["content"])
The stage loop:
pythonspeech = get_speech_timestamps(audio, VadOptions(threshold=0.45, min_speech_duration_ms=140)) segs, _ = stt.transcribe(audio, beam_size=3, language="en", hotwords="Jarvis") text = " ".join(s.text.strip() for s in segs) decision = route(text) answer = TOOLS[decision["action"]](decision) if decision["action"] in TOOLS else decision["reply"] with wave.open("reply.wav", "wb") as w: voice.synthesize_wav(answer, w)
One honest note on the input. This VM has no microphone. So we made the input WAV files with Piper itself, saying lines like "Hey Jarvis, how much memory is free right now?" Clean synthetic speech is easier for Whisper than a real voice in a real room.
What we measured
We ran the four voice commands once each through the whole pipeline on November 28, 2026. The machine is a shared cloud VM with no GPU: 4 virtual CPUs, about 7 GB of RAM, and a CPU quota of about 1.5 cores, with other jobs running at the same time. Treat these numbers as a worst case, not a laptop benchmark.
All four commands were heard correctly and routed to the right tool:
| Spoken command (synthetic) | Whisper heard | Model chose | Final answer |
|---|---|---|---|
| how much memory is free | exact | system_stats | "Load is 7.92. 1.7 gigabytes of memory free." |
| open firefox | exact | launch_app | "I could not find ." (see below) |
| what time is it | exact | get_time | "It is 02:28 PM." |
| search the web for the weather in Bangalore | exact | web_lookup, query "weather in Bangalore" | stub search |
Here is the median time per stage across the four runs. Model loading (8 to 16 seconds) happens once at startup, so it is left out.
Median seconds per stage, CPU-only shared VM, 4 runsData from the sources listed below.
The model is the whole story. VAD took about a tenth of a second. Whisper took 4 to 9 seconds for clips of 1.8 to 3.2 seconds. Piper took 1.5 to 3 seconds. The router took 56 to 74 seconds per command.
Ollama's own timing fields show why. The prompt (about 140 tokens) took 6 to 10 seconds. Writing the reply, only 18 to 32 tokens of JSON, took 45 to 67 seconds. That is under one token per second.
We wondered if the JSON schema itself was the slow part, since it constrains every token. So we sent the same prompt with a full schema, with plain JSON mode, and with no format at all, twice each. Every mode ran between 0.13 and 0.86 tokens per second, and the spread between rounds was bigger than the spread between modes. On this VM, the cause is the starved CPU, not the schema.
That matches what the Unleash-Agent README targets: a laptop with a 6 GB RTX 3050 GPU, not a shared CPU. We did not test on that hardware, so we can't confirm the speeds there.
The lesson still holds on any machine. Count the tokens the model must write, because each one costs time. A short schema and a short reply field are a latency feature, and the regex fast path that skips the model is better still.
What a 1.5B router can't do well
We also sent eight typed commands straight to the router, then two of them again after one fix. Every reply was valid JSON with a legal action. The mistakes were all in the meaning:
| Typed command | Model chose | What went wrong |
|---|---|---|
| open firefox | launch_app, no app field | The schema did not require app, so the model skipped it and the tool had nothing to open. The voice run failed the same way. |
| open firefox and then search for the weather in bangalore | launch_app, app "firefox" | Did step one, silently dropped step two. |
| turn the volume down a bit | system_stats | There is no volume tool, so it picked the nearest legal action and replied "Setting volume to 50%." Nothing changed. |
| launch the thing I used yesterday | launch_app, no app field | No memory of yesterday, so no real target. |
| what time is it | get_time | Correct tool, but its own reply said "The current time is 14:30." The real time was 2:28 PM. The tool, not the model, gave the true answer. |
| who won the cricket match yesterday | web_lookup, full query | Correct. |
| tell me a joke | chat | Correct. |
Then we added app and query to the schema's required list and asked again. "open firefox" came back with "app": "firefox", which fixed the miss. "launch the thing I used yesterday" came back with "app": "thing". The schema can force a field to exist. It cannot make the model know what to put in it.
That is the pattern Unleash-Agent's design answers. It gives the small model a real list of installed apps to pick from, and it lets plain code compute every fact the user hears.
The broader limits follow from the design:
- One action per turn. The schema holds one
action. "Open Firefox and search for the weather" needs two. A small model will pick one and drop the other, unless the harness plans steps itself. - Vague references. "Open the thing I used yesterday" needs memory the router does not have.
- Correct format, wrong content. Schema-constrained decoding guarantees the shape, not the meaning. Ollama's docs say structured outputs make replies consistent. They do not say the model picks the right tool. Your code still has to check.
- Always-on transcription cost. Matching the wake word on transcripts means Whisper runs on every speech segment. That is fine on a laptop GPU, but heavier on a CPU.
So, is the harness the product?
For a desktop voice agent, mostly yes. In Unleash-Agent, the model chooses among a fixed set of actions. The regex fast path, the app index, the JSON repair step, the tiering and the voice stack do the rest. That is why a 986 MB model can open WhatsApp on a laptop.
The other half of the picture is hardware. The README targets a laptop with a 6 GB RTX 3050. Our CPU VM shows the same pipeline gets slow when the model has no GPU and must share the CPU. If you build one of these, measure each stage on your own machine first. Then move work out of the model until the slow stage is gone.
Credit: the project, demo and design are by Sanyam Asopa, shared in his LinkedIn post about Unleash-Agent. The code is at github.com/sanyam47/unleash-agent.
Sources
- Unleash-Agent repo by Sanyam Asopa: https://github.com/sanyam47/unleash-agent
- Ollama qwen2.5:1.5b model page: https://ollama.com/library/qwen2.5:1.5b
- Ollama structured outputs docs: https://docs.ollama.com/capabilities/structured-outputs
- Ollama structured outputs announcement: https://ollama.com/blog/structured-outputs
- faster-whisper: https://github.com/SYSTRAN/faster-whisper
- Silero VAD: https://github.com/snakers4/silero-vad
- Piper TTS: https://github.com/OHF-Voice/piper1-gpl
- Piper voices: https://huggingface.co/rhasspy/piper-voices
