Repository navigation
v0.3.327-alpha
A model run whole on one computer now guesses ahead with a small model of its own family — replies 1.4-2x faster
on the processor. Until now a whole model guessed the next words only from text already in the conversation, so
wherever a reply said something new it wrote one word-piece per step. Where the computer also holds a small model of
the same family (Qwen2.5-0.5B beside a Qwen2.5-14B, Llama-3.2-1B beside a Llama-3.1-8B), that small model now guesses
a few words ahead and the big model checks them all in one step; the reply is exactly the one written a word-piece at
a time. On a Ryzen 7 5800H processor: Qwen2.5-14B 4.46 → 9.06 tokens a second on code (2.03x) and 4.55 → 7.82 on
prose (1.72x); Qwen2.5-Coder-7B 1.98x on code and 1.40x on prose; Llama-3.1-8B 1.62x and 1.65x. Through a real node
and the chat API, six different questions to Qwen2.5-Coder-7B wrote the same replies with it and without it, 1.85x
faster on code and 1.38x on prose. How many words to guess is chosen from what guessing and checking cost, and may be
none (SWARMLLM_SIBLING_DRAFTER=0 keeps the old behaviour; #541).
The same on a graphics card, where the card has room. On an RTX 3070 laptop card, Qwen2.5-Coder-7B with its 0.5B
sibling writes code at 88-102 tokens a second against 62 one word-piece at a time (1.41-1.63x); prose stays even, since
guesses that do not pay are declined. The small model sits beside one full conversation of the big model's context,
so an 8 GB card running a 7B at the default context has no room for it and nothing changes there
(SWARMLLM_SIBLING_ON_CARD=0 keeps the old behaviour).
A graphics card keeps recording its steps through a long reply. A model on a card hands each step to the card
as a few pre-recorded batches of work (CUDA graphs), which is what makes card replies fast. Once a model had
recorded every step shape it might need, the card could refuse to record another — "out of memory" with over a
gigabyte free — and from then on every step of every reply ran unrecorded and slower, the small guessing model's
too: 10-13 refusals in a run of six document replies on an RTX 3070 laptop card; the previous release met them too.
What runs out is the room the recordings themselves hold, not the card's memory, so the card now drops the
recordings no reply has used, widest first, and carries on; a step shape is rested only if the card refuses it
again and again. The same six replies now see one refusal and run at 72 tokens a second against 67 for a 7B on that
card, and with the small guessing model beside it at 70-74, level with it off on a document where it had been 6%
behind (SWARMLLM_CUDA_GRAPH_SHED=0 keeps the old behaviour).
A computer fetches the small model by itself. Each model a computer runs whole is recorded, and the download pass
fetches the small model of its family it would guess with — through the usual part system, at most 2 GiB, only a model
the computer trusts, and on a graphics card only one whose weights and conversation room fit what the card has left —
and keeps it while the big model is in use. The small model's memory is counted in the computer's memory figure, so a
model loaded afterwards is never admitted into room the small one holds.
A whole-model reply written by another computer says how its small guessing model did — attached, not held there,
or no room beside a conversation — in the asking computer's log, so the network's own replies show where it pays. It
rides only replies whose guesses were checked, so it never tells the asking computer whether another request was
running there at the time.
Full commit list: v0.3.326-alpha...v0.3.327-alpha