Archived
radiance 1.13.0
New models: - Tencent Hy-Memory (HYV3) from its BF16, FP8 and GGUF checkpoints, with its native tool calls - M2XFP4: metadata-augmented MXFP4 weights for Qwen3.8-27B and its DFlash2 drafter (top-1 89.1% -> 92.4% against plain MXFP4), its quantiser and recipe, and ParoQuant's M2XFP4 checkpoints - Gemma 4 E2B/E4B audio input; NVIDIA-Nemotron-3.5-Bolt-E4B in int8 and 4-bit, on two cards by default; Ornith-1.5-122B compose files Speed: - Weight reads beside the decode all-reduces (qwen35_fp8, gemma3; --weight-prefetch, on by default): the 27B MXFP4 with DFlash2 61.2 -> 67.9 tok/s at c1, TranslateGemma 27B +13% - Head-256 split-KV decode attention at 256 workgroups and without bank conflicts (27B: +3-5% a step at 25-41K context), and the prefill KV split for small launches (a short turn over a long context decodes the other sequences 27% faster in that step) - MXFP4 decode gate_up, activation and fp8 quantiser in one launch (27B, Gemma 3 up to 64 rows: TranslateGemma +2-5% at 2-8 streams) - ParoQuant int4/int5 tiled GEMMs 6-9% faster - Speculation: a step's tokens are sent before the drafter's passes end, no step waits behind one that ends its requests, and the MTP head's first draft no longer collapses after short chats in the prefix cache Features: - --kv-resident N: KV streaming for a context bigger than VRAM (qwen4exp_fp8, GLM-5.3) - MiniMax-H3: reference media and keyframe conditioning with the VAE encoders - Krea 2 rebalance presets balanced, detail and subtle - The dashboard's request history; a stall watch that reports a frozen step's thread and stack - rad-tune at the served configuration, collectives measured as the exchange; Gemma 4 E2B/E4B's per-layer embeddings read ahead off the step path - A GPTQ calibration tap and recipe for Gemma 4 31B's w4a8 container Fixes: - The two-rank all-reduce checks that a peer's push has landed before reducing it - z-lab's DFlash drafter on Gemma 4 31B keeps drafting after a prefix-cache hit - MiniMax-H3's modulation rows Changes: Plugin ABI 31: out-of-tree plugins must be rebuilt. RADIANCE_PREFETCH_BESIDE is --weight-prefetch now; RADIANCE_NO_HUGE_PAGES, RADIANCE_IDS_EARLY, RADIANCE_ATTN_BAND_SPLIT, R4D_PREFILL_SPLITS, RAD_PLE_TIMING and RAD_PLE_CACHE_ROWS are gone.
This commit is contained in:
commit
6645337f69
198 files changed
+20904
-3240
No files matched your search
@@ -0,0 +1,62 @@
|
||||
# minimax-h3-curve-fp8.recipe -- MiniMax-H3 from a curve-form checkpoint, block-scaled fp8 linears.
|
||||
#
|
||||
# minimax-h3-fp8.recipe without its modulation rule. A curve-form checkpoint (config.json's
|
||||
# adaln_curve_grid set) ships its timestep embeddings precomputed, adaln_t_table, in place of the
|
||||
# sinusoid and its MLP, and its modulation projections take eight inputs. A 128 x 128 E4M3 block
|
||||
# does not fit an eight-column weight, so the plugin declares those projections bf16 and they are
|
||||
# stored as the checkpoint holds them; the table matches no rule and keeps its f32. Every other
|
||||
# weight converts as minimax-h3-fp8.recipe describes.
|
||||
#
|
||||
# rad-convert <pipeline directory with the curve-form transformer/> \
|
||||
# --recipe data/recipes/minimax-h3-curve-fp8.recipe -o minimax-h3-curve-fp8.rad
|
||||
#
|
||||
# A container of the base model supplies every weight outside the DiT, with the transformer's
|
||||
# tensor names (one a line, "transformer." first) listed as changed:
|
||||
#
|
||||
# rad-convert <that directory> --recipe data/recipes/minimax-h3-curve-fp8.recipe \
|
||||
# --reuse minimax-h3-fp8.rad --changed <the transformer's tensor names> \
|
||||
# -o minimax-h3-curve-fp8.rad
|
||||
#
|
||||
# A checkpoint distributed as a single ComfyUI file is laid out as that directory first: the
|
||||
# transformer's tensors under their diffusers names and dtypes in transformer/, and its
|
||||
# config.json with adaln_curve_grid.
|
||||
|
||||
te.blk.*.attn_qkv.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
te.blk.*.attn_output.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
te.blk.*.ffn_gate_up.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
te.blk.*.ffn_down.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
te.blk.*.attn_norm.weight cast dtype=f32
|
||||
te.blk.*.ffn_norm.weight cast dtype=f32
|
||||
ref.blk.*.attn_qkv.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
ref.blk.*.attn_output.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
ref.blk.*.ffn_gate_up.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
ref.blk.*.ffn_down.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.blk.*.attn_qkv.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.blk.*.attn_output.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.blk.*.ffn_gate_up.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.blk.*.ffn_down.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
vae.blk.*.attn_qkv.weight cast dtype=bf16
|
||||
vae.blk.*.attn_out.weight cast dtype=bf16
|
||||
vae.blk.*.ffn_up.weight cast dtype=bf16
|
||||
vae.blk.*.ffn_down.weight cast dtype=bf16
|
||||
vae.proj_out.* cast dtype=bf16
|
||||
aud.*.weight cast dtype=f32
|
||||
# The audio encoder's strided downsamplers and its attention and MLP block run in bf16 inside the
|
||||
# f32 chain (declare_aenc): conv1d, layernorm and gemm take one dtype for every operand, so their
|
||||
# weights are cast. The chain's own convolutions are stored f32, their weight norms folded.
|
||||
aenc.d*.w cast dtype=bf16
|
||||
aenc.d*.b cast dtype=bf16
|
||||
aenc.pb.* cast dtype=bf16
|
||||
aenc.b*.u*.c1.weight cast dtype=f32
|
||||
aenc.b*.u*.c2.weight cast dtype=f32
|
||||
aenc.cin.weight cast dtype=f32
|
||||
aenc.fin.weight cast dtype=f32
|
||||
# The video encoder's 3x3x3 convolutions are bf16, as the implicit-GEMM kernel reads them;
|
||||
# conv_in (three input channels) and the 1x1x1 shortcut and quant convolutions read their f32
|
||||
# weights as they are, and the norms and biases need no rule.
|
||||
venc.l*.b*.c1w cast dtype=bf16
|
||||
venc.l*.b*.c2w cast dtype=bf16
|
||||
venc.l*.dnw cast dtype=bf16
|
||||
venc.cout.weight cast dtype=bf16
|
||||
ups.embed.* cast dtype=f32
|
||||
ups.*.emb_layers.* cast dtype=f32
|
||||
@@ -0,0 +1,62 @@
|
||||
# minimax-h3-curve-w8a8.recipe -- MiniMax-H3 from a curve-form checkpoint, the DiT at int8 (W8A8).
|
||||
#
|
||||
# minimax-h3-w8a8.recipe without its modulation rule. A curve-form checkpoint (config.json's
|
||||
# adaln_curve_grid set) ships its timestep embeddings precomputed, adaln_t_table, in place of the
|
||||
# sinusoid and its MLP, and its modulation projections take eight inputs. A 128 x 128 E4M3 block
|
||||
# does not fit an eight-column weight, so the plugin declares those projections bf16 and they are
|
||||
# stored as the checkpoint holds them; the table matches no rule and keeps its f32. Every other
|
||||
# weight converts as minimax-h3-w8a8.recipe describes.
|
||||
#
|
||||
# rad-convert <pipeline directory with the curve-form transformer/> \
|
||||
# --recipe data/recipes/minimax-h3-curve-w8a8.recipe -o minimax-h3-curve-w8a8.rad
|
||||
#
|
||||
# A container of the base model supplies every weight outside the DiT, with the transformer's
|
||||
# tensor names (one a line, "transformer." first) listed as changed:
|
||||
#
|
||||
# rad-convert <that directory> --recipe data/recipes/minimax-h3-curve-w8a8.recipe \
|
||||
# --reuse minimax-h3-w8a8.rad --changed <the transformer's tensor names> \
|
||||
# -o minimax-h3-curve-w8a8.rad
|
||||
#
|
||||
# A checkpoint distributed as a single ComfyUI file is laid out as that directory first: the
|
||||
# transformer's tensors under their diffusers names and dtypes in transformer/, and its
|
||||
# config.json with adaln_curve_grid.
|
||||
|
||||
te.blk.*.attn_qkv.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
te.blk.*.attn_output.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
te.blk.*.ffn_gate_up.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
te.blk.*.ffn_down.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
te.blk.*.attn_norm.weight cast dtype=f32
|
||||
te.blk.*.ffn_norm.weight cast dtype=f32
|
||||
ref.blk.*.attn_qkv.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
ref.blk.*.attn_output.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
ref.blk.*.ffn_gate_up.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
ref.blk.*.ffn_down.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.blk.*.attn_qkv.weight rtn codes=i8 group=128 scale=bf16 clamp=sym
|
||||
dit.blk.*.attn_output.weight rtn codes=i8 group=128 scale=bf16 clamp=sym
|
||||
dit.blk.*.ffn_gate_up.weight rtn codes=i8 group=128 scale=bf16 clamp=sym
|
||||
dit.blk.*.ffn_down.weight rtn codes=i8 group=128 scale=bf16 clamp=sym
|
||||
vae.blk.*.attn_qkv.weight cast dtype=bf16
|
||||
vae.blk.*.attn_out.weight cast dtype=bf16
|
||||
vae.blk.*.ffn_up.weight cast dtype=bf16
|
||||
vae.blk.*.ffn_down.weight cast dtype=bf16
|
||||
vae.proj_out.* cast dtype=bf16
|
||||
aud.*.weight cast dtype=f32
|
||||
# The audio encoder's strided downsamplers and its attention and MLP block run in bf16 inside the
|
||||
# f32 chain (declare_aenc): conv1d, layernorm and gemm take one dtype for every operand, so their
|
||||
# weights are cast. The chain's own convolutions are stored f32, their weight norms folded.
|
||||
aenc.d*.w cast dtype=bf16
|
||||
aenc.d*.b cast dtype=bf16
|
||||
aenc.pb.* cast dtype=bf16
|
||||
aenc.b*.u*.c1.weight cast dtype=f32
|
||||
aenc.b*.u*.c2.weight cast dtype=f32
|
||||
aenc.cin.weight cast dtype=f32
|
||||
aenc.fin.weight cast dtype=f32
|
||||
# The video encoder's 3x3x3 convolutions are bf16, as the implicit-GEMM kernel reads them;
|
||||
# conv_in (three input channels) and the 1x1x1 shortcut and quant convolutions read their f32
|
||||
# weights as they are, and the norms and biases need no rule.
|
||||
venc.l*.b*.c1w cast dtype=bf16
|
||||
venc.l*.b*.c2w cast dtype=bf16
|
||||
venc.l*.dnw cast dtype=bf16
|
||||
venc.cout.weight cast dtype=bf16
|
||||
ups.embed.* cast dtype=f32
|
||||
ups.*.emb_layers.* cast dtype=f32
|
||||
@@ -31,6 +31,15 @@
|
||||
# four patch projections (f32), every norm and bias. The video decoder's linears are cast to bf16
|
||||
# from the checkpoint's f32, its norms, layer scales, biases and register tokens stay f32; the
|
||||
# audio decoder stays f32 (its weight norms folded at convert).
|
||||
#
|
||||
# The VAEs' encoders, which keyframes and reference media go through, are the encoder halves of
|
||||
# vae/ and audio_vae/ and convert with the rest: the audio encoder's chain convolutions f32 with
|
||||
# their weight norms folded, the video encoder's 3x3x3 convolutions bf16. A container converted
|
||||
# before the plugin declared the encoders gains them by a reuse with nothing marked changed:
|
||||
# every weight it holds is copied and only the encoders' are converted.
|
||||
#
|
||||
# rad-convert <the directory the container was converted from> \
|
||||
# --recipe data/recipes/minimax-h3-fp8.recipe --reuse <the container> -o <the new container>
|
||||
|
||||
te.blk.*.attn_qkv.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
te.blk.*.attn_output.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
@@ -53,5 +62,22 @@ vae.blk.*.ffn_up.weight cast dtype=bf16
|
||||
vae.blk.*.ffn_down.weight cast dtype=bf16
|
||||
vae.proj_out.* cast dtype=bf16
|
||||
aud.*.weight cast dtype=f32
|
||||
# The audio encoder's strided downsamplers and its attention and MLP block run in bf16 inside the
|
||||
# f32 chain (declare_aenc): conv1d, layernorm and gemm take one dtype for every operand, so their
|
||||
# weights are cast. The chain's own convolutions are stored f32, their weight norms folded.
|
||||
aenc.d*.w cast dtype=bf16
|
||||
aenc.d*.b cast dtype=bf16
|
||||
aenc.pb.* cast dtype=bf16
|
||||
aenc.b*.u*.c1.weight cast dtype=f32
|
||||
aenc.b*.u*.c2.weight cast dtype=f32
|
||||
aenc.cin.weight cast dtype=f32
|
||||
aenc.fin.weight cast dtype=f32
|
||||
# The video encoder's 3x3x3 convolutions are bf16, as the implicit-GEMM kernel reads them;
|
||||
# conv_in (three input channels) and the 1x1x1 shortcut and quant convolutions read their f32
|
||||
# weights as they are, and the norms and biases need no rule.
|
||||
venc.l*.b*.c1w cast dtype=bf16
|
||||
venc.l*.b*.c2w cast dtype=bf16
|
||||
venc.l*.dnw cast dtype=bf16
|
||||
venc.cout.weight cast dtype=bf16
|
||||
ups.embed.* cast dtype=f32
|
||||
ups.*.emb_layers.* cast dtype=f32
|
||||
@@ -0,0 +1,62 @@
|
||||
# minimax-h3-w8a8.recipe -- MiniMax-H3 with the DiT's per-token linears at int8 (W8A8).
|
||||
#
|
||||
# minimax-h3-fp8.recipe with the four per-token linears of the DiT's blocks (qkv, output, gate_up,
|
||||
# down) quantised to symmetric int8 with a bf16 scale per 128 columns of a row, and read by the
|
||||
# w8a8 GEMMs with int8 activations. At one byte a weight either way the container and the served
|
||||
# memory are the fp8 sizes; int8 spreads 255 uniform levels over each group's own range where E4M3
|
||||
# has three mantissa bits. The text encoder, the token refiner and the modulation projections stay
|
||||
# E4M3: they run once a request or once a step, not on every video token. The minimaxh3 plugin
|
||||
# serves the DiT in either encoding.
|
||||
#
|
||||
# rad-convert <MiniMax-H3 pipeline directory> --recipe data/recipes/minimax-h3-w8a8.recipe \
|
||||
# -o minimax-h3-w8a8.rad
|
||||
#
|
||||
# A container of minimax-h3-fp8.recipe supplies every other weight. A reused weight is copied only
|
||||
# at the same encoding, so the DiT's four linears are quantised again from the checkpoint:
|
||||
#
|
||||
# rad-convert <pipeline directory> --recipe data/recipes/minimax-h3-w8a8.recipe \
|
||||
# --reuse minimax-h3-fp8.rad -o minimax-h3-w8a8.rad
|
||||
#
|
||||
# The directory's contents, FastH3, the latent upscaler, the VAEs' encoders and which weights keep
|
||||
# the checkpoint's precision are as minimax-h3-fp8.recipe describes them.
|
||||
|
||||
te.blk.*.attn_qkv.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
te.blk.*.attn_output.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
te.blk.*.ffn_gate_up.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
te.blk.*.ffn_down.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
te.blk.*.attn_norm.weight cast dtype=f32
|
||||
te.blk.*.ffn_norm.weight cast dtype=f32
|
||||
ref.blk.*.attn_qkv.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
ref.blk.*.attn_output.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
ref.blk.*.ffn_gate_up.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
ref.blk.*.ffn_down.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.blk.*.attn_qkv.weight rtn codes=i8 group=128 scale=bf16 clamp=sym
|
||||
dit.blk.*.attn_output.weight rtn codes=i8 group=128 scale=bf16 clamp=sym
|
||||
dit.blk.*.ffn_gate_up.weight rtn codes=i8 group=128 scale=bf16 clamp=sym
|
||||
dit.blk.*.ffn_down.weight rtn codes=i8 group=128 scale=bf16 clamp=sym
|
||||
dit.blk.*.ada*.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
vae.blk.*.attn_qkv.weight cast dtype=bf16
|
||||
vae.blk.*.attn_out.weight cast dtype=bf16
|
||||
vae.blk.*.ffn_up.weight cast dtype=bf16
|
||||
vae.blk.*.ffn_down.weight cast dtype=bf16
|
||||
vae.proj_out.* cast dtype=bf16
|
||||
aud.*.weight cast dtype=f32
|
||||
# The audio encoder's strided downsamplers and its attention and MLP block run in bf16 inside the
|
||||
# f32 chain (declare_aenc): conv1d, layernorm and gemm take one dtype for every operand, so their
|
||||
# weights are cast. The chain's own convolutions are stored f32, their weight norms folded.
|
||||
aenc.d*.w cast dtype=bf16
|
||||
aenc.d*.b cast dtype=bf16
|
||||
aenc.pb.* cast dtype=bf16
|
||||
aenc.b*.u*.c1.weight cast dtype=f32
|
||||
aenc.b*.u*.c2.weight cast dtype=f32
|
||||
aenc.cin.weight cast dtype=f32
|
||||
aenc.fin.weight cast dtype=f32
|
||||
# The video encoder's 3x3x3 convolutions are bf16, as the implicit-GEMM kernel reads them;
|
||||
# conv_in (three input channels) and the 1x1x1 shortcut and quant convolutions read their f32
|
||||
# weights as they are, and the norms and biases need no rule.
|
||||
venc.l*.b*.c1w cast dtype=bf16
|
||||
venc.l*.b*.c2w cast dtype=bf16
|
||||
venc.l*.dnw cast dtype=bf16
|
||||
venc.cout.weight cast dtype=bf16
|
||||
ups.embed.* cast dtype=f32
|
||||
ups.*.emb_layers.* cast dtype=f32
|
||||
@@ -10,7 +10,7 @@
|
||||
# serves the Quark, ParoQuant and NVFP4 releases; without them a bf16 checkpoint selects
|
||||
# qwen35_bf16, which has no 4-bit GEMM.
|
||||
#
|
||||
# q38-27b-mxfp4-df2.recipe with its 4-bit rules at M2XFP4 (`m2xfp4`, docs/TOOLS.md): the MXFP4
|
||||
# q38-27b-mxfp4-df2.recipe with its 4-bit rules at M2XFP4 (`m2xfp4`, spec.md): the MXFP4
|
||||
# codes and e8m0 exponent per 32 of K plus one metadata byte a group, whose four 2-bit extra
|
||||
# mantissas refine the exponent per 8 columns, chosen by least squared error from the bf16 source,
|
||||
# once. The delta net's a/b projections, the norms, the embedding and the vision tower stay bf16;
|
||||
|
||||
Reference in new issue
Block a user