Every useLive() call opened its own EventSource, and the library page and a
model's Jobs tab call it twice. Over plain HTTP a browser allows 6 connections
per host, so with three library tabs open the third took ~10 s to load and its
requests never got an answer; a fourth tab didn't load.
- /api/live answers one short request with the job snapshot (left out when the
client already has that version) and, for job pages, new log lines.
- src/lib/live-store.ts runs one poller per query per tab, shared by every
component showing it, paused while the tab is hidden, with backoff on errors.
One router.refresh() per finished job instead of one per component.
- The worker dot reads the status from that poll; it only asks /api/status
(every 10 s) when nothing else is polled.
- The worker status no longer carries the heartbeat time (it changed every 5 s,
so every idle stream re-sent its snapshot) and rounds free space to MiB.
- Removes /api/stream: its sleep() added an abort listener per second to the
request signal and never removed it.
- Job actions poll right away after starting or cancelling a job; drops
approveJob/rejectJob, whose routes went away in 0.15.
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>
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>
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>
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>
- 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>
- 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>
- 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>
- 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>