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

helloyongyang's avatar
helloyongyang committed
3
# set path and first
Zhuguanyu Wu's avatar
Zhuguanyu Wu committed
4
5
lightx2v_path=
model_path=
helloyongyang's avatar
helloyongyang committed
6

helloyongyang's avatar
helloyongyang committed
7
export CUDA_VISIBLE_DEVICES=0
helloyongyang's avatar
helloyongyang committed
8

helloyongyang's avatar
helloyongyang committed
9
10
# set environment variables
source ${lightx2v_path}/scripts/base/base.sh
PengGao's avatar
PengGao committed
11

gaclove's avatar
gaclove committed
12

PengGao's avatar
PengGao committed
13
# Start API server with distributed inference service
PengGao's avatar
PengGao committed
14
python -m lightx2v.server \
Zhuguanyu Wu's avatar
Zhuguanyu Wu committed
15
16
--model_cls hunyuan_video_1.5_distill \
--task t2v \
helloyongyang's avatar
helloyongyang committed
17
--model_path $model_path \
Zhuguanyu Wu's avatar
Zhuguanyu Wu committed
18
--config_json ${lightx2v_path}/configs/hunyuan_video_15/hunyuan_video_t2v_480p_distill.json \
PengGao's avatar
PengGao committed
19
--port 8000
PengGao's avatar
PengGao committed
20
21

echo "Service stopped"