Instructions to use aquaman164/Qwen3.6-35B-A3B-MLX-VQ-2.6bpw 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-VQ-2.6bpw 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-VQ-2.6bpw") 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-VQ-2.6bpw 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-VQ-2.6bpw"
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-VQ-2.6bpw" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use aquaman164/Qwen3.6-35B-A3B-MLX-VQ-2.6bpw 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-VQ-2.6bpw"
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-VQ-2.6bpw" # 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-VQ-2.6bpw", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use aquaman164/Qwen3.6-35B-A3B-MLX-VQ-2.6bpw 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-VQ-2.6bpw"
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-VQ-2.6bpw
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use aquaman164/Qwen3.6-35B-A3B-MLX-VQ-2.6bpw 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-VQ-2.6bpw"
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-VQ-2.6bpw" \ --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 VQ (trained-codebook) @2.6 bpw, custom Metal kernel
Vector-quantized (AQLM-style, trained codebooks + GPTQ compensation) MLX build of
Qwen/Qwen3.6-35B-A3B — to our knowledge the first
trained-codebook VQ model served on Apple Silicon, via the bundled mx.fast.metal_kernel
implementation (code/). 11.53 GB, measurably better than scalar quantization at the same size.
⚠️ Not loadable by stock mlx-lm / LM Studio / Ollama / oMLX — the experts use a VQ format that
needs the bundled loader + Metal kernel (~400 lines of Python, mlx>=0.31 only, no compilation).
The scalar-vs-VQ tradeoff this build wins
| build | size | think-ja PPL vs bf16 | multilingual |
|---|---|---|---|
| GPTQ-3.5bpw (scalar) | 15.35 GB | +6.6% | +6.9% |
| GPTQ-2.7bpw (scalar) | 12.03 GB | +17.5% | +15.4% |
| VQ-2.4bpw — for 16 GB Macs | 10.49 GB | +19.5% | +21.6% |
| this (VQ) | 11.53 GB | +12.4% | +12.2% |
Smaller and significantly better than the scalar 2.7bpw build — the point of codebook quantization at low bits.
Recipe
- Experts (91.7% of params): per-(layer,tensor) bits {2bit: 69, 3bit: 11 tensors} chosen by Fisher/gxw MCKP; Qwen-native codebooks (d=4, K=256 / K=4096; k-means on group-normalized subvectors — GLM-fit books measurably transfer worse, so refit); GPTQ error compensation (pooled per-layer input Hessians, ja-centric calibration). Expert avg 2.38 bpw + fp16 group scales.
- Spine: GPTQ 4bit gs64 (linear-attention qkv/z/out, attention q/k/v/o, shared experts),
lm_head6bit, routers 8bit, embeddings 4bit — inherited from the 2.7bpw scalar build. - Vision tower: unquantized bf16.
- Format:
switch_mlp.*.vq_codes(LSB-first packed 8/12-bit indices, int32) +vq_scales(fp16 per-128 group) +vq_codebooks.safetensors; metadata inconfig.json["vq"].
Speed (M-series, measured on 48 GB)
- decode ~66 tok/s, prefill ~213 tok/s — fused Metal kernels (gate+up+SiLU in one dispatch; simdgroup-per-row GEMV with half4 loads).
Run (Apple Silicon, ≥16 GB unified memory)
pip install "mlx>=0.31" "mlx-lm>=0.31"
hf download aquaman164/Qwen3.6-35B-A3B-MLX-VQ-2.6bpw --local-dir qwen-vq
# OpenAI-compatible server
python qwen-vq/code/vq_serve.py --model qwen-vq --port 8090
# then: curl http://127.0.0.1:8090/v1/chat/completions -d '{"model":"qwen-vq", ...}'
# (use the model id returned by /v1/models)
# or a one-shot generation test
python qwen-vq/code/vq_generate.py qwen-vq 100
code/vq_switch.py exposes load_vq_model(path) -> (model, config) if you want to embed it.
Thinking mode is on by default (Qwen3.6 native); pass enable_thinking=False via the chat
template for direct answers.
Provenance / license
Base model © Alibaba Cloud, Apache-2.0. Quantization pipeline: loss-aware allocation + GPTQ-VQ encode built on OneCompression; serving adapter published as model #3 of vqmoe.
- Downloads last month
- 93
4-bit
Model tree for aquaman164/Qwen3.6-35B-A3B-MLX-VQ-2.6bpw
Base model
Qwen/Qwen3.6-35B-A3B