Instructions to use ductai199x/utter-cleanup-e4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ductai199x/utter-cleanup-e4b 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 ductai199x/utter-cleanup-e4b:Q4_0 # Run inference directly in the terminal: llama cli -hf ductai199x/utter-cleanup-e4b:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ductai199x/utter-cleanup-e4b:Q4_0 # Run inference directly in the terminal: llama cli -hf ductai199x/utter-cleanup-e4b:Q4_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf ductai199x/utter-cleanup-e4b:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf ductai199x/utter-cleanup-e4b:Q4_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf ductai199x/utter-cleanup-e4b:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf ductai199x/utter-cleanup-e4b:Q4_0
Use Docker
docker model run hf.co/ductai199x/utter-cleanup-e4b:Q4_0
- LM Studio
- Jan
- Ollama
How to use ductai199x/utter-cleanup-e4b with Ollama:
ollama run hf.co/ductai199x/utter-cleanup-e4b:Q4_0
- Unsloth Desktop
- Pi
How to use ductai199x/utter-cleanup-e4b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ductai199x/utter-cleanup-e4b:Q4_0
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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ductai199x/utter-cleanup-e4b:Q4_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use ductai199x/utter-cleanup-e4b with Docker Model Runner:
docker model run hf.co/ductai199x/utter-cleanup-e4b:Q4_0
- Lemonade
How to use ductai199x/utter-cleanup-e4b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ductai199x/utter-cleanup-e4b:Q4_0
Run and chat with the model
lemonade run user.utter-cleanup-e4b-Q4_0
List all available models
lemonade list
- Hermes Agent
How to use ductai199x/utter-cleanup-e4b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ductai199x/utter-cleanup-e4b:Q4_0
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:8080/v1 hermes config set model.default ductai199x/utter-cleanup-e4b:Q4_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ductai199x/utter-cleanup-e4b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ductai199x/utter-cleanup-e4b:Q4_0
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:8080/v1 \ --custom-model-id "ductai199x/utter-cleanup-e4b:Q4_0" \ --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"
Utter cleanup: Gemma 4 E4B, fine-tuned (ft5)
The cleanup model of Utter, a local voice dictation app. It takes what the speech recognizer (NVIDIA Parakeet) heard and returns the text the speaker meant to type:
- Punctuation and capitals nobody said.
- Spoken symbols and numbers written as people type them ("four x faster" -> "4ร faster", "about two forty" -> "~240").
- Fillers and false starts removed.
- Corrections applied: "at 2, actually 3"; "scratch that" (the last sentence); "let's start over" (everything).
- Far-back edits: "actually, change the eggs to three boxes".
- Spoken lists as bullets, numbered for steps.
- Grammar fixed, in the speaker's own words.
Files
| File | What |
|---|---|
utter-cleanup-e4b-ft5.q4_0.gguf |
The model (current), Q4_0, for llama.cpp (b11535 or later); about 3.3 GB of GPU memory when the per-layer embeddings stay in system RAM |
adapter-ft5/ |
Its LoRA adapter (rank 16) on the base checkpoint, for merging or further training |
utter-cleanup-e4b-ft4.q4_0.gguf, adapter/ |
The previous version (ft4) |
How it must be prompted
The rules are in the weights, so the system prompt is short, and it must be exactly this:
Turn this dictation into the text the speaker meant to type: punctuated, formatted and corrected the way a careful writer would type it, in the speaker's own words.
The user message is the transcript after Dictated: , optionally preceded by context lines:
App: email
Before: "text before the cursor"
Lists: off
Dictionary: Utter, Nguyen
Dictated: <what the recognizer heard>
The reply is the cleaned text only. Thinking must be off (chat_template_kwargs: {"enable_thinking": false}).
Training
- Method: LoRA (rank 16, alpha 32, lr 2e-4, 1 epoch) on Google's unquantized QAT checkpoint of Gemma 4 E4B, then merged and quantized to Q4_0, the format the QAT was trained for.
- Data: 89,499 pairs of (recognizer output, intended text):
- Written side: real passages from Common Pile (Stack Exchange, GitHub, arXiv abstracts, Ubuntu IRC) and Wikipedia, plus lists from the same sources and LLM-written everyday lists.
- Spoken side: written by Gemma 4 26B-A4B in eight kinds (plain, spoken punctuation, disfluent, self-correction, retraction command, sentence restatement, grammar mistakes, far-back edit), checked by code, spoken by Kokoro TTS and recognized by Parakeet.
- Answer keys: fixed for typos and grammar, with each fix verified as grammar by ERRANT.
- Held out: no evaluation passage was trained on.
Evaluation
Ready to send: the share of dictations a careful writer would send exactly as typed. Gemma 4 26B-A4B grades each one against the intended text, with a rubric calibrated on human review.
Test set:
- 950 held-out realistic dictations: everyday messages, emails, notes and AI prompts, plus short real forum and chat posts.
- Each is spoken one way: plainly, with fillers, a self-correction, a command, a later edit, spoken punctuation or broken grammar.
| ft4 | ft5 (this) | |
|---|---|---|
| Ready to send, Kokoro voices | 83.8% | 88.8% |
| Ready to send, everyday half only (583) | 88.7% | 96.2% |
| Ready to send, unseen Chatterbox voices | 74.7% | 80.7% |
Strict scores on the earlier sets, each cell no edit needed / characters to fix:
| Test set | Gemma 4 E4B, prompted | Gemma 4 26B-A4B, prompted | ft5 |
|---|---|---|---|
| Main (4309) | 7.2% / 18.0% | 11.3% / 7.7% | 18.8% / 3.5% |
| Same, unseen voices (4309) | 6.8% / 19.0% | 10.6% / 8.8% | 16.5% / 4.8% |
| Grammar mistakes (688) | 5.4% / 6.3% | 6.7% / 5.7% | 14.5% / 3.5% |
| Lists (897) | 2.7% / 11.4% | 3.2% / 11.7% | 47.4% / 3.6% |
| Far-back edits (1268) | 3.2% / 29.2% | 4.8% / 22.3% | 40.9% / 3.5% |
Known gaps:
- A leading filler with a comma ("Uh, so...") can survive.
- Pronoun case ("me and him went") is not always fixed.
- Speech in the evaluation is synthetic (two TTS engines), not recorded dictation.
License
Apache 2.0, as the base model. The training text came from openly licensed sources (public domain, CC0, CC BY-SA, MIT, Apache-2.0).
- Downloads last month
- 24
4-bit