Views
No views yet
Brooooooklyn/Agents-A1-mxfp4-mlx
is an Apple Silicon MLX quantization of
InternScience/Agents-A1.
Agents-A1 is a 35B-A3B Qwen3.5-family mixture-of-experts agent model with 40
language-model layers, 256 experts with top-8 routing, hybrid linear/full
attention, and an MTP-capable config. The published checkpoint does not include
an mtp.* tensor subtree.55100f11160f545dc45545c677699ace74f6bd10.log2(amax) to nearest: MXFP4
tries both candidate exponents and keeps the lower squared error, and MXFP8 takes
the ceiling so a block can never saturate. Measured MXFP8 weight error across a
checkpoint drops from 6.91% to 2.66%.| Tensor class | Stored format |
|---|---|
Routed expert switch_mlp.{gate,up,down}_proj, layers 0–31 | MXFP4 4/32 |
Shared expert {gate,up,down}_proj, layers 0–31 | MXFP4 4/32 |
| The same routed/shared FFN projections, layers 32–39 | MXFP8 8/32 |
Full-attention {q,k,v,o}_proj | MXFP8 8/32 |
Linear-attention in_proj_qkv, in_proj_z, out_proj | MXFP8 8/32 |
lm_head | MXFP8 8/32 |
Embeddings; router mlp.gate and shared_expert_gate; in_proj_a/b; GDN state, convolution, and norm tensors; all other norms | BF16 |
| MTP tensors | Not present in the published source checkpoint |
| Vision tower and merger tensors | BF16 |
@mlx-node/lm and @mlx-node/core 0.0.8 or newer.
The published prebuilt macOS binary requires macOS 26 or newer; macOS 14 or
newer can use a source build.npm install @mlx-node/lm@^0.0.8 @mlx-node/core@^0.0.81import { loadSession } from '@mlx-node/lm';
2
3const session = await loadSession('./Agents-A1-mxfp4-mlx');
4const result = await session.send('Reply briefly: what can you help with?');
5console.log(result.text);mlx-node at or after PR #131, which made the tuned MX
weight encoders and the NVFP4 power-of-two lift unconditional. v0.0.8 reproduces
the earlier revision of this repository, not the current weights.
The normalized reproducible invocation from the mlx-node repository root was:1mlx convert \
2 --input .cache/models/agents-a1 \
3 --output .cache/models/agents-a1-unsloth-mxfp4-mlx \
4 --model-type qwen3_5_moe \
5 --dtype bfloat16 \
6 --quantize \
7 --q-recipe unsloth \
8 --q-bits 4 \
9 --q-mxfpOK. This functional smoke test is separate from
the performance benchmark below and does not validate model quality.@mlx-node/lm, @mlx-node/core, and
@mlx-node/core-darwin-arm64 0.0.8.temperature: 0, reasoning effort none, 106
prompt tokens, and a 512-token generation limit. All three runs generated 512
tokens and ended with finishReason: "length".| Metric | Median |
|---|---|
| Model load | 37.100 s |
| Time to first token | 293.644 ms |
| Prefill throughput | 360.982 tok/s |
| Decode throughput | 81.422 tok/s |
| Generation wall time | 6.711 s |
| End-to-end wall time | 43.656 s |