Archived
- video: MiniMax-H3 and FastVideo's FastH3 8-Step V2, a video with its stereo soundtrack from text on OpenAI's /v1/videos, block fp8 on two cards - music: MiniMax-Music3, songs from lyrics and a description on /v1/audio/speech - speech: Breeze-TTS-2 on /v1/audio/speech and vLLM-Omni's realtime WebSocket - runtime LoRA adapters beside the base model, picked per request by `model` (baKon, #105) - several agent streams keep their cached history: --checkpoint-slots auto, the new default, sizes the snapshot store by --max-num-seqs (#108) - the Swift 1.5 27B W4 releases convert and serve: compressed-tensors AWQ and GPTQ int4, AutoRound, ModelOpt NVFP4 (#110) - the image's host tests pass where perf_event_open is refused, as in BuildKit's sandbox (#106) - plugin ABI 21: out-of-tree plugins must be rebuilt
47 lines
3.0 KiB
Plaintext
47 lines
3.0 KiB
Plaintext
# minimax-h3-fp8.recipe -- MiniMax-H3 (text to video and audio) with block-scaled fp8 linears.
|
|
#
|
|
# rad-convert <MiniMax-H3 pipeline directory> --recipe data/recipes/minimax-h3-fp8.recipe \
|
|
# -o minimax-h3-fp8.rad
|
|
#
|
|
# The directory needs the text-to-video-and-audio components only: text_encoder/, transformer/,
|
|
# vae/, audio_vae/, the processor or tokenizer and both scheduler folders (transformer_ref/ and
|
|
# the original-layout FL2VA/ and Ref2VA/ are not read).
|
|
#
|
|
# FastVideo's FastH3 releases (the denoiser distilled to eight steps with video sparse attention)
|
|
# take the same recipe: their text encoder and decoders are MiniMax-H3's files, so a container of
|
|
# the base model can supply them, with every transformer tensor listed as changed:
|
|
#
|
|
# rad-convert <FastH3 directory> --recipe data/recipes/minimax-h3-fp8.recipe \
|
|
# --reuse minimax-h3-fp8.rad --changed <the transformer's tensor names, "transformer." first> \
|
|
# -o fasth3-8step-fp8.rad
|
|
#
|
|
# Every linear of the text encoder's first 50 layers, of the token refiner and of the DiT's 50
|
|
# blocks, and the per-modality modulation projections, become E4M3 codes with a bf16 scale a
|
|
# 128 x 128 block, read by the fp8a8 GEMMs. What keeps the checkpoint's precision is read once a
|
|
# step or less: the embedding table, context_embedder and norm_out (bf16), the timestep MLP and the
|
|
# 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).
|
|
|
|
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
|
|
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
|