AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How to Prepare Video Datasets and Train Custom LoRA Weights for Genmo Mochi 1

Thiago Viana · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

Training a video LoRA is not just an image LoRA with a temporal axis stapled onto it. It is vastly more unforgiving. When Genmo open-sourced Mochi 1 under the Apache 2.0 license, it handed creators a 10-billion parameter Asymmetric Diffusion Transformer (AsymmDiT) capable of fluid physical motion and strict prompt adherence. But fine-tuning it to lock in a recurring character or a tailored visual aesthetic requires discipline. If your video slices contain camera cuts, if your aspect ratios fluctuate, or if your captions fail to describe background motion, Mochi 1 will dutifully memorize those flaws.

At 365Finds, our direct verdict on Mochi 1 LoRA training is clear: it is currently one of the most rewarding fine-tuning pipelines for cinematic auteur work, but only if you respect its architectural constraints. Attempting to brute-force a casual dataset through standard diffusion scripts will burn cloud compute credits without giving you a usable checkpoint.

Here is the complete operational playbook for curating multi-frame video slices, engineering dense captions, and configuring the official fine-tuner to train custom LoRA weights for Genmo Mochi 1.


1. Video Dataset Slicing and Standardization

Video diffusion models learn motion vectors and temporal continuity from frame sequences. Feeding Mochi 1 raw footage or mixed-resolution clips produces immediate degradation.

Ideal Dataset Dimensions and Volume

The Golden Rule of Video Cuts

Every clip must consist of a single, uninterrupted continuous take. There can be no cutaways, cross-dissolves, wipe transitions, or jump cuts within a single training file. If a 10-second source video contains three camera angles, split it into three separate clips and discard intermediate transition frames.

Automated Frame Extraction and Formatting

You can preprocess your raw video footage using FFmpeg. To crop and scale source footage to 848x480 at a constant 30 fps without distorting aspect ratios:

# Normalize frame rate, scale, center crop to 848x480, and remove audio
ffmpeg -i input_raw.mp4 \
  -r 30 \
  -vf "scale=848:480:force_original_aspect_ratio=increase,crop=848:480" \
  -c:v libx264 -pix_fmt yuv420p -an \
  dataset/clip_001.mp4

2. Dense Captioning and Trigger Word Strategy

In static image LoRAs, sparse tagging (such as ohwx person, white shirt, studio lighting) often suffices. In Mochi 1, sparse captions cause catastrophic concept bleeding. Because Mochi 1 pairs an AsymmDiT backbone with a large T5-XXL language model, it expects rich linguistic descriptions.

What Happens When You Under-Describe

If a character walks past a brick wall under flickering fluorescent light and your caption only reads:

cxx_person walking

The model does not know that the brick wall, the overhead lighting angle, and the camera pan are environmental variables. It bakes the brick wall and fluorescent flicker directly into the character LoRA weights. To prevent this, you must explicitly describe every visual and physical element other than the core subject concept you want to bind to your trigger token.

Caption Structure Breakdown

Each video clip must have an accompanying .txt file with the exact same base filename (for example, clip_001.mp4 paired with clip_001.txt). Structure your captions using 60 to 120 words covering four layers:

  1. Trigger Token & Subject: Identify the subject with a unique token (e.g., cxx_agent). Describe clothing, expression, and core physical features.
  2. Subject Action & Dynamics: Detail movement mechanics (e.g., striding forward smoothly, turning head slightly to the left).
  3. Environment & Lighting: Detail the setting (e.g., wet asphalt, neon reflections, overcast evening sky).
  4. Cinematography & Camera Movement: Specify shot type and camera motion (e.g., medium tracking shot, static eye-level camera, subtle handheld push-in).

Example Caption (clip_001.txt):

A medium tracking shot of cxx_agent walking purposefully through an industrial warehouse. cxx_agent wears a dark matte trench coat over a high-collar charcoal sweater, with short swept-back hair. The subject turns their head slightly toward the left while maintaining forward stride. Soft diffused backlight illuminates mist hanging in the background, casting subtle specular highlights across concrete floor tiles. The camera trucks backward at an even pace, keeping cxx_agent centered in frame.

3. Pre-Encoding and Latent Caching

Mochi 1 uses an Asymmetric VAE (AsymmVAE) that compresses raw video 128-fold (8x spatial downsampling and 6x temporal downsampling across a 12-channel latent space).

