启动脚本

This commit is contained in:
zhxiao 2025-04-25 09:13:50 +08:00
parent 3451f4cd87
commit 6fc38f433f
1 changed files with 14 additions and 0 deletions

14
start_flux_api.sh Normal file
View File

@ -0,0 +1,14 @@
#!/bin/bash
# 设置CUDA可见设备让两张GPU都参与计算
export CUDA_VISIBLE_DEVICES=0,1
# 创建日志目录
mkdir -p logs
# 启动服务
nohup python flux_style_shaper_api/flux_style_shaper_api.py > logs/flux_api.log 2>&1 &
# 输出进程ID
echo "服务已启动进程ID: $!"
echo "查看日志: tail -f logs/flux_api.log"