AIencoder commited on
Commit
a2c0e36
·
verified ·
1 Parent(s): b5af145

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +22 -2
entrypoint.sh CHANGED
@@ -6,11 +6,31 @@ ollama serve &
6
 
7
  sleep 10
8
 
9
- echo "Pulling models..."
10
  ollama pull qwen2.5-coder:1.5b
11
  ollama pull qwen2.5-coder:3b
12
  ollama pull qwen2.5-coder:7b
13
- ollama pull qwen3-coder:30b-a3b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  echo "Models ready!"
16
  ollama list
 
6
 
7
  sleep 10
8
 
9
+ echo "Pulling standard models..."
10
  ollama pull qwen2.5-coder:1.5b
11
  ollama pull qwen2.5-coder:3b
12
  ollama pull qwen2.5-coder:7b
13
+
14
+ echo "Downloading Qwen3-Coder-30B-A3B GGUF (this takes a while)..."
15
+ mkdir -p /tmp/models
16
+ curl -L -o /tmp/models/qwen3-coder-30b-a3b.gguf \
17
+ "https://huggingface.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF/resolve/main/Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf"
18
+
19
+ echo "Creating Ollama model from GGUF..."
20
+ cat > /tmp/Modelfile << 'EOF'
21
+ FROM /tmp/models/qwen3-coder-30b-a3b.gguf
22
+ TEMPLATE """{{- if .System }}<|im_start|>system
23
+ {{ .System }}<|im_end|>
24
+ {{ end }}<|im_start|>user
25
+ {{ .Prompt }}<|im_end|>
26
+ <|im_start|>assistant
27
+ """
28
+ PARAMETER stop "<|im_end|>"
29
+ PARAMETER temperature 0.7
30
+ PARAMETER num_ctx 4096
31
+ EOF
32
+
33
+ ollama create qwen3-coder-30b-a3b -f /tmp/Modelfile
34
 
35
  echo "Models ready!"
36
  ollama list