Instructions to use Brooooooklyn/Qwen3.6-35B-A3B-nvfp4-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Brooooooklyn/Qwen3.6-35B-A3B-nvfp4-mlx with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("Brooooooklyn/Qwen3.6-35B-A3B-nvfp4-mlx") config = load_config("Brooooooklyn/Qwen3.6-35B-A3B-nvfp4-mlx") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use Brooooooklyn/Qwen3.6-35B-A3B-nvfp4-mlx with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Brooooooklyn/Qwen3.6-35B-A3B-nvfp4-mlx"
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": "Brooooooklyn/Qwen3.6-35B-A3B-nvfp4-mlx" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use Brooooooklyn/Qwen3.6-35B-A3B-nvfp4-mlx 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 "Brooooooklyn/Qwen3.6-35B-A3B-nvfp4-mlx"
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 Brooooooklyn/Qwen3.6-35B-A3B-nvfp4-mlx
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Brooooooklyn/Qwen3.6-35B-A3B-nvfp4-mlx with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Brooooooklyn/Qwen3.6-35B-A3B-nvfp4-mlx"
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 "Brooooooklyn/Qwen3.6-35B-A3B-nvfp4-mlx" \ --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 — Unsloth NVFP4/E4M3 recipe for MLX
This is a weight-only MLX conversion of
Qwen/Qwen3.6-35B-A3B
using the tensor-class policy from
unsloth/Qwen3.6-35B-A3B-NVFP4:
| Tensor class | Count | Storage |
|---|---|---|
| Routed/shared expert FFNs in layers 0–31 | 192 | NVFP4, 4-bit, group 16 |
Final-eight FFNs, attention, Gated DeltaNet qkv/z/out, and lm_head |
179 | E4M3 FP8 plus one BF16 scale per output |
| Vision, MTP, routers, GDN a/b, embeddings, norms, and state tensors | — | BF16 |
Update — re-converted 2026-09-01
Expert FFN tensors (switch_mlp, shared_expert) are NOT lifted. The norm they
read also drives the softmax router and the sigmoid shared-expert gate, and
neither is scale-invariant, so folding a scalar into it would move routing. Those
blocks therefore carry the same annihilation as the previous revision -- measured
0.9505% of expert blocks, worst layers.0.mlp.switch_mlp.gate_proj at 41.44%.
This is a known open limitation, not a regression.
The imatrix / AWQ pre-scaling is removed. Under a float-scaled format it drove
block scales to the zero code and annihilated whole blocks, so mlx-node now
refuses --imatrix-path for these class maps. The reproduce command above is
updated accordingly; the previous one fails on current mlx-node.
Weight bytes changed; the tensor-class map, shard layout and tensor counts are unchanged. Earlier revisions remain in this repository's history.
Provenance
- Base weights:
Qwen/Qwen3.6-35B-A3Brevision995ad96eacd98c81ed38be0c5b274b04031597b0 - Tensor-class reference:
unsloth/Qwen3.6-35B-A3B-NVFP4revision739af1e7aac320af1682ed1e0cce369af4c5265d - Converter: current
mlx-nodesource
No imatrix or calibration dataset is used. The FP4 tensor-class maps are
data-free, and AWQ pre-scaling is refused under a float-scaled format:
dividing a weight column by an AWQ scale drives the block amax down until
amax / 6 falls under E4M3's smallest normal value and the shared block scale
rounds to the zero code, which decodes the whole block to zero.
Runtime semantics
This artifact preserves the low/high weight classes, but activations remain 16-bit. NVFP4 uses MLX weight-only quantized matmul. Raw E4M3 weights are reconstructed to BF16 once when the model loads, then use ordinary A16 matmul/gather-mm. This is not upstream W4A4/W8A8 execution and does not claim global-scale, FP8 KV-cache, numerical, or performance parity.
The tokenizer, processor, vision encoder, and inline MTP weights are retained; only text generation was smoke-tested for this upload.
Reproduce
yarn mlx convert \
--input /path/to/qwen3.6-35b-a3b \
--output ./Qwen3.6-35B-A3B-nvfp4-mlx \
--model-type qwen3_5_moe \
--dtype bfloat16 \
--quantize \
--q-recipe unsloth \
--q-mode nvfp4
Validation
- 35,951,822,704 source parameters converted.
- 1,457 serialized tensors across six SafeTensors shards.
- Exact index/shard closure.
- Exact class map: 192 NVFP4 4/16 modules and 179 E4M3 FP8 overrides.
- E4M3 storage verified as raw U8 weights plus BF16 per-output scales.
- Quantization metadata is identical in
quantizationandquantization_config. - Text smoke test: loaded in 43.9 seconds and generated one deterministic token,
OK.
This model belongs to the
Unsloth NVFP4 Tensor-Class Recipe for MLX macOS/DGX
collection.
- Downloads last month
- 99
4-bit
Model tree for Brooooooklyn/Qwen3.6-35B-A3B-nvfp4-mlx
Base model
Qwen/Qwen3.6-35B-A3B