YouTube_Transcript_Extraction / install_ollama.sh
Sodagraph's picture
cli버전
efb5a4e
raw
history blame contribute delete
671 Bytes
#!/bin/bash
set -e
# Install Ollama
curl -fsSL https://ollama.com/install.sh | sh
# Start Ollama server in the background
ollama serve &
# Wait for Ollama server to start
ATTEMPTS=0
while ! curl -s http://localhost:11434 > /dev/null && [ $ATTEMPTS -lt 30 ]; do
ATTEMPTS=$((ATTEMPTS+1))
echo "Waiting for Ollama server to start... (Attempt $ATTEMPTS/30)"
sleep 2
done
if [ $ATTEMPTS -eq 30 ]; then
echo "Ollama server did not start in time. Exiting."
exit 1
fi
echo "Ollama server started. Pulling model..."
# Pull the model
ollama pull hf.co/DevQuasar/naver-hyperclovax.HyperCLOVAX-SEED-Text-Instruct-0.5B-GGUF:F16
echo "Model pull complete."