File size: 335 Bytes
72f49d5
 
78f1859
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

echo "Checking for models..."

# Ensure we're using the right home directory
export HOME=/root

# Check if Ollama is running
if ! pgrep -x "ollama" > /dev/null
then
    echo "Ollama is not running. Starting Ollama..."
    ollama serve &
    sleep 5
fi

# Try to pull the model
echo "Pulling phi2 model..."
ollama pull phi2