From 6dad488dbeee0f209f242446b95e6a4055a25a97 Mon Sep 17 00:00:00 2001 From: gearwave00001 Date: Sat, 24 Oct 2026 00:34:07 -0500 Subject: [PATCH] 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. --- data/recipes/minimax-h3-fp8.recipe | 11 +++++++++++ data/recipes/minimax-h3-w8a8.recipe | 13 +++++++++++++ 2 files changed, 24 insertions(+) diff --git a/data/recipes/minimax-h3-fp8.recipe b/data/recipes/minimax-h3-fp8.recipe index 9c158b3d..f3e01e7c 100644 --- a/data/recipes/minimax-h3-fp8.recipe +++ b/data/recipes/minimax-h3-fp8.recipe @@ -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 \ +# --recipe data/recipes/minimax-h3-fp8.recipe --reuse \ +# -o +# +# 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 diff --git a/data/recipes/minimax-h3-w8a8.recipe b/data/recipes/minimax-h3-w8a8.recipe index 82443344..06db1a16 100644 --- a/data/recipes/minimax-h3-w8a8.recipe +++ b/data/recipes/minimax-h3-w8a8.recipe @@ -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 \ +# --recipe data/recipes/minimax-h3-w8a8.recipe --reuse \ +# -o +# +# 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