--- base_model: mlx-community/gemma-4-E2B-it-qat-4bit library_name: mlx-lm tags: - lora - mlx - tool-calling - voice-assistant license: gemma --- # Hey Steph — E2B routing LoRA adapter A real LoRA adapter trained to improve tool-selection/routing accuracy for [Hey Steph](https://github.com/ForeignerfromJupiter/hey-steph), a local-first, voice-controlled macOS assistant. Distilled from a larger local model's tool-selection judgment into the small, fast default routing model, so the free/local tier gets meaningfully smarter without any change in speed. ## What this is A LoRA fine-tune of `mlx-community/gemma-4-E2B-it-qat-4bit` — teacher/student distillation, where a much larger local model (`gemma-4-26b-a4b-it-4bit`) generated real tool-call labels for ~250 held-out voice-command examples, and this adapter was trained (via `mlx_lm.lora`, rank 8, 1600 iterations) to reproduce that judgment on the small model. ## Real, held-out evaluation results Verified before deployment, not just trusted from training loss: | Test set | Base model | With this adapter | |---|---|---| | Distillation held-out (46 cases) | 42/46 (91.3%) @ 1.22s/call | **44/46 (95.7%)** @ 1.34s/call | | Broader routing regression suite (54 cases) | 50/54 (92.6%) @ 1.34s/call | **51/54 (94.4%)** @ 1.39s/call | **Zero regressions** in either set — nothing the base model already got right was made worse. The only changes were fixes: the fine-tuned model correctly declines ambiguous commands (e.g. "call mom", "close every window right now") that the base model would previously guess at. Honest cost: roughly +0.1–0.15s per call (the adapter computation itself), measured directly, not estimated. ## Usage ```python from mlx_vlm import load model, processor = load( "mlx-community/gemma-4-E2B-it-qat-4bit", adapter_path="path/to/this/adapter", ) ``` Note: this adapter was verified to work correctly when loaded via `adapter_path` (base weights + adapter applied at inference time). An earlier attempt to *fuse* it into standalone weights was found to break tool-call output on live inference despite looking fine in evaluation — if reusing this adapter elsewhere, prefer `adapter_path` loading over fusing unless you independently re-verify fused output against real generations. ## License Inherits the base model's license (Gemma). This adapter's own weights are released for anyone to use under the same terms.