radiance 1.0.2

- Qwen3.8-Flash-Next serves with its container on btrfs (issue #3). The host gather of the n-gram
  table needed the filesystem to report its direct-I/O alignment, which btrfs never does, and
  refused every request. Where none is reported it now reads in units of the file's block size,
  and one read of the table proves that before a row is served.
- docs/DOCKER.md says which filesystems the models directory can be on, and what btrfs compression
  costs the n-gram reads.
This commit is contained in:
Deadcode committed 2026-10-04 15:49:19 +02:00
1 parent 8ddb77e03c
commit 8e3463c173
7 files changed
+130 -31

No files matched your search

+5 -1
View File
@@ -127,7 +127,11 @@ The container names are the files the README's model table downloads or converts
Copy the directory to the serving host and fill in `.env` from `.env.example`. It sets the image,
the models directory (mounted read-only at `/models`), a writable state directory (`/data`, where
the prefix cache's disk tier lives), the API key, the port, and the user and GPU groups the server
runs as. Then:
runs as. The models directory has to be on a local filesystem that does direct I/O, such as ext4,
XFS or btrfs: Qwen3.8-Flash-Next reads its n-gram table from the container that way. On btrfs with
compression on, the extents it stored compressed are read through the page cache instead, which
works but loses what the direct reads are for; a container copied into a directory set `chattr +C`
is stored uncompressed. Then:
```sh
docker compose -f flashnext.yaml up -d # start; restarts with the Docker daemon
+4 -1
View File
@@ -866,7 +866,10 @@ the wrong shape, pinning it for zero-copy needs all 51.2 GB pinned in host RAM,
`hipHostRegister` on the container's mapping would force all of it resident. The container is
mmapped, so the table is at a host address on open. libavx keeps the rows a gather
has touched in a row cache of its own and reads a miss straight from the file with O_DIRECT
(`libavx/avx_ngram.cpp`): the page cache would map a 4 KiB page per 160-byte row.
(`libavx/avx_ngram.cpp`): the page cache would map a 4 KiB page per 160-byte row. The reads keep
the alignment the filesystem reports for direct I/O, or its block size where it reports none, as
btrfs does; one read of the table proves it before the first row is served. A filesystem with no
direct I/O at all cannot hold a container with this table.
The placement planner runs an op on the host when **every weight operand of it** is `Site::Host`,
which is why the table must be a weight operand at all: `gather_rows` takes a plain `IN` operand and