mirror of
https://github.com/Alkatrazz24/Funk-lab.git
synced 2026-07-08 07:54:42 +02:00
feat: initial commit — Ansible roles storage-01/gpu-01 opérationnels
This commit is contained in:
commit
b3fce8af5d
70 changed files with 2688 additions and 0 deletions
39
ansible/roles/lm_studio/templates/lm-studio.service.j2
Normal file
39
ansible/roles/lm_studio/templates/lm-studio.service.j2
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
[Unit]
|
||||
Description=LM Studio Server
|
||||
After=network.target
|
||||
Wants=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User={{ lm_studio_user }}
|
||||
Group={{ lm_studio_user }}
|
||||
|
||||
# Répertoire home pour que lms trouve ses fichiers
|
||||
Environment=HOME={{ lm_studio_home }}
|
||||
|
||||
# ROCm — obligatoire pour RX 6700XT (gfx1031 non officiel)
|
||||
Environment=HSA_OVERRIDE_GFX_VERSION={{ hsa_override_gfx_version }}
|
||||
|
||||
# PATH inclut le binaire lms
|
||||
Environment=PATH={{ lm_studio_home }}/.lmstudio/bin:/usr/local/bin:/usr/bin:/bin
|
||||
|
||||
Environment=LMS_PORT={{ lm_studio_port }}
|
||||
Environment=LMS_BIND={{ lm_studio_host }}
|
||||
Environment=LMS_MODEL={{ lm_studio_default_model }}
|
||||
Environment=LMS_CONTEXT_LENGTH={{ lm_studio_context_length }}
|
||||
Environment=LMS_GPU_OFFLOAD={{ lm_studio_gpu_offload }}
|
||||
|
||||
# Wrapper: runs lms server start, auto-loads model if LMS_MODEL is set, then monitors llmster
|
||||
ExecStart=/opt/lmstudio/run-llmster.sh
|
||||
|
||||
Restart=on-failure
|
||||
RestartSec=15
|
||||
TimeoutStartSec=120
|
||||
|
||||
# Journalisation
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=lm-studio
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue