You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/manuals/ai/model-runner/_index.md
+183Lines changed: 183 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -252,6 +252,8 @@ For more details, see the [`docker model package`](/reference/cli/docker/model/p
252
252
253
253
## Example: Integrate Docker Model Runner into your software development lifecycle
254
254
255
+
### Sample project
256
+
255
257
You can now start building your Generative AI application powered by the Docker Model Runner.
256
258
257
259
If you want to try an existing GenAI application, follow these instructions.
@@ -272,6 +274,187 @@ You'll see the GenAI app's interface where you can start typing your prompts.
272
274
273
275
You can now interact with your own GenAI app, powered by a local model. Try a few prompts and notice how fast the responses are — all running on your machine with Docker.
274
276
277
+
### Use Model Runner in GitHub Actions
278
+
279
+
Here is an example on how to use Model Runner as part of a GitHub workflow.
280
+
The example installs Model Runner, tests the installation, pulls and runs a model,
281
+
interacts with the model via the API and finally deletes the model.
282
+
283
+
```yaml {title="dmr-run.yml", collapse=true}
284
+
name: Docker Model Runner Example Workflow
285
+
286
+
permissions:
287
+
contents: read
288
+
289
+
on:
290
+
workflow_dispatch:
291
+
inputs:
292
+
test_model:
293
+
description: 'Model to test with (default: ai/smollm2:360M-Q4_K_M)'
0 commit comments