Problem
The first time the command step ran against a real model, a Qwen2.5-7B served by vLLM on the homelab's RTX 5060 Ti, it took 1,683 ms at the median and got 24 of 25 test commands right. The prompt was 12,416 tokens, and 91.6% of it was the JSON schema the answer had to match.
Result
Removing the schema from the prompt, 11,378 tokens, saved 162 ms. Removing 55 of the 76 output tokens saved about 1,070 ms. Reading a prompt is parallel and cheap; writing an answer is one token at a time, each one streaming the model's weights out of memory. So latency is roughly output tokens × model size ÷ memory bandwidth, and about 40 of those 76 tokens were fields the caller filled in anyway.
The changes that followed shrank the answer: stop decoding the constant envelope, scope the schema to the devices the house has, and drop the device field in a house with one TV. On 25 commands rewritten for that house:
| Model | Right | Median |
|---|---|---|
| Gemma-4 E4B | 96% | 233 ms |
| Qwen2.5-7B | 96% | 353 ms |
| Qwen3.5 4B | 100% | 725 ms, run without CUDA graphs, so not comparable |
| Gemma-4 E2B | 72% | 252 ms |
| Phi-4-mini | 36% | 778 ms |
Decision
Gemma-4 E4B became the choice for the house. Only its configuration was committed; it was never served to the live assistant, and the next step is why.