Text Generation
MLX
Safetensors
English
qwen3_next
omlx
quantized
qwen3-next
coding
agentic
apple-silicon
conversational
8-bit precision
Instructions to use programmer-666/Qwen3-Coder-Next-oQ8e with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use programmer-666/Qwen3-Coder-Next-oQ8e 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("programmer-666/Qwen3-Coder-Next-oQ8e") 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 programmer-666/Qwen3-Coder-Next-oQ8e with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "programmer-666/Qwen3-Coder-Next-oQ8e"
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": "programmer-666/Qwen3-Coder-Next-oQ8e" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use programmer-666/Qwen3-Coder-Next-oQ8e 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 "programmer-666/Qwen3-Coder-Next-oQ8e"
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 programmer-666/Qwen3-Coder-Next-oQ8e
Run Hermes
hermes
- OpenClaw new
How to use programmer-666/Qwen3-Coder-Next-oQ8e with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "programmer-666/Qwen3-Coder-Next-oQ8e"
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 "programmer-666/Qwen3-Coder-Next-oQ8e" \ --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 programmer-666/Qwen3-Coder-Next-oQ8e with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "programmer-666/Qwen3-Coder-Next-oQ8e"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "programmer-666/Qwen3-Coder-Next-oQ8e" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "programmer-666/Qwen3-Coder-Next-oQ8e", "messages": [ {"role": "user", "content": "Hello"} ] }'
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: Qwen/Qwen3-Coder-Next
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- mlx
|
| 9 |
+
- omlx
|
| 10 |
+
- quantized
|
| 11 |
+
- qwen3-next
|
| 12 |
+
- coding
|
| 13 |
+
- agentic
|
| 14 |
+
- apple-silicon
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Qwen3-Coder-Next-oQ8e
|
| 18 |
+
|
| 19 |
+
An 8-bit-equivalent quantization of [Qwen/Qwen3-Coder-Next](https://huggingface.co/Qwen/Qwen3-Coder-Next), produced with oMLX and intended for local inference on Apple Silicon.
|
| 20 |
+
|
| 21 |
+
## Why This Quant Exists
|
| 22 |
+
|
| 23 |
+
Qwen3-Coder-Next is not the newest coding model on the block anymore, but it remains a reliable, well-behaved workhorse for agentic coding tasks: strong tool use, long-context stability, and a favorable 3B-active / 80B-total parameter ratio that keeps it fast on consumer hardware. Rather than let a still-useful model sit on outdated quantization, it was re-quantized here with a current oMLX quantization pipeline (oQ8e) to keep it fully usable with up-to-date MLX tooling and to serve as a high-fidelity reference point against lower-bit quants.
|
| 24 |
+
|
| 25 |
+
## Model Details
|
| 26 |
+
|
| 27 |
+
- **Base model:** Qwen/Qwen3-Coder-Next (qwen3_next architecture, 80B total / 3B active parameters, 256k native context)
|
| 28 |
+
- **Quantized by:** [programmer-666](https://huggingface.co/programmer-666)
|
| 29 |
+
- **Quantization method:** oMLX, 8-bit-equivalent (oQ8e)
|
| 30 |
+
- **License:** Apache 2.0 (inherited from base model)
|
| 31 |
+
- **Format:** MLX
|
| 32 |
+
|
| 33 |
+
## Usage
|
| 34 |
+
|
| 35 |
+
```python
|
| 36 |
+
from mlx_lm import load, generate
|
| 37 |
+
|
| 38 |
+
model, tokenizer = load("programmer-666/Qwen3-Coder-Next-oQ8e")
|
| 39 |
+
|
| 40 |
+
prompt = "Write a quick sort algorithm."
|
| 41 |
+
messages = [{"role": "user", "content": prompt}]
|
| 42 |
+
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 43 |
+
|
| 44 |
+
response = generate(model, tokenizer, prompt=text, max_tokens=2048)
|
| 45 |
+
print(response)
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
The model can also be served through oMLX's OpenAI-compatible API endpoint for use with agentic coding tools.
|
| 49 |
+
|
| 50 |
+
## Benchmarks
|
| 51 |
+
|
| 52 |
+
All benchmarks were run with oMLX. Four variants were tested: this model (**oQ8e**) and an oQ2.7e quant, each in a default and an "Adjusted" configuration.
|
| 53 |
+
|
| 54 |
+
> The "Adjusted" columns were run with tuned oMLX serving parameters (context window, sampling, and related runtime settings), rather than the server's default configuration.
|
| 55 |
+
|
| 56 |
+
### Prompt Processing Speed (tokens/s)
|
| 57 |
+
|
| 58 |
+
| Context | oQ8e | oQ8e-Adjusted | oQ2.7e | oQ2.7e-Adjusted |
|
| 59 |
+
|---|---|---|---|---|
|
| 60 |
+
| 1,024 | 831.65 | 1232.10 | 125.90 | 1262.70 |
|
| 61 |
+
| 4,096 | 583.70 | 1313.25 | 1088.10 | 1334.30 |
|
| 62 |
+
| 8,192 | 562.50 | 1179.90 | 1109.80 | 1178.20 |
|
| 63 |
+
| 16,384 | 599.20 | 975.95 | 991.40 | 1021.10 |
|
| 64 |
+
| 32,768 | 534.90 | 847.60 | 838.70 | 801.20 |
|
| 65 |
+
| 65,536 | 446.70 | 594.85 | 537.50 | 476.80 |
|
| 66 |
+
| 131,072 | 252.20 | 342.30 | 290.70 | 350.90 |
|
| 67 |
+
| 200,000 | 188.90 | 259.40 | 219.40 | 222.30 |
|
| 68 |
+
|
| 69 |
+
### Generation Speed (tokens/s)
|
| 70 |
+
|
| 71 |
+
| Context | oQ8e | oQ8e-Adjusted | oQ2.7e | oQ2.7e-Adjusted |
|
| 72 |
+
|---|---|---|---|---|
|
| 73 |
+
| 1,024 | 51.80 | 66.25 | 17.90 | 71.20 |
|
| 74 |
+
| 4,096 | 37.90 | 64.45 | 67.40 | 66.80 |
|
| 75 |
+
| 8,192 | 36.10 | 62.65 | 67.30 | 64.60 |
|
| 76 |
+
| 16,384 | 52.20 | 59.35 | 62.20 | 62.00 |
|
| 77 |
+
| 32,768 | 36.90 | 55.60 | 59.90 | 56.90 |
|
| 78 |
+
| 65,536 | 32.20 | 35.25 | 30.00 | 31.30 |
|
| 79 |
+
| 131,072 | 23.60 | 30.40 | 28.30 | 30.90 |
|
| 80 |
+
| 200,000 | 20.60 | 24.35 | 23.20 | 20.40 |
|
| 81 |
+
|
| 82 |
+
### Peak Memory (GB)
|
| 83 |
+
|
| 84 |
+
| Context | oQ8e | oQ8e-Adjusted | oQ2.7e | oQ2.7e-Adjusted |
|
| 85 |
+
|---|---|---|---|---|
|
| 86 |
+
| 1,024 | 80.16 | 80.16 | 70.05 | 31.45 |
|
| 87 |
+
| 4,096 | 80.92 | 80.92 | 66.92 | 32.21 |
|
| 88 |
+
| 8,192 | 81.17 | 81.17 | 66.02 | 32.45 |
|
| 89 |
+
| 16,384 | 81.44 | 81.50 | 32.73 | 32.61 |
|
| 90 |
+
| 32,768 | 81.94 | 82.06 | 33.34 | 33.22 |
|
| 91 |
+
| 65,536 | 82.69 | 82.72 | 33.85 | 34.33 |
|
| 92 |
+
| 131,072 | 83.98 | 83.98 | 35.15 | 35.86 |
|
| 93 |
+
| 200,000 | 85.78 | 85.72 | 36.94 | 36.83 |
|
| 94 |
+
|
| 95 |
+
All runs used `tg128` (128 generated tokens) at each listed prompt length.
|
| 96 |
+
|
| 97 |
+
## Notes
|
| 98 |
+
|
| 99 |
+
- The oQ8e quant trades memory footprint (roughly 80 to 86 GB peak) for accuracy closer to the original weights, while oQ2.7e trims memory substantially at the cost of some quality.
|
| 100 |
+
- Throughput at very long context (131k+) drops sharply for all variants, which is expected given the attention cost of long-context prefill.
|
| 101 |
+
|
| 102 |
+
## Acknowledgments
|
| 103 |
+
|
| 104 |
+
Thanks to the Qwen team for the base model and to the MLX / oMLX community for the tooling used to produce this quant.
|