ruslanmv commited on
Commit
a1a0220
1 Parent(s): aa4981d

Update init.sh

Browse files
Files changed (1) hide show
  1. init.sh +9 -1
init.sh CHANGED
@@ -1,7 +1,15 @@
1
  #!/bin/bash
2
  which ollama
 
 
 
 
 
 
 
 
3
  echo "🔴 Retrieve LLAMA3 model..."
4
- ollama pull llama3
5
  echo "🟢 Done!"
6
  # Wait for Ollama process to finish.
7
  wait $pid
 
1
  #!/bin/bash
2
  which ollama
3
+ # Start Ollama in the background.
4
+ /usr/local/bin/ollama serve &
5
+ # Record Process ID.
6
+ pid=$!
7
+
8
+ # Pause for Ollama to start.
9
+ sleep 5
10
+
11
  echo "🔴 Retrieve LLAMA3 model..."
12
+ /usr/local/bin/ollama pull llama3
13
  echo "🟢 Done!"
14
  # Wait for Ollama process to finish.
15
  wait $pid