GLM-Steam-320B-A18B-v2a-NVFP4

NVFP4 quant of TheDrummer/GLM-Steam-320B-A18B-v2a-TEST (Glm5NextForConditionalGeneration, same architecture as GLM-5.3-Flash). The layout mirrors RedHatAI/GLM-5.3-Flash-NVFP4, so it should load the same way in vLLM / nmoe.

Layout (compressed-tensors, mixed-precision, ~198 GB)

Part Format
Routed experts, layers 3-44 (gate/up/down_proj) NVFP4 W4A4 (nvfp4-pack-quantized): FP4 E2M1 weights + activations, group 16, FP8 E4M3 group scales + FP32 global scale, static per-tensor input global scale
MTP layer 45 routed experts FP8 E4M3 weights, block [128,128] BF16 scales, dynamic per-group(128) FP8 activations (model_mtp.safetensors)
Everything else (attention / KDA, indexer, shared experts, dense layers 0-2, router, lm_head, embeddings, vision tower) BF16 (unchanged)

Recipe

  • llm-compressor 0.15.0, compressed-tensors 0.20.1, transformers 5.21.0
  • QuantizationModifier with config_groups matching the RedHatAI recipe (tensor_group strategy, group 16, memoryless_minmax weight observer, static_minmax input observer), targets re:.*\.layers\.(?:[3-9]|[1-3][0-9]|4[0-4])\.mlp\.experts\..*(gate|up|down)_proj$; ignore re:.*visual.*, lm_head, re:.*mlp\.gate$, re:.*self_attn\.indexer\..*
  • Sequential pipeline (one decoder layer at a time, CPU/disk offload), moe_calibrate_all_experts=True (every expert sees every calibration token)
  • MTP experts (layer 45) were not calibrated (llm-compressor doesn't support MTP calibration); they were FP8 block-quantized data-free afterwards, matching the RedHatAI checkpoint's MTP format

Calibration data

256 samples, max 2048 tokens each (386k tokens total, mean ~1.5k), formatted with the model's chat template:

Status

Untested beyond offline checks: tensor layout, dequantization error against the BF16 weights, and a config parse. No vLLM or generation test was run (the 1x L40S quant box can't hold the ~198 GB checkpoint).

Offline check results: all 36,288 NVFP4 expert linears and 864 FP8 MTP expert linears are present, and every source module is accounted for. Sampled NVFP4 experts from layers 3/4/10/22/33/44 dequantize with mean relative error 0.092 (cos ~0.996) against BF16. FP8 MTP experts dequantize with relative error ~0.026. Non-quantized tensors are bit-identical to the source.

Downloads last month
177
Safetensors
Model size
169B params
Tensor type
F32
·
BF16
·
U8
·
F8_E4M3
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for cgg507/GLM-Steam-320B-A18B-v2a-NVFP4

Quantized
(6)
this model