| @echo off | |
| :: ========================================================================= | |
| :: Wan2.1/2.2 Low-VRAM Twin-Engine Trainer CLI Launcher (Universal Portable) | |
| :: Optimized for 12GB VRAM. Please update paths according to your environment. | |
| :: ========================================================================= | |
| echo Starting Wan Video Twin-Engine Training Session... | |
| :: Automatically detects and sets the current execution directory context | |
| cd /d "%~dp0" | |
| :: --- [v5.8.3 Synchronized] Fully aligned with the latest core argument matrix keys --- | |
| python train_wan_lora.py ^ | |
| --pretrained_model_name_or_path="path/to/wan_model.safetensors" ^ | |
| --reference_lora_path="path/to/reference_lora.safetensors" ^ | |
| --reference_te_path="path/to/text_encoder.safetensors" ^ | |
| --instance_data_dir="path/to/your/dataset_folder" ^ | |
| --output_dir="path/to/output_folder" ^ | |
| --trigger_word="aaa001" ^ | |
| --mixed_precision="fp16" ^ | |
| --resolution=720 ^ | |
| --train_batch_size=1 ^ | |
| --learning_rate=8e-5 ^ | |
| --max_train_steps=6000 ^ | |
| --lora_rank=32 ^ | |
| --te_loss_scale=1e-6 ^ | |
| --max_frames=16 ^ | |
| --use_8bit_adam | |
| echo. | |
| echo Training process completed or terminated. | |
| pause | |