Removes the CivitAI work again (765dac2, a1acd8c): the API client and
link parser, CIVITAI_TOKEN, adding CivitAI models, migration 0027 and
the model page changes. Kaname downloads from Hugging Face only, as in
0.21.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paste a CivitAI model link (civitai.com, .red or .green), a download
link or an AIR id into "Add model": pick a version and its files, and
whether to follow new versions. The model is stored as source "civitai"
with repoId civitai/<modelId>, pinned to the version id, in the folder
civitai/<id>-<name>; files keep CivitAI's SHA-256 for deep verify.
Early access and creator-required logins are caught before anything is
queued.
Migration 0027 adds models.display_name, nsfw and source_card, and
model_files.civitai (file id and attributes). The model page links to
CivitAI instead of the Hub, and Hub checks, updates and adding files
are refused for CivitAI models for now. The worker fails CivitAI
download jobs until it can run them (next step).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
First step towards CivitAI downloads. Lookups of models, versions and
download access (login required, early access with its deadline), and a
parser for civitai.com / .red / .green links, download links and AIR ids.
Nothing uses it yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Files tab → Reload asks the worker for a scan and waits until it has
finished. Every scan now syncs local models' file lists with their
folders (new, resized, removed files; README) and settles the status.
Skipped while a job runs, and for a folder that is gone or too big.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The worker reads README.md when it scans the models folder (the web
app can't see it) and stores it on the folder and, after import, on
the model; every scan refreshes it for local models. Relative images
and links are dropped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add model → Found in the models folder → Import → "Add as local model"
adds a folder that isn't on Hugging Face as it is.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Import form gets "Add as local model": every file in the folder,
kept as it is, named after the folder. A new models.source column
(hub | local) marks them; local models skip Hub checks, metadata,
downloads, updates and deep verify, and Verify checks existence and
size only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The release commit bumped @eslint/core's entry instead of Kaname's own
(the lockfile's root version was still 0.16.0). Restore @eslint/core and
set the root version to 0.18.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings → Appearance: upload an image to draw it as the dot matrix
behind every page header instead of The Creation of Adam.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings → Appearance: upload an image and every page header draws it as
the dot matrix instead of The Creation of Adam, with a clickable focus
point and a switch back to the built-in painting. The browser turns the
image into a brightness grid; only that grid is saved as a setting.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
Settings -> Downloads lets you scan the models folder every 2 minutes
(default, as before), hourly, daily, weekly, monthly at a chosen local
time, or only manually, with a Scan now button and the last/next scan.
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>
Xet holds downloaded data in memory and writes the file in large, late
chunks, so on-disk sizes showed little or no progress. For Xet runs,
force hf's progress bars on (TQDM_POSITION=-1), read its running byte
count and keep the bars out of the job log.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A progress sample that missed a partial file showed 0 B while hf kept
downloading. Walk the download cache tolerating vanished folders and
never let a file's progress go backwards within a run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
huggingface_hub 2.1.1 refuses files over MAX_HTTP_DOWNLOAD_SIZE (50 GB)
without Xet; Kaname disables Xet by default for steady progress, so such
downloads failed. A download that includes a file over the limit now
runs hf with Xet enabled and says so in the job log.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A deterministic quality eval as a run type next to BetterBench: tool
calling (12 requests), coding (8 Python functions checked by unit tests
in a locked-down sandbox container) and long-context retrieval (needle at
3 depths in 3 lengths up to the context). Versioned eval set in
src/evals/v1, score stored per run, shown on the run page, in compare
views, the benchmark list and sweep tables (optional eval per variant);
API kind "eval", quality in run/sweep/compare answers; skill updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Scopes deployments:read/write and benchmarks:read/run; /api/v1 endpoints
for runtimes, deployments (create with dry run, edit, start, stop, delete
own ones), benchmark runs, A/B, sweeps and comparisons; ?wait= on all
status endpoints. Guardrails: approval, agent deployments at once, one
GPU job at a time, time limits, sweep variants, runtime and argument
allowlists, host port range, memory/CPU caps, protected deployments with
a VRAM check. Requested-by filters, approval bars, per-token activity log,
scope editing, docs/agent/SKILL-tuning.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Intel/AMD GPU telemetry in benchmark runs (hwmon power/temperature,
amdgpu sysfs, Intel VRAM/utilization from DRM fdinfo via a minimal
host-PID probe container), temperature for all GPUs, VRAM estimate for
NVIDIA and Intel/AMD in the deployment form, /dev/dri group IDs added to
Intel/AMD runtime containers, Intel llama.cpp presets seeded on first
detection, ZES_ENABLE_SYSMAN=1 for the SYCL preset.
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>
- Scoped bearer tokens (models:read, downloads:create), stored as SHA-256, managed in
Settings -> API tokens. Only /api/v1 accepts them; the rest stays OIDC-only.
- /api/v1: Hub lookup, library list with the search filters, download requests through the
existing add-model/queue path (idempotent), compact job status, disk space.
- Guardrails: approval mode (default approve), max size per request, minimum free space incl.
reserved bytes, max open agent jobs, author allowlist. Approve/reject in the UI; "requested by"
shown and filterable.
- docs/api.md (incl. Traefik forward-auth bypass), docs/agent/SKILL.md, DB-backed API tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hf has no bandwidth option, so the worker pauses hf (SIGSTOP/SIGCONT) whenever it is ahead of a
token bucket over bytes on disk. The limit is shared by all running downloads and re-read every
5 s.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A/B with betterbench ab between two deployments of the same model, with verdict, confidence
interval and caveats.
- Sweeps vary one or two deployment settings, deploy, benchmark and remove each variant, and
compare them in one table.
- Every run records CPU, RAM, VRAM, GPU utilization and power.
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>
- Settings → API keys (generate or paste, show again, delete). Deployments with
"Require an API key" get them via LLAMA_API_KEY / VLLM_API_KEY (--api-key for
several vLLM keys); values are masked in the stored/shown command and in logs.
The chat proxy sends a key.
- "Deploy" in the library and on the model page preselects the model and a
runtime that can serve it; library rows and the model page link to the
model's deployments.
- Deployment form: grouped launch options with flags next to labels, command in
its own step, extra arguments as flag/value rows (runtime form too).
- Native selects follow the dark theme (color-scheme), fixing unreadable options.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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 <noreply@anthropic.com>
- deployments + deployment_logs tables; desired/actual state reconciled by
the worker (create/start/stop/remove via the socket proxy, /health wait,
log follower, stats, memory guard, adopt/remove containers on restart).
- Pure command builder for llama-server and vllm serve (mmproj, MTP draft,
KV cache types, dtype, KV cache size) with tests; file candidates per
engine with tests.
- New main menu entry Deployments: list, new/edit form (runtime -> model
and files -> launch options, live command preview), detail page with
stats, log, endpoint and a streaming chat smoke test.
Not yet tested end-to-end against real containers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`void query` doesn't execute a Drizzle query (it runs on then/await), so
pull progress stayed at "Starting" until the pull finished.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The act_runner cache server isn't reachable from job containers
(getCacheEntry ETIMEDOUT), so restoring and saving the cache timed out
for ~4.5 min each, ~9 of the ~12 minutes per release.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- docker-proxy service (tecnativa/docker-socket-proxy) in both compose
files; worker uses it via DOCKER_HOST with a dependency-free client.
- runtimes table with presets (llama.cpp CPU, vLLM CPU) and custom
images; validation of image refs, env, args, devices (/dev/dri, /dev/kfd).
- Worker reports Docker/CPU/memory facts and detects its network and
models mount; pulls images with progress; image state per runtime.
- Settings -> Runtimes page with host card, list, editor, pull/update.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Delete any model (incl. failed ones); the worker removes the repo's
files (keeps foreign files and empty-folder cleanup), then the rows.
- Verify (existence, size, hf metadata) and deep verify (SHA-256 /
git blob SHA-1 against the Hub) with missing/mismatch/extra report.
- Repair = download of the selection; broken files are deleted first
because hf skips files whose metadata matches without checking them.
- Hub check resolves the tracked revision and stores which selected
files a newer commit changes/adds/removes; Update pins it (old commit
kept in model_revisions), downloads, then removes dropped files.
- Worker runs verify/delete jobs next to downloads (2 local slots).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Picking model weights in Add model or Download more also selects the
files that usually go with them (chat template, MTP head, mmproj, ...),
shown in a strip where each can be unchecked. Variants are matched by
quant, otherwise the best single one; kinds already selected aren't
added twice. Which kinds is set in Settings -> Downloads.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The worker scans MODELS_DIR (startup, every 2 min, on "Rescan") for
<org>/<name> folders that no model uses and stores them in local_folders.
The library lists them; Import opens Add model prefilled with the folder,
the commit hf recorded and the files on disk preselected. The import job
runs hf download into the existing folder: hf 2.1.1 hashes files it didn't
download itself, keeps matching ones and re-downloads the rest (verified
in Docker, including a corrupted file being replaced).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Worker checks each model's repo and pinned commit on the Hub every
UPDATE_CHECK_INTERVAL_HOURS and after failed downloads; missing repos or
commits are flagged (badge, banner, Status filter) and block new
downloads. Local files are never touched. "Check now" on the model page.
- Tag picker dropdown ("Create new tag…" first, then existing tags) on the
model page and in Add model.
- Settings: separate File labels and Tags pages; create tags there. Unused
tags are no longer deleted automatically.
- Header: app icon, nav with active state, account menu with the OIDC
profile picture, theme switch and sign out.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Files tab: "Download more" adds files to a model's selection and queues them
- Colored file labels (Model, MTP, Vision/mmproj, imatrix, Config, …)
- Split GGUF/safetensors parts shown and selected as one entry everywhere
- Settings page with a Labels section: file label names/colors, tag
rename/recolor/delete; new settings table and tags.color
- Quants only count model weights
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Base UI formats aria-valuetext with the runtime locale (server: "50%", German browser: "50 %"). Pin the Progress wrapper to en-US.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Files is the default tab: icon/size/LFS/state per file, on-disk summary, unselected files collapsed
- Custom tags color-coded by name (editor, library, filter chips and menu)
- Header: only the Hugging Face link (top right); README link moved to the end of the model card
- App icon; proxy lets /icon.svg through
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tabs become a segmented control in the content card header; drop the full-bleed header band and the page-wide tab line; files tab without nested boxes; download card heading matches the other sidebar cards.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Model URLs are the repo path (case-insensitive, canonical redirect);
/models/<id> redirects
- Header with avatar, org/name + copy, task/format/arch/language/license
pills, user tags, cross-links to the Hub (files @ sha, commits, community,
base model) and tabs: rendered model card at the pinned commit, files, jobs
- Sidebar: download card, local copy, model tree with related local models
- Metadata gains author avatar and base relation (refetched once)
- Proxy matcher excludes only exact /login and /api/auth/ paths
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Rename the app to Kaname
- Hub metadata per model (base models, architecture, license, Hub tags),
backfilled by the worker for existing models
- Library search across repo/author/family/quant/tags and multi-select
facet filters (author, family, quant, tag, status) kept in the URL
- Custom tags (model page editor, on add, click-to-filter)
- README rewritten around a quick install, with banner and screenshots
- deploy/compose.yaml: models in a host folder (KANAME_MODELS_DIR)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- deploy/compose.yaml: KANAME_DATA_DIR bind mount (SQLite) for web and
worker, NFSv4 volume for models (worker only), configured via .env
- entrypoint fails fast with a chown hint if /data or /models isn't writable
- .env.example and README document the server storage layout
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>
The add form now opens inline from the library instead of living on its own
page with a separate menu entry. After adding, the panel closes and the new
model's download progress shows in the list.
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>
- Hub API client: resolve revision to SHA, paginated recursive file tree,
gated-access probe, readable error mapping
- Add-model page with quant quick-select, fnmatch-compatible include/exclude
globs, selection summary and free-space hint
- Models stored pinned to the reviewed SHA with full file list and selection rule
- Library list, model detail page, remove (never-downloaded models only)
- Worker reports MODELS_DIR free space; unit tests for selection logic
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>