AI-RESEARCHER-2024 commited on
Commit
0ffeb39
·
verified ·
1 Parent(s): b066e3a

Create ollama_serve.py

Browse files
Files changed (1) hide show
  1. ollama_serve.py +8 -0
ollama_serve.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import os
2
+
3
+ # model name
4
+ model = 'llama3.2'
5
+ os.system('ollama serve &')
6
+ os.system(f'ollama pull {model}')
7
+ # verify the contents
8
+ os.system(f'ollama pull {model}')