Repository navigation
Documentation
-
The v0.22.0 release notes described
--mtp-modelas drafting badly. It does not
draft at all. The entry was written from the commit that added the flag and missed
that a later commit on the same branch had superseded its numbers, so three claims went
out wrong: that acceptance is 4-17%, that the main cause had been found and fixed, and
that "a second desync remains". There was no first one. The head'sllama_decode
returns-1on every call, so it returns a frozen candidate set — the same three
tokens at every step, blind to prompt and position — and the ~2.5% the server reports
is how often that fixed list coincides with the target's output, not draft quality.
llama-serverreaches ~60% with the same head file. Thesave_state/restore_state
pair fox wraps aroundmtp_proposeis dead code: that implementation does not override
get_state/set_state, so the dispatcher returns false, and removing it changed
nothing.STATUS.mditem 17 had this already and the CHANGELOG contradicted it inside
the same release. Corrected in the 0.22.0 entry above, in--help, and recorded here;
the text published under thev0.22.0tag cannot be recalled. -
src/seq.rsclaimed a guarantee its own FFI helper contradicts. The module header
said a bare integer is a type error "wherever a sequence is expected" and that
a4171eb"is now unwriteable", whileset_batch_rowin the same change says a raw
store intobatch.seq_idstays expressible because no newtype reaches through a
bindgen pointer. The honest one isset_batch_row's, and the header now says so
explicitly, naming the claim it replaces.
Changed
-
mainanddevelopshare history again.mainwas an orphan branch — its own
root commit, no ancestor in common withdevelop, sogit merge-base main develop
returned nothing and each release snapshot was a single-parent commit built by copying
a tree. That mademainunmergeable and threw away the link between a published
version and the commit it came from. Fixed by grafting, not rewriting: from this
release the snapshot is a two-parent commit whose first parent ismain's tip — so
git log --first-parent mainstill shows only the release chain — and whose second is
therelease:commit on the working branch. Every published tag keeps its SHA, and the
snapshot's tree is unchanged.CONTRIBUTING.mdcarries the new recipe and the two
checks to run before tagging. -
A llama.cpp sequence id is now a type, not an
i32. llama.cpp addresses its KV
cells by(seq_id, pos), and fox passed that id around as a bare integer. Two of its
twelve verified KV lifecycle bugs came from exactly that, both in the sequence
lifecycle rather than the block pool — which is also why the typed-block refactor that
motivated the audit was rejected.SeqIdhas two namedpub(crate)constructors:
slot(i)for the range the scheduler's slot table owns, anddedicated(raw)for the
two sequences that live outside it (the embeddings sequence, and the draft model's own
context). Sixty signatures take it, no rawseq_id: i32survives outside the FFI
layer, andOption<SeqId>replaces the-1sentinelkv_seq_idused to carry, so
"no sequence" is a variant rather than a magic number a comparison can miss — at a
cost of four bytes per slot, since a plaini32newtype has no niche.It does not make
a4171ebimpossible, and the module says so.llama_batchis a
bag of bindgen pointers and no newtype reaches through one, so a raw store into
batch.seq_idstays expressible. What stops it is thatset_batch_rowis the only
sanctioned write path and it takes aSeqId: writing that literal again means
hand-rolling pointer arithmetic beside a helper that already exists, which shows up in
a diff instead of hiding inside a comment claiming the slot is dedicated. An invisible
literal becomes a visible act; a runtime bug does not become a compile error.No performance change. The reasoning, the twelve-bug classification and the decision
rule agreed before it started are indocs/design/kv-typed-classification.md.
Which file do I want?
| Asset | For |
|---|---|
…-x86_64-unknown-linux-gnu-vulkan.tar.gz |
GPU — any Vulkan device, AMD, Intel or NVIDIA. Needs glibc 2.39+ and a Vulkan driver (Mesa RADV/ANV, or your vendor's) on the host. |
…-x86_64-unknown-linux-gnu.tar.gz |
CPU only. No GPU backend inside. Built against an older glibc for broad compatibility. |
The suffix is the only difference between the two names, so the CPU build is an easy
one to take by accident. If you want the GPU build, take the -vulkan file.
Or let the installer decide — it looks for /dev/dri and picks the Vulkan build when
a GPU is present:
curl -fsSL https://github.com/ferrumox/fox/releases/latest/download/install.sh | shPass --vulkan or --cpu to override the detection.
Unpacking by hand: keep the .so files in the same directory as the fox binary. It
is linked RPATH=$ORIGIN and loads its ggml backends from beside itself. Check a
download with sha256sum -c <asset>.sha256.
Once it is running, fox probe reports the backend actually in use, e.g.
Vulkan0 — AMD Radeon 890M. If that says CPU while the Vulkan build is installed,
the host is missing a Vulkan driver rather than the tarball missing a library.