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-for-openai-clients"
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). Outputs the url for OpenAI SDK/clients.'
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). Outputs the url for OpenAI SDK/clients." type="llm-model" supportedParams="model,context_size" expectedOutputs="model,url,api-key" %}}

{{% example-file filename="10-dmr-llm-model-for-openai-clients.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 @@ -9,7 +9,7 @@ resourceType: "llm-model"
provisionerType: "template"
flavor: "dmr"
excerpt: ''
description: 'Generates the LLM model via the Docker Model Runner (DMR).'
description: 'Generates the LLM model via the Docker Model Runner (DMR). Outputs the url for Ollama-compatible clients.'
expectedOutputs:
- model
- url
Expand All @@ -21,6 +21,6 @@ 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" %}}
{{% resource-provisioner-content description="Generates the LLM model via the Docker Model Runner (DMR). Outputs the url for Ollama-compatible clients." 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 @@ -14,6 +14,7 @@ flavor: "Resources"

{{< tabs >}}
{{% tab name="score-compose" %}}
{{% example-file filename="10-dmr-llm-model-for-openai-clients.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-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" %}}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
- uri: template://community-provisioners/dmr-llm-model-for-openai-clients
type: llm-model
description: Generates the LLM model via the Docker Model Runner (DMR). Outputs the url for OpenAI SDK/clients.
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,12 +1,12 @@
- uri: template://community-provisioners/dmr-llm-model
type: llm-model
description: Generates the LLM model via the Docker Model Runner (DMR).
description: Generates the LLM model via the Docker Model Runner (DMR). Outputs the url for Ollama-compatible clients.
supported_params:
- model
- context_size
outputs: |
model: {{ .Init.model }}
url: "http://172.17.0.1:12434/engines/v1/"
url: "http://172.17.0.1:12434/"
api-key: "not-needed"
expected_outputs:
- model
Expand All @@ -17,4 +17,4 @@
models: |
{{ .Id }}:
model: {{ .Init.model }}
context_size: {{ .Params.context_size | default 2048 }}
context_size: {{ .Params.context_size | default 2048 }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
- uri: template://community-provisioners/dmr-llm-model-for-openai-clients
type: llm-model
description: Generates the LLM model via the Docker Model Runner (DMR). Outputs the url for OpenAI SDK/clients.
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,12 +1,12 @@
- uri: template://community-provisioners/dmr-llm-model
type: llm-model
description: Generates the LLM model via the Docker Model Runner (DMR).
description: Generates the LLM model via the Docker Model Runner (DMR). Outputs the url for Ollama-compatible clients.
supported_params:
- model
- context_size
outputs: |
model: {{ .Init.model }}
url: "http://172.17.0.1:12434/engines/v1/"
url: "http://172.17.0.1:12434/"
api-key: "not-needed"
expected_outputs:
- model
Expand All @@ -17,4 +17,4 @@
models: |
{{ .Id }}:
model: {{ .Init.model }}
context_size: {{ .Params.context_size | default 2048 }}
context_size: {{ .Params.context_size | default 2048 }}