Support LAN deployment and managed Python runtime
Made-with: Cursor
This commit is contained in:
@@ -17,6 +17,10 @@
|
||||
args:
|
||||
executable: /bin/bash
|
||||
creates: "{{ courseware_unsloth_home }}/.install_complete"
|
||||
environment:
|
||||
UV_CACHE_DIR: "{{ courseware_uv_cache_dir }}"
|
||||
XDG_CACHE_HOME: "{{ courseware_cache_dir }}"
|
||||
TMPDIR: "{{ courseware_tmp_dir }}"
|
||||
rescue:
|
||||
- name: Capture Unsloth installer log tail
|
||||
shell: |
|
||||
@@ -41,3 +45,18 @@
|
||||
|
||||
Last log lines:
|
||||
{{ courseware_unsloth_install_log_tail.stdout | default('(no log output captured)') }}
|
||||
|
||||
- name: Install x86_64-compatible NumPy for Unsloth Studio
|
||||
command:
|
||||
argv:
|
||||
- "{{ ansible_env.HOME }}/.unsloth/studio/unsloth_studio/bin/python"
|
||||
- -m
|
||||
- pip
|
||||
- install
|
||||
- "numpy<2"
|
||||
environment:
|
||||
UV_CACHE_DIR: "{{ courseware_uv_cache_dir }}"
|
||||
XDG_CACHE_HOME: "{{ courseware_cache_dir }}"
|
||||
TMPDIR: "{{ courseware_tmp_dir }}"
|
||||
register: courseware_unsloth_numpy_install
|
||||
changed_when: "'Successfully installed' in courseware_unsloth_numpy_install.stdout"
|
||||
|
||||
Reference in New Issue
Block a user