Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: "dmr-llm-model"
draft: false
mermaid: true
type: examples
source: "community"
implementation: "score-compose"
resourceType: "llm-model"
provisionerType: "template"
flavor: "dmr"
excerpt: ''
description: 'Generates the LLM model via the Docker Model Runner (DMR).'
expectedOutputs:
- model
- url
- api-key
supportedParams:
- model
- context_size
hasMore: false

---

{{% resource-provisioner-content description="Generates the LLM model via the Docker Model Runner (DMR)." type="llm-model" supportedParams="model,context_size" expectedOutputs="model,url,api-key" %}}

{{% example-file filename="10-dmr-llm-model.provisioners.yaml" dir="resource-provisioners/community/llm-model/score-compose" githubUrl="https://github.com/score-spec/community-provisioners/blob/main" %}}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ flavor: "Resources"
{{% example-file filename="10-dmr-llm-model-via-curl-cmd.provisioners.yaml" dir="score/resources/community-provisioners/llm-model/score-compose" githubUrl="https://github.com/score-spec/community-provisioners/blob/main" %}}
{{% example-file filename="10-dmr-llm-model-via-curl-service.provisioners.yaml" dir="score/resources/community-provisioners/llm-model/score-compose" githubUrl="https://github.com/score-spec/community-provisioners/blob/main" %}}
{{% example-file filename="10-dmr-llm-model-via-service-provider.provisioners.yaml" dir="score/resources/community-provisioners/llm-model/score-compose" githubUrl="https://github.com/score-spec/community-provisioners/blob/main" %}}
{{% example-file filename="10-dmr-llm-model.provisioners.yaml" dir="score/resources/community-provisioners/llm-model/score-compose" githubUrl="https://github.com/score-spec/community-provisioners/blob/main" %}}
{{% example-file filename="10-ollama-llm-model-service.provisioners.yaml" dir="score/resources/community-provisioners/llm-model/score-compose" githubUrl="https://github.com/score-spec/community-provisioners/blob/main" %}}

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#
- uri: template://community-provisioners/dmr-llm-model-via-service-provider
type: llm-model
description: Generates the LLM model service via the Docker Model Runner (DMR) provider.
info_logs: |
- "This service provider approach is now deprecated, use the 10-dmr-llm-model.provisioners.yaml provisioner file instead."
supported_params:
- model
outputs: |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
- uri: template://community-provisioners/dmr-llm-model
type: llm-model
description: Generates the LLM model via the Docker Model Runner (DMR).
supported_params:
- model
- context_size
outputs: |
model: {{ .Init.model }}
url: "http://172.17.0.1:12434/engines/v1/"
api-key: "not-needed"
expected_outputs:
- model
- url
- api-key
init: |
model: {{ .Params.model | default "ai/smollm2:135M-Q4_0" }}
models: |
{{ .Id }}:
model: {{ .Init.model }}
context_size: {{ .Params.context_size | default 2048 }}
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#
- uri: template://community-provisioners/dmr-llm-model-via-service-provider
type: llm-model
description: Generates the LLM model service via the Docker Model Runner (DMR) provider.
info_logs: |
- "This service provider approach is now deprecated, use the 10-dmr-llm-model.provisioners.yaml provisioner file instead."
supported_params:
- model
outputs: |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
- uri: template://community-provisioners/dmr-llm-model
type: llm-model
description: Generates the LLM model via the Docker Model Runner (DMR).
supported_params:
- model
- context_size
outputs: |
model: {{ .Init.model }}
url: "http://172.17.0.1:12434/engines/v1/"
api-key: "not-needed"
expected_outputs:
- model
- url
- api-key
init: |
model: {{ .Params.model | default "ai/smollm2:135M-Q4_0" }}
models: |
{{ .Id }}:
model: {{ .Init.model }}
context_size: {{ .Params.context_size | default 2048 }}