File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
content/manuals/ai/compose Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ services:
4040
4141models :
4242 smollm2 :
43- image : ai/smollm2
43+ model : ai/smollm2
4444` ` `
4545
4646### How it works
@@ -70,7 +70,7 @@ services:
7070
7171models:
7272 smollm2:
73- image : ai/smollm2
73+ model : ai/smollm2
7474` ` `
7575
7676With this configuration, your `my-chat-app` service will receive :
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ services:
4242
4343models :
4444 llm :
45- image : ai/smollm2
45+ model : ai/smollm2
4646` ` `
4747
4848This example defines:
@@ -56,7 +56,7 @@ Models support various configuration options:
5656` ` ` yaml
5757models:
5858 llm:
59- image : ai/smollm2
59+ model : ai/smollm2
6060 context_size: 1024
6161 runtime_flags:
6262 - "--a-flag"
@@ -87,9 +87,9 @@ services:
8787
8888models:
8989 llm:
90- image : ai/smollm2
90+ model : ai/smollm2
9191 embedding-model:
92- image : ai/all-minilm
92+ model : ai/all-minilm
9393` ` `
9494
9595With short syntax, the platform automatically generates environment variables based on the model name :
@@ -116,9 +116,9 @@ services:
116116
117117models:
118118 llm:
119- image : ai/smollm2
119+ model : ai/smollm2
120120 embedding-model:
121- image : ai/all-minilm
121+ model : ai/all-minilm
122122` ` `
123123
124124With this configuration, your service receives :
@@ -142,7 +142,7 @@ services:
142142
143143models:
144144 llm:
145- image : ai/smollm2
145+ model : ai/smollm2
146146` ` `
147147
148148Docker Model Runner will :
@@ -163,9 +163,9 @@ services:
163163
164164models:
165165 llm:
166- image : ai/smollm2
166+ model : ai/smollm2
167167 # Cloud-specific configurations
168- labels :
168+ x-cloud-options :
169169 - "cloud.instance-type=gpu-small"
170170 - "cloud.region=us-west-2"
171171` ` `
You can’t perform that action at this time.
0 commit comments