Skip to content

Basalt 0.6.0

Latest

Choose a tag to compare

@jesdga95 jesdga95 released this 28 Nov 14:06
· 50 commits to main since this release

0.6.0

2026-11-28. Taken from main. Build from source: building, or take a release archive (platforms). Two models join: Google's Gemma 4 (the 26B A4B, the 31B and the 12B) and Baidu's ERNIE-5.5-Flash. Inkling 2 Mini serves 64 requests at once on one card, Basalt builds for the DGX Spark, and a configure now has to name its models. The .basalt format stays version 2 and the config stays version 2.

Highlights

  • Gemma 4 (google/gemma-4-*-it): the 26B A4B (128 routed experts, top 8, beside a dense MLP), the 31B and the 12B (dense), all through one adapter and the same command as any model. The packs carry Google's assistant drafter, and the 26B A4B and the 31B their vision tower. Chat, tools, thinking, images, up to 262,144 tokens of context. guide
  • Speed on an RTX 5090 at 400 W, --kv fp8, drafting on, one slot (conversation / struct / prose, 16K prompt): the 26B A4B 438 / 705 / 380 tok/s, prompts 21,882 tok/s; the 31B 165 / 263 / 125, prompts 5,526; the 12B 259 / 485 / 223, prompts 10,922.
  • The 26B A4B on a small card. The experts a card cannot hold live in page-locked RAM and are computed by the CPU pool through a doorbell, placed by the shipped profile gemma4-30x128.prof. An RTX 5060 Ti alone at 180 W, with 24 of each layer's 128 experts in RAM: 144 / 218 / 128 tok/s, a 16K prompt 6,061 tok/s. The CPU path costs nothing measurable in quality (0.0235 KLD against 0.0236 with every expert on the card). precision
  • ERNIE-5.5-Flash (baidu/ERNIE-5.5-Flash-Preview): 42 MoE layers of 512 experts (top 10, one shared), the bundled DSpark drafter, up to 1,048,576 tokens of context. Two RTX 5070 Ti at 300 W as peers: prompts 751 tok/s at 16K and 621 at 64K, struct decode 88 tok/s. guide
  • Inkling 2 Mini serves 64 requests at once on one RTX 5090 (#808): 4.3 times the best 0.5.7 did at 64, with the tokens of a request alone and no quality loss (0.00281 KLD, 97.78% top-1). --parallel goes up to 64 and the slots share one KV pool.
  • The DGX Spark. Basalt builds for Arm64 and the integrated Blackwell GPU of compute capability 12.1 (the GB10), with NEON CPU kernels and a linux-arm64 release archive. Arm64
  • The quality suite. Mean KLD, top-1 agreement and the PPL ratio against a stored BF16 reference on chat conversations, with bootstrap error bars and a paired A/B mode: basalt-bench --quality. It is now the preferred quality measure; the wikitext KLD gate stays as --kld. quality suite

Gemma 4

  • Model. Window rings for the sliding layers and one cache for the full ones, decode, prompt and batch windows, checkpoints that hold the window's cells before their position, parked conversations and idle sleep. The assistant drafter offers its own draft count plus the anchor unless --spec caps it.
  • Kernels. Decode attention on the fp16 tensor cores (the query as two fp16 terms; 14.0 us for a 350-key full layer, 10.9 us for a window layer), prompt attention flash style (98 and 94 TFLOPS), GELU experts in NVFP4 and MXFP8 for decode and prompts, up to 16 query heads per key head (the 12B), the 31B's MLP as NVFP4 planes.
  • Images with --vision dynamic: an in-engine encoder on the shared pooled tower, its layers streamed through two device slots, so no VRAM is kept at rest.
  • Packs. convert.py --checkpoint builds them from Google's BF16 checkpoints: NVFP4 experts (--experts-mxfp8 keeps chosen layers MXFP8), FP8 projections, --mlp-nvfp4 for a dense model too large for its card in FP8, the 12B's Unified checkpoint, the assistant drafter with --drafter.
  • Server. The Gemma 4 dialect: the template's thinking switch, the <|channel>thought channel and <|tool_call> calls; the prompt opens with the template's bos_token. The tokenizer reads SentencePiece-style BPE with byte fallback.
  • Quality, quality suite full set (410 conversations, RTX 5090): 12B FP8 0.0126 KLD, 97.34% top-1; 26B A4B NVFP4-F8 0.0293, 96.25%; 31B NVFP4-F8 0.0319, 96.34%.
  • One card for now. gpu-mode takes no second card with Gemma 4; the 31B at 4 slots does not fit its card beside fp16 caches.

ERNIE-5.5-Flash

  • Pack. ERNIE-5.5-Flash-Preview-MXFP4.basalt (155 GiB with the drafter): the routed experts bit for bit as the release's MXFP4, the dense projections Q8_0, the DSpark drafter attached to a finished pack by dspark_ernie55_attach.py in seconds. model file
  • Runtime. CUDA kernels and KV layout, DecodeMoe with the CPU's AVX2 and VNNI MXFP4 rows and L3 warming, a BF16 tensor-core indexer for long prompts, a pretokenizer, a serve dialect with tools and thinking.
  • On two 16 GB cards the pack loads with 129 GiB in RAM, experts served from the cards' copies and the CPU pool; --route-tail-skip and --route-prior are opt-in lossy routing flags, off by default.
  • A fix for the VRAM-homes reserve, the community row's spill bytes and thinking tags that leaked into answers (#830).

Inkling 2 Mini

  • 64 concurrent requests (#808): batched tensor-core kernels in one summation order (projections, routed experts, the drafter's head and attention, router), drafting rounds of up to 320 rows with confidence-based draft allocation, short prompts read inside the batch rounds. A request gives the same tokens alone and batched (--diag-batch-check at 8 and 64 slots). Single stream: struct decode 758 to 854 tok/s, prompts level.
  • DFlash 2 inside the pack (#763): --dflash2 DIR embeds the block-diffusion drafter, with no runtime flag; a solo prose request decodes 24% faster (249 to 310 tok/s), a four-request mix 12%. Packs with dspark.* run as before.
  • Kernels (@tjm8874, #579, #651, #652, #657, #669, #673, #674, #700, #703, #730): 4-stage cp.async prompt attention with LPT scheduling, a 128x128 TMA Q8 GEMM, 16-row batch windows and a 16-row single-pass verify window, tensor-core decode attention over the shared K/V, a 32-row MXFP8 grouped MoE, a zero-spill 64-slot slab.
  • Experts in RAM (@xyehya, #606, #609, #636, #649, #650, #653, #654, #724, #772, #773, #790): decode attention over an INT8 cache on the tensor cores, prompt staging that moves only the routed RAM experts, a card's copies that follow the conversation, 8,192-row chunks with the room the copies lend, a visit's rows sent to the host beside its router.
  • One slot after the shared pool (#874, fixing a regression @xyehya measured on a 16 GB card): the KV pool is at least one session at the whole context again, so a lone conversation can use --max-context 262144 where it was held near 9K positions, and the expert copies' rebalance runs for requests read as decode windows. One-slot decode is level with 0.5.7 (conversation 275 tok/s against 275, struct 542 against 559, on a 32 GB card capped to 16 GB); 64 slots are unchanged; the CPU expert ring runs on the visit stream.
  • A card with under 64 MiB of L2 leaves out the guessed experts' prefetch (#818); --vram-reserve-mib is honoured at load (#697); with --kv int8 the drafter's full layer keeps int8 K/V (#772); the elastic copies leave the asked reserve free, 512 MiB without one.

Other models

  • Hy4-flash: prompts up to 24% faster, the engram norm on the GPU and its prefetch staggered across chunks (#803, @florian862-art); a bit-exact BF16 router, PDL and fused q8x_mmvq products, 4.7 to 6.2% faster decode (#804); only main-card experts in the prefill ring (#547); dormant secondary slots and idle elastic-KV parking (#810); chunks of 32K up to 128K (#695); --ple-io ram (#841).
  • DeepSeek-V4.1-Flash: multi-token experts first in ExpertTier::fetch, +21% passes/s on struct decode (#802); the Engram projection as one MMQ GEMM and the indexer scores on tensor cores (#573); Unsloth's UD-Q2_K_XL converts and runs (#481); Q6_K and MXFP8 Engram tables (#788).
  • Qwen3.8-Flash-Next: two-pass QSA block scores for long prompts (#445), fused Q4_0 decode prelude and attention (#571), FP16 K/V in batch windows (#694), the fused decode glue for Q8_0 experts (#671), a Q5_1 PLE table (#782); on two cards without gpu-share the prompt stage's cut follows what long reads show, moving toward the main card when the second is the long pole (#872): a read from a bad start goes from 48 s to 24 s at 260K, the default cut is unchanged.
  • Qwen3.8-27B and dense models: batches and the GQA window go up to 32 (#633); a prompt split keeps a whole chunk beside the stage and warms its kernels before the first prompt.

Server

  • Requests page. The server keeps the recent requests with their prompts, answers and reasoning, and a monitor page shows them (a Requests link in the footer). Logs and the UI state stream over SSE (#315); the live prefill number takes the active colour.
  • Model cache (model-cache-mib): a model the router switches away from sleeps in RAM, up to the budget in MiB, and wakes for its next turn. models
  • llama.cpp timings on the Anthropic responses as on the OpenAI ones (#854); the /models/load and /models/unload routes (#698); RAM admission refusals name the check, the free RAM and the need once an episode; engine log lines carry their time; parking refusals count on the stats page and in /metrics.
  • A run that continues a reply reads it through the prompt path again: decode windows cost 7 to 22% of throughput under thinking budgets. A thinking budget caps the first pass of a text prompt too (#659); with thinking off a block opens as text or as a call to a listed tool.
  • A vision sidecar that crashed restarts without redoing the engine's load checks (#832); a big prompt read on a layer split owns the cards (#213).
  • Hardening and fixes (@larryllr, about 30 pull requests, among them #734, #735, #736, #739, #740 and #789): HTTP security and input validation, concurrency locking and lifecycle leaks, the router's parking swap race, SSE semaphore leaks, dialect parsers and logprob channels, grammar left recursion and JSON Schema bounds, CPU kernel bounds (Q8_1 and Q8_K), CUDA out-of-bounds, NaN and shared-memory fixes in the kernels, converter and format bugs.

Engine and platforms

  • Arm64 and the 12.1 GPU: the platform seams, the NEON CPU kernels (MXFP8 rows decode a weight sub-block once for every token of a window), an Arm CPU named by its core types, an integrated GPU's free memory read as the host's MemAvailable, and a bench row for an integrated GPU (--power-label). CI builds on ubuntu-24.04-arm.
  • CPU kernels: an AVX-VNNI rung for the NVFP4 expert rows (#688), AVX2 MXFP8 rows through four side-by-side chains (#847), AVX2/VNNI MXFP4 rows, inline F16C scale conversions (#498), shared Q5_1 down-row unpacking (#503).
  • Memory: transparent huge pages for RAM-tier allocations (#834), the RAM hard floor scales below a smaller --ram-reserve-mib (#836), Linux O_DIRECT falls back to buffered reads on EINVAL (#835), resident experts aligned for sliced host registration (#705), a conversation goes to the disk tier only when the volume has room.
  • Tokenizer and grammar: streaming zero-alloc Qwen3.8 pretokenizer and single-lookup BPE merges (#714), the DFA stack-set walk (#707), allOf of integer and number branches (#805).
  • Video frames convert in rows of whole 16-pixel blocks, so swscale stays in bounds (#815).
  • Tools: convert.py attaches a checkpoint's mtp.safetensors DSpark to an existing Inkling 2 pack (#839); check_benchmarks.py and the community docs know ERNIE-5.5-Flash and Gemma 4 (#864).
  • Docs: the design notes now sit in docs/architecture/ (multi-GPU, batching, adding a model, the server) and the CI notes in docs/ci/; the model-file page is an entry page with one page per model under docs/model-file/; docs keep to the architecture and no longer carry measured tables.
  • CI and community: a published release is announced on the Discord; the pull-request labels are kept in sync; a pull request that changes serve/web is asked for a screenshot; serve/tests run in parallel. About 33 community benchmark runs landed, on cards from an RTX PRO 1000 Laptop to four Blackwell cards. community

Upgrading

  • -DBASALT_MODELS is required (#731): a configure without it stops and says how to set it, where it used to build every model. -DBASALT_MODELS=all builds every model and follows models added later; a build folder that already holds a value keeps it. The release builds, the container image and CI pass all.
  • --slot-full-context and the per-slot split are gone (#808). Slots take their context from a shared KV pool; --no-kv-pool gives every slot its own fixed --max-context. --checkpoint-pool-mib (default 4,096) replaces checkpoints multiplied by slots.
  • --parallel is refused above what the model batches: Inkling 64, the 27B 32, DeepSeek, Hy4-flash and Flash-Next 8.
  • -DBASALT_MODELS takes gemma4 and ernie55.
  • No other flag or config key is removed or renamed. The .basalt format stays version 2 and the config version stays 2.

Known issues

  • Gemma 4 takes one card: a second card in gpu is refused with the reason. The 31B at 4 slots does not fit its card with fp16 caches beside its weights (2 slots do).
  • Windows: Gemma 4 had no local Windows build at merge; the CI build is its first compile.

Checks of this release

  • Gemma 4: greedy output of the 26B A4B drafted and plain identical over 900 tokens, with experts in RAM identical, batch windows (2 and 4 slots) identical on the 26B A4B and the 12B, a 3.8K-token checkpoint restored identical on every pack. Inkling 2 gives the tokens of main after the shared changes.
  • CPU tests pass in every model alone and with all models, -DWERROR=ON; serve and tools tests pass; GPU tests (ctest -L gpu, RTX 5090) pass.

Contributors of merged pull requests since 0.5.7: @larryllr, @tjm8874, @florian862-art, @giveen, @xyehya, @HyacinthLo, @LoneFireBlossom, @void-mckenzie, @agostino-code, @avarakin, @bovali, @8t85mqh7t7-crypto, @nilspolek, @gtrak, @350Stealth, @zlosim, @woodsonl, @sramteare, @wiechapeter, @Schumi08, @countzerox, @ggppdk, @lukyjay, @lwsrbrts, @thatsnickjones, @neuromaniacMD, @Neibot, @RecklessactN, @naudor, @jimdawdy-hub, @fpoisson2, @miloaissatu, @jbagdonas, @mmknet2025, @ansingh, @Dmitriy-Romanov, @Adam90a, @WeiLiuu, @CodeMody, @vidpry-code. Gemma 4's weights are Google's and ERNIE-5.5-Flash's Baidu's.