llm, add qwen-code as a daemon, it seems promising, what I was hoping for from zeroclaw.
This commit is contained in:
@@ -488,7 +488,55 @@
|
||||
|
||||
# Qwen Serve - Start #
|
||||
|
||||
# TBD
|
||||
- name: Workstation | Linux | Software | LLMs | runit | qwen-code | Dir | /etc/sv
|
||||
ansible.builtin.file:
|
||||
name: "/etc/sv/{{ qwen_code }}/log"
|
||||
state: directory
|
||||
owner: root
|
||||
mode: "0755"
|
||||
|
||||
- name: Workstation | Linux | Software | LLMs | runit | qwen-code | Dir | /var/log
|
||||
ansible.builtin.file:
|
||||
name: "/var/log/{{ qwen_code }}"
|
||||
state: directory
|
||||
owner: "{{ user }}"
|
||||
mode: "0755"
|
||||
|
||||
- name: Workstation | Linux | Software | LLMs | runit | qwen-code | Script | Run
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/sv/{{ qwen_code }}/run
|
||||
content: |
|
||||
#!/bin/sh -e
|
||||
exec 2>&1
|
||||
exec chpst -u {{ user }} -C {{ user_user.home }}/Code qwen serve
|
||||
mode: "0755"
|
||||
|
||||
- name: Workstation | Linux | Software | LLMs | runit | qwen-code | Script | Finish
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/sv/{{ qwen_code }}/finish
|
||||
content: |
|
||||
#!/bin/sh -e
|
||||
exec 2>&1
|
||||
# $1 is the exit code, $2 is the exit status byte (signal number if killed)
|
||||
echo "FINISH: Service returned with exit code: $1 and status: $2"
|
||||
mode: "0755"
|
||||
|
||||
- name: Workstation | Linux | Software | LLMs | runit | qwen-code | Script | Log
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/sv/{{ qwen_code }}/log/run
|
||||
content: |
|
||||
#!/bin/sh -e
|
||||
exec svlogd -tt /var/log/{{ qwen_code }}
|
||||
mode: "0755"
|
||||
|
||||
- name: Workstation | Linux | Software | LLMs | runit | qwen-code | Script | Log Config
|
||||
ansible.builtin.copy:
|
||||
dest: /var/log/{{ qwen_code }}/config
|
||||
content: |
|
||||
s1000000 # rotate at 1 MB
|
||||
n5 # keep 5 old files
|
||||
dateformat %Y-%m-%d_%H-%M-%S # each run gets its own file.
|
||||
mode: "0755"
|
||||
|
||||
# Qwen Serve - End #
|
||||
|
||||
@@ -507,6 +555,7 @@
|
||||
- { 'name': 'docker' , 'status': true }
|
||||
- { 'name': 'open-webui' , 'status': "{{ open_webui_enabled }}" }
|
||||
- { 'name': 'swap-stopper' , 'status': true }
|
||||
- { 'name': '{{ qwen_code }}', 'status': "{{ qwen_code_enabled }}" }
|
||||
|
||||
- name: Workstation | Linux | Software | LLMs | Services | Verify
|
||||
ansible.builtin.uri:
|
||||
|
||||
Reference in New Issue
Block a user