File size: 664 Bytes
a403685
cfd4baa
e522158
9d77c8f
cfd4baa
a403685
 
 
 
00b61ae
a403685
7b21871
 
0894b57
7b21871
 
0894b57
831cd5c
 
 
 
 
 
0894b57
 
7b21871
 
831cd5c
 
b72977c
0894b57
ad5928f
 
a403685
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash

export OLLAMA_MODELS=/root/.ollama/models
export OLLAMA_KEEP_ALIVE=-1

ollama serve &
OLLAMA_PID=$!

echo "Waiting for Ollama to start..."
sleep 10

echo "Pulling qwen3:1.7b..."
ollama pull qwen3:1.7b

echo "Pulling qwen2.5:1.5b..."
ollama pull qwen2.5:1.5b

echo "Pulling granite4:3b-h..."
ollama pull granite4:3b-h

echo "Pulling lfm2.5-thinking:1.2b..."
ollama pull lfm2.5-thinking:1.2b

# حمّل الكل في RAM فوراً
echo "Loading all models into RAM..."
ollama run qwen3:1.7b "" &
ollama run qwen2.5:1.5b "" &
ollama run granite4:3b-h "" &
ollama run lfm2.5-thinking:1.2b "" &

echo "✅ All models ready!"
ollama list

wait $OLLAMA_PID