File tree Expand file tree Collapse file tree 4 files changed +38
-0
lines changed
Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ Skips the current directory during automated test runs.
Original file line number Diff line number Diff line change 1+ # Introduction
2+
3+ This is an example on how to run an AI model with [ Ollama] ( https://ollama.com/ )
Original file line number Diff line number Diff line change 1+ services :
2+ gcb-ai-model :
3+ image : ollama/ollama
Original file line number Diff line number Diff line change 1+ ---
2+ name : AI model
3+ author : Arne Tarara <arne@green-coding.io>
4+ description : Run an inference with a small AI model
5+
6+ compose-file : !include compose.yml
7+
8+ flow :
9+ - name : Download gemma3:1b
10+ container : gcb-ai-model
11+ commands :
12+ - type : console
13+ command : ollama pull gemma3:1b
14+ read-notes-stdout : true
15+ log-stdout : true
16+
17+ - name : Load gemma3:1b into memory
18+ container : gcb-ai-model
19+ commands :
20+ - type : console
21+ command : ollama run gemma3:1b "?"
22+ read-notes-stdout : true
23+ log-stdout : true
24+
25+ - name : Run Inference on gemma3:1b
26+ container : gcb-ai-model
27+ commands :
28+ - type : console
29+ command : ollama run gemma3:1b "Tell me a long joke?"
30+ read-notes-stdout : true
31+ log-stdout : true
You can’t perform that action at this time.
0 commit comments