Skip to content

Commit

Permalink
zero-touch-base-rhel, add token for instructlab hugging face login (#…
Browse files Browse the repository at this point in the history
…9035)

* zero-touch-base-rhel, add token for instructlab hugging face login

* line length
  • Loading branch information
wilson-walrus authored Feb 11, 2025
1 parent 35b13b9 commit 8de88ff
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ansible/configs/zero-touch-base-rhel/instructlab_setup.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
- name: Install instructlab into the specified (virtualenv)
ansible.builtin.pip:
name: git+https://github.com/instructlab/[email protected]
virtualenv: /instructlab/venv/bin/activate
virtualenv: /home/instruct/instructlab/venv/bin/activate
virtualenv_site_packages: yes

- name: Execute ilab command for initial configuration
ansible.builtin.command: /instructlab/venv/bin/ilab config init
ansible.builtin.command: /home/instruct/instructlab/venv/bin/ilab config init

- name: Execute ilab command to download Granite
ansible.builtin.command: /instructlab/venv/bin/ilab model download --repository instructlab/granite-7b-lab-GGUF --filename=granite-7b-lab-Q4_K_M.gguf
ansible.builtin.command: |
"/home/instruct/instructlab/venv/bin/ilab model download --repository instructlab/granite-7b-lab-GGUF --filename=granite-7b-lab-Q4_K_M.gguf --hf-token {{ huggingface_ro_token }}"
- name: Execute ilab command to download Merlinite
ansible.builtin.command: /instructlab/venv/bin/ilab model download --repository instructlab/merlinite-7b-lab-GGUF --filename=merlinite-7b-lab-Q4_K_M.gguf
ansible.builtin.command: |
"/home/instruct/instructlab/venv/bin/ilab model download --repository instructlab/merlinite-7b-lab-GGUF --filename=merlinite-7b-lab-Q4_K_M.gguf --hf-token {{ huggingface_ro_token }}"

0 comments on commit 8de88ff

Please sign in to comment.