starry / supervisord.conf
k-l-lambda's picture
feat: add Python ML services (CPU mode) with model download
2b7aae2
[supervisord]
nodaemon=true
logfile=/home/node/log/supervisor/supervisord.log
pidfile=/home/node/run/supervisord.pid
user=node
[unix_http_server]
file=/home/node/run/supervisor.sock
[supervisorctl]
serverurl=unix:///home/node/run/supervisor.sock
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
; ── PyTorch predictors (CPU) ──
[program:layout]
command=python3 main.py -m layout -w /home/node/app/models/starry-dist/%(ENV_LAYOUT_MODEL_PATH)s -p 12022 -dv cpu
directory=/home/node/app/backend/python-services
autostart=true
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
[program:mask]
command=python3 main.py -m mask -w /home/node/app/models/starry-dist/%(ENV_MASK_MODEL_PATH)s -p 12024 -dv cpu
directory=/home/node/app/backend/python-services
autostart=true
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
[program:semantic]
command=python3 main.py -m semantic -w /home/node/app/models/starry-dist/%(ENV_SEMANTIC_MODEL_PATH)s -p 12025 -dv cpu --config config/semantic.yaml
directory=/home/node/app/backend/python-services
autostart=true
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
[program:gauge]
command=python3 main.py -m gauge -w /home/node/app/models/starry-dist/%(ENV_GAUGE_MODEL_PATH)s -p 12023 -dv cpu
directory=/home/node/app/backend/python-services
autostart=true
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
; ── TensorFlow / PyTorch predictors (CPU) ──
[program:loc]
command=python3 main.py -m loc -w /home/node/app/models/ocr-dist/%(ENV_LOC_MODEL_PATH)s -p 12026 -dv cpu
directory=/home/node/app/backend/python-services
environment=LOG_DIR="/home/node/log/supervisor"
autostart=true
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
[program:ocr]
command=python3 main.py -m ocr -w /home/node/app/models/ocr-dist/%(ENV_OCR_CONFIG)s -p 12027
directory=/home/node/app/backend/python-services
environment=CUDA_VISIBLE_DEVICES="-1",TF_USE_LEGACY_KERAS="1",LOG_DIR="/home/node/log/supervisor"
autostart=true
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
[program:brackets]
command=python3 main.py -m brackets -w /home/node/app/models/ocr-dist/%(ENV_BRACKETS_CONFIG)s -p 12028
directory=/home/node/app/backend/python-services
environment=CUDA_VISIBLE_DEVICES="-1",TF_USE_LEGACY_KERAS="1",LOG_DIR="/home/node/log/supervisor"
autostart=true
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0