Skip to content

Commit 9cfcace

Browse files
committed
[refactor]: update train scripts to use generic runner script
1 parent b0d254b commit 9cfcace

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

scripts/distill/v1_distill_dmd_wan.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ export TOKENIZERS_PARALLELISM=false
1010

1111
# make sure that num_latent_t is a multiple of sp_size
1212
torchrun --nnodes 1 --nproc_per_node $NUM_GPUS \
13-
fastvideo/training/wan_distillation_pipeline.py \
13+
fastvideo/training/runner.py \
14+
--pipeline_class WanDistillationPipeline \
15+
--pipeline_module fastvideo.training.wan_distillation_pipeline \
1416
--model_path Wan-AI/Wan2.1-T2V-1.3B-Diffusers \
1517
--real_score_model_path Wan-AI/Wan2.1-T2V-1.3B-Diffusers \
1618
--fake_score_model_path Wan-AI/Wan2.1-T2V-1.3B-Diffusers \

scripts/distill/v1_distill_dmd_wan_VSA.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ export TOKENIZERS_PARALLELISM=false
1111
# Train generator with VSA
1212
# Make sure that num_latent_t is a multiple of sp_size
1313
torchrun --nnodes 1 --nproc_per_node $NUM_GPUS \
14-
fastvideo/training/wan_distillation_pipeline.py \
14+
fastvideo/training/runner.py \
15+
--pipeline_class WanDistillationPipeline \
16+
--pipeline_module fastvideo.training.wan_distillation_pipeline \
1517
--model_path Wan-AI/Wan2.1-T2V-1.3B-Diffusers \
1618
--real_score_model_path Wan-AI/Wan2.1-T2V-1.3B-Diffusers \
1719
--fake_score_model_path Wan-AI/Wan2.1-T2V-1.3B-Diffusers \

scripts/finetune/finetune_v1.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ NUM_GPUS=4
1111

1212
# Make sure that num_latent_t is a multiple of sp_size
1313
torchrun --nnodes 1 --nproc_per_node $NUM_GPUS\
14-
fastvideo/training/wan_training_pipeline.py\
14+
fastvideo/training/runner.py\
15+
--pipeline_class WanTrainingPipeline \
16+
--pipeline_module fastvideo.training.wan_training_pipeline \
1517
--model_path Wan-AI/Wan2.1-T2V-1.3B-Diffusers \
1618
--inference_mode False\
1719
--pretrained_model_name_or_path Wan-AI/Wan2.1-T2V-1.3B-Diffusers \

0 commit comments

Comments
 (0)