Add Maia chess gameplay and deployment
This commit is contained in:
22
deploy/systemd/maia-engine.service
Normal file
22
deploy/systemd/maia-engine.service
Normal file
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=Maia3 chess engine bridge
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
WorkingDirectory=/root/blog-backend/maia-engine
|
||||
Environment=MAIA_MODEL=maia3-5m
|
||||
Environment=MAIA_DEVICE=cpu
|
||||
Environment=MAIA_USE_AMP=false
|
||||
Environment=HF_HOME=/root/blog-backend/.cache/huggingface
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
ExecStart=/root/blog-backend/maia-engine-venv/bin/python -m uvicorn app.main:app --host 127.0.0.1 --port 8000
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
TimeoutStartSec=300
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user