Create pull-model.sh
Browse files- pull-model.sh +9 -0
pull-model.sh
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
# Start Ollama in the background
|
3 |
+
ollama serve &
|
4 |
+
# Wait for the server to start
|
5 |
+
sleep 5
|
6 |
+
# Pull the model
|
7 |
+
ollama pull all-minilm
|
8 |
+
# Stop the background server
|
9 |
+
kill %1
|