Instructions to use hakunokina/Huihui-Qwen3-Coder-Next-abliterated-oQ4e with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use hakunokina/Huihui-Qwen3-Coder-Next-abliterated-oQ4e 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("hakunokina/Huihui-Qwen3-Coder-Next-abliterated-oQ4e") 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 hakunokina/Huihui-Qwen3-Coder-Next-abliterated-oQ4e with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "hakunokina/Huihui-Qwen3-Coder-Next-abliterated-oQ4e"
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": "hakunokina/Huihui-Qwen3-Coder-Next-abliterated-oQ4e" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use hakunokina/Huihui-Qwen3-Coder-Next-abliterated-oQ4e with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "hakunokina/Huihui-Qwen3-Coder-Next-abliterated-oQ4e"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "hakunokina/Huihui-Qwen3-Coder-Next-abliterated-oQ4e" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hakunokina/Huihui-Qwen3-Coder-Next-abliterated-oQ4e", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use hakunokina/Huihui-Qwen3-Coder-Next-abliterated-oQ4e 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 "hakunokina/Huihui-Qwen3-Coder-Next-abliterated-oQ4e"
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 hakunokina/Huihui-Qwen3-Coder-Next-abliterated-oQ4e
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use hakunokina/Huihui-Qwen3-Coder-Next-abliterated-oQ4e with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "hakunokina/Huihui-Qwen3-Coder-Next-abliterated-oQ4e"
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 "hakunokina/Huihui-Qwen3-Coder-Next-abliterated-oQ4e" \ --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"
Huihui Qwen3-Coder-Next abliterated โ oQ4e (MLX, Apple Silicon)
MLX build of huihui-ai/Huihui-Qwen3-Coder-Next-abliterated
(an abliterated edition of Qwen/Qwen3-Coder-Next),
quantized from the BF16 source with oMLX oQ4e (imatrix-calibrated 4-bit).
Until now this model had only plain MLX 4/8-bit builds and no oQ build.
โ ๏ธ Abliterated model. Refusal behaviour was removed by the upstream author at the weight level. It will follow instructions it would otherwise refuse. You are responsible for how you use it and for complying with applicable law.
What this build is
- Model: Qwen3-Coder-Next, ~80B total / ~3B active MoE (512 experts, top-10, plus a shared expert), 48 layers, hybrid Gated DeltaNet + gated attention (full attention every 4th layer), 262k context. A non-thinking coding/agent model.
- Quantization (oQ4e): affine 4-bit, group size 64, with 314 sensitive tensors at 8-bit, 36 at 5-bit; imatrix-calibrated on oMLX's
oqe_code_multilingualset. Effective 4.61 bits/weight. - No MTP head (the source has none).
- Size:
46 GB (43 GiB) (source BF16: ~159 GB). Other size:65 GB).oQ6e( - Runtime: built and tested with oMLX 0.7.3. Not tested with plain
mlx-lm/ LM Studio.
Quality vs. BF16 source
Full-vocabulary KL against the BF16 source, same token streams; 64 sequences ร 512 tokens (32.7k scored tokens): code, English prose, Turkish.
| Metric | Value |
|---|---|
| KL(BF16 โ oQ4e), mean | 0.119 nat/token |
| KL median / p99 | 0.015 / 1.45 |
| Top-1 token agreement | 88.8 % |
| Perplexity BF16 โ oQ4e | 6.128 โ 6.365 (+3.9 %) |
Qwen3-Next's hybrid layout (Gated DeltaNet + gated attention, 512 tiny experts) is quantization-sensitive: at 4 bits perplexity rises +3.9 % and top-1 agreement drops to 88.8 %. Tool calling still passed every run, but for long or subtle coding work prefer the oQ6e build; choose oQ4e when memory is the constraint (64 GB Macs).
No benchmark suite was run on this build; quality is reported as divergence from the source.
Speed (Mac Studio M3 Ultra, 512 GB, oMLX 0.7.3)
| Prefill, ~27k-token prompt (model loaded, cold cache) | |
| Same prefix again (prefix cache) | ~0.70 s |
| Decode | ~72 tok/s |
Tool calling (Anthropic /v1/messages / OpenAI /v1/chat/completions, 5 runs each) |
5/5 / 5/5 |
The very first request (~27k tokens, including model load) took ~16 s. Single-run measurements; numbers vary with context length and settings.
Usage (oMLX)
Place the folder in your oMLX model directory and reload models (or restart oMLX). It is served on both the OpenAI and Anthropic APIs:
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model": "Huihui-Qwen3-Coder-Next-abliterated-oQ4e", "messages": [{"role": "user", "content": "Write a Python function that parses a CSV line."}]}'
Suggested sampling (Qwen3-Coder recommendation): temperature 0.7, top_p 0.8, top_k 20, repetition_penalty 1.05.
The source's tool-call helpers (qwen3coder_tool_parser_vllm.py, qwen3_coder_detector_sgl.py) are included for vLLM/SGLang users; oMLX does not need them.
Credits & license
- Base model: Qwen team โ
Qwen/Qwen3-Coder-Next. - Abliteration: huihui-ai โ
huihui-ai/Huihui-Qwen3-Coder-Next-abliterated. - Quantization: oMLX oQ.
- License: Apache-2.0, inherited from upstream.
- Downloads last month
- 331
4-bit
Model tree for hakunokina/Huihui-Qwen3-Coder-Next-abliterated-oQ4e
Base model
Qwen/Qwen3-Coder-Next