Blog ·
Antumbra 0.5.0: requests answered together, on the CPU you have
A server with no GPU now decodes through Antumbra's own kernels on Apple silicon, Arm servers and any x86-64 CPU with AVX2, answers the requests waiting on it in shared passes, and decodes several tokens a pass. A Mac's Metal build serves from its CPU. The dashboard is an application with a place for its user.
Antumbra 0.5.0 is available. Since 0.4.3, serving without a GPU went from one kind of CPU to nearly all of them, the engine learned to answer the requests waiting on it together, and the dashboard was rebuilt around its user. Four of these change what a server does the first time it runs, so read “Before you upgrade” first.
Install or upgrade
Run the installer again to get the 0.5.0 antumbra command. The command names the release, so what it runs is a published, unchanging script that carries the sha256 of every archive it may download.
# macOS and Linux
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/albedosehen/antumbra/releases/download/v0.5.0/antumbra-cli-installer.sh | sh
# Windows
irm https://github.com/albedosehen/antumbra/releases/download/v0.5.0/antumbra-cli-installer.ps1 | iex
Then run antumbra setup local (or antumbra setup hosted) again. It moves a local stack to the 0.5.0 server and writes this release’s hooks. antumbra setup check says whether what is on your machine is what this build ships.
Before you upgrade
- A server with no GPU serves from Q6_K on Apple silicon, on an Arm server and on an x86-64 CPU with AVX2. It served from Q8_0 on all three. Answers are worded differently, and the server holds the output head’s rows a second time as a sketch: 88 MB for a 1.5B base on Arm, 117 MB on x86-64 without AVX-512 VBMI.
ANTUMBRA_SERVE_QUANT=q8_0keeps Q8_0. A CPU with AVX-512 VNNI and VBMI serves from what it did. - A Metal build serves from the CPU, from Q6_K, where it served the dense base from the GPU.
--serve-quant offkeeps the dense base on Metal. Training on Metal is untouched, and so is a CUDA build. - The server refuses a request past its bound. No more than 256 requests wait for the serving engine at once, and no more than 128 of one workspace. One past either is refused at once, as busy, where it would have queued.
- A server with no GPU remembers what it wrote, while it runs: tokens of earlier answers and a hash of each prompt, apart for each blend of experts, about five megabytes a blend, in memory only. A request is answered faster where its answer is like an earlier one through the same experts, so a caller who can time answers through those experts can tell that it was.
ANTUMBRA_SERVE_AHEAD=offturns it off. No answer changes for it.
What’s new
The CPU you have
- Antumbra’s own kernels, which the 0.4 releases had only for a CPU with AVX-512 VNNI, now run through NEON on every Apple silicon Mac and on Arm servers from Neoverse N1, and through AVX2 on x86-64 from Haswell on, which takes in Intel’s desktop and laptop CPUs since Alder Lake and AMD’s before Zen 4.
- On an Apple M4 Pro with a 1.5B base and one expert, a token is decoded at 136 a second from Q6_K and 177 from Q4_K, where the same machine decoded 72 and 99 through candle’s kernels. An expert costs a decoded token nothing there, a prompt is read two to four times as fast, and a base loads at Q4_K in 2.8 seconds where it took 11.4.
- An answer does not depend on whether a CPU has AVX2 or AVX-512: each AVX2 kernel gives its AVX-512 twin’s value to the bit, and one laptop held to each wrote the same answers, token for token.
- A Mac built with Metal was serving from its GPU without ever having been measured against its CPU. Measured, the dense base on Metal decodes at 55 tokens a second with an expert and the CPU at 135 from Q6_K, so that build now serves from the CPU.
Requests answered together
- The engine took a lock and generated one answer to its end, so a second request waited for the first. Each pass over the weights now decodes a token for every request being answered, up to 32. A request that arrives joins at the next pass and each is answered at its own last token.
- Every request reads its own blend of experts and is computed as it would be alone, so its answer is the answer it would get alone. The tests hold that to the bit.
- On the M4 Pro at Q4_K one request decodes at 176 tokens a second, and 2, 4, 8 and 16 together at 267, 344, 375 and 383 between them. On a laptop whose memory is slower against its arithmetic, four at a time decode twice what one does.
- On Arm, two or three requests together now share the unpacking of a six-bit weight, as four did, and so do inputs to the output head’s sketch. Before, each of two unpacked it again, which is why the M4 Pro at Q6_K decoded 151 tokens a second between two requests where one alone decoded 137. Timed a kernel at a time on an Apple M1, two rows of a Q6_K weight take 0.61 of the time they took and three take half. What that does to the M4 Pro’s figures has not been measured.
- A request whose caller hung up or cancelled is let go of at the next pass, where it was decoded to its end for nobody. Workspaces take turns, so one workspace’s burst does not hold up another’s single request.
Several tokens a pass
- A pass that reads every weight for one token can carry a further row for a part of what it costs. So a pass now carries the tokens guessed to follow, and keeps each one that is the model’s own next token. A wrong guess costs its row and nothing else, and no answer changes.
- The guesses come from what followed the same few tokens before, in the request itself or in what the server wrote for earlier requests through the same experts. How many a pass carries is counted from how often they have been right and what a row has been costing, not set.
- On the M4 Pro with no expert, prompts asked for the first time decode at 156 tokens a second where a token a pass decoded 135 at Q6_K, and the same prompts asked again at 304. On the laptop, one expert’s held-out tasks at Q6_K went from 26.8 tokens a second to 33.6, and to 105.7 when asked again.
A dashboard with a place for you
- The dashboard was one long page under a bar. It is now an application: pages down a sidebar that collapses to its icons, a search of memory from anywhere, and a user menu. The relics gallery and a relic’s viewer keep the same sidebar.
- Overview says what is waiting for you before anything else: proposed behaviors, handoffs between your machines, a token about to expire.
- Account shows who you are signed in as, your role, and how long the token has left. Devices lists the machines your agents run on and the handoffs one left for another, each of which you can mark done.
- With an operator’s token the Policy page is a form over the workspace’s settings, each with its range, saved together.
- The theme follows your system until you hold it to light or dark, and a held theme is on the page before it is first drawn.
Between 0.4.3 and 0.5.0
- Three smaller releases went out with no post of their own, all for a CPU with AVX-512 VNNI. 0.4.4 took a prompt and an expert’s adapter through Antumbra’s kernels as well: a prompt with an expert is read at 152 tokens a second where 0.4.3 read it at 28. 0.4.5 made Q6_K the form such a CPU serves from where it also has VBMI, about a third more tokens a second than Q8_0. 0.4.6 reads a greedy token off a sketch of the output head and an expert’s factors at eight bits. 0.5.0 is those, on the other CPUs.
Agents started through Unity Gateway
antumbra setupnow follows the agents Unity Gateway (ug) starts, which read their config from a directory of its own, andantumbra setup checksays when an organization’s managed policy stops the hooks or the server it wired, naming the file and the key.
Known limits
- A GPU, a dense base and a CPU with none of the kernels answer one request at a time and a token a pass, as before. Reading ahead is for greedy decoding: a request with a temperature or a repetition penalty takes a token a pass.
- Requests answered together share only the reading of the weights; each row is still multiplied. The M4 Pro decodes a little under twice as much with eight or more at once as with one, and no more past that.
- What reading ahead gains depends on what the server has seen. Its memory is not kept across a restart.
- The AVX2 figures are from a CPU with AVX-512 held to its AVX2 kernels; no CPU with AVX2 alone was measured. The Apple figures are from one M4 Pro.
- The dashboard cannot mint a token or manage members.
- Training experts still needs an NVIDIA GPU.
Get started, or read the 0.5.0 release notes and the changelog for every change since 0.4.3.