Skip to content

BaseRT engine 0.5.9

Latest

Choose a tag to compare

@prabod prabod released this 04 Dec 15:47
4efa125

BaseRT 0.5.9

Qwen4-35B-A3B runs on Macs. BaseRT now runs Qwen's Qwen4-35B-A3B, a 35B mixture-of-experts model with about 3B active parameters, from its files on Hugging Face, Qwen4-35B-A3B, and basert serve basecompute/Qwen4-35B-A3B drafts with the model's own multi-token-prediction head by default. On an M5 Ultra, served, the default file decodes one request at about 150 tokens a second without drafting and up to 235 with it, and prefills a 4,096-token prompt at about 9,300 tokens a second. Serving it needs superfluid 0.2.6, which speaks Qwen4's chat format.

New

  • Qwen4-35B-A3B. basert pull basecompute/Qwen4-35B-A3B downloads it (34.9 GB) and basert serve basecompute/Qwen4-35B-A3B serves it. It runs on Macs only, and covers text, not image input; on other platforms the pull refuses before downloading. The default file keeps the expert weights at 4 bits and most other weights at 8 bits, which stays close to the original model: its outputs differ from the unquantized model's by a mean KL divergence of 0.03.
  • A uniform 4-bit file, for speed. The same repository holds a second file with every weight at 4 bits (33.5 GB). It is faster and less faithful: on the same M5 Ultra one request decodes at 184 tokens a second, 223 to 252 with drafting, and a 4,096-token prompt prefills at about 9,800 tokens a second, at a KL divergence of about 0.18. basert pull basecompute/Qwen4-35B-A3B:default-q4-uniform downloads it.
  • Speculative decoding with Qwen4's own head, on by default. basert serve speculates by default, as it does for every model. For Qwen4 it uses the multi-token-prediction head inside the model's file, so there is nothing more to download. The head drafts the next token and the model checks it in the same pass, so the output is the model's own: in every test, greedy output with drafting equals greedy output without it. Drafting applies while one request is decoding. When several decode together they decode plainly, which is the faster way there: eight requests decode at 510 tokens a second together on an M5 Ultra with the uniform 4-bit file. --speculate off serves without drafting.
  • Prompt caching, forks and saved sessions for Qwen4. A request that starts with a prompt BaseRT has already seen skips that part instead of reading it again, so a long shared system prompt is paid for once. Forking a conversation, snapshots, parking an idle conversation and resuming it, and state files all work, and each continues exactly as the uninterrupted conversation would. Qwen3.8-Flash-Next, which shares Qwen4's architecture, gains the same.
  • Converting Qwen4 yourself. basert convert <checkpoint> --target base-q4 -o <file>.base builds the uniform 4-bit file from the Hugging Face checkpoint. The published files also carry a short list of the most frequent tokens for the head to draft over, which is what makes drafting fast; a file converted without one drafts over the whole vocabulary.

Changed

  • basert serve says when superfluid is too old for Qwen4. A superfluid before 0.2.6 does not know Qwen4's chat format and would frame its chats as Qwen3.5's without any error. basert serve now checks the model's chat template before it starts and, on an older superfluid, prints a notice with the way to update: basert superfluid install --force, or basert self update. With --dialect qwen4 it stops there instead of starting.
  • The superfluid basert falls back to. When basert cannot read the list of superfluid releases on GitHub, it now installs superfluid 0.2.6, not 0.2.3.

The engine ABI is unchanged since 0.4.0, so superfluid 0.2.0 serves this engine. superfluid 0.2.6 is the paired release, and Qwen4-35B-A3B needs it to serve chat.

See installation for every way to install BaseRT.