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

helloyongyang's avatar
helloyongyang committed
3
# set path and first
PengGao's avatar
PengGao committed
4
5
lightx2v_path=/path/to/Lightx2v
model_path=/path/to/Wan2.1-R2V0909-Audio-14B-720P-fp8
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
15
python -m lightx2v.server \
--model_cls seko_talk \
PengGao's avatar
PengGao committed
16
--task i2v \
helloyongyang's avatar
helloyongyang committed
17
--model_path $model_path \
PengGao's avatar
PengGao committed
18
19
--config_json ${lightx2v_path}/configs/seko_talk/seko_talk_05_offload_fp8_4090.json \
--port 8000
PengGao's avatar
PengGao committed
20
21

echo "Service stopped"