"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "fb9f9ee640a26c4e861f893154417c1068de9a9b"
Commit c6be06a6 authored by gushiqiao's avatar gushiqiao Committed by GitHub
Browse files

[Fix] Fix move moe model to cpu bug (#329)

parent 492501d7
{
"infer_steps": 4,
"target_video_length": 81,
"text_len": 512,
"target_height": 480,
"target_width": 832,
"self_attn_1_type": "flash_attn3",
"cross_attn_1_type": "flash_attn3",
"cross_attn_2_type": "flash_attn3",
"seed": 42,
"sample_guide_scale": [3.5, 3.5],
"sample_shift": 5.0,
"enable_cfg": false,
"cpu_offload": true,
"offload_granularity": "model",
"t5_cpu_offload": false,
"vae_cpu_offload": false,
"use_image_encoder": false,
"boundary_step_index": 2,
"denoising_step_list": [1000, 750, 500, 250],
"mm_config": {
"mm_type": "W-int8-channel-sym-A-int8-channel-sym-dynamic-Vllm"
},
"t5_quantized": true,
"t5_quant_scheme": "int8"
}
...@@ -4,28 +4,10 @@ ...@@ -4,28 +4,10 @@
lightx2v_path= lightx2v_path=
model_path= model_path=
# check section export CUDA_VISIBLE_DEVICES=0
if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then
cuda_devices=0
echo "Warn: CUDA_VISIBLE_DEVICES is not set, using default value: ${cuda_devices}, change at shell script or set env variable."
export CUDA_VISIBLE_DEVICES=${cuda_devices}
fi
if [ -z "${lightx2v_path}" ]; then # set environment variables
echo "Error: lightx2v_path is not set. Please set this variable first." source ${lightx2v_path}/scripts/base/base.sh
exit 1
fi
if [ -z "${model_path}" ]; then
echo "Error: model_path is not set. Please set this variable first."
exit 1
fi
export TOKENIZERS_PARALLELISM=false
export PYTHONPATH=${lightx2v_path}:$PYTHONPATH
export DTYPE=BF16
export ENABLE_PROFILING_DEBUG=true
python -m lightx2v.infer \ python -m lightx2v.infer \
--model_cls wan2.2_moe_distill \ --model_cls wan2.2_moe_distill \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment