llm, further simplify the pull-llm function so that it never exits prematurely or kills the terminal session.
This commit is contained in:
@@ -545,14 +545,13 @@
|
|||||||
marker: "# {mark} ANSIBLE MANAGED BLOCK | ollama | Manual Script"
|
marker: "# {mark} ANSIBLE MANAGED BLOCK | ollama | Manual Script"
|
||||||
content: |
|
content: |
|
||||||
function pull_llms() {
|
function pull_llms() {
|
||||||
set -e
|
|
||||||
echo "Manually Pulling Models"
|
echo "Manually Pulling Models"
|
||||||
{% for llm in llm_installs %}
|
{% for llm in llm_installs %}
|
||||||
|
|
||||||
echo -e "\n\n Starting {{ llm.model }} \n\n"
|
echo -e "\n\n Starting 'ollama pull {{ llm.model }}' \n\n"
|
||||||
set -x
|
|
||||||
ollama pull {{ llm.model }}
|
ollama pull {{ llm.model }}
|
||||||
set +x
|
status=$?
|
||||||
|
echo "Finished with status $status."
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
echo "Done!!"
|
echo "Done!!"
|
||||||
|
|||||||
Reference in New Issue
Block a user