testshiny / ollama_setup.sh
pgleeson's picture
Just exit
8ff58f9
raw
history blame contribute delete
410 Bytes
#!/bin/bash
set -ex
# Start Ollama server in the background
/usr/local/bin/ollama serve &
# Wait for the server to be ready
while ! nc -z localhost 11434; do
echo "Waiting for Ollama server to start..."
sleep 2
done
# Pull the model
echo "Pulling the model..."
#ollama pull nomic-embed-text
#ollama pull llama3.2:1b
ollama list
#echo "kill ollama..."
#pkill ollama ; echo $?
echo "Exiting"
exit