Instructions to use aquaman164/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use aquaman164/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw 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("aquaman164/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw") 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 aquaman164/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "aquaman164/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw"
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": "aquaman164/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use aquaman164/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "aquaman164/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "aquaman164/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aquaman164/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use aquaman164/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw 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 "aquaman164/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw"
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 aquaman164/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use aquaman164/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "aquaman164/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw"
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 "aquaman164/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw" \ --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"
Qwen3.6-35B-A3B — MLX mixed-bit GPTQ @3.5 bpw
MLX-native quantization of Qwen/Qwen3.6-35B-A3B
(35B-A3B MoE VLM: 40 layers, 256 experts/top-8, hybrid linear-attention) for Apple Silicon.
Built on CUDA (2×RTX PRO 6000) with a loss-aware allocation + GPTQ pipeline, packaged in the
standard mlx-lm format (loads with mlx_lm>=0.31).
Recipe
- Experts (91.7% of params): per-(layer,tensor) mixed bits {2bit:32, 3bit:42, 4bit:6} chosen by MCKP over an empirical-Fisher gxw cost (calibrated on ja-think corpus, 16×2048 tokens), then GPTQ (pooled per-layer Hessian, sym=False, MSE grid, act-order static groups) instead of plain RTN. Packed as MLX affine, group_size 64.
- Spine: attention / linear-attention / embeddings 4bit, routers &
lm_head8bit (inherited from the mlx-community 4bit conversion; lm_head re-quantized to 8bit here). - Vision tower: unquantized (bf16) — VLM path preserved.
- Effective ~3.5 bits/weight overall, ~15.5 GB.
Quality (vs bf16, fakequant-proxy measured on CUDA)
| holdout | KL | PPL |
|---|---|---|
| ja-think | 0.163 | 9.75 → 10.40 (+6.6%) |
| multilingual | 0.108 | 11.02 → 11.78 (+6.9%) |
Plain-RTN mixed-bit at the same size measured +20%/+11% — GPTQ recovers ~⅔ of the damage. (4-bit uniform RTN ≈ +6.6% at ~18 GB; this model matches that quality at 15.5 GB.)
Run (Apple Silicon, ≥24 GB unified memory)
pip install -U mlx-lm # needs >=0.31 (qwen3_5_moe support)
# one-shot
mlx_lm.generate --model /path/to/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw \
--prompt "東京の観光名所を3つ教えてください。" --max-tokens 300
# chat REPL
mlx_lm.chat --model /path/to/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw
# OpenAI-compatible server
mlx_lm.server --model /path/to/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw --port 8080
Notes
- Text-only inference is the validated path (vision weights are present and unquantized; mlx_lm's qwen3_5_moe text stack skips the tower).
- First load JIT-compiles Metal kernels; subsequent loads are faster.
- Expect roughly 40–80 tok/s decode on M3/M4-class chips (A3B → ~3B active/token).
Provenance / license
Base model © Alibaba Cloud, Apache-2.0 (per Qwen3.6 release). Quantization artifacts derived from the official bf16 checkpoint and the mlx-community 4bit conversion (structure/tokenizer).
- Downloads last month
- 166
4-bit
Model tree for aquaman164/Qwen3.6-35B-A3B-MLX-GPTQ-3.5bpw
Base model
Qwen/Qwen3.6-35B-A3B