Archived
radiance 1.9.0
New models: - LTX-2.5 (base and distilled): video with a stereo soundtrack from text or from text and a first frame, on one card, with its duration head, tiled VAE decoding, the diffusion decoder and the x2 latent upsampler - Krea 2 Raw and Turbo, and FLUX.3 [klein] and its base: text to image, and for FLUX.3 edits from up to ten reference pictures, on one card - GLM-5.3-Flash from AMD's Quark MXFP4 export, on eight cards (John McDonough, Nunze) - Gemma 3 / TranslateGemma 27B with an optional DFlash2 drafter (mici81) Engine: - --kv-cache-dtype fp8_v4 and k6_v4 for Gemma 3 and Qwen3.8-Flash-Next (mici81) - the rotated int8 trunk (i8a8h) for Qwen3.8-27B (eddie168168) - eight-rank all-reduce bands, weighted shards and pieces (Nunze); --host-headroom-mib (sfjes) - the dashboard shows the single-stream decode floor and its most recent window (Memoria) Fixes: prefix-cache reservations kept until their save lands (baKon), tool calls in Responses namespaces (#119), system messages merged when a template refuses several (#137), a prefill continued with no open step (#127), calibration of a Gram accumulation (#122), JSON Schema patterns read unanchored (davetha), GLM-style tool calls, the KV floor counting every sequence's state. Plugin ABI 24.
This commit is contained in:
1 parent
778cbf315e
commit
685ec5bd85
136 files changed
+18917
-3821
No files matched your search
@@ -0,0 +1,24 @@
|
||||
# flux-3-klein-fp8.recipe -- FLUX.3 [klein] (or its base) with block-scaled fp8 linears.
|
||||
#
|
||||
# rad-convert <flux-3-image-klein pipeline directory> --recipe data/recipes/flux-3-klein-fp8.recipe \
|
||||
# -o flux-3-klein-fp8.rad
|
||||
#
|
||||
# Every linear of the text encoder's language model and of the DiT's early and joint blocks
|
||||
# becomes E4M3 codes with a bf16 scale a 128 x 128 block, read by the fp8a8 GEMMs over activations
|
||||
# quantised the same way. What stays bf16 is read once a pass or less: the embedding table, the
|
||||
# embedders, the timestep MLPs, the modulations, the output layer and the VAE. The language
|
||||
# model's layers past its last tap (32 of 36) are not carried.
|
||||
|
||||
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
|
||||
dit.mode.*.attn_qkv.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.mode.*.attn_output.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.mode.*.ffn_in.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.mode.*.ffn_out.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.single.*.attn_qkv.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.single.*.attn_output.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.single.*.ffn_in.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.single.*.ffn_out.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
vae.* cast dtype=bf16
|
||||
@@ -0,0 +1,23 @@
|
||||
# krea-2-bf16.recipe -- Krea 2 (Raw or Turbo) at bf16.
|
||||
#
|
||||
# rad-convert <Krea-2-Raw or -Turbo pipeline directory> --recipe data/recipes/krea-2-bf16.recipe \
|
||||
# -o krea-2-bf16.rad
|
||||
#
|
||||
# Every linear stays as the release holds it (bf16). The language model's layers past its last tap
|
||||
# (35 of 36) are not carried. The first matching rule decides.
|
||||
|
||||
# The release stores its norms, modulation tables, embedders, projector and output layer f32.
|
||||
# diffusers keeps every norm f32 and runs the rest bf16. Here the text fusion's norms, the q/k norms
|
||||
# and txt_in's norm stay f32; the DiT's norm1, norm2 and final norm are bf16, the fused modulation
|
||||
# kernel's operand, with the rest.
|
||||
fuse.*.norm1.weight cast dtype=f32
|
||||
fuse.*.norm2.weight cast dtype=f32
|
||||
fuse.*.q_norm.weight cast dtype=f32
|
||||
fuse.*.k_norm.weight cast dtype=f32
|
||||
dit.blk.*.q_norm.weight cast dtype=f32
|
||||
dit.blk.*.k_norm.weight cast dtype=f32
|
||||
txt.norm.weight cast dtype=f32
|
||||
fuse.* cast dtype=bf16
|
||||
txt.* cast dtype=bf16
|
||||
dit.* cast dtype=bf16
|
||||
vae.* cast dtype=bf16
|
||||
@@ -0,0 +1,41 @@
|
||||
# krea-2-fp8.recipe -- Krea 2 (Raw or Turbo) with block-scaled fp8 linears.
|
||||
#
|
||||
# rad-convert <Krea-2-Raw or -Turbo pipeline directory> --recipe data/recipes/krea-2-fp8.recipe \
|
||||
# -o krea-2-fp8.rad
|
||||
#
|
||||
# Every linear of the text encoder's language model, of the text fusion's blocks and of the DiT's
|
||||
# 28 blocks becomes E4M3 codes with a bf16 scale a 128 x 128 block, read by the fp8a8 GEMMs over
|
||||
# activations quantised the same way. What stays bf16 is read once a pass or less: the embedding
|
||||
# table, txt_in, img_in, the timestep MLP and modulation, the blocks' tables, the final layer and
|
||||
# the VAE. The language model's layers past its last tap (35 of 36) are not carried.
|
||||
|
||||
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
|
||||
fuse.*.attn_qkv.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
fuse.*.attn_gate.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
fuse.*.attn_output.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
fuse.*.ffn_gate_up.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
fuse.*.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_gate.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
|
||||
|
||||
# The release stores its norms, modulation tables, embedders, projector and output layer f32.
|
||||
# diffusers keeps every norm f32 and runs the rest bf16. Here the text fusion's norms, the q/k norms
|
||||
# and txt_in's norm stay f32; the DiT's norm1, norm2 and final norm are bf16, the fused modulation
|
||||
# kernel's operand, with the rest.
|
||||
fuse.*.norm1.weight cast dtype=f32
|
||||
fuse.*.norm2.weight cast dtype=f32
|
||||
fuse.*.q_norm.weight cast dtype=f32
|
||||
fuse.*.k_norm.weight cast dtype=f32
|
||||
dit.blk.*.q_norm.weight cast dtype=f32
|
||||
dit.blk.*.k_norm.weight cast dtype=f32
|
||||
txt.norm.weight cast dtype=f32
|
||||
fuse.* cast dtype=bf16
|
||||
txt.* cast dtype=bf16
|
||||
dit.* cast dtype=bf16
|
||||
vae.* cast dtype=bf16
|
||||
@@ -0,0 +1,14 @@
|
||||
# ltx-2.5-bf16.recipe -- LTX-2.5 (the base or the distilled DiT) at the checkpoint's precision.
|
||||
#
|
||||
# rad-convert <LTX-2.5 diffusers pipeline directory> --recipe data/recipes/ltx-2.5-bf16.recipe \
|
||||
# -o ltx-2.5-bf16.rad
|
||||
#
|
||||
# The text encoder, the connectors, the DiT, both VAEs and the latent upsampler are kept bf16. The
|
||||
# vocoders run in f32 and a pipeline saved in bf16 holds them bf16, so they are cast here, once; the
|
||||
# spectrogram bases stay bf16.
|
||||
|
||||
voc.conv_* cast dtype=f32
|
||||
voc.upsamplers.* cast dtype=f32
|
||||
voc.resnets.* cast dtype=f32
|
||||
voc.act_out.* cast dtype=f32
|
||||
bwe.* cast dtype=f32
|
||||
@@ -0,0 +1,37 @@
|
||||
# ltx-2.5-fp8.recipe -- LTX-2.5 (the base or the distilled DiT) with block-scaled fp8 linears.
|
||||
#
|
||||
# rad-convert <LTX-2.5 diffusers pipeline directory> --recipe data/recipes/ltx-2.5-fp8.recipe \
|
||||
# -o ltx-2.5-fp8.rad
|
||||
#
|
||||
# Every linear of the text encoder (Gemma 4), of the two connectors and of the DiT's 48 blocks
|
||||
# becomes E4M3 codes with a bf16 scale a 128 x 128 block, read by the fp8a8 GEMMs over activations
|
||||
# quantised the same way; the biases stay bf16 and are added after. What stays bf16 is small or
|
||||
# read once a step: the attention gates' logits, the q and k norms, the patch projections, the
|
||||
# timestep MLPs and the tables, the connectors' registers, both VAEs and the latent upsampler.
|
||||
# The vocoders are cast to f32, which their convolutions and anti-aliased activations run in
|
||||
# (a pipeline saved in bf16 holds them bf16); the spectrogram bases stay bf16.
|
||||
|
||||
te.blk.*.attn_q.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
te.blk.*.attn_k.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
te.blk.*.attn_v.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
|
||||
conn.*.proj.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
conn.*.blk.*.qkv.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
conn.*.blk.*.out.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
conn.*.blk.*.ff_up.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
conn.*.blk.*.ff_down.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.blk.*.qkv.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.blk.*.q.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.blk.*.kv.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.blk.*.out.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.blk.*.ff_up.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.blk.*.ff_down.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.blk.*.audio_ff_up.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
dit.blk.*.audio_ff_down.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
||||
voc.conv_* cast dtype=f32
|
||||
voc.upsamplers.* cast dtype=f32
|
||||
voc.resnets.* cast dtype=f32
|
||||
voc.act_out.* cast dtype=f32
|
||||
bwe.* cast dtype=f32
|
||||
Reference in new issue
Block a user