CoolFace
Modelpublic

programmer-666/Qwen3-Coder-Next-oQ8e

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
2likes197downloads
Model Card

Qwen3-Coder-Next-oQ8e

An 8-bit-equivalent quantization of Qwen/Qwen3-Coder-Next, produced with oMLX and intended for local inference on Apple Silicon.

Why This Quant Exists

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.

Model Details

  • Base model: Qwen/Qwen3-Coder-Next (qwen3_next architecture, 80B total / 3B active parameters, 256k native context)
  • Quantization method: oMLX, 8-bit-equivalent (oQ8e)
  • License: Apache 2.0 (inherited from base model)
  • Format: MLX

Usage

python
from mlx_lm import load, generate

model, tokenizer = load("programmer-666/Qwen3-Coder-Next-oQ8e")

prompt = "Write a quick sort algorithm."
messages = [{"role": "user", "content": prompt}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)

response = generate(model, tokenizer, prompt=text, max_tokens=2048)
print(response)

The model can also be served through oMLX's OpenAI-compatible API endpoint for use with agentic coding tools.

Benchmarks

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. Tests were performed on a MacBook Pro M4 Max ARM processor and 128 GB of memory.

The "Adjusted" columns were run with tuned oMLX serving parameters (context window, sampling, and related runtime settings), rather than the server's default configuration.

Prompt Processing Speed (tokens/s)

ContextoQ8eoQ8e-AdjustedoQ2.7eoQ2.7e-Adjusted
1,024831.651232.10125.901262.70
4,096583.701313.251088.101334.30
8,192562.501179.901109.801178.20
16,384599.20975.95991.401021.10
32,768534.90847.60838.70801.20
65,536446.70594.85537.50476.80
131,072252.20342.30290.70350.90
200,000188.90259.40219.40222.30

Generation Speed (tokens/s)

ContextoQ8eoQ8e-AdjustedoQ2.7eoQ2.7e-Adjusted
1,02451.8066.2517.9071.20
4,09637.9064.4567.4066.80
8,19236.1062.6567.3064.60
16,38452.2059.3562.2062.00
32,76836.9055.6059.9056.90
65,53632.2035.2530.0031.30
131,07223.6030.4028.3030.90
200,00020.6024.3523.2020.40

Peak Memory (GB)

ContextoQ8eoQ8e-AdjustedoQ2.7eoQ2.7e-Adjusted
1,02480.1680.1670.0531.45
4,09680.9280.9266.9232.21
8,19281.1781.1766.0232.45
16,38481.4481.5032.7332.61
32,76881.9482.0633.3433.22
65,53682.6982.7233.8534.33
131,07283.9883.9835.1535.86
200,00085.7885.7236.9436.83

All runs used tg128 (128 generated tokens) at each listed prompt length.

Inference Parameters

Benchmarks and general usage were run with the following oMLX serving configuration:

ParameterValue
Reasoning Parserqwen3coder
Context Window262,144
Max Tokens65,536
Temperature1
Top P0.95
Top K40
Min P0
Repetition Penalty1
Presence Penalty0
TTL3,600s (global default)

Notes

  • 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.
  • Throughput at very long context (131k+) drops sharply for all variants, which is expected given the attention cost of long-context prefill.

Acknowledgments

Thanks to the Qwen team for the base model and to the MLX / oMLX community for the tooling used to produce this quant.