The runtime stage copied the whole production node_modules (495 MB, with
shadcn's CLI tree, the SWC compiler and sharp) and all of .next (163 MB, 119 MB
of it Turbopack's build cache). The image is now 427 MB instead of 1.04 GB:
- Next.js standalone output (NEXT_OUTPUT=standalone, set by the Dockerfile; a
local `next build`/`next start` is unchanged): server.js with only the traced
node_modules (39 MB). images.unoptimized (nothing uses next/image) keeps sharp
and libvips out of the server's trace; /_next/image answers 404.
- build:worker bundles drizzle-orm, zod and ulid into dist/*.mjs and keeps only
@libsql/client and libsql external; the standalone node_modules has both.
- npm's cache and .next/cache are BuildKit cache mounts: reused by the next
build on the same machine (Next build 30 s -> 12 s after a code change), never
in a layer.
- Release archives (BetterBench, both L80 tarballs) are fetched in their own
stage; only the L80 binary is copied, BetterBench is installed from a bind
mount.
- shadcn and tw-animate-css (CSS imports, build time only) move to
devDependencies; package-lock.json regenerated with npm 11 (the image's npm).
Verified by building the image and running web, worker and sandbox from it:
pages and /api/live answer, the worker migrates, takes the lease and finds hf,
BetterBench and L80, all three healthchecks pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EooZ9biu7kFNB4eDJrwQc5
- Dot-matrix "Creation of Adam" page banners behind a floating menu,
glass cards and tables, library header with live stats, table toolbar
with pagination, Cmd/Ctrl+K search across models, endpoints, runs,
tags, settings and actions.
- Remove single files from a model (selection + disk, via a worker job).
- Containers start as root to prepare folders and drop to PUID:PGID;
AUTH_SECRET is generated when unset; sandbox runs as nobody;
KANAME_IMAGE and image docs in the README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kaname keeps two jobs: the model downloader and benchmarks. Benchmarks
now run against endpoints (any OpenAI-compatible server added by URL,
with an optional server-side API key and hand-written hardware notes)
instead of deployments Kaname started itself.
Removed: runtimes, deployments, sweeps, resource telemetry, hardware
detection, the /api/v1 API with tokens and guardrails, and all Docker
access. The quality eval's coding tests run in a network-less sandbox
container that shares only an exchange folder with the worker.
The previous state is kept in branch backup / tag backup-0.14.3.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every run records GPUs (PCIe link under load and maximum, ReBAR, P2P),
runtime image/tag/digest and the engine version the server reports,
model, quant, KV cache, context and concurrency, plus a whitelisted
system summary and a description. Shown on the run page, compare and
sweep views; passed to BetterBench as notes and to the launch80 preview
as sections. Settings -> Hardware for manual values.
Also: scripts/intel-probe.sh (read-only diagnostics for Intel hosts),
and --quick is no longer passed together with --passes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Benchmarks: BetterBench 0.6.1 (pinned by checksum) runs against a running
deployment, one at a time; quick/full/custom passes, phase selection, live
step and output, cancel, run again, compare runs side by side.
- Report page after launch80's bench.betterbench.v1: headline tiles,
"Read these first" caveats (quick, sample gate, max_tokens truncation,
batched streams, failures, skipped depths, prefix-cache hits), charts, full
tables with daggered under-sampled cells, method text. All figures come from
BetterBench's own report functions.
- Publish to launch80 as a double opt-in: L80 dry run builds the exact payload
for inspection, an explicit confirmation publishes that file (L80 CLI 0.4.0
pinned by checksum, L80_TOKEN worker-only). Endpoint and host never leave.
- GPUs: runtime accelerator (CPU, NVIDIA, /dev/dri, ROCm) with presets for the
official CUDA/Vulkan/Intel/ROCm builds; NVIDIA GPUs probed via nvidia-smi in
a short-lived container; per-deployment GPU picking, -ngl, split mode,
tensor split, MoE offload, vLLM tensor parallel and GPU memory share.
- llama.cpp --cache-ram option (1 GiB for new deployments) and a memory
estimate that counts it and the KV cache: the 8 GiB default made containers
thrash at their memory limit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- docker-entrypoint.sh: `web` (default) or `worker`; both apply pending
migrations under a flock on /data, so no start-order dependency
- docker-healthcheck.sh baked into the image for both roles
- deploy/compose.yaml reduced to image, role, env file, volumes, port
- dist/migrate.mjs bundled alongside the worker
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- .gitea/workflows/release.yaml: on vX.Y.Z tags run checks, build and push the
image to the Gitea registry (X.Y.Z, X.Y, latest), create a release from the
CHANGELOG section
- scripts/release-notes.mjs: extract changelog section, create the release
- deploy/compose.yaml: server setup using the released image
- APP_VERSION build arg, shown in the header
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Worker queue with per-model exclusivity and MAX_CONCURRENT_DOWNLOADS,
spawns `hf download --revision <sha> --local-dir ... --include <exact paths>`
with HF_TOKEN via env only
- Progress from bytes on disk (final + .incomplete files matched by etag),
per job and per file, with speed and ETA; post-download size/etag check
- Job logs (sanitized), cancel, graceful interrupt on shutdown,
partial-file cleanup (hf 2.1.1 does not resume partials)
- Single-worker DB lease, free-space check
- SSE live updates for library, model and job pages
- Dockerfile + compose.yaml (web, worker, data/models volumes)
- HF_HUB_DISABLE_XET default on for measurable progress
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>