Release / release (push) Successful in 2m59s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
860 lines
53 KiB
Markdown
860 lines
53 KiB
Markdown
# Changelog
|
||
|
||
All notable changes to this project are documented here.
|
||
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); each milestone of
|
||
step 1 (Hugging Face downloader) is released as a minor version.
|
||
|
||
## [Unreleased]
|
||
|
||
## [0.23.0] - 2026-11-11
|
||
|
||
Kaname can run without any login: leave the `OIDC_*` settings empty and it opens straight into
|
||
the library.
|
||
|
||
**Upgrading:** `deploy/compose.yaml` and `.env.example` are simpler: folders, port and image are
|
||
written straight into `compose.yaml` (`./data`, `./models`, `3000`). `KANAME_DATA_DIR`,
|
||
`KANAME_MODELS_DIR`, `WEB_PORT` and `KANAME_IMAGE` are gone; if you set them, put those values into
|
||
`compose.yaml` instead. `KANAME_VERSION`, `PUID` and `PGID` still work.
|
||
|
||
### Added
|
||
|
||
- **Running without login:** leave `OIDC_ISSUER`, `OIDC_CLIENT_ID` and `OIDC_CLIENT_SECRET` empty
|
||
(or at the `.env.example` placeholders) and Kaname needs no login; anyone who can reach it can use
|
||
it. With all three set, OIDC login works as before. Only some of them set is an error on start.
|
||
`/api/v1` still requires API tokens either way.
|
||
|
||
### Changed
|
||
|
||
- Simpler `deploy/compose.yaml` (no YAML anchors or variables) and a short `.env.example`.
|
||
|
||
## [0.22.0] - 2026-11-11
|
||
|
||
The API for AI agents is back, for models: a token-authenticated `/api/v1` lets an agent look up
|
||
models, download, verify, repair and tag them, within guardrails you set and, by default, only
|
||
after you approve each download or repair.
|
||
|
||
No changes to `compose.yaml` or `.env`. If Kaname is behind a forward-auth proxy, let `/api/v1/`
|
||
through without forward auth (example in [docs/api.md](docs/api.md)). The new tables and columns are
|
||
added on start.
|
||
|
||
### Added
|
||
|
||
- **API tokens** (Settings → API tokens): create (shown once; only a SHA-256 hash is stored), last
|
||
used, change scopes, revoke, delete. Scopes: `models:read`, `downloads:create`, `models:verify`,
|
||
`tags:write`. Sent as `Authorization: Bearer kn_…`; only `/api/v1` accepts them, and it accepts
|
||
nothing else (the rest of Kaname stays OIDC-only). No token can delete models or files, update a
|
||
model, change settings or manage tokens.
|
||
- **`/api/v1`** ([docs/api.md](docs/api.md)), compact JSON with error messages that say what to do:
|
||
- `GET /api/v1/hub/lookup`, `GET /api/v1/models` (the library's search and filters, including
|
||
"requested by"), `GET /api/v1/models/{id}`, `GET /api/v1/tags`, `GET /api/v1/disk`.
|
||
- `POST /api/v1/downloads`: repo + pinned commit + a quant (with the recommended companion files,
|
||
as in Add model) or include globs, optional tags. Repeating a request returns the existing job.
|
||
- `POST /api/v1/models/{id}/repair`: downloads only the missing or broken files.
|
||
- `POST /api/v1/models/{id}/verify` (`{"deep": true}` hashes): never needs approval; the finished
|
||
job lists what's broken.
|
||
- `POST /api/v1/models/{id}/tags`, `DELETE /api/v1/models/{id}/tags/{name}`.
|
||
- `GET /api/v1/jobs/{id}?wait=900` holds the request until the job is done instead of polling;
|
||
`POST /api/v1/jobs/{id}/cancel` cancels or withdraws a job the token requested.
|
||
- **Guardrails for API downloads and repairs**: approval (default: ask me), max size per request
|
||
(60 GB), free space to keep, counting what open downloads still need (100 GB), agent jobs at once
|
||
(2), an optional author allowlist (new downloads only).
|
||
- **Approval**: an Approve / Reject bar on the model and job pages, "awaiting approval" in the
|
||
library. Rejecting removes a model the request added, or restores the previous file selection.
|
||
- **Requested by <token>** on models and jobs, with a "Requested by" filter in the library, and an
|
||
**activity log** per token that lists every request, including refusals with their error code.
|
||
- **Agent skill** ([docs/agent/SKILL.md](docs/agent/SKILL.md)) and the `kaname` curl helper
|
||
([docs/agent/kaname](docs/agent/kaname)): how to check the library, look up, request, follow,
|
||
verify, repair and tag, and to wait for approval instead of retrying.
|
||
|
||
## [0.21.0] - 2026-11-08
|
||
|
||
### Added
|
||
|
||
- **Reload a local model** (Files tab → **Reload**): reads the folder again, so files you added,
|
||
changed or removed and README.md edits show up right away. Every scan of the models folder (on its
|
||
schedule, or Rescan) now also brings local models' file lists up to date, not only their README.
|
||
|
||
## [0.20.0] - 2026-11-08
|
||
|
||
### Added
|
||
|
||
- **Local models have a model card again:** the folder's `README.md`. The worker reads it when it
|
||
scans the models folder (the web app can't see that folder), so edits show up after the next
|
||
scan. Relative images and links in it are left out.
|
||
|
||
## [0.19.0] - 2026-11-08
|
||
|
||
### Added
|
||
|
||
- **Import a folder that isn't on Hugging Face** (Add model → Found in the models folder → Import →
|
||
**Add as local model**): Kaname adds every file in the folder as it is, named after the folder.
|
||
Local models have no pinned commit, model card or model tree, and no Hub checks, updates or
|
||
downloads. Verify still checks that each file is there with the right size; deep verify isn't
|
||
offered because there are no Hub hashes to compare with.
|
||
|
||
## [0.18.0] - 2026-11-02
|
||
|
||
### Added
|
||
|
||
- **Your own background picture** (Settings → Appearance): upload an image and every page header
|
||
draws it as the dot matrix instead of *The Creation of Adam*; click the preview to choose the part
|
||
that stays in view. The browser turns it into dots, so only those are saved (not the image).
|
||
**Use the built-in painting** switches back.
|
||
|
||
## [0.17.0] - 2026-11-02
|
||
|
||
### Fixed
|
||
|
||
- **Several open tabs no longer stall Kaname.** Every tab with live progress kept one or two
|
||
connections open, and over plain HTTP a browser allows six per server: the third tab loaded
|
||
slowly and a fourth not at all. Live updates are now short requests, one poller per tab shared by
|
||
everything on the page, paused while the tab is in the background. The server also no longer
|
||
grows in memory while a tab stays open, and an idle page no longer redraws every 5 seconds.
|
||
|
||
### Changed
|
||
|
||
- **Lighter library page**: folders found in the models folder no longer bring their whole file
|
||
list (up to 5,000 entries each) into the page; **Import** loads it when you click it. Search and
|
||
filter counts are computed once per change instead of on every progress update.
|
||
- **Lighter benchmark lists**: the Benchmarks and Endpoints pages, a model's sidebar and the ⌘K
|
||
search load only what they show (headline numbers, the quality score), not every run's full
|
||
results; the list refreshed every 3 s during a run now sends a fraction of the data.
|
||
- **Less JavaScript per page** (10–29 KB gzipped less on every page): the dot painting's data is
|
||
loaded once and cached instead of being part of each page, the ⌘K search loads when you first
|
||
reach for it, and the endpoint pages no longer include database code. The painting is drawn once
|
||
per page view instead of twice, and at most once per frame while the window is resized.
|
||
- **Less disk activity**: the models folder scan writes only folders that changed (it rewrote
|
||
every found folder's file list each time, every 2 minutes by default), and download progress
|
||
no longer re-checks files that are already complete, which matters on network shares. A
|
||
benchmark's current step is written when it changes, not for every line BetterBench prints.
|
||
- **Fewer and smaller Hugging Face requests**: adding a model right after looking it up reuses the
|
||
file list it just fetched (a commit's files never change), the author's avatar loads alongside,
|
||
and the regular Hub check asks only for the commit SHA instead of the full model info.
|
||
- The **Model card** tab shows the page at once and the card when it arrives from the Hub.
|
||
- Database indexes for the queries the live view and the worker repeat every few seconds (the
|
||
migration runs by itself on start).
|
||
- **The image is 427 MB instead of 1.04 GB.** The web server runs as Next.js standalone output
|
||
(only the files it uses instead of all of `node_modules`), the worker is bundled, and neither the
|
||
build cache nor the downloaded archives end up in the image; build-only packages (`shadcn`,
|
||
`tw-animate-css`) are dev dependencies. The worker container used about 40 MB at idle instead of
|
||
about 190 MB in our test. Building the image again after a code change reuses npm's and Next's
|
||
caches (the Next build went from 30 to 12 seconds). Nothing changes in `compose.yaml` or `.env`.
|
||
|
||
## [0.16.0] - 2026-10-30
|
||
|
||
A new look, a search for everything (⌘K / Ctrl+K), removing single files, and an easier deployment
|
||
on another server: no `chown` before the first start, no `AUTH_SECRET` to generate.
|
||
|
||
**Upgrading:** take the new `deploy/compose.yaml` (the sandbox now runs as `nobody` and starts after
|
||
the worker; `KANAME_IMAGE` is new). Existing `.env` files keep working; nothing else to do.
|
||
|
||
### Added
|
||
|
||
- **New look**: every main page opens with Michelangelo's *The Creation of Adam* as a dot matrix,
|
||
full width behind a floating menu and fading into the page; cards and tables are frosted glass on
|
||
top of it. Drawn from a small brightness grid in the code (the photo isn't shipped), in the theme's
|
||
colors for light and dark mode.
|
||
- **Library header**: a greeting with live stats: downloads with speed and time left, free space
|
||
on the models folder, library size, and updates or deletions on Hugging Face (each links to the
|
||
matching filter). **Add model** moved up there.
|
||
- **Search everything** with ⌘K / Ctrl+K (or Search in the menu): models, endpoints, benchmark
|
||
runs, tags, settings pages and actions (add a model or endpoint, scan the models folder, theme).
|
||
- The library table: search and filters as one toolbar, one heading style for all tables, and
|
||
**pagination** (10–100 rows per page).
|
||
- **Remove single files** from a model: the trash icon next to a downloaded file on the Files tab
|
||
deletes it (all parts of a split file) from disk and takes it out of the selection; the rest of
|
||
the model stays. A model's last file can't be removed this way (delete the model instead).
|
||
- `PUID`/`PGID`: the user Kaname runs as. The containers start as root only to prepare the folders:
|
||
the data folder is created and given to that user, the models folder only if it is empty (one
|
||
with files in it is never changed). Then they drop to that user.
|
||
- `AUTH_SECRET` is optional: without it, one is generated on first start and kept in the data folder.
|
||
- `KANAME_IMAGE` for a self-built or mirrored image; the README explains where the image is (public,
|
||
no login), its tags, and how to build it yourself.
|
||
|
||
### Changed
|
||
|
||
- The menu floats as two pills (navigation; search, worker status, account). The worker status is a
|
||
green dot while it's online; the account button is just the avatar. The logo is gone.
|
||
- Model pages: the Hugging Face link sits next to the name, Delete at the end of the tabs.
|
||
- The sandbox container runs as `nobody` (65534) instead of the app user.
|
||
- `.env.example` is grouped into required, recommended and optional settings.
|
||
|
||
## [0.15.1] - 2026-10-27
|
||
|
||
### Added
|
||
|
||
- Settings → Downloads → **Models folder scan**: choose when Kaname looks for importable folders
|
||
in the models folder: every 2 minutes (as before, the default), hourly, daily, weekly or monthly
|
||
at a time you pick (in your browser's time zone), or only manually. **Scan now** starts one right
|
||
away; the card shows the last scan, what it found and when the next one is due. A scan missed
|
||
while the worker was down runs when it is back; a restart no longer scans by itself unless one
|
||
is due.
|
||
|
||
## [0.15.0] - 2026-10-26
|
||
|
||
Kaname is back to two jobs: downloading models, and benchmarking the servers that run them. It no
|
||
longer starts servers itself. Benchmarks run against **endpoints**, any OpenAI-compatible server you
|
||
add by URL (llama.cpp, vLLM, SGLang, Ollama, …), wherever it runs. The state before this release is
|
||
kept in the branch `backup` and the tag `backup-0.14.3`.
|
||
|
||
**Upgrading:** replace `compose.yaml` with the new one from `deploy/` (the `docker-proxy` service and
|
||
`DOCKER_HOST` are gone; a `sandbox` service and its volume are new) and run `docker compose up -d
|
||
--remove-orphans`. Containers Kaname started for deployments keep running; stop them yourself if
|
||
you don't need them. The database migrates on start: runtimes, deployments, sweeps, API tokens and
|
||
their settings are deleted; benchmark runs, models and downloads stay.
|
||
|
||
### Added
|
||
|
||
- **Endpoints** (new top-level page): name, URL, optional API key, the model to benchmark, and
|
||
**hardware notes** (GPUs, VRAM, PCIe link, P2P, ReBAR, driver, CPU, RAM, OS, virtualization,
|
||
engine name/version, image, quant, KV cache, context, parallel slots, free text). **Test
|
||
connection** lists the models the server serves and detects llama.cpp, vLLM, SGLang and Ollama
|
||
with their version, context and slots where the server tells. The API key never reaches the
|
||
browser, logs or runs; it goes to BetterBench only through its environment.
|
||
- Runs against endpoints: BetterBench speed runs, paired A/B between two endpoints serving the same
|
||
model (each with its own API key), and the quality eval. Kaname asks the server before queuing and
|
||
again when the run starts; what it reports and the hardware notes are recorded with the run and
|
||
go into BetterBench's notes and launch80 previews (never the URL or the endpoint's name).
|
||
- A **sandbox** container for the quality eval's coding section: no network, read-only, no
|
||
capabilities, memory/CPU/process limits, and only an exchange folder shared with the worker
|
||
(replaces the throwaway containers the worker used to start through Docker).
|
||
- Model pages list the benchmark runs of that model (when the endpoint serves it under its repo id).
|
||
|
||
### Removed
|
||
|
||
- Runtimes, deployments (and their logs, chat, stats), sweeps, the llama.cpp/vLLM presets and the
|
||
resource/GPU telemetry sampled from deployment containers.
|
||
- Hardware detection (Settings → Hardware, the probe containers, `pci.ids` in the image): Kaname
|
||
can't see the machine behind an endpoint; describe it in the endpoint's hardware notes instead.
|
||
- The API for programs and agents (`/api/v1`, API tokens, guardrails, approvals, the activity log,
|
||
the agent skills and `docs/api.md`). Every route now requires the login.
|
||
- Docker access: `DOCKER_HOST`, `KANAME_DOCKER_NETWORK`, `KANAME_MODELS_SOURCE` and the
|
||
`docker-proxy` service.
|
||
|
||
### Changed
|
||
|
||
- Runs from before this release stay readable (with the deployment they measured), but can't be
|
||
run again.
|
||
|
||
## [0.14.3] - 2026-10-22
|
||
|
||
### Fixed
|
||
|
||
- Downloads over Xet (any download with a file over 50 GB, or all of them with
|
||
`HF_HUB_DISABLE_XET=false`) showed little or no progress. Xet keeps downloaded data in memory and
|
||
writes the file in large chunks, sometimes minutes apart, so the bytes on disk don't show what has
|
||
arrived. For Xet downloads the worker now turns on `hf`'s progress bars and reads its running
|
||
byte count; the bars stay out of the job log. Ordinary downloads still measure the files on disk.
|
||
|
||
## [0.14.2] - 2026-10-22
|
||
|
||
### Fixed
|
||
|
||
- A running download's progress could jump back and forth between the real value and 0 B while
|
||
`hf` kept downloading. A single progress reading that missed the partial file (a folder changing
|
||
while the worker listed it, or a stale size on a network share) counted as nothing downloaded.
|
||
Folders that vanish mid-listing are now skipped instead of failing the whole listing, and a file's
|
||
progress no longer goes backwards during a run.
|
||
|
||
## [0.14.1] - 2026-10-22
|
||
|
||
### Fixed
|
||
|
||
- Downloads with a file over 50 GB failed with "The file is too large to be downloaded using the
|
||
regular download method". `hf` (huggingface_hub 2.1.1) only downloads such files over Xet, which
|
||
Kaname turns off by default for steady progress; a download that includes one now uses Xet (noted
|
||
in the job log; its progress grows in bursts).
|
||
|
||
## [0.14.0] - 2026-10-21
|
||
|
||
A quality eval next to the speed benchmarks: a short, deterministic check of tool calling, coding and
|
||
long-context retrieval, so a launch option that makes a model faster but worse shows up.
|
||
|
||
No changes to `compose.yaml` or `.env`. The new column is added on start.
|
||
|
||
### Added
|
||
|
||
- **Quality eval** as a run type (deployment page → Benchmark → Quality), run against a deployment
|
||
with greedy decoding, a fixed seed and thinking turned off:
|
||
- **tool calling**: 12 requests; one tool call with valid JSON, the right function and arguments;
|
||
- **coding**: 8 short Python functions, checked by unit tests in a throwaway container from Kaname's
|
||
own image (no network, read-only, unprivileged user, no capabilities, CPU/memory/process limits);
|
||
- **long-context retrieval**: a code hidden at 10/50/90 % depth in texts of 25/50/100 % of the
|
||
context, sized with the server's own tokenizer.
|
||
The score (0–100) is the mean pass rate of the sections that could run; a server that refuses tool
|
||
calls doesn't count as 0. The eval set is versioned data in the repo (`src/evals/v1`), and every
|
||
result records its version (`kaname-eval-1`).
|
||
- The run page shows the score, each section and every item with the reason it failed. Compare views
|
||
get a "Quality" group; the benchmark list shows the score; sweeps can run the eval on every variant
|
||
("Also run the quality eval") and show it as a column.
|
||
- API: `POST /api/v1/benchmarks` with `kind: "eval"` (optional `sections`), `quality` in run, sweep
|
||
and compare answers, `"quality": true` for sweeps; the same guardrails as other runs.
|
||
- The tuning skill checks quality after speed and reports both.
|
||
|
||
## [0.13.0] - 2026-10-21
|
||
|
||
The agent API can now deploy and benchmark models, so an AI agent can tune launch options for the
|
||
hardware: within guardrails you set, only on deployments its own token created, and by default only
|
||
after you approve each start, run and sweep.
|
||
|
||
No changes to `compose.yaml` or `.env`. The new columns and table are added on start. Existing
|
||
tokens keep their scopes; grant the new ones with **Scopes** in Settings → API tokens.
|
||
|
||
### Added
|
||
|
||
- **Token scopes** `deployments:read`, `deployments:write`, `benchmarks:read`, `benchmarks:run`, and
|
||
editing an existing token's scopes.
|
||
- **`/api/v1` for deployments** ([docs/api.md](docs/api.md)):
|
||
- `GET /api/v1/runtimes`: pulled runtimes, what they serve, whether agents may use them and which
|
||
extra arguments; the host's GPUs.
|
||
- `GET /api/v1/deployments`, `GET /api/v1/deployments/{id}`: state, endpoint, options, the engine
|
||
version and slots, live CPU/RAM; the log with `?log=N`.
|
||
- `POST /api/v1/deployments` with the same validation, memory/VRAM estimate and `docker run`
|
||
command as the form (returned in the answer); `dryRun: true` only checks. Unknown fields are
|
||
refused instead of ignored.
|
||
- `PATCH`, `POST …/start`, `POST …/stop`, `DELETE` for the token's own deployments.
|
||
- **`/api/v1` for benchmarks**: `POST /api/v1/benchmarks` (run or A/B, quick or full, phases,
|
||
description), `GET /api/v1/benchmarks/{id}` with a compact result (headline numbers, the run's
|
||
hardware/runtime/model setup, GPU and RAM use; the full summary with `?full=1`), cancel, a list,
|
||
`GET /api/v1/benchmarks/compare?ids=` (what differs, what's the same), and sweeps
|
||
(`POST /api/v1/sweeps`, `GET /api/v1/sweeps/{id}`, cancel).
|
||
- **`?wait=<seconds>`** (max 900) on the job, deployment, run and sweep status endpoints: the request
|
||
returns once the state settles, so agents make one call instead of polling. Things that wait for
|
||
approval answer right away.
|
||
- **Guardrails for API deployments and benchmarks** (Settings → API tokens): approval (default: ask
|
||
me), agent deployments at once (1), one agent run or sweep at a time and no agent start while one
|
||
runs, time limits per run and sweep (30 min / 3 h, enforced by the worker), max sweep variants (8),
|
||
a runtime allowlist, an allowlist of extra argument flags per engine (values can't be paths or
|
||
URLs; the error names the argument), host ports only within a range (none by default), and caps
|
||
for memory and CPUs (agent deployments always get a memory limit).
|
||
- **Protected deployments**: the Protect button on a deployment's page. Agents can't edit, stop,
|
||
delete or benchmark it, nor start anything on the same GPUs that would crowd it out of VRAM
|
||
(estimated).
|
||
- **Approval** for agent starts, runs and sweeps on the deployment, run and sweep pages; "awaiting
|
||
approval" in the lists.
|
||
- Everything an agent creates shows **requested by <token>**, with a filter in the deployment
|
||
and benchmark lists; an **activity log** per token (Settings → API tokens) lists every request,
|
||
including refusals with their error code.
|
||
- **Agent skill for tuning** ([docs/agent/SKILL-tuning.md](docs/agent/SKILL-tuning.md)): check the
|
||
limits, pick a runtime, deploy (dry run first), wait until ready, benchmark, change one variable at a
|
||
time (or sweep), compare, report a compact table, stop the deployment; no polling loops, stop when
|
||
something needs approval, never work around a guardrail.
|
||
|
||
### Changed
|
||
|
||
- The download skill and messages use `?wait=` instead of "check again later".
|
||
|
||
## [0.12.0] - 2026-10-21
|
||
|
||
Intel GPU support (Arc A- and B-series, Arc Pro): telemetry during benchmarks, presets, render group
|
||
handling and a VRAM estimate for NVIDIA and Intel alike. Host prerequisites are on the wiki page
|
||
"Intel GPUs".
|
||
|
||
No changes to `compose.yaml` or `.env`.
|
||
|
||
### Added
|
||
|
||
- **GPU telemetry for Intel and AMD** in benchmark runs, A/B and sweeps, with the same fields as
|
||
NVIDIA (VRAM in use, utilization, power, temperature):
|
||
- power and temperature from the GPU's hwmon sensors (energy counter or power reading);
|
||
- AMD: VRAM in use and busy percent from sysfs;
|
||
- Intel: VRAM in use and utilization summed from every process's DRM fdinfo (the only place the
|
||
`xe`/`i915` drivers report them), read by a probe container that runs only during the run: host
|
||
PID namespace, `SYS_PTRACE` and `DAC_READ_SEARCH` only, no network, read-only, removed at the
|
||
end. Utilization is the busiest engine class, like `intel_gpu_top`.
|
||
- **Temperature** for every GPU (NVIDIA too), shown in the run's resources and, with GPU power, as
|
||
sweep table columns.
|
||
- **VRAM estimate** in the deployment form for NVIDIA and Intel/AMD: weights, KV cache and compute
|
||
buffers for llama.cpp with all layers on the GPU, the reserved share for vLLM, against the GPUs'
|
||
VRAM, with a hint when it doesn't fit.
|
||
- **Render group handling**: the worker reads the group IDs of the host's `/dev/dri` nodes (render,
|
||
video) and adds them to Intel/AMD runtime containers, so images that don't run as root can use the
|
||
GPU.
|
||
- The llama.cpp **Intel SYCL and Vulkan runtimes are added** the first time an Intel GPU is detected.
|
||
|
||
### Changed
|
||
|
||
- The llama.cpp Intel (SYCL) preset sets `ZES_ENABLE_SYSMAN=1`, so llama.cpp sees free VRAM (needed
|
||
by `-ngl auto`). Preset descriptions mention the B-series.
|
||
- GPU figures a source doesn't report are now shown as "—" instead of 0.
|
||
|
||
## [0.11.0] - 2026-10-20
|
||
|
||
Every benchmark run now records what it ran on: GPUs with their PCIe link and Resizable BAR, the
|
||
runtime image and the engine version the server reports, model, quant and KV cache type, context and
|
||
concurrency, plus a system summary and your own description. All of it is shown on the run page, in
|
||
compare views and sweep tables, and goes to BetterBench and the launch80 preview.
|
||
|
||
No changes to `compose.yaml` or `.env`. The new columns are added on start.
|
||
|
||
### Added
|
||
|
||
- **Run metadata**, recorded when a run starts (single runs, A/B and sweep variants):
|
||
- GPU count, name and VRAM; PCIe link, current and maximum (e.g. "Gen4 x8 of Gen5 x16"), read
|
||
from sysfs at the card's upstream port (behind on-card switches like Intel's Arc B-series) or
|
||
from `nvidia-smi`; peer-to-peer between GPUs (`nvidia-smi topo -p2p`, "n/a" with one GPU);
|
||
Resizable BAR (on when a BAR covers the VRAM).
|
||
- GPUs slow their link down when idle, so the current link is sampled during the run and the
|
||
fastest one seen under load is recorded ("at idle" when it couldn't be sampled).
|
||
- Runtime image, tag and registry digest, and the engine version the server reports once it's
|
||
ready (llama.cpp `/props` build, vLLM `/version`, falling back to the startup log). Runtimes have
|
||
an optional **engine name** for forks (e.g. `vllm-radiance`).
|
||
- Model, quant and KV cache type (e.g. "Q4_K_M with q8_0 KV cache"), context length and
|
||
concurrency (llama.cpp slots as reported by the server, vLLM max sequences).
|
||
- **System summary** per run: CPU model, cores and threads, RAM, the disk holding the models
|
||
folder, OS and kernel, GPU driver versions, VM or bare metal with GPU passthrough, Kaname version.
|
||
Only these whitelisted facts; never the hostname, IP addresses, users or paths.
|
||
- **Description** per run: set it when starting a run or edit it on the run page.
|
||
- Everything goes to BetterBench as `--note`s (in `results.json` and its report) and into the
|
||
launch80 dry-run preview as page sections (description, hardware and runtime, system), visible in
|
||
the preview before anything is sent.
|
||
- **Settings → Hardware**: what was detected, with manual values for what detection can't see (in a
|
||
VM the PCIe link is the one the VM sees; new GPUs missing from the PCI ID list). New runs use them.
|
||
- The run page shows the metadata; compare views get a "Hardware & runtime" section and a prefill
|
||
row in the headline; sweep tables list the setup shared by all variants and show what differs as
|
||
columns.
|
||
- `scripts/intel-probe.sh`: read-only diagnostics for Intel GPU hosts (link, BARs, hwmon, DRM
|
||
fdinfo, `/dev/dri` groups), for the upcoming Intel GPU support.
|
||
|
||
### Changed
|
||
|
||
- The image includes the PCI ID database (`pci.ids`) for GPU names.
|
||
|
||
### Fixed
|
||
|
||
- A run or sweep with both "quick" and an explicit number of passes failed (BetterBench refuses
|
||
`--quick` with `--passes`); the passes now win.
|
||
- Agent skill (`docs/agent/SKILL.md`) works with how Hermes Agent runs commands: a `kaname` helper
|
||
script (`docs/agent/kaname`) instead of a shell function that didn't survive between commands,
|
||
`KANAME_URL`/`KANAME_TOKEN` declared in the frontmatter, and far less polling (none while a
|
||
request waits for approval, one check around the ETA while downloading).
|
||
|
||
## [0.10.0] - 2026-10-20
|
||
|
||
An API for AI agents: a token-authenticated `/api/v1` lets a program look up models, request
|
||
downloads and follow them, within guardrails you set and, by default, only after you approve each
|
||
request.
|
||
|
||
No changes to `compose.yaml` or `.env`. If Kaname is behind a forward-auth proxy, let `/api/v1/`
|
||
through without forward auth (example in [docs/api.md](docs/api.md)). The new table is created on
|
||
start.
|
||
|
||
### Added
|
||
|
||
- **API tokens** (Settings → API tokens): create (shown once; only a SHA-256 hash is stored), name,
|
||
scopes `models:read` and `downloads:create`, last used, revoke. Sent as
|
||
`Authorization: Bearer kn_…`; only `/api/v1` accepts them, and it accepts nothing else (the rest of
|
||
Kaname stays OIDC-only). No token can delete models or files, change settings, or manage runtimes
|
||
or tokens.
|
||
- **`/api/v1`**, compact JSON with actionable error messages ([docs/api.md](docs/api.md)):
|
||
- `GET /api/v1`: the token's name, scopes and the guardrails.
|
||
- `GET /api/v1/hub/lookup?repo=`: commit SHA, quants and files with sizes (the Add model lookup).
|
||
- `GET /api/v1/models`: the library with its search and filters (author, family, quant, tag,
|
||
status, requested by) and the size on disk; `GET /api/v1/models/{id}`.
|
||
- `POST /api/v1/downloads`: repo + pinned commit + a quant (weights plus the recommended companion
|
||
files, as in Add model) or include globs, optional tags. Uses the same add-model and queue code
|
||
as the UI. Repeating a request returns the existing model and job instead of queueing a
|
||
duplicate; for a model already in the library it adds the missing files.
|
||
- `GET /api/v1/jobs/{id}`: state, per-file progress, error; the `hf` log only with `?log=N`.
|
||
- `GET /api/v1/disk`: free, used and reserved space on the models folder.
|
||
- **Guardrails for API downloads** (Settings → API tokens): approval mode (default: requests wait
|
||
as *pending approval* until you approve or reject them on the model or job page), max size per
|
||
request (60 GB), free space that must remain after the download, counting what other open
|
||
downloads still need (100 GB), API jobs at once (2), and an optional author allowlist. Rejecting a
|
||
request removes a model it added, or restores the previous file selection.
|
||
- Everything requested with a token shows **requested by <token name>** in the library, on the
|
||
model and job pages, with a "Requested by" filter (and "awaiting approval" under Status).
|
||
- **Agent skill** for Hermes Agent and similar ([docs/agent/SKILL.md](docs/agent/SKILL.md)): how to
|
||
search, look up, request and monitor a download with `curl`, the guardrails, and to wait for
|
||
approval instead of retrying.
|
||
|
||
### Changed
|
||
|
||
- Settings → API keys is now **Runtime API keys** (the keys deployments require), to keep it apart
|
||
from API tokens.
|
||
- Tests can now use the database: `npm test` runs with `--conditions=react-server`.
|
||
|
||
## [0.9.0] - 2026-10-13
|
||
|
||
Model testing, part three: benchmarks. Measure deployments with BetterBench (the benchmark behind
|
||
launch80.com) and get a launch80-style report: single runs, paired A/B runs and sweeps over launch
|
||
options, with CPU, RAM and GPU usage recorded during each run. Runs can be published to launch80
|
||
with a preview and an explicit confirmation. Runtimes can use NVIDIA, Intel/AMD and ROCm GPUs, and
|
||
downloads can be speed-limited.
|
||
|
||
No changes to `compose.yaml`. Optional new `.env` setting: `L80_TOKEN` (launch80 publishing). The
|
||
new database tables are created on start.
|
||
|
||
### Added
|
||
|
||
- **Download speed limit** (Settings → Downloads), in MB/s, for all downloads together; changes
|
||
apply to running downloads within seconds. `hf download` and hf_xet have no bandwidth option
|
||
(checked with huggingface_hub 2.1.1 / hf_xet 1.6.0), so the worker pauses and resumes the hf
|
||
process (SIGSTOP/SIGCONT) whenever it gets ahead of the limit: short bursts above it, the
|
||
average holds (tested: 145 MB at a 2 MB/s limit took 67 s). Linux only; ignored on Windows.
|
||
- **Paired A/B benchmarks** (`betterbench ab`): from a deployment's Benchmark card, pick another
|
||
running deployment of the same model as B. The same prompts go to both, alternating, with greedy
|
||
decoding, until the difference is known to ±the target precision (default 1 %, at most 200
|
||
pairs). The report shows the verdict (faster/slower/no measurable difference), the confidence
|
||
interval, both sides, what differs between them and the caveats, after launch80's rules.
|
||
- **Sweeps**: vary one or two settings of a deployment (context size, KV cache type, quant file,
|
||
threads, parallel slots, batch sizes, flash attention, prompt cache, GPU layers, CPU limit; vLLM:
|
||
dtype, max sequences, KV cache, GPU memory share), up to 16 variants. Kaname deploys each variant
|
||
in turn, benchmarks it, removes it again, and shows all of them side by side (chart and table,
|
||
best values in bold), with a link to compare the runs in detail. Compare now takes up to 16 runs.
|
||
- **Resource usage in every run**: CPU (cores, average and peak), RAM (average and peak against the
|
||
container limit) from Docker, and per GPU VRAM, utilization and power from nvidia-smi, sampled
|
||
every 2 s while the benchmark runs. Shown on the report, the A/B report and the sweep table.
|
||
- **Benchmarks** (new main menu entry) with [BetterBench](https://github.com/GGZ14/BetterBench)
|
||
(Apache-2.0, the benchmark behind launch80.com), built into the image (v0.6.1, archive pinned by
|
||
checksum).
|
||
- Start a run from a running deployment: quick (5 passes) or full (20), choose generation,
|
||
prompt processing (input lengths up to the context size) and parallel requests, add a label.
|
||
- Runs go one at a time; the run page shows the current step, the live BetterBench output, then
|
||
headline numbers (weighted decode t/s, time to first token, prefill t/s, peak throughput) and
|
||
the per-category, per-length and per-load tables, BetterBench's own HTML report (sandboxed)
|
||
and its `results.json`.
|
||
- Each run keeps a snapshot of the deployment's settings (and the CPU/GPU it ran on). Select runs
|
||
to **compare** them: differing settings are highlighted, numbers show the change against the
|
||
first run.
|
||
- Cancel, run again with the same settings, rename, delete.
|
||
- **Benchmark report page** after launch80's `bench.betterbench.v1`: headline tiles (combined
|
||
decode, ITL 1% low or stream-update p99, TTFT p50), "Read these first" caveats with launch80's
|
||
rules (quick run, under-sampled percentiles marked †, runs stopped at max_tokens, batched streams,
|
||
failed requests, skipped prefill depths, prefix-cache hits), charts for decode by category, ITL
|
||
range, prefill and parallel load, the full tables, the reasoning split and a Method section. Every
|
||
figure comes from BetterBench's own report functions; existing runs are recomputed on start.
|
||
- **Publish to launch80** (double opt-in, as the L80 docs describe): step 1 runs
|
||
`L80 betterbench --results … --dry-run --payload-out` and shows exactly what would be sent
|
||
(template, size, title, summary, notes; endpoint and host removed; the payload is downloadable);
|
||
step 2 publishes that same file with `L80 publish` only after an explicit confirmation. Needs
|
||
`L80_TOKEN` (launch80 Supporter) for the worker; the L80 CLI 0.4.0 ships in the image, pinned by
|
||
checksum. The link, who confirmed it and when it expires (5 days) are kept per run.
|
||
- `results.json` downloads no longer contain the endpoint URL or host name.
|
||
- **GPUs.** Runtimes have a type: CPU, NVIDIA (CUDA), Intel/AMD via `/dev/dri` (Vulkan, SYCL,
|
||
XPU) or AMD ROCm, with presets for the official CUDA, Vulkan, Intel and ROCm builds of
|
||
llama.cpp and vLLM.
|
||
- The worker lists NVIDIA GPUs (name, VRAM, driver) with a short-lived probe container and shows
|
||
them under Settings → Runtimes; the first time one shows up, a "llama.cpp (CUDA)" runtime is
|
||
added.
|
||
- Deployments on GPU runtimes pick which GPUs to use and set GPU layers (`-ngl`), split mode,
|
||
tensor split and MoE experts in RAM (llama.cpp) or tensor parallelism and GPU memory share
|
||
(vLLM).
|
||
- llama.cpp **prompt cache in RAM** (`--cache-ram`) as a deployment option, 1 GiB for new
|
||
deployments.
|
||
|
||
### Fixed
|
||
|
||
- llama-server keeps up to 8 GiB of earlier prompts in RAM by default. Under a container memory
|
||
limit it grew until the limit and then slowed to a crawl (the memory-mapped model got evicted).
|
||
The memory estimate now counts the prompt cache and the KV cache (by context size and cache
|
||
type).
|
||
|
||
## [0.8.0] - 2026-10-06
|
||
|
||
Model testing, part two: deployments. Serve a downloaded model with a llama.cpp or vLLM runtime
|
||
container, tune its launch options, protect it with API keys and try it from Kaname.
|
||
|
||
No changes to `compose.yaml`; the new database tables are created on start.
|
||
|
||
### Added
|
||
|
||
- **Deployments** (new main menu entry): serve a downloaded model with a runtime container.
|
||
- **New deployment:** pick a runtime (only pulled images), then a model it can serve (llama.cpp:
|
||
downloaded GGUF files with the quant, optional mmproj for vision and MTP head / draft model for
|
||
speculative decoding; vLLM: safetensors repos with a config.json), then launch options: context
|
||
size, threads, parallel slots, KV cache types, flash attention, batch sizes (llama.cpp) or data
|
||
type, max sequences, KV cache GiB (vLLM), CPU and memory limits (with an estimate), an optional
|
||
published host port and extra arguments. A live preview shows the exact `docker run` command.
|
||
- The worker starts the container on Kaname's Docker network with the models mounted read-only,
|
||
waits for `/health`, follows the log, samples CPU/RAM every 5 s and refuses to start when the
|
||
memory limits of running deployments wouldn't fit. Containers keep running across worker
|
||
restarts; orphaned ones are removed.
|
||
- 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.
|
||
- **API keys** (Settings → API keys): add generated or own keys, show and copy them again later.
|
||
A deployment with "Require an API key" accepts any of them (`LLAMA_API_KEY`, `VLLM_API_KEY` or
|
||
`--api-key` for several vLLM keys); the values are masked in the shown command and in the log, and
|
||
Kaname's own "Try it" chat sends one. Key changes apply when a deployment restarts.
|
||
- **Deploy from the library:** a "Deploy" button in the library and on the model page opens a new
|
||
deployment with the model and a fitting runtime preselected. The library and the model page link
|
||
to the deployments that use a model.
|
||
- Deployment form reorganized: launch options in groups (General, Context, Performance, KV cache,
|
||
Resources, Extra arguments) with each field's flag next to its label, the command in its own step,
|
||
and extra arguments as flag/value rows with "+ Add argument" (also in the runtime form).
|
||
|
||
### Fixed
|
||
|
||
- Dropdowns were unreadable in dark mode (white option list with light text): native controls now
|
||
follow the theme.
|
||
- Image pulls showed "Starting · 0 B" until they finished: the worker's progress updates were never
|
||
written (Drizzle queries only run when awaited).
|
||
|
||
## [0.7.0] - 2026-10-06
|
||
|
||
First part of model testing: runtimes (llama.cpp, vLLM and your own images) and the Docker
|
||
connection through a socket proxy. Starting containers with a model comes next.
|
||
|
||
**Upgrade note:** `compose.yaml` has a new `docker-proxy` service and `DOCKER_HOST` on the worker;
|
||
copy them from `deploy/compose.yaml`.
|
||
|
||
### Added
|
||
|
||
- **Runtimes** (Settings → Runtimes): container images that serve models. Presets for the official
|
||
llama.cpp CPU server (`ghcr.io/ggml-org/llama.cpp:server`) and vLLM CPU
|
||
(`vllm/vllm-openai-cpu:v0.31.0`), plus your own images from any registry (e.g. patched forks) with
|
||
an engine type (llama.cpp- or vLLM-compatible), environment, extra arguments, shared memory,
|
||
device passthrough (only `/dev/dri…`, `/dev/kfd`) and an opt-in "NUMA tuning" switch (the
|
||
`CAP_SYS_NICE` + `seccomp=unconfined` that vLLM recommends on CPU; off by default).
|
||
- Pull and update runtime images from the UI, with progress and readable errors.
|
||
- Docker host card: Docker version, CPU model and features (AVX2, AVX-512, AMX, …), memory, and the
|
||
network and models source the worker detected from its own container.
|
||
- `docker-proxy` service (`tecnativa/docker-socket-proxy:v0.5.0`) in both compose files; the worker
|
||
reaches Docker only through it (`DOCKER_HOST`). New settings `DOCKER_HOST`,
|
||
`KANAME_DOCKER_NETWORK`, `KANAME_MODELS_SOURCE` (see the wiki).
|
||
|
||
## [0.6.0] - 2026-10-06
|
||
|
||
Delete models (with their files), verify and deep verify, one-click repair, and update checks
|
||
with a deliberate Update. Database migrations run automatically on start.
|
||
|
||
### Added
|
||
|
||
- **Delete** any model (also failed or incomplete ones), with confirmation. By default the worker
|
||
deletes its files from disk: only the repo's files and hf's `.cache`; files you put in the folder
|
||
yourself are kept, empty folders are removed. Unchecked, only the library entry goes and the folder
|
||
shows up under "Found in the models folder".
|
||
- **Verify** a model: every selected file is checked for existence, size and the version hf recorded;
|
||
reports missing files, size mismatches and extra files in the folder. **Deep verify** hashes every
|
||
file (SHA-256 for LFS files, git blob SHA-1 for small files) against the Hub, with progress.
|
||
- **Repair** re-downloads only what's missing or broken. Broken files are deleted before `hf` runs,
|
||
because `hf` skips a file whose metadata matches without checking its content or size.
|
||
- **Update checks:** the Hub check (every `UPDATE_CHECK_INTERVAL_HOURS` and "Check now") also
|
||
resolves the tracked revision. If there's a newer commit, the model shows "update available" (badge
|
||
in the library and a Status filter value, banner on the model page) with the selected files that
|
||
changed, were added or were removed. **Update** is a deliberate action: it pins the new commit (the
|
||
old one stays in the revision history), downloads changed and new files, and deletes files that are
|
||
no longer selected once the download succeeded.
|
||
- Download card: **Resume** for interrupted or cancelled downloads, **Retry** for failed ones.
|
||
- Job names in the job list and job page: Download, Download more, Import, Repair, Update, Verify,
|
||
Deep verify, Delete.
|
||
|
||
## [0.5.0] - 2026-10-06
|
||
|
||
Hugging Face style model pages, file labels, recommended files, importing models already on disk,
|
||
and flagging models deleted from the Hub. Database migrations run automatically on start.
|
||
|
||
### Added
|
||
|
||
- Model pages modeled on Hugging Face, built from cards: a header with org avatar, `org / name`
|
||
with copy button, pills for task, format, architecture, language and license, your tags and a
|
||
Hugging Face link; a content card with tabs:
|
||
- **Files** (default): selected files with type icon, size, LFS marker and local state
|
||
(downloaded, missing, size mismatch, …), a "on disk" progress summary, and the unselected repo
|
||
files collapsed below; each file links to the Hub at the pinned commit
|
||
- **Model card**: the repo's README at the pinned commit, rendered (sanitized HTML, relative
|
||
links/images resolved to the Hub)
|
||
- **Jobs**: download history
|
||
- Custom tags are color-coded: automatic color from the name, or one you pick in Settings.
|
||
- File labels in front of every file name: Model, MTP, Vision (mmproj), Draft, Adapter, imatrix,
|
||
Config, Tokenizer, Template, Docs, Image, Git (detected from the file name).
|
||
- Split files (`…-00001-of-00003.gguf`) are shown and selected as one entry with "N parts", the
|
||
combined size and a combined status, in the Files tab, Add model, Download more and progress lists.
|
||
- **Download more** in the Files tab: pick additional files (quick-select chips, checkboxes) and
|
||
download them; they're added to the model's selection. Files already on disk are skipped.
|
||
- **Settings** page (`/settings`), first section **Labels**: name and color per file label (with
|
||
reset), and rename, recolor or delete your tags. Stored in a new `settings` table.
|
||
- App icon (要).
|
||
- Sidebar with download status/actions, local copy details (commit, path, patterns) and a model
|
||
tree (base model → quantized/finetuned → this repo) listing other local models of the same base.
|
||
- Hub metadata now includes the author's avatar and the relation to the base model; existing models
|
||
are refetched once by the worker.
|
||
- Models deleted from Hugging Face are flagged, never deleted locally: the worker checks every model
|
||
every `UPDATE_CHECK_INTERVAL_HOURS` (and right after a failed download) whether the repo and the
|
||
pinned commit still exist. A deleted repo (or one made private) or a rewritten history shows a
|
||
warning badge in the library (searchable, and a value of the Status filter), a banner on the model
|
||
page, and blocks new downloads and "Download more". "On the Hub" in the sidebar shows the last
|
||
check, with "Check now".
|
||
- **Import models already on disk:** the worker scans the models folder (at startup, every
|
||
2 minutes and on "Rescan") for `<org>/<name>` folders that aren't in the library. They're listed
|
||
under "Found in the models folder"; **Import** opens Add model for that folder with the repo, the
|
||
commit hf recorded (if any) and the files already there preselected, marked "on disk". The import
|
||
job runs `hf download` into the existing folder: hf 2.1.1 hashes files it didn't download itself,
|
||
keeps those that match and downloads only missing or different ones. Other files in the folder
|
||
are left alone. Jobs show the purpose "import".
|
||
- **Recommended files:** picking a quant (chip or checkbox) in Add model or Download more also
|
||
selects the files that usually go with it, shown in a "Recommended with your quant" strip where
|
||
each can be unchecked. They drop out again when you deselect the quant. Variants are matched:
|
||
the MTP head or mmproj with the same quant if there is one, otherwise the best single one (mmproj:
|
||
F16, BF16, Q8_0, F32); nothing is added if the model already has one of that kind. Which kinds
|
||
(default: chat template, MTP, vision) is set in the new **Settings → Downloads**.
|
||
- Create tags in Settings (name and color), before any model uses them.
|
||
- Tag picker on the model page and in Add model: a dropdown with "Create new tag…" first, then your
|
||
existing tags with their colors, and "Manage tags…".
|
||
- Account menu in the header with your profile picture from the OIDC provider (initials as
|
||
fallback): name and email, links to the settings, theme (system/light/dark) and sign out.
|
||
|
||
### Changed
|
||
|
||
- Model URLs are the repo path, like on Hugging Face: `/unsloth/Qwen3-8B-GGUF` (case-insensitive,
|
||
redirects to the canonical spelling). Old `/models/<id>` links redirect.
|
||
- The auth gate excludes only exact paths (`/login`, `/api/auth/…`), so org names like `loginx`
|
||
can't bypass it.
|
||
- Quant labels (library column, Quant filter, "Local copy") only count model weights, not MTP,
|
||
mmproj or imatrix files.
|
||
- Tags are no longer deleted automatically when no model uses them anymore; delete them in Settings.
|
||
- Settings has separate pages for **File labels**, **Tags** and **Downloads**.
|
||
- The selection bar at the bottom of Add model is a floating card like the rest of the page.
|
||
- Header: app icon, navigation with icons and the current page highlighted.
|
||
- Docs: full configuration reference and the NAS guide moved to the
|
||
[wiki](https://git.linxweiler.xyz/pascallinxweiler/Kaname/wiki); the README keeps the quick install.
|
||
|
||
### Fixed
|
||
|
||
- Hydration error in progress bars on non-English browsers (locale-dependent `aria-valuetext`).
|
||
|
||
## [0.4.0] - 2026-10-05
|
||
|
||
The app is now called **Kaname**; search, filters and tags.
|
||
|
||
### Added
|
||
|
||
- Library search: every word must match the repo, author, model family, base model, architecture,
|
||
quant, tags, Hub tags or status (e.g. `unsloth qwen`, `q4_k_m`, `roleplay`).
|
||
- Library filters for Author, Family, Quant, Tag and Status (multi-select with counts, combinable,
|
||
kept in the URL), removable filter chips and "N of M models".
|
||
- Hub metadata per model: base model(s), architecture, license, pipeline tag and Hub tags. The
|
||
"family" is the base model's org (an unsloth quant of Qwen3 → `Qwen`). Stored when a model is
|
||
added; the worker fetches it for existing models on startup.
|
||
- Custom tags: add/remove on the model page (with suggestions), set them when adding a model,
|
||
click a tag in the library to filter. Tags are case-insensitive and deleted when unused.
|
||
- Model page shows author, family, base model links, architecture, license and Hub tags.
|
||
- README rewritten around a four-step install, with a banner and screenshots.
|
||
|
||
### Changed
|
||
|
||
- Renamed the app from "Model Manager" to "Kaname".
|
||
- `deploy/compose.yaml`: models go to a host folder (`KANAME_MODELS_DIR`, default `./models`;
|
||
a NAS share mounted on the host works) instead of a Docker NFS volume, so the default setup
|
||
needs no NAS. `NFS_SERVER`/`NFS_EXPORT` are gone.
|
||
- `.env.example` is ordered by what you need to fill in; container-internal paths
|
||
(`DATABASE_URL`, `MODELS_DIR`) are no longer in it because the image defaults are correct.
|
||
|
||
## [0.3.1] - 2026-10-05
|
||
|
||
Release pipeline, server deployment and a simpler library page.
|
||
|
||
### Added
|
||
|
||
- Release pipeline (`.gitea/workflows/release.yaml`): a `vX.Y.Z` tag runs checks, pushes the Docker
|
||
image to the Gitea registry (`X.Y.Z`, `X.Y`, `latest`) and creates a release from this changelog.
|
||
- `deploy/compose.yaml` for the server, using the released image (`KANAME_VERSION` to pin). About
|
||
20 lines: the image now has an entrypoint with roles (`web`/`worker`), runs migrations itself
|
||
under a file lock (no start-order dependency between the services) and has a built-in
|
||
healthcheck.
|
||
- Server storage: SQLite on a shared host folder (`KANAME_DATA_DIR`, bind mount for web and worker),
|
||
models on an NFSv4 volume (`NFS_SERVER`, `NFS_EXPORT`) mounted only by the worker.
|
||
- The container stops with a clear message if `/data` (or `/models` for the worker) isn't writable.
|
||
- The app version is shown next to the app name (`APP_VERSION`, set at image build time).
|
||
|
||
### Changed
|
||
|
||
- The library is the only main page: "Add model" opens the lookup/selection form inline (open by
|
||
default while the library is empty). After adding, the form closes and the new model shows its
|
||
download progress in the list. The separate `/models/new` page and its menu entry are gone.
|
||
|
||
## [0.3.0] - 2026-10-05
|
||
|
||
Milestone (c): worker and downloads with live progress.
|
||
|
||
### Added
|
||
|
||
- Worker download queue: claims queued jobs (oldest first, one job per model,
|
||
`MAX_CONCURRENT_DOWNLOADS` in parallel) and runs
|
||
`hf download <repo> --revision <sha> --local-dir <MODELS_DIR>/<org>/<repo> --include <file>…`
|
||
with exact, glob-escaped paths. `HF_TOKEN` is passed via the environment only; the child gets a
|
||
minimal environment (no web/OIDC secrets).
|
||
- Progress from bytes on disk (final files + `.incomplete` files matched by etag), sampled every
|
||
second: per job and per file bytes, %, speed (10 s window) and ETA.
|
||
- stdout/stderr captured as the job log (ANSI stripped, token-like strings masked), viewable live
|
||
and downloadable as text.
|
||
- After `hf` exits 0, every file is checked (size + `.metadata` etag) before the job is
|
||
`completed` and the model `ready`; otherwise the job fails with the list of missing files.
|
||
- Failed jobs show the exit code and the last stderr lines.
|
||
- Cancel (SIGTERM, SIGKILL after 10 s); graceful worker shutdown marks running jobs `interrupted`.
|
||
- Leftover partial files are deleted before a run and after a cancelled/failed run (hf can't resume
|
||
them).
|
||
- Free-space check before starting a download.
|
||
- Single-worker lease in the DB; a second worker waits instead of running the same jobs.
|
||
- Live UI over SSE (`/api/stream`): progress in the library, download card and job history on the
|
||
model page, job page with per-file progress and live log. "Add & download" queues the download
|
||
right away.
|
||
- Docker image (Node 24 + Python with pinned `huggingface_hub[hf_xet]==2.1.1`) and `compose.yaml`
|
||
with `web` and `worker` services, `data` and `models` volumes, worker healthcheck.
|
||
- `HF_HUB_DISABLE_XET` setting (default on, see README for why).
|
||
|
||
### Changed
|
||
|
||
- Dates are rendered in the browser's timezone (the server may run in UTC).
|
||
|
||
### Notes
|
||
|
||
- The spec assumed `hf download` resumes partial files. huggingface_hub 2.1.1 doesn't: re-running
|
||
skips completed files but restarts unfinished ones. Documented in the README.
|
||
|
||
## [0.2.0] - 2026-10-05
|
||
|
||
Milestone (b): repo lookup and file selection.
|
||
|
||
### Added
|
||
|
||
- "Add model" page: look up a Hub repo by ID or pasted URL (`/tree/<rev>` URLs pick up the
|
||
revision), resolve the revision to its commit SHA and list all files with sizes.
|
||
- File selection with checkboxes, quick-select chips per GGUF quant (flat repos, split files and
|
||
folder-per-quant repos), and include/exclude glob fields with the same matching rules as
|
||
`hf download` (Python `fnmatch`, `*` crosses folders, trailing `/` = whole folder).
|
||
- Live selection summary (file count, total size) with free space on the models volume.
|
||
- Models are stored pinned to the reviewed commit SHA, with the full file list (size, git blob
|
||
SHA-1, LFS SHA-256) and the selection rule; checkbox picks are stored as escaped exact-path globs
|
||
so the rule can be re-applied to newer revisions.
|
||
- Library list (repo, selected quant, size, pinned `revision@sha`, status) and a model detail page.
|
||
- Removing a model that was never downloaded.
|
||
- Hub API client (`src/lib/hub`) with clear errors: invalid repo ID, repo not found (or private),
|
||
revision not found, gated repo without token / without granted access (checked up front with a
|
||
HEAD request), invalid token, rate limit, network errors.
|
||
- Worker reports free/total space of `MODELS_DIR` with its heartbeat (migration `0001`).
|
||
- Unit tests for glob matching and quant grouping (`npm test`, Node's built-in runner).
|
||
|
||
### Changed
|
||
|
||
- `.gitattributes` keeps LF line endings in the repo (the app runs in Linux containers).
|
||
|
||
## [0.1.0] - 2026-10-05
|
||
|
||
Milestone (a): project skeleton and OIDC login.
|
||
|
||
### Added
|
||
|
||
- Next.js 16 (App Router) + TypeScript + Tailwind v4 + shadcn/ui (Base UI) project.
|
||
- OIDC login via Auth.js v5 (pinned `next-auth@5.0.0-beta.32`) with a generic provider
|
||
(`pocket-id`), authorization code flow with PKCE, state and nonce. JWT sessions, 7 days.
|
||
- Optional group gate `OIDC_ALLOWED_GROUPS` (requests the `groups` scope, fails closed when the
|
||
claim is missing).
|
||
- `src/proxy.ts` gates every page (redirect to `/login`) and API route (401); route handlers
|
||
re-check the session (`withAuth`).
|
||
- Login page with readable errors (access denied, misconfiguration) and safe `callbackUrl` handling.
|
||
- Drizzle ORM schema on SQLite via libsql: `models`, `model_revisions`, `model_files`, `jobs`,
|
||
`job_files`, `job_logs`, `worker_state`; initial migration in `drizzle/`.
|
||
- Worker process skeleton (`src/worker`): applies migrations, marks stale running jobs as
|
||
`interrupted` on startup, detects the `hf` CLI version, writes a heartbeat every 5 s.
|
||
- Header badge showing whether the worker is online; `/api/status` endpoint.
|
||
- Env validation with zod (`src/lib/env.ts`), `.env.example`.
|
||
- `npm run dev` starts web and worker together.
|