Muse-EAGLE4-FP8

Built with Muse Spark Open.

An A8W8 FP8 version of the EAGLE-4 draft amd/Muse-Spark-Open-EAGLE4 (revision 79087bda063c0c9aae63ca39f1a51791f64c19a2, epoch 6, stage-2 rank-128 head) for the target amd/Muse-Spark-Open-816B-A42B-Quark-MXFP4, quantized with AMD Quark. The draft takes its token embeddings from the target and cannot generate text without it.

Quantization

Quantized The 7 linear layers of the draft's decoder layer: midlayer.self_attn.{q,k,v,o}_proj, midlayer.mlp.{gate,up,down}_proj
Scheme Quark fp8: FP8 E4M3 weights, per-tensor; FP8 E4M3 input activations, per-tensor, static (calibrated)
Kept in bf16 fc, lm_head, efficient_lm_head, efficient_lm_head_down_proj, all norms (byte-identical to the source)
Calibration 112 sequences (184,101 tokens) of the draft's real inputs (target hidden states of layers 1/29/57 and token embeddings), captured from the target served by SGLang on SPEED-Bench qualitative prompts plus the target's greedy completions
Tool AMD Quark at commit 807bbe486d (0.15+807bbe486d, AMD-NeuralOpt/Quark main), eager API (ModelQuantizer.quantize_model, freeze, export_safetensors) on a plain-PyTorch rebuild of the draft that matches SGLang's draft output to 0.72 % relative error
Files model.safetensors 4.64 GB (sha256 ec0649039f63ab1b37b7080c1963b4407cf14a76ba7af7fcb5b84a3d4491c484), config.json with quantization_config (quant_method: quark)

Results (8 ร— AMD Instinct MI350X, TP 4 / EP 4, SGLang + EAGLE-4 harness, greedy)

Concurrency 1, SPEED-Bench qualitative (110 prompts, up to 4,096 output tokens), EAGLE-4 serve tree 12/8/32:

Draft Accept length Output tok/s TPOT (ms)
bf16 (amd/Muse-Spark-Open-EAGLE4) 5.21 233.6 4.23
FP8 (this model) 5.18 234.8 4.21

Held out from calibration (16 sequences, 28,916 tokens), the FP8 draft picks the same top-1 token as the bf16 draft for 97.58 % of positions (relative error of the draft output 4.6 %).

Results at 1K input / 8K output (SPEED-Bench throughput_1k, concurrency 4 to 256) will be added once the prompt set is built with NVIDIA's specdec_bench/prepare_data.py: about 40 % of the rows in the Hugging Face files are placeholders that the script fills from their original sources.

Serving

The draft loads in SGLang with the EAGLE-4 harness (eagle-harness 0.1.0) and --speculative-draft-model-quantization quark. It needs one fix to the harness loader (repro/patches/eagle_harness-optional-params.patch): a quantized draft gets SGLang's optional k_scale/v_scale parameters, which the released loader reports as missing.

Reproduce

repro/REPRODUCE.md gives every step, version, image digest and hash used for the results above.

License

The Muse Spark Open license (LICENSE.md) and its Usage Policy (USE_POLICY.md) apply to this model.

Downloads last month
39
Safetensors
Model size
3B params
Tensor type
BF16
ยท
F8_E4M3
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for ZachWangAMD/Muse-EAGLE4-FP8

Quantized
(1)
this model