Repository navigation
0.7.0
2026-12-05. Taken from main, with 0.6.2's DeepSeek fix (#1134) already in it. Build from source: building, or take a release archive (platforms). One model joins: Qwen4-35B-A3B. Continuous batching, which 0.6.1 started with the Qwen family and Gemma 4, now covers Flash-Next, Inkling 2 Mini, DeepSeek-V4.1-Flash and Hy4-flash as well, so --batch, --slots and parallel are gone; basalt serve answers in a fraction of a second; and ERNIE-5.5-Flash and GLM-5.3-Flash run one request at a time. The .basalt format stays version 2 and the config stays version 2.
Highlights
- Qwen4-35B-A3B (
Qwen/Qwen4-35B-A3B, #1242, #1263, #1284): a hybrid of gated delta-net and gated attention layers with 256 routed experts (top 8), hyper-connections and an n-gram embedding, on the Flash-Next engine at its own widths. Packs convert from Qwen's BF16 checkpoint, its FP8 checkpoint (#1288) or RadixArk's NVFP4 one. The published pack (34.4 GB) holds every tensor in one form: calibrated NVFP4 routed experts, int8 dense projections and an int8 output head (each from the BF16 weights, rounded once, one FP32 scale a row), FP8 hyper-connections, an IQ4_NL n-gram table, the vision tower, the MTP drafter with a draft vocabulary, and RadixArk's DFlash 2 drafter with its projections stored rounded. Decode windows run the routed experts with 16-bit activations; prompt reads of 1,024 tokens or more run them as FP4 products. DFlash 2 is the default drafter on one card (multi-card modes use the MTP;--drafter mtppicks it on one card too), and greedy output is bitwise the same with either drafter on or off. Against BF16 (quality suite v2, all kinds): KLD 0.0721, top-1 93.71%. Up to 1,048,576 tokens of context with 64 slots, images up to 16,384 tokens and video up to 12,288. Tools and reasoning effort go through Qwen's own encoder. A 16 GB card runs it with the experts in RAM, placed by the shipped expert profile (data/profiles/qwen4exp-40x256.prof, learned on that card), and images go through the in-engine encoder with--vision dynamic. On an RTX 5090 at 400 W,--kv int8,--ple-io ram, one request, DFlash 2: structured output 1,099 tok/s, conversation 531, prose 410 (MTP 593 / 433 / 385; drafter off 312); a 32K prompt reads at 31,466 tok/s; 3,458 tok/s aggregate at 8 requests and 5,585 at 32 (structured output, 4,096 tokens each). guide, precision - Qwen4-35B-A3B speed: a prompt is read in buffers of its own when VRAM allows, so it borrows no expert slots and nothing refills after it; the prompt's dense projections are int8 GEMMs; the graphs are captured at load and two warm passes run at start, so a first request pays no lazy load; DFlash 2 drafts every slot's block in one batched pass and batch rounds always draft, which fixes the round policy at 32 requests; and the router plan releases its dependent launch early (PDL). Parts of the prompt path (the int8 GEMM, the TMA expert and GDN kernels, the block-union attention and indexer, the draft cost model and the MTP draft rule) adapt code from NInfer (Apache-2.0), credited in
THIRD_PARTY_LICENSES. Separately,basalt servenow ends its engine on every stop path and installs its own SIGINT handler: a server started in the background from a script ignored SIGINT and kept the GPU, on any model. - Continuous batching on the shared engine (#1113, #1223, #1251). One scheduler, ported from vLLM's, serves Qwen3.6-35B-A3B, Qwen3.8-27B, Gemma 4 (26B A4B, 31B, 12B), Inkling 2 Mini, Qwen3.8-Flash-Next, Qwen4-35B-A3B and DeepSeek-V4.1-Flash: requests are admitted as the KV pool has room, up to 64 at once, prompts read beside the others' decoding, and a full pool swaps the newest request out instead of failing one. A request's tokens stay the same alone and batched, and a model's single-stream context never shrinks for its slots (with experts in RAM, Flash-Next and DeepSeek keep what they had: continuous batching). Aggregate tok/s at 64 requests against 0.6.1, RTX 5090 at 400 W,
llama-concurrency --greedy: Qwen3.6-35B-A3B 833 to 3,040, Gemma 4 26B A4B 488 to 2,090, Gemma 4 12B 613 to 1,625, Qwen3.8-27B 709 to 854, Inkling 2 Mini at 1M context with experts in RAM 1,214 to 3,271, DeepSeek-V4.1-Flash on two cards 86 to 211 (#1251). Flash-Next serves 64 streams at 333 against 327 with four slots. continuous batching basalt serveanswers right away (#1243). The server binds first and checks the models in the background: the first answer on/and/v1/modelscame after 0.13 to 0.16 s, against 12.8 to 15.3 s, on a 7-model lazy router config./v1/models,/v1/statusand the console show each model as starting or failed, and a request for a model still being checked waits up to 60 s.basalt --list-flagsprints the engine's flags without touching CUDA.- ERNIE-5.5-Flash and GLM-5.3-Flash run one request at a time (#1250). Their slot and batch code is gone and
--batch,--slotsand--max-runningare unknown arguments for them. Single-stream behavior is unchanged. - Qwen3.8-27B with a UBTree drafter (#1195, giveen): speculative decoding over a draft tree, verified in one batched window (also across slots) and sampled with GPU SpecInfer.
Qwen3.8-27B-UBTree.basaltagainst the QUASAR NVFP4 pack with DFlash 2 (ABBA, RTX 5090 at 475 W): prompts +13.6%, conversation +8.1%, struct +0.3%. - EXL3 experts on Flash-Next (#982, #1075, #1096, miloaissatu; #1136, giveen): ExLlamaV3 trellis experts convert to a pack and run on the GPU and CPU tiers, with the checkpoint's own n-gram table, the MoE tail on the main card, a 34% faster 16K prompt and 6 to 9% faster decode.
- Decode-gap warnings and a flight recorder (#949, sramteare):
--gap-warningsnames the cause of a slow token, and--trace-ringkeeps the last seconds as a trace that opens in Perfetto, dumped on request, on a long gap or on an abrupt end. - Windows on Arm (#952, SolettaSolaris): the RTX Spark laptops (N1X) build and run. Arm64
Other models
- DeepSeek-V4.1-Flash: batch windows take
--route-priorand--route-tail-skip, so a lossy tier batches too (#1251); a prompt read that finds no room waits for a slot to end instead of ending the engine (#1251); long-prompt prefill on a slot no longer drops 15 to 24% and a solo long prompt reads up to 38 to 52% faster (#1190, florian862-art); peer copies are submitted before the next share is armed (#904, ggppdk); a slot-0 solo checkpoint is cleared on park and a restore guards its KV length (#1332, florian862-art). Indexer scoring runs on tensor cores with a Level2 tile skip and a compact scorer in decode (HyacinthLo); the DSpark drafter samples losslessly with drawn drafts, split mode reads its prompt through the peer share, and prefill scratch buffers alias where they are disjoint (florian862-art). - Inkling 2 Mini: ISTA-DASLab's GSQ-RCO GGUFs convert and load (#799, ahostbr); a BF16 trunk with
--trunk bf16(#1012, picmax); the spill plan runs once and its refusals say what fits (#1127, DenizYanbollu); a split visit's caches save and restore on their own card (#1158, pengy-agent); window graphs and the cache grow stay inside the free VRAM (#1097, #1102, xyehya); the SWA ring KV is counted at its visit row bytes in the running state (#1175, giveen); the tool-call grammar accepts sorted argument keys (#1159, giveen). The peer card's prefill arena is decided per layer from both cards' rates, and peer-held experts keep their host copies (cnavasca95). - Gemma 4: the tool-call grammar closes its quote and accepts sorted parameters (#1163).
- Grammar: a draft is pruned where the grammar forbids it and the forced tokens that follow are proposed as drafts, on every model with a draft policy (HyacinthLo); nested tool-call objects accept unordered keys (wrongdoug) and a tool schema with a dangling
$refis tolerated (Archmonger). - Flash-Next: an NVFP4 pack takes an sm_89 (Ada) peer (#771, Xiaomi2008); image and text requests mixed with several slots queue instead of failing (#981).
- Qwen4-35B-A3B: a token's bits no longer depend on the prompt chunk width, with one pinned cuBLASLt algorithm per dense prompt shape (#1108, giveen), and a GDN row has the same bits in solo and batch windows (#849, SuperDistance);
--kv k8v5runs in batch windows and with--kv-resident(#1347, giveen); a shared system prompt is reused across new chats (#1327, krzynio); prompt splits are sized for the draft window (#501, LoneFireBlossom) and a split stage's prompt reads its own card's state (#1331, jwmarb), with the strided KV copy of an elastic group fixed (#1333, florian862-art); the MoE tail runs on one card at this expert width and the token path's hit quantizer reads the layer's width (#1293, #1290, fortun8te); the n-gram row format and scale are recorded in the pack (#1267, jwmarb) and the MTP head's 2-bit copy is used only at widths its kernels cover (#1276, da-z); the image position offset is applied once in verify windows (#1348, mafrasi2), a slot gives back its M-RoPE range when its KV is trimmed to 0 (#1323, giveen) and a conversation takes up to 256 images (#1324, giveen); a solo PLE window is cleared before a slot leaves solo (#1349, giveen), lazy GDN commit is off under--profile(#1357, giveen) and disk rows count the QSA indexer block (#1360, giveen); the prefill's fp4_fused scratch, a chunk-plan tail bug and cross-stream flushes are fixed (#1227, florian862-art);--reproduciblerepeats greedy requests replayed one at a time, with fixed costs where timings would decide (xyehya); the elastic KV counts the window graphs' headroom and retries after a paged driver's late memory report (ajaygrover, xy-ls), the expert cache retries a tail cut that freed less than asked (glasscricketbat), and a draft layer short of VRAM says what it needs (easonLiangWorldedtech); an answer wrapped in quotes ends at its closing quote (TrigrD3); the DFlash 2 drafter gathers the mask token's rows once per load and walks its candidates over pair scores (xyehya). - Hy4-flash on the shared engine (#1285): slots from each card's KV pool, up to 64, on 64-row batch windows; a slot's window rings drop to 28 MiB.
- Hy4-flash: the VRAM reserve keeps at least 1,536 MiB and honors
--vram-reserve-mibon two cards (#1165, #1185, florian862-art); a pending MoE group is joined before graph capture (#1176); zero-copy VRAM experts, an IEEE-exact fused SwiGLU-MMQ quantize and overlapped router D2H (#1144, HyacinthLo); a split-mode "invalid resource handle" crash and wrong-layer file reads on card 1 are fixed (#1225, florian862-art); Q5_K down projections run natively, with the hybrid K-quant packs documented (#1239, florian862-art); Windows CPU expert workers are pinned to their L3 groups (#1217, ggppdk). - ERNIE-5.5-Flash: the tool-call grammar accepts sorted parameters (#1164); peer copies are submitted before the next share is armed, which fixes multi-GPU decode stalls (#1046, ggppdk); long-context decode is faster, with a tensor-core indexer, a multi-block radix top-K and a split-KV HCA (#1241, florian862-art), and 262K split decode is 9 to 11% faster with 2.1 GiB more VRAM (#1142, florian862-art); 32K prompt chunks and a RAM-sized single-GPU expert ring speed up its prefill (#978, florian862-art).
- GLM-5.3-Flash: zero-copy VRAM experts, a chunked q8 gather, a fused clamped SwiGLU-MMQ and overlapped router D2H (#1105, HyacinthLo).
- CPU kernels: bit-exact AVX2 multi-token kernels for the K-quants, Q5_0, Q5_1, Q8_0 and the IQ2, IQ3 and IQ4_XS gate and up rows (#954, #955, HyacinthLo); interleaved MXFP8 rows (#1117); NVFP4 AVX-512 rows computed wrong results in MSVC builds (#1125, DenizYanbollu); the MXFP8 AVX-512 rows interleave four rows and decode codes in two operations (#1126, DenizYanbollu);
--ple-io ramtables are staged into transparent-huge-page memory (#1192, HyacinthLo); a single-passmhc_plainpartial reduction (#1146, HyacinthLo).
Server
- OpenAI API:
n > 1is refused,stream_options.include_usageis honored,GET /v1/models/{id}is served and every family the server does not serve answers 501 (#1255, giveen); the final streamed/v1/completionschunk carries usage (#1169); Chat Completions checks stop, the thinking budget and the grammar before its turn (#1207, WeiLiuu); raw completions check stop andmax_tokensbefore they stream (#1222) and a seeded reply continued in a new run draws on from its own tokens (#1211). POST /apply-templaterenders a prompt without taking a slot (#701, giveen); a GET on a POST-only route answers 405 withAllow(#1244); two aliases may share one model file (#994, Adam90a).- A parked conversation that only shares a request's start is kept (ajaygrover); a block the answer opens after the thinking's fence quotes its calls again (foreverxdord); Windows wrappers get UTF-8 standard streams (lulowondemand); one model registry names every supported model by its shape and quant (#1376); a shared window clock times every model's decode gaps (#1080, sramteare).
--stall-secondssets the no-progress limit, 60 by default,0for never (#1089);--force-call-on-reopenforces a tool call when thinking reopens, off by default (#684, sjoshis); the thinking block a template's ownnonelevel opens is kept (#1092); a tool call written as JSON or<functions.name>in the reply text is read (#1094); a partial held-prefix match no longer takes a slot that holds nothing (#1249).- The checkpoint pool is capped by the host RAM budget and a startup GPU error stops the server cleanly (#990, Phillis); parked conversations are shed at the physical-RAM gate as at the container gate (#1131, subes); image requests are faster with raw-image hashes cached before the resize (#1082, judarange); the batch overlap solo-bounce race, the watchdogs and the Prometheus queue count are fixed (#959, larryllr); a streamed completion with
echoholds the prompt and the suffix (#1098, WeiLiuu) and a raw completion keeps a tail that only began a stop string (#1099, WeiLiuu); the tags a reply writes about are read, not the ones it uses (#1119, bellkin); an open parameter schema takes the parameters a tool does not declare (#1112, giveen); a crash leaves a Python traceback through faulthandler (#1115, giveen); a session model keeps its turn-boundary checkpoint when a turn token is present (#1178, giveen); the startup tests wait on the checks thread before interruptingmain()(#1253, giveen). basalt servehas a GPU pool mode (#1254, RGarrido03); Prometheus/metricsadds the conversation cache, expert, draft-position and memory figures (#1372, Vishnukk33);/v1/modelsreports the configured or known context while a model loads (#1355, giveen); the conversation cache honors its budget input_slot, the session header is configurable andx-session-conversations: 1pins a slot (#1361, giveen); a tool grammar masks invalid lazy-trigger tokens while inactive (#1320, giveen) and turn markers without bytes are matched by id (#1358, giveen).
Engine, tools and docs
- Windows: overlapped reads in
pread(#711), the WDDM host-VMM pin cap and the 2-card split fallback (#797, larryllr), NVML for free memory under WDDM (#1215, mussonero), RAM-guard reclaim and stream flushes (#1040, killthrash), NVTX withwindows.h(#1197, jhumbo). - Core and kernels: a link-weighted adaptive dual-link peer bus with H2D pump and fetch decoupled (#1140, florian862-art); pinned RAM is sized without the CMA pageblocks (#1238, woodsonl) and the huge-page hint is withheld where defrag would stall faults (#1300, rkfg); grouped-query attention with up to 16 query heads per KV head (#1287, Adam90a); router logits cache the prompt's token rows in registers (#970, HyacinthLo); the draft policy's window cost prior blends the resident Tensor Core slope (#929, tjm8874); the vision encoder's AVX2 GEMM has no register spills (#1116, HyacinthLo); embedding gathers split at the grid.y limit (#1316, LuckyXixi); the monitor labels single-GPU PCIe experts "Over PCIe" (#1313, Jagger401). Huge-page hints are budgeted to the kernel's ready 2 MiB pages under a stalling defrag policy (HyacinthLo); NVML free memory is used on paged drivers (xy-ls); AVX-512 VNNI rows for the K-quants' MXFP4, IQ1 and IQ2 experts (#875, #1418, HyacinthLo); dense batch attention segments are read from device tables, so graphs no longer depend on the batch's composition (#1150, HyacinthLo);
verify_packsplits merged source tensors as the converter does (da-z); only the shared CUDA runtime is linked on Windows (jthorborg). - Converter: the PLE table can be built as IQ4_NL (#311); the qwen35 block drafter's Q8_0 jobs carry the value-head count (#1000, CaptainArni);
qwen35moereads next-token experts stored one by one (#1028, aamsellem); the vision scratch directory is created Low-labeled for a Low-integrity encoder (#331, jerry78424); for Qwen4-35B-A3B,--expert-stats,--expert-device cuda,--dense-i8,--spliceand--ple-q iq4_nlbuild the new pack (see Upgrading). - Build and CI: the test microbenchmarks build only with
-DBASALT_BUILD_BENCH=ON(#1171); Python 3.12 is the minimum for the server (#1259, giveen); the peer's sm_89 code is kept on the mmq sources underPEER_ADAand an older card is accepted as the peer or the vision sidecar (#1374, #1381, giveen); the docker build takesBASALT_MODELSas a build arg (#1189, ApexArray); two tools compare builds on the same token stream (#1292, Adam90a) and the sanitizer tests use exact-byte tail allocations with a red control (#1004, Adam90a); the quality tool's--smokereads--test2on the same slice (#1061, WeiLiuu) and its paired mode takes a second build with--basalt2(#1177, WeiLiuu); the CPU test suites are merged into fewer runners (#1172, #1173, giveen); the docker build stamps its commit so--communityruns there (#1093, ApexArray); the lint, server and tool tests, the CUDA toolkit installs and the ISA check run faster in CI (#1224 to #1231). - Community: benchmark runs landed or were refreshed on 0.6.1 and
main(Flash-Next, Hy4-flash, ERNIE, Qwen3.8-27B, DeepSeek and Inkling 2 Mini runs from #1124, #1135, #1137, #1139, #1145, #1154, #1167, #1180, #1181, #1182, #1184, #1187, #1201, #1204, #1233 and #1260 by huangwb68, HyacinthLo, Ky36aC, thisvip2, xyehya, 8t85mqh7t7-crypto, krabokiller, fdehay, Kemipso, POEG1726, countzerox and atgnats; Qwen4-35B-A3B runs: #1301 and #1342, chang110; #1302 and #1303, giveen; #1362, MadStrangerUA; #1364, PierpaoloPernici; #1365, konovalov-nk; #1366, s3rius; #1396, lulowondemand), on cards from an RTX 5060 Ti to an RTX PRO 6000 and on the DGX Spark. community
Upgrading
--batch,--slotsand the config'sparallelare gone (#1286). Every model with more than one slot (Qwen3.6-35B-A3B, Qwen3.8-27B, Gemma 4, Inkling 2 Mini, Qwen3.8-Flash-Next, DeepSeek-V4.1-Flash, Hy4-flash and Qwen4-35B-A3B) makes its slots from its KV pool, and--max-runningcaps them (up to 64). A config that still hasparallelstops at start;tools/migrations/config_v1_to_v2.pydrops it. A start without the elastic pool (a layer split,--kv-resident, a small context) runs one slot, more with--max-running N.- Qwen4-35B-A3B: download the new pack. The older pack still runs: each tensor is read in the form the pack holds (Q6_K or Q8_0 dense projections, 8-bit or BF16 hyper-connections, the GGUF head). The new one is smaller (34.4 GB against 46.2) and closer to BF16 (quality suite v2: KLD 0.072 against 0.089, top-1 93.7% against 92.8%). The new pack holds every tensor in one form: calibrated NVFP4 experts, int8 dense projections and output head (one FP32 scale per output row), FP8 hyper-connections, an IQ4_NL n-gram table, and DFlash 2 with its projections stored rounded. To build one,
convert.pytakes--expert-stats STATS.npz(made bytools/convert/qwen4_expert_stats.pyover calibration conversations), which rounds each routed expert to NVFP4 against its inputs' statistics with GPTQ error feedback;--expert-device cuda, which does that rounding on the GPU,--expert-batch Nexperts at a time (the CPU default is much slower);--ple-q iq4_nl, which stores the n-gram table as IQ4_NL;--dense-i8 only, which writes the dense projections as int8 in place of their Q6_K or Q8_0 copies (bothkeeps both;--dense-i8-scale fp32|fp16picks the scales' type, FP32 by default, as in the published pack); and--splice BASE.basalt, which with--dense-i8 onlyputs that copy into a pack built earlier from the same checkpoint. The steps are in the pack's page. basalt serveneeds Python 3.12 or newer (#1259).- Flash-Next serves every
--kvformat from its slots, butq4_0,nvfp4,k8v4andk8v5have no batch attention kernels yet, so their slots take turns on solo windows. - ERNIE-5.5-Flash and GLM-5.3-Flash run one slot and refuse
--max-runningabove 1. - Removals (never in a release, so no config can hold them):
--dflash2-weights(rounding the DFlash 2 projections at load) and the DFlash 2 head's Q8_0 screen, both from the community (xyehya), are not in 0.7.0: the pack stores the drafter rounded, and the head is the int8 rows' top-k over the pack's draft vocabulary and its context rows (xyehya's design). No flag replaces them; an old BF16 DFlash 2 section is still read as it is stored. --stall-secondsis new (default 60, as before); no other flag or config key is removed or renamed.
Known issues
- Flash-Next with resident KV on a 16 GB card decodes slower through the server than on 0.6.1 (#1248, RTX 5080,
--kv-resident). One-shotbasaltis unaffected; I'm looking into it with the logs from that report. - ERNIE-5.5-Flash and GLM-5.3-Flash have no batching: they serve one request at a time.
- Qwen3.8-27B is slower at 64 streams than at 32 (the KV pool holds about 45 requests and the rest wait), and a Gemma 4 31B window ring is large, so a 64K prompt read beside a decoder is slow. vLLM-style prefix caching by block hash is not in yet.
- Flash-Next and DeepSeek-V4.1-Flash spill experts to RAM, so a request's tokens are not guaranteed identical alone and batched; Inkling 2 Mini keeps that only while every expert a request routes to has its card copy.
- Qwen4-35B-A3B decodes slower with a drafter than
maindid before this release on conversation and prose, one request at a time (a few percent to about 12%; structured output is unchanged). Short verify windows cost more than they did; I'm fixing it for 0.7.1. - Qwen4-35B-A3B: the DFlash 2 drafter runs on one card only, and a resumed conversation drafts from a shorter context.
Contributors of merged pull requests since 0.6.2: @giveen, @florian862-art, @HyacinthLo, @xyehya, @WeiLiuu, @miloaissatu, @larryllr, @8t85mqh7t7-crypto, @aamsellem, @Adam90a, @ahostbr, @ajaygrover, @ApexArray, @Archmonger, @atgnats, @bellkin, @boernerpascal, @CaptainArni, @chang110, @cnavasca95, @countzerox, @da-z, @DenizYanbollu, @eapifan921207-arch, @easonLiangWorldedtech, @fdehay, @foreverxdord, @fortun8te, @GeoffC31415, @ggppdk, @glasscricketbat, @GoodSlopBadSlop, @huangwb68, @ibra315-alt, @Jagger401, @jerry78424, @jhumbo, @jthorborg, @judarange, @jwmarb, @Kemipso, @killthrash, @konovalov-nk, @krabokiller, @krzynio, @Ky36aC, @libexx, @LoneFireBlossom, @LuckyXixi, @lulowondemand, @MadStrangerUA, @mafrasi2, @maondun, @mussonero, @Orolol, @pengy-agent, @Phillis, @picmax, @PierpaoloPernici, @POEG1726, @qu1ck, @RGarrido03, @rkfg, @s3rius, @shu05, @sjoshis, @SolettaSolaris, @sramteare, @stephen304, @subes, @SuperDistance, @Sypher760-gif, @thisvip2, @tjm8874, @TrigrD3, @versed-tech, @Vishnukk33, @woodsonl, @wrongdoug, @Xiaomi2008, @xy-ls