Run this model with HF Jobs
Run Happenmasss/yanmo-correct-4b-cot-mlx-8bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Happenmasss/yanmo-correct-4b-cot-mlx-8bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Happenmasss/yanmo-correct-4b-cot-mlx-8bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Happenmasss/yanmo-correct-4b-cot-mlx-8bit. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use Happenmasss/yanmo-correct-4b-cot-mlx-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Happenmasss/yanmo-correct-4b-cot-mlx-8bit 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("Happenmasss/yanmo-correct-4b-cot-mlx-8bit") 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 Happenmasss/yanmo-correct-4b-cot-mlx-8bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Happenmasss/yanmo-correct-4b-cot-mlx-8bit"
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": "Happenmasss/yanmo-correct-4b-cot-mlx-8bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use Happenmasss/yanmo-correct-4b-cot-mlx-8bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Happenmasss/yanmo-correct-4b-cot-mlx-8bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Happenmasss/yanmo-correct-4b-cot-mlx-8bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Happenmasss/yanmo-correct-4b-cot-mlx-8bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use Happenmasss/yanmo-correct-4b-cot-mlx-8bit 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 "Happenmasss/yanmo-correct-4b-cot-mlx-8bit"
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 Happenmasss/yanmo-correct-4b-cot-mlx-8bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Happenmasss/yanmo-correct-4b-cot-mlx-8bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Happenmasss/yanmo-correct-4b-cot-mlx-8bit"
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 "Happenmasss/yanmo-correct-4b-cot-mlx-8bit" \ --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"
Yanmo Correct 4B CoT V14 (MLX 8-bit)
An Apple Silicon model for polishing transcribed dictation across distinct output styles (ๅณๆถๆถๆฏ, ่ช็ถๆด็, ๆๆกฃๆฎต่ฝ, and custom instructions) and extracting corrected terms for a personal lexicon. Use the Yanmo polishing prompt (engine/polish.txt) for dictation and the separate correction-terms prompt (engine/correction-terms.txt) for comparing the original and edited text. The chat template supports thinking mode, allowing AcpmRuntime to separate reasoning from the final polished output.
V14 builds on Qwen/Qwen3.5-4B with full 32-layer LoRA (rank=16, 21.2M trainable parameters, 1-epoch cosine learning rate schedule, loss computed on assistant tokens only). Supervised fine-tuning used 10,453 examples:
- 9,371 ASR polishing examples aligned to the live Yanmo 1.0.7
[Qwen3-ASR, SenseVoice Small]candidate order using local CPU ONNXSenseVoice Smallre-inference across all real audio clips plus 14 targeted quality/style shards (multi-reviewer audited), - 82 user-edited polishing examples, and
- 1,000 lexicon correction-term extraction examples (with negative abstention traps).
This release uses MLX affine 8-bit quantization with group size 64 (bfloat16, 4,469,632,533 bytes).
Key Improvements in V14
- Live Dual-ASR Alignment (
[Qwen3-ASR, SenseVoice Small]): Trained directly against live CPU ONNXSenseVoice Smallsecond-stream outputs in production ordering (~83% dual-stream, ~11% single Qwen, ~6% single SenseVoice fallback). - 100% Instant Messaging (
ๅณๆถๆถๆฏ) Adverb Retention: Reaches100.0% (97/97)oncoverage-120and100.0% (53/53)onconsecutive-30, with0/226context echoing across all moat suites. - Peak Lexicon Term Extraction: Achieves
0.9790term F1 (58/60strict exact match,0/19false positives on negative traps). - Stronger Multi-Facet Holdout Accuracy: Improves held-out
val210all-constraints pass rate from79.52% (167/210)in V12 to86.67% (182/210)(and78.33%vs60.00%on Shards 11โ14). - Fast First-Pass Convergence:
401/401complete on both single-stream and real-audio ONNX dual-stream 401 benchmarks (thinking p50 = 22,p90 = 26; Macbatch=1completionp50 < 1.0s).
Evaluation (V12 vs V14, MLX 8-bit)
Evaluated on Apple Silicon (Mac15,11) with max_tokens = 768 and identical evaluation harnesses.
| Metric | V12 | V14 |
|---|---|---|
Moat context copying (regression-* + holdout + coverage + single-real) |
0/218 |
0/226 |
Instant Messaging adverb retention (coverage-120) |
97.94% (95/97) |
100.0% (97/97) |
Instant Messaging adverb retention (consecutive-30) |
100.0% (53/53) |
100.0% (53/53) |
Lexicon term extraction strict match (60 cases) |
56/60 (F1 0.9714) |
58/60 (F1 0.9790) |
Term extraction negative false positives (19 cases) |
0/19 |
0/19 |
val210 overall constraint pass rate (210 cases) |
79.52% (167/210) |
86.67% (182/210) |
401 production single-stream first-pass completion |
401/401 |
401/401 (p50=22, p90=26) |
401 production dual-stream (ONNX SenseVoice Small) completion |
โ | 401/401 (p50=22, p90=26) |
Download
- Downloads last month
- 99
8-bit