run_hunyuan_t2v.sh 638 Bytes
Newer Older
helloyongyang's avatar
helloyongyang committed
1
2
#!/bin/bash

helloyongyang's avatar
update  
helloyongyang committed
3
4
lightx2v_path=/mtc/yongyang/projects/lightx2v
export PYTHONPATH=${lightx2v_path}:$PYTHONPATH
helloyongyang's avatar
helloyongyang committed
5
6

export CUDA_VISIBLE_DEVICES=2
helloyongyang's avatar
update  
helloyongyang committed
7
8
9
10
11

model_path=/mtc/yongyang/models/x2v_models/hunyuan/lightx2v_format/t2v


python ${lightx2v_path}/lightx2v/__main__.py \
helloyongyang's avatar
helloyongyang committed
12
13
--model_cls hunyuan \
--model_path $model_path \
Xinchi Huang's avatar
Xinchi Huang committed
14
15
16
17
18
--prompt "A cat walks on the grass, realistic style." \
--infer_steps 20 \
--target_video_length 33 \
--target_height 720 \
--target_width 1280 \
helloyongyang's avatar
helloyongyang committed
19
--attention_type flash_attn3 \
Xinchi Huang's avatar
Xinchi Huang committed
20
--save_video_path ./output_lightx2v_int8.mp4 \
Dongz's avatar
Dongz committed
21
--mm_config '{"mm_type": "W-int8-channel-sym-A-int8-channel-sym-dynamic-Vllm", "weight_auto_quant": true}'