Encoding 60 to 90 raw video frames through the 362M-parameter AsymmVAE on every forward pass during training consumes enormous GPU memory and slows iteration speed down to a crawl.

At 365Finds, we strongly advise pre-encoding your dataset into disk-cached latents before launching the training loop. By running the dataset through Mochi's VAE encoder once, your training script reads serialized latent tensors directly into VRAM, cutting per-epoch compute time by over 60% and eliminating VAE memory overhead.


4. Configuring the LoRA Fine-Tuner

Genmo provides native fine-tuning scripts in its official repository (demos/fine_tuner/), targeting the AsymmDiT transformer blocks.

Target Modules

Within Mochi's Asymmetric DiT, the primary adaptation targets are the visual attention linear projection matrices:

Adapting these attention layers allows the LoRA to control spatial composition and temporal attention flows without disturbing the underlying language grounding handled by the T5-XXL text stream.

Recommended lora.yaml Configuration

# Mochi 1 LoRA Training Configuration
init_checkpoint_path: "./weights/dit.safetensors"
checkpoint_dir: "./output/mochi_character_lora"
train_data_dir: "./dataset_prepared"
attention_mode: "sdpa"

optimizer:
  lr: 0.00015
  weight_decay: 0.01
  betas: [0.9, 0.99]

model:
  type: "lora"
  kwargs:
    qkv_proj_lora_rank: 16
    qkv_proj_lora_alpha: 16
    qkv_proj_lora_dropout: 0.0
    out_proj_lora_rank: 16
    out_proj_lora_alpha: 16
    out_proj_lora_dropout: 0.0

training:
  model_dtype: "bf16"
  warmup_steps: 150
  num_steps: 1600
  save_interval: 200
  caption_dropout: 0.10
  seed: 42

Parameter Breakdown and Guidance

ParameterRecommended Value365Finds Technical Notes
LoRA Rank ($r$)16 (Style/Character); 32 (Complex Motion)Rank 16 provides an optimal balance between VRAM footprint and expressive capacity. Rank 32 is necessary only if teaching complex geometric deformations.
LoRA Alpha ($\alpha$)16Keep alpha equal to rank ($1.0$ multiplier) to maintain gradient stability across diffusion timesteps.
Learning Rate1e-4 to 2e-4Start at 1.5e-4. Setting LR above 3e-4 leads to rapid temporal flickering and frame melting.
Caption Dropout0.10 (10%)Randomly drops captions to strengthen unconditional generation guidance (classifier-free guidance).
Warmup Steps100 to 200Critical for preventing early gradient explosions in the 10B parameter DiT backbone.

5. Execution and Hardware Strategy

Let us be completely transparent about hardware: Mochi 1 is an uncompressed 10-billion parameter model. You cannot train native Mochi 1 LoRAs on a standard consumer GPU with 24GB VRAM (such as an RTX 4090) using the out-of-the-box repository scripts.

Hardware Tiers and Recommendations

Launching the Training Run

From the cloned genmoai/mochi directory:

bash ./demos/fine_tuner/run.bash \
  -c ./demos/fine_tuner/configs/lora.yaml \
  -n 1

6. Inference and Weight Verification

Once training completes, evaluate intermediate checkpoints saved every 200 steps to detect the inflection point where the concept is locked before aesthetic degradation sets in.

You can load and verify your trained LoRA weights using Genmo's native inference CLI:

python3 ./demos/cli.py \
  --model_dir ./weights \
  --lora_path ./output/mochi_character_lora/step_0001200.safetensors \
  --prompt "A smooth tracking shot of cxx_agent standing in a neon-lit alleyway during rain, cinematic lighting, 8k" \
  --cpu_offload \
  --output ./test_render.mp4

Alternatively, in Hugging Face diffusers:

import torch
from diffusers import MochiPipeline
from diffusers.utils import export_to_video

pipe = MochiPipeline.from_pretrained(
    "genmo/mochi-1-preview", 
    torch_dtype=torch.bfloat16
)
pipe.load_lora_weights("./output/mochi_character_lora/step_0001200.safetensors")
pipe.enable_model_cpu_offload()

frames = pipe(
    prompt="A smooth tracking shot of cxx_agent standing in a neon-lit alleyway during rain",
    guidance_scale=6.0,
    num_inference_steps=64,
    height=480,
    width=848,
).frames[0]

export_to_video(frames, "cxx_test.mp4")

The resulting video should reflect the trained visual identity while maintaining Mochi 1's native 30 fps fluid physical motion.

References