recipes: how a T2VA-era container upgrades to ref2va

The ref2va heads are the vae/ and audio_vae/ encoders, in every pipeline
directory since the ref2va release -- what a T2VA-era container lacked was the
plugin's declare, not the weights. A reuse with nothing marked changed converts
only the never-declared head weights and copies the rest where they are; the
w8a8 recipe adds that a reuse under it re-quantises the DiT linears on the way,
since a weight copies only at the same encoding.
This commit is contained in:
gearwave00001 committed 2026-10-24 00:34:07 -05:00
1 parent 1ac980a928
commit 6dad488dbe
2 files changed
+24

No files matched your search

+11
View File
@@ -34,6 +34,17 @@
# them when the checkpoint ships them: the audio encoder's f32 chain convs are weight-normalised
# and stored folded; the video encoder's 3x3x3 convs are cast to bf16, which is how the implicit-
# GEMM kernel stores them (conv_in and the k=1 convs read f32 as declared and need no rule).
# The heads are the checkpoint's own: the ref2va encoders are the encoders of the vae/ and
# audio_vae/ folders, shipped in every pipeline directory since the ref2va release. What was
# missing from a T2VA-era container was the plugin's declare, not the weights, so upgrading
# such a container is a reuse with nothing marked changed: every weight it holds copies where
# it is and only the head weights it never declared get converted.
#
# rad-convert <the directory the old container was converted from> \
# --recipe data/recipes/minimax-h3-fp8.recipe --reuse <the old container> \
# -o <the upgraded container>
#
# Serve the result with the minimaxh3 plugin that declares the encoders.
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
+13
View File
@@ -49,6 +49,19 @@
# them when the checkpoint ships them: the audio encoder's f32 chain convs are weight-normalised
# and stored folded; the video encoder's 3x3x3 convs are cast to bf16, which is how the implicit-
# GEMM kernel stores them (conv_in and the k=1 convs read f32 as declared and need no rule).
# The heads are the checkpoint's own: the ref2va encoders are the encoders of the vae/ and
# audio_vae/ folders, shipped in every pipeline directory since the ref2va release. What was
# missing from a T2VA-era container was the plugin's declare, not the weights, so upgrading
# such a container is a reuse with nothing marked changed: every weight it holds copies where
# it is and only the head weights it never declared get converted. Reusing an fp8 container
# under this recipe re-quantises the DiT's four per-token linears while it is at it, since a
# weight copies only at the same encoding.
#
# rad-convert <the directory the old container was converted from> \
# --recipe data/recipes/minimax-h3-w8a8.recipe --reuse <the old container> \
# -o <the upgraded container>
#
# Serve the result with the minimaxh3 plugin's W8A8 DiT path and the encoder declare.
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