the training details of minimax h3 model
I am currently training a LoRA for the MiniMax-H3 FL2VA model. However, after training on 10k videos, both the video clarity and temporal consistency have noticeably degraded. I am unsure if this issue stems from the prompts, the dataset, or certain training parameters. I noticed that DiffSynth open-sourced a LoRA checkpoint (https://modelscope.ai/models/DiffSynth-Studio/MiniMax-H3-LoRA-LineartAnime). Could you share the specific training details for this model? I am particularly interested in the prompt design (how to align with the original MiniMax prompt templates), training steps, batch size, timestep shift, learning rate, and LoRA rank. I would love to reference these details to improve my training quality and consistency. Thank you!
I am also curious about that. btw did anyone try adding LoRA in fc layers, like Wan's LoRA? I saw diffsynth disable the fc layer LoRA by default for H3 now
@xinjiu612 We've also observed instability during MiniMax-H3 LoRA training, which stems from the following factors:
- CFG Distillation: The base model has undergone CFG distillation. Training it directly via standard SFT causes the model to regress to its pre-distilled state—resulting in normal performance when CFG is enabled, but poor quality when disabled.
- VAE Compression Artifacts: Due to VAE compression errors, fine details in distant backgrounds are noticeably lost after the video is encoded and decoded.
- [Fixed] Suboptimal Sigma Schedule: The original sigma curve deviated from optimal values, causing the model to linger too long in high-noise timesteps and negatively impacting training convergence.
Training Recommendations
- Prompting: Please refer to the official MiniMax documentation: https://github.com/MiniMax-AI/MiniMax-H3/blob/main/skills/h3-prompt-writing/references/base-en.txt
- Training Duration: Since the optimal number of training steps varies, we typically set
epochsto 99999 andsave_stepsto 100. For our open-source model (https://modelscope.ai/models/DiffSynth-Studio/MiniMax-H3-LoRA-LineartAnime), trained on 4 GPUs, noticeable improvements emerged around step 500. However, by step 3000, performance began to degrade—at which point enabling CFG became necessary to maintain acceptable quality. We ultimately applied exponential moving average (EMA) to mitigate this. - Hyperparameters: Batch size = 4 (across 4 GPUs), timestep shift = 2.22 (now the default), learning rate = 1e-4, LoRA rank = 32.
@zonszer During early development, we took a conservative approach by applying LoRA only to the attention layers. We have since validated that applying LoRA to MLP layers yields better results, so the default training script has been updated accordingly. As for AdaLN layers, we avoid using LoRA there to maintain compatibility with pruned variants of the model.
Since the official inference script states that CFG inference is not supported, how did you enable CFG? What negative prompt did you use? Besides, do you have any plans to address the VAE compression artifacts?
Since the official inference script states that CFG inference is not supported, how did you enable CFG? What negative prompt did you use? Besides, do you have any plans to address the VAE compression artifacts?
https://github.com/kohya-ss/musubi-tuner/pull/1045 may be helpful for your question