Downloads · 30 days
78
9% of all-time downloads
Brooooooklyn/Qwen-AgentWorld-35B-A3B-mxfp4-mlx
Qwen-AgentWorld-35B-A3B-mxfp4-mlx is a text generation model from Brooooooklyn. Use it when you need the model to write or continue text. It is set up for mlx-node. The card lists the license as apache-2.0.
Brooooooklyn/Qwen-AgentWorld-35B-A3B-mxfp4-mlx is an Apple Silicon MLX quantization of Qwen/Qwen-AgentWorld-35B-A3B, a language world model for agentic environment simulation. It uses the 40-layer Qwen3.5 MoE architec…
Downloads · 30 days
78
9% of all-time downloads
All-time downloads
851
Public
Parameters
34.7B
46.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors23.3 GB · 100%
How the weights are stored.
U3234.1B · 98%
From the Hugging Face model README
Brooooooklyn/Qwen-AgentWorld-35B-A3B-mxfp4-mlx
is an Apple Silicon MLX quantization of
Qwen/Qwen-AgentWorld-35B-A3B,
a language world model for agentic environment simulation. It uses the
40-layer Qwen3.5 MoE architecture with 256 experts, top-8 routing, hybrid
linear/full attention, and an MTP-capable config. The published source
checkpoint is language-model-only (language_model_only: true) and does not
include an mtp.* tensor subtree.
This model is part of the Qwen Unsloth tensor-class recipe for MLX on macOS and DGX collection.
The source was the BF16 checkpoint at revision
a6a5fe5200fae283a5fd1247711563d397e7c2a0.
The MXFP4 and MXFP8 weights are re-encoded. mlx-node now picks each MX block's
shared E8M0 exponent itself instead of rounding 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%.
Weight bytes changed; the tensor-class map, shard layout and tensor counts are unchanged. Earlier revisions remain in this repository's history.
This is a data-free, weight-only Apple translation of the Unsloth Qwen3.6 NVFP4 recipe:
This ports the recipe's tensor-class selection. It does not claim numerical parity with NVIDIA NVFP4/FP8 activation quantization. Both MXFP classes use MLX weight-only quantized matmul with BF16/A16 activations. The artifact contains no activation-calibration or FP8 KV-cache-calibration data, global scales, or W4A4/W8A8 execution metadata. No imatrix, calibration dataset, or AWQ-style pre-scaling was used, and no upstream numerical or performance parity is claimed.
| 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 | Not present in the language-model-only source checkpoint |
The resulting config contains 192 MXFP4 module entries and 179 MXFP8 module entries. The final eight FFN layers are intentionally MXFP8; this is the regular, accuracy-oriented 35B recipe rather than the all-FFN-FP4 "Fast" variant.
This checkpoint requires @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.8
import { loadSession } from '@mlx-node/lm';
const session = await loadSession('./Qwen-AgentWorld-35B-A3B-mxfp4-mlx');
const result = await session.send('Predict the next state after an agent opens a terminal.');
console.log(result.text);
Converter: 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:
mlx convert \
--input .cache/models/qwen-agentworld-35b-a3b \
--output .cache/models/qwen-agentworld-35b-a3b-unsloth-mxfp4-mlx-fresh \
--model-type qwen3_5_moe \
--dtype bfloat16 \
--quantize \
--q-recipe unsloth \
--q-mxfp
The -fresh suffix is only the local conversion directory; the canonical Hub
repository is the ID shown at the top of this card.
A local mlx-node load-and-generate smoke test completed successfully and
produced the one-token output OK. The output's tokenizer and preserved BF16
tensors were also checked against the named Qwen-AgentWorld source checkpoint.
This functional smoke test is separate from the performance benchmark below and
does not validate model quality.
Measured on an Apple M5 Max with 128 GiB of unified memory, Darwin
25.5.0/arm64, Node.js 24.13.1, and @mlx-node/lm, @mlx-node/core, and
@mlx-node/core-darwin-arm64 0.0.8.
The table reports the median of three measured runs. Each run used a fresh
child process and fresh model load, with zero warmups and a 60-second cooldown.
Generation was deterministic: 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 | 107.629 s |
| Time to first token | 359.885 ms |
| Prefill throughput | 294.539 tok/s |
| Decode throughput | 83.020 tok/s |
| Generation wall time | 6.613 s |
| End-to-end wall time | 114.441 s |
Raw per-run samples and the machine-readable summary are available in benchmark.json.
The model files were read from external storage. Load timing is sensitive to external-storage and OS file-cache state; the three measured loads ranged from 100.193 to 288.619 seconds. Treat load time as host- and cache-specific. These measurements describe only this prompt and configuration and must not be used to infer model quality.
The source model card declares the Apache-2.0 license. Model capability and training credit belong to the Qwen Team. The tensor-class recipe is credited to Unsloth, and this repository only converts the BF16 source weights to an MLX-native mixed MXFP4/MXFP8 representation.