优云智算
控制台
立即注册

musubi-tunner-wan2.2训练镜像

musubi-tunner-wan2.2 lora 训练镜像,内置模型数据集

镜像大小
150 GB
当前版本
v1.0
累计部署
414
累计运行
2,744 h
最近更新
2025-10-28

运行环境

框架版本
PyTorch-2.6
CUDA版本
12.4
应用
JupyterLab: 8888
支持卡型
RTX40系2080
+10

musubi wan2.2 训练镜像

有趣的80后程序员-镜像作者交流群

image

视频详解

关键步骤说明

1、打开终端

  • 点击jupyterlab点开终端 image.png image.png

2、进入musubiTunner主目录

cd /workspace/musubi-tuner/

3、模型下载

4、数据集前处理

  • 图片编码
python src/musubi_tuner/wan_cache_latents.py --dataset_config dataset/cendy_wan2.2.toml \
--vae /workspace/musubi-tuner/models/wan2.2/vae/wan_2.1_vae.safetensors
  • 提示词编码
  python src/musubi_tuner/wan_cache_text_encoder_outputs.py --dataset_config dataset/cendy_wan2.2.toml \
--t5 models/wan2.2/text_encoders/models_t5_umt5-xxl-enc-bf16.pth  --batch_size 16

5、模型训练

  • 单独训练低燥模型
    accelerate launch --num_cpu_threads_per_process 1 --mixed_precision fp16 src/musubi_tuner/wan_train_network.py \
      --task t2v-A14B \
      --dit models/wan2.2/diffusion_models/wan2.2_t2v_low_noise_14B_fp16.safetensors \
      --dataset_config dataset/cendy_wan2.2.toml --sdpa --mixed_precision fp16 --fp8_base \
      --optimizer_type adamw8bit --learning_rate 2e-4 --gradient_checkpointing \
      --max_data_loader_n_workers 2 --persistent_data_loader_workers \
      --network_module networks.lora_wan --network_dim 32 \
      --timestep_sampling shift --discrete_flow_shift 8.0 \
      --max_train_epochs 300 --save_every_n_epochs 10 --seed 42 \
      --output_dir output --output_name cendy_wan2.2_v1 --blocks_to_swap 35 \
      --min_timestep 0 --max_timestep 875 \
      --preserve_distribution_shape
    
  • 单独训练高燥模型
    accelerate launch --num_cpu_threads_per_process 1 --mixed_precision fp16 src/musubi_tuner/wan_train_network.py \
      --task t2v-A14B \
      --dit models/wan2.2/diffusion_models/wan2.2_t2v_high_noise_14B_fp16.safetensors \
      --dataset_config dataset/cendy_wan2.2.toml --sdpa --mixed_precision fp16 --fp8_base \
      --optimizer_type adamw8bit --learning_rate 2e-4 --gradient_checkpointing \
      --max_data_loader_n_workers 2 --persistent_data_loader_workers \
      --network_module networks.lora_wan --network_dim 32 \
      --timestep_sampling shift --discrete_flow_shift 8.0 \
      --max_train_epochs 300 --save_every_n_epochs 10 --seed 42 \
      --output_dir output1 --output_name cendy_wan2.2_v1 --blocks_to_swap 35 \
      --min_timestep 875 --max_timestep 1000 \
      --preserve_distribution_shape
    
  • 同时训练高低燥模型
    accelerate launch --num_cpu_threads_per_process 1 --mixed_precision fp16 src/musubi_tuner/wan_train_network.py \
      --task t2v-A14B \
      --dit models/wan2.2/diffusion_models/wan2.2_t2v_low_noise_14B_fp16.safetensors \
      --dit_high_noise models/wan2.2/diffusion_models/wan2.2_t2v_high_noise_14B_fp16.safetensors \
      --dataset_config dataset/cendy_wan2.2.toml --sdpa --mixed_precision fp16 --fp8_base \
      --optimizer_type adamw8bit --learning_rate 2e-4 --gradient_checkpointing \
      --max_data_loader_n_workers 1 --persistent_data_loader_workers \
      --network_module networks.lora_wan --network_dim 32 \
      --timestep_sampling shift --discrete_flow_shift 8.0 \
      --max_train_epochs 300 --save_every_n_epochs 25 --seed 42 \
      --output_dir output3 --output_name cendy_wan2.2_v1 --blocks_to_swap 35 \
    

    6、模型转化

    python src/musubi_tuner/convert_lora.py --input output/cendy_wan2.2_v1.safetensors --output output/output/cendy_wan2.2_low_v1.safetensors --target other
    
0 个镜像 · 被使用 414
交流与支持
交流群二维码
扫码加入交流群
作者与用户在群内答疑
版本日志
v1.0最新
2025-08-31
评分
0.0
暂无评分
我的评分
未评分
musubi-tunner-wan2.2训练镜像一键部署 | 优云智算