CoolFace
Modelpublic

wangkezun/Qwen3.6-35B-A3B-Claude-4.7-Opus-Reasoning-Distilled-Text-MLX-oQ8

sourceHugging Faceapache-2.0updated 5mo agoView on Hugging Face
1likes76downloads
Model Card

Qwen3.6-35B-A3B-Claude-4.7-Opus-Reasoning-Distilled-Text-MLX-oQ8

Mixed-precision quantization for Apple Silicon, text-only mode (vision tower stripped). Highest quality text-only version โ€” closest to BF16 baseline.

Quantized from `lordx64/Qwen3.6-35B-A3B-Claude-4.7-Opus-Reasoning-Distilled` using oMLX's oQ8 algorithm (sensitivity-aware mixed-precision quantization).

๐Ÿ“Š Specs

FieldValue
Base modelQwen/Qwen3.6-35B-A3B (35B params, 128 experts MoE, A3B activation)
Fine-tuneLoRA distilled from Claude 4.7 Opus reasoning outputs (lordx64 dataset)
QuantizationoMLX oQ8 (mixed-precision, ~8.7 bpw average)
ModalityText only (vision tower stripped)
FormatMLX safetensors
Model size~34 GB
Inference memory~37 GB (incl. KV cache and runtime overhead)
Recommended hardwareApple Silicon M2 Ultra 64GB+ / M3 Max / M5 Max

๐Ÿš€ Quick Start

Install

bash
pip install mlx-lm
# Or with uv:
uv tool install mlx-lm

Inference

bash
mlx_lm.generate \
  --model wangkezun/Qwen3.6-35B-A3B-Claude-4.7-Opus-Reasoning-Distilled-Text-MLX-oQ8 \
  --prompt "Explain mixture of experts in one paragraph." \
  --max-tokens 512

Python API

python
from mlx_lm import load, generate

model, tokenizer = load(
    "wangkezun/Qwen3.6-35B-A3B-Claude-4.7-Opus-Reasoning-Distilled-Text-MLX-oQ8"
)

response = generate(
    model,
    tokenizer,
    prompt="Solve: integrate x*sin(x) dx",
    max_tokens=512,
)
print(response)

OpenAI-compatible Server

bash
mlx_lm.server \
  --model wangkezun/Qwen3.6-35B-A3B-Claude-4.7-Opus-Reasoning-Distilled-Text-MLX-oQ8 \
  --port 8080

Drop-in compatible with OpenAI clients including Claude Code (with custom backend), AstrBot, Open WebUI, LibreChat, and Continue.dev.

๐Ÿ“ˆ Measured Performance

Benchmarked on MacBook Pro M5 Max 128GB:

MetricValue
Prompt processing~58 tokens/s
Generation speed~103 tokens/s
Peak memory36.9 GB
Model load time~12 sec

When to Choose oQ8 over oQ6

oQ8 retains slightly more precision than oQ6, but the observable quality difference is small for most tasks. Use oQ8 when:

  • โ€”You need the absolute highest fidelity quantization
  • โ€”Running quality benchmarks against the BF16 reference
  • โ€”Memory budget is generous (37+ GB free)

For most users, Text-oQ6 is the better choice โ€” comparable quality at 7 GB less footprint.

Why Text-Only?

Stripping the vision tower offers practical advantages for text-only workflows:

  • โ€”~10% faster generation vs the VLM equivalent (no vision compute path overhead)
  • โ€”~2 GB less peak memory
  • โ€”Simpler deployment โ€” no need for vision processor configs or image preprocessing dependencies

If you only feed text into your model, this version is strictly better than the VLM variant.

๐Ÿง  Model Behavior

Inherits the Claude reasoning distillation: the model uses <think>...</think> tags to structure its chain-of-thought before producing the final response.

Best for:

  • โ€”Coding agents and tool-use workflows
  • โ€”Complex reasoning tasks (math, logic, analysis)
  • โ€”Quality-sensitive applications where size is not a constraint
  • โ€”Quantization quality reference / baseline comparisons

Sample output structure:

<think>
1. Analyze the user's request: ...
2. Identify the key constraints: ...
3. Formulate the solution: ...
</think>

Here is my analysis: ...

๐Ÿ”ฌ Quantization Details

  • โ€”Source model: Qwen3.6-35B-A3B-Claude-4.7-Opus-Reasoning-Distilled (BF16 MLX-converted)
  • โ€”Sensitivity model: 8-bit quantization of the same distilled model (self-referenced sens for tight distribution alignment)
  • โ€”Non-quant weight dtype: bfloat16 (M3+ optimal)
  • โ€”Text-Only mode: ON (vision tower stripped โ€” verified: 0 vision-related tensors)
  • โ€”Quantizer: oMLX

๐Ÿ“ฆ Other Versions in This Series

VersionSizeBest for
VLM-MLX-oQ419.6 GBMemory-constrained inference (with vision)
VLM-MLX-oQ627 GBRecommended VLM quality/size ratio
VLM-MLX-oQ835 GBVLM quality reference baseline
Text-MLX-oQ419 GBText-only, fastest
Text-MLX-oQ627 GBRecommended text-only
Text-MLX-oQ834 GBText-only, max quality

Choosing a version:

  • โ€”Text-only workflows (coding, agents, dialogue) โ†’ Text variants are faster and lighter
  • โ€”Image input needed (OCR, visual analysis, screenshot understanding) โ†’ VLM variants
  • โ€”oQ6 is the sweet spot for most use cases. oQ8 yields diminishing returns relative to its size.

โš ๏ธ Disclaimer

This model derives from a chain of upstream work:

  1. 1.Base model `Qwen/Qwen3.6-35B-A3B` by Alibaba's Qwen team (Apache-2.0)
  2. 2.Distilled variant `lordx64/Qwen3.6-35B-A3B-Claude-4.7-Opus-Reasoning-Distilled` by lordx64 using Claude 4.7 Opus reasoning outputs (Apache-2.0)
  3. 3.This quantization by @wangkezun using oMLX on Apple Silicon

This model is not affiliated with or endorsed by Anthropic, PBC. "Claude" is a trademark of Anthropic, PBC. The use of "Claude" in this model name is purely descriptive (nominative fair use) to indicate the upstream training data lineage.

By using this model, you agree to comply with:

  • โ€”The Apache-2.0 license inherited from the base model
  • โ€”Any applicable license terms of the upstream distillation dataset
  • โ€”Local laws and regulations governing AI model usage in your jurisdiction

๐Ÿ™ Acknowledgments

  • โ€”Alibaba Qwen Team โ€” for the Qwen3.6-35B-A3B base model
  • โ€”lordx64 โ€” for the reasoning-focused LoRA distillation
  • โ€”Jundot (oMLX team) โ€” for the oQ mixed-precision quantization algorithm
  • โ€”Apple MLX team โ€” for the MLX framework and tooling

๐Ÿ“œ License

Apache-2.0 (inherited from base model).


Generated: 2026-04-26 Quantizer: @wangkezun