Instructions to use Infatoshi/phonon-refiner-1.7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Infatoshi/phonon-refiner-1.7b with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("Infatoshi/phonon-refiner-1.7b") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Infatoshi/phonon-refiner-1.7b 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 Infatoshi/phonon-refiner-1.7b:Q4_K_S # Run inference directly in the terminal: llama cli -hf Infatoshi/phonon-refiner-1.7b:Q4_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Infatoshi/phonon-refiner-1.7b:Q4_K_S # Run inference directly in the terminal: llama cli -hf Infatoshi/phonon-refiner-1.7b:Q4_K_S
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 Infatoshi/phonon-refiner-1.7b:Q4_K_S # Run inference directly in the terminal: ./build/bin/llama cli -hf Infatoshi/phonon-refiner-1.7b:Q4_K_S
Use Docker
docker model run hf.co/Infatoshi/phonon-refiner-1.7b:Q4_K_S
- Llama new
- LM Studio
- Jan
- vLLM
How to use Infatoshi/phonon-refiner-1.7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Infatoshi/phonon-refiner-1.7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Infatoshi/phonon-refiner-1.7b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Infatoshi/phonon-refiner-1.7b:Q4_K_S
- Ollama
How to use Infatoshi/phonon-refiner-1.7b with Ollama:
ollama run hf.co/Infatoshi/phonon-refiner-1.7b:Q4_K_S
- Unsloth Desktop
- Pi
How to use Infatoshi/phonon-refiner-1.7b with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Infatoshi/phonon-refiner-1.7b"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Infatoshi/phonon-refiner-1.7b" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use Infatoshi/phonon-refiner-1.7b with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Infatoshi/phonon-refiner-1.7b"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Infatoshi/phonon-refiner-1.7b" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Infatoshi/phonon-refiner-1.7b", "messages": [ {"role": "user", "content": "Hello"} ] }' - Docker Model Runner
How to use Infatoshi/phonon-refiner-1.7b with Docker Model Runner:
docker model run hf.co/Infatoshi/phonon-refiner-1.7b:Q4_K_S
- Lemonade
How to use Infatoshi/phonon-refiner-1.7b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Infatoshi/phonon-refiner-1.7b:Q4_K_S
Run and chat with the model
lemonade run user.phonon-refiner-1.7b-Q4_K_S
List all available models
lemonade list
- Hermes Agent
How to use Infatoshi/phonon-refiner-1.7b with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Infatoshi/phonon-refiner-1.7b"
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 Infatoshi/phonon-refiner-1.7b
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Infatoshi/phonon-refiner-1.7b with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Infatoshi/phonon-refiner-1.7b"
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 "Infatoshi/phonon-refiner-1.7b" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Phonon refiner 1.7B
The correction model in Phonon, a local voice-typing app. Phonon turns speech into a raw transcript with Parakeet TDT 0.6B v2; this model rewrites that transcript into the text the speaker meant to type: misrecognized words and technical terms fixed, filler and false starts removed, formatted for the app the text is going to (writing modes). It is a fine-tune of LiquidAI/LFM3-1.7B.
Training data: public and synthetic data only. No personal dictation, dictionary or meeting went into it; the vocabulary line of the prompt is the only personalization.
This revision (Phonon 1.1, research name en_v6_avg) keeps full screen-context and before-cursor continuation support
while fixing over-deletion on accented and noisy speech, spoken layout commands (bullets, new lines, new paragraphs),
and spoken numbers (including phone numbers, dates, versions, times, and currency).
Prompt
The model gets exactly the prompt it was trained on:
- System turn:
Rewrite the raw dictation transcript into the exact text the speaker intended. Fix recognition errors and technical terms, keep the speaker's wording and casing style, do not add or drop content., a newline, the writing-mode line (one of the four inphonon_refiner.json), then each of these on its own line, in this order, only when it has text:Vocabulary the speaker may use: a, b, cOn screen:+ the first 350 words of the screen text, whitespace collapsedBefore cursor:+ the last 40 words before the cursor, whitespace collapsed
- User turn: the raw transcript, passed through the join rule when a Before-cursor line is present (lower-case the
first letter when continuing mid-sentence, unless the first word is
I/I'm/I'llor has an internal capital likeAPIorGitHub). The model's output is never modified. - Chat template with thinking off (
enable_thinking: false,<think></think>after the assistant header), greedy decoding, no repetition penalty, at most 1.5 x the transcript's tokens + 32 new tokens.
Evaluation
Public and real-speech benchmarks, greedy decodes of the Q4_K_S GGUF below, compared against the previous revision
(f5e269a):
| Measure | Previous (f5e269a) |
This revision (en_v6_avg) |
|---|---|---|
| Spoken layout commands, worst writing mode (bullets, new line, new paragraph) | 72.0% | 97.3% |
| Literal command-word traps wrongly triggered (200 items) | 2.0% | 0.0% |
| Spoken numbers, worst writing mode (300 items x 4 modes) | 94.0% | 96.7% |
| Spoken phone numbers (40 items) | 65.0% | 100.0% |
| Spoken self-corrections (96 items x 4 modes) | 94% to 97% | 96% to 98% |
| Real accented English across 6 accent groups (word error rate) | 10.32% | 9.92% |
| Non-native English clips made worse than raw speech | 16.22% | 8.91% |
| Noisy and short speech empties (3,319 clips) | 51 | 18 |
| Mid-sentence continuation after Before-cursor (398 held-out rows, exact / casing OK) | 71.4% / 88.7% | 76.9% / 98.2% |
| Long-form word error rate | 4.10% | 3.99% |
Files
| File | What it is | Bytes | SHA-256 |
|---|---|---|---|
phonon-refiner-1.7b-Q4_K_S-e4.gguf |
the refiner, GGUF Q4_K_S with 4-bit embeddings and head, for the native engine and llama.cpp | 988,453,504 | 045581797a659425708fce1c100d1db313597064278537e85b6cd46e3a110e68 |
model.safetensors |
the refiner, MLX 4-bit g64 with 6-bit attention and 8-bit embeddings (the Mac's fallback) | 1,133,072,561 | afbff56430bb6646a8b44d489204dba4a8cf644fee1ff61edbac593ca0574c9e |
phonon-refiner-1.7b-dflash2-drafter.gguf |
DFlash2 speculative drafter for the native engine (unchanged; 4.3 tok/step accepted on M4 Max) | 214,803,168 | 56eccf7c9cb760231aee8bd6744e2144b4219987222fef770fe3970d143f5fd7 |
config.json, model.safetensors.index.json |
MLX config (quantization included) and weight index | ||
tokenizer.json, tokenizer_config.json, chat_template.jinja, generation_config.json |
tokenizer, the base model's chat template, generation defaults (no repetition penalty); unchanged | ||
phonon_refiner.json |
marks a Phonon refiner: writing-mode lines, context lines, prompt, recipe, eval numbers | ||
phonon_engine.json |
which GGUF files the engine loads | ||
LICENSE, NOTICE |
LFM Open License v1.0 and the change notice |
Both weight files are quantized from the same merged fine-tuned bf16 model. The GGUF holds the exact tensors evaluated above with build paths removed from metadata. On 50 real-shaped dictation prompts on M4 Max, speculative decoding with the bundled drafter matches non-speculative greedy output 50 of 50 identically at 4.3 accepted tokens per step.
Earlier refiners
The previous context refiner is commit f5e269a, the 1.0.1 refiner is commit b20b280 (its meeting-cleanup adapter
phonon-meeting-lora-q8_0.gguf at commit 33da4bc applies to that model only), the 1.0 refiner is commit 2b0ab74,
and the 0.2.3 refiner is commit 74ea4b6.
- Downloads last month
- 5,923
4-bit