Text Generation
MLX
Safetensors
English
qwen3_5
lora
qlora
dictation
speech-to-text
asr-post-processing
text-cleanup
apple-silicon
conversational
8-bit precision
Instructions to use ReFyneLabs/simplewords-dictation-cleanup-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use ReFyneLabs/simplewords-dictation-cleanup-v2 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("ReFyneLabs/simplewords-dictation-cleanup-v2") 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
- LM Studio
- Pi
How to use ReFyneLabs/simplewords-dictation-cleanup-v2 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "ReFyneLabs/simplewords-dictation-cleanup-v2"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ReFyneLabs/simplewords-dictation-cleanup-v2" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use ReFyneLabs/simplewords-dictation-cleanup-v2 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "ReFyneLabs/simplewords-dictation-cleanup-v2"
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 "ReFyneLabs/simplewords-dictation-cleanup-v2" \ --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"
- MLX LM
How to use ReFyneLabs/simplewords-dictation-cleanup-v2 with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "ReFyneLabs/simplewords-dictation-cleanup-v2"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "ReFyneLabs/simplewords-dictation-cleanup-v2" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ReFyneLabs/simplewords-dictation-cleanup-v2", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use ReFyneLabs/simplewords-dictation-cleanup-v2 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 "ReFyneLabs/simplewords-dictation-cleanup-v2"
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 ReFyneLabs/simplewords-dictation-cleanup-v2
Run Hermes
hermes
- Atomic Chat
File size: 1,987 Bytes
b00972f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | #!/usr/bin/env python
"""
Runnable example for abhiram3040/simplewords-dictation-cleanup-v2.
pip install mlx-lm huggingface_hub
python example.py # run the built-in demo cases
python example.py "your um raw text"
Two things are load-bearing and must not be changed:
1. SYSTEM is frozen. It must match training BYTE-FOR-BYTE. It ships in the repo
as system_v2.txt and is read from there rather than retyped.
2. Decoding is GREEDY (temperature 0) and thinking is DISABLED. Sampling or a
re-enabled <think> block will degrade or corrupt the output.
"""
import sys
from pathlib import Path
from huggingface_hub import snapshot_download
from mlx_lm import load, generate
from mlx_lm.sample_utils import make_sampler
REPO = "abhiram3040/simplewords-dictation-cleanup-v2"
DEMO = [
"let's meet on tuesday wait no friday at noon",
"um so like can you uh send the report to the team by tomorrow",
"red one no the blue one actually the green one",
"send it tuesday i mean before noon",
"make a list of milk, eggs, bread and coffee",
"tell sarah the macbook shipped",
]
def main() -> None:
path = snapshot_download(REPO)
# The frozen prompt ships with the weights -- read it, never retype it.
system = (Path(path) / "system_v2.txt").read_text().strip()
model, tok = load(path)
sampler = make_sampler(temp=0.0) # GREEDY
def clean(raw: str) -> str:
prompt = tok.apply_chat_template(
[{"role": "user", "content": f"{system}\n\n{raw}"}],
add_generation_prompt=True,
enable_thinking=False, # no reasoning trace
tokenize=False,
)
return generate(model, tok, prompt=prompt,
max_tokens=512, sampler=sampler).strip()
for raw in (sys.argv[1:] or DEMO):
print(f"raw : {raw}")
print(f"clean : {clean(raw)}\n")
if __name__ == "__main__":
main()
|