From 66e6a8c4f7293138044a7fd96670d96ecf0aaf43 Mon Sep 17 00:00:00 2001 From: Pascal Linxweiler Date: Tue, 6 Oct 2026 12:01:52 +0200 Subject: [PATCH] Deployments: llama.cpp web UI toggle, clearer start failures, log fixes - Web UI option for llama.cpp deployments (--no-webui when off); the deployment page links to it on the published host port. - Follow container logs after the start with tail=all: following a created container returned an already-closed stream, so startup output was lost. - Failed starts name the cause from the log (vLLM ValueError, llama.cpp error lines) before the last output. - A deployment's vLLM dtype replaces the runtime's --dtype instead of repeating it. - vLLM memory estimate: 3 GiB overhead (measured ~6.9 GiB for SmolLM2-135M with a 4 GiB KV cache). Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 5 ++++ .../deployments/[id]/deployment-detail.tsx | 16 +++++++++- src/app/(app)/deployments/deployment-form.tsx | 8 +++++ src/lib/db/schema.ts | 2 ++ src/lib/deploy-command.test.ts | 23 +++++++++++++-- src/lib/deploy-command.ts | 18 ++++++++++-- src/lib/deployments.ts | 3 +- src/worker/deployments.ts | 29 ++++++++++--------- src/worker/docker/client.ts | 4 +-- src/worker/log-causes.test.ts | 25 ++++++++++++++++ src/worker/log-causes.ts | 20 +++++++++++++ 11 files changed, 130 insertions(+), 23 deletions(-) create mode 100644 src/worker/log-causes.test.ts create mode 100644 src/worker/log-causes.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 520d983..ea17fe4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,11 @@ step 1 (Hugging Face downloader) is released as a minor version. - Deployment page: state, load time, live CPU/RAM, endpoint URLs (Docker network and published port), live log, start/stop/edit/delete, and a "Try it" chat that streams the answer and shows time to first token and tokens/s. + - llama.cpp's built-in **web UI** can be switched on or off per deployment (`--no-webui`); with a + published host port the deployment page links to it. + - A failed start names the cause from the log (e.g. vLLM's `ValueError` instead of the end of the + traceback), followed by the last lines of output. + - A deployment's vLLM data type replaces the runtime's `--dtype` instead of repeating the flag. - Models and runtimes used by a deployment can't be deleted until the deployment is. ### Fixed diff --git a/src/app/(app)/deployments/[id]/deployment-detail.tsx b/src/app/(app)/deployments/[id]/deployment-detail.tsx index 46ac574..d6a575a 100644 --- a/src/app/(app)/deployments/[id]/deployment-detail.tsx +++ b/src/app/(app)/deployments/[id]/deployment-detail.tsx @@ -1,6 +1,6 @@ "use client"; -import { PencilIcon, PlayIcon, SendIcon, SquareIcon, Trash2Icon } from "lucide-react"; +import { ExternalLinkIcon, PencilIcon, PlayIcon, SendIcon, SquareIcon, Trash2Icon } from "lucide-react"; import Link from "next/link"; import { useRouter } from "next/navigation"; import { useEffect, useRef, useState, useSyncExternalStore } from "react"; @@ -74,6 +74,8 @@ export function DeploymentDetail({ initial }: { initial: Deployment }) { () => null, ); const published = d.hostPort && hostname ? `http://${hostname}:${d.hostPort}/v1` : null; + // llama-server's built-in chat UI, served at / on the same port. + const webUi = d.engine === "llama.cpp" && d.options.webui !== false && d.hostPort && hostname ? `http://${hostname}:${d.hostPort}/` : null; return (
@@ -95,6 +97,18 @@ export function DeploymentDetail({ initial }: { initial: Deployment }) { {d.runtimeImage}
+ {webUi && ( + + + Web UI + + )} {active ? (