diff --git a/assets/css/components.css b/assets/css/components.css index 4e7a2234d3a0..0398544f06eb 100644 --- a/assets/css/components.css +++ b/assets/css/components.css @@ -110,6 +110,6 @@ } .tab-item { - @apply inline-block rounded-sm px-3 py-2 hover:bg-gray-100 dark:hover:bg-gray-900; + @apply inline-block rounded-t-sm px-3 py-2 hover:bg-gray-100 dark:hover:bg-gray-900; @apply dark:text-gray-200; } diff --git a/assets/css/global.css b/assets/css/global.css index 37d2c85d8769..8ff730389ba8 100644 --- a/assets/css/global.css +++ b/assets/css/global.css @@ -49,7 +49,7 @@ input[type="search"]::-ms-clear { margin-bottom: 0.4em !important; } > h2 { - @apply mt-5! mb-3!; + @apply mt-7! mb-3!; font-size: 160% !important; a { @apply hover:no-underline!; diff --git a/assets/css/utilities.css b/assets/css/utilities.css index ee01aaadc7ff..cc7f6b3ba1b9 100644 --- a/assets/css/utilities.css +++ b/assets/css/utilities.css @@ -1,13 +1,3 @@ -@utility icon-svg { - svg { - font-size: 24px; - width: 1em; - height: 1em; - display: inline-block; - fill: currentColor; - } -} - @utility icon-xs { svg { font-size: 12px; @@ -91,6 +81,15 @@ fill: currentColor; } } +@utility icon-svg-stroke { + svg { + font-size: 24px; + width: 1em; + height: 1em; + display: inline-block; + stroke: currentColor; + } +} @utility icon-xs { svg { @@ -257,3 +256,7 @@ @utility pagination-link { @apply flex items-center justify-center rounded-sm p-2; } + +@utility breadcrumbs { + font-size: 90%; +} diff --git a/content/manuals/ai/compose/models-and-compose.md b/content/manuals/ai/compose/models-and-compose.md index e7863b8179a6..737b4b217af2 100644 --- a/content/manuals/ai/compose/models-and-compose.md +++ b/content/manuals/ai/compose/models-and-compose.md @@ -3,7 +3,7 @@ title: Define AI Models in Docker Compose applications linkTitle: Use AI models in Compose description: Learn how to define and use AI models in Docker Compose applications using the models top-level element keywords: compose, docker compose, models, ai, machine learning, cloud providers, specification -alias: +aliases: - /compose/how-tos/model-runner/ - /ai/compose/model-runner/ weight: 10 @@ -68,14 +68,14 @@ models: ``` Common configuration options include: -- `model` (required): The OCI artifact identifier for the model. This is what Compose pulls and runs via the model runner. +- `model` (required): The OCI artifact identifier for the model. This is what Compose pulls and runs via the model runner. - `context_size`: Defines the maximum token context size for the model. - + > [!NOTE] > Each model has its own maximum context size. When increasing the context length, > consider your hardware constraints. In general, try to keep context size > as small as feasible for your specific needs. - + - `runtime_flags`: A list of raw command-line flags passed to the inference engine when the model is started. For example, if you use llama.cpp, you can pass any of [the available parameters](https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md). - Platform-specific options may also be available via extension attributes `x-*` @@ -172,7 +172,7 @@ Docker Model Runner will: > > This approach is deprecated. Use the [`models` top-level element](#basic-model-definition) instead. -You can also use the `provider` service type, which allows you to declare platform capabilities required by your application. +You can also use the `provider` service type, which allows you to declare platform capabilities required by your application. For AI models, you can use the `model` type to declare model dependencies. To define a model provider: diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html index 1b2a0ea2f053..fc893af263e2 100644 --- a/layouts/partials/breadcrumbs.html +++ b/layouts/partials/breadcrumbs.html @@ -2,7 +2,7 @@ id="breadcrumbs" {{- $breadcrumbTitles := slice }} data-pagefind-ignore - class="mb-4 flex min-w-0 items-center gap-2 text-gray-400 dark:text-gray-300" + class="breadcrumbs mb-4 flex min-w-0 items-center gap-2 text-gray-400 dark:text-gray-300" > {{ range .Ancestors.Reverse }} {{ $breadcrumbTitles = $breadcrumbTitles | append .LinkTitle }} diff --git a/layouts/partials/content-default.html b/layouts/partials/content-default.html index 3492323720a2..24dbbbce5a5c 100644 --- a/layouts/partials/content-default.html +++ b/layouts/partials/content-default.html @@ -13,7 +13,7 @@

{{ .Title }}

{{ .Content }} - diff --git a/layouts/partials/github-links.html b/layouts/partials/github-links.html index 8e4694ca37f8..cea019c11548 100644 --- a/layouts/partials/github-links.html +++ b/layouts/partials/github-links.html @@ -7,7 +7,7 @@ {{ with .File }} {{ if not (in .Filename "/_vendor/") }}

- + {{ partial "utils/svg.html" "theme/icons/edit.svg" }} - + {{ partial "utils/svg.html" "theme/icons/issue.svg" }} +