This commit is contained in:
SolitaryThinker
2025-11-24 00:58:19 +00:00
parent 4888a31750
commit 2dce62c034
2 changed files with 6 additions and 4 deletions
@@ -13,20 +13,21 @@ def main():
generator = VideoGenerator.from_pretrained(
"FastVideo/SFWan2.2-I2V-A14B-Preview-Diffusers",
# FastVideo will automatically handle distributed setup
num_gpus=1,
num_gpus=4,
use_fsdp_inference=True,
dit_cpu_offload=True, # DiT need to be offloaded for MoE
dit_cpu_offload=False, # DiT need to be offloaded for MoE
dit_precision="fp32",
vae_cpu_offload=False,
text_encoder_cpu_offload=True,
dmd_denoising_steps=[1000, 850, 700, 550, 350, 275, 200, 125],
# Set pin_cpu_memory to false if CPU RAM is limited and there're no frequent CPU-GPU transfer
pin_cpu_memory=True,
num_frame_per_block=4,
# image_encoder_cpu_offload=False,
)
sampling_param = SamplingParam.from_pretrained("FastVideo/SFWan2.2-I2V-A14B-Preview-Diffusers")
sampling_param.num_frames = 81
sampling_param.num_frames = 77
sampling_param.width = 832
sampling_param.height = 480
sampling_param.seed = 1000