Repository navigation
0.3.0
2026-11-05. Taken from main. Build from source: building. The config format changes, so read Upgrading first. The .basalt format stays version 2.
Highlights
- Basalt is multi model. DeepSeek-V4.1-Flash runs on the same engine, server, bench and probe as Qwen3.8-Flash-Next, and each model's code lives in its own folder. Flash-Next's output is unchanged: what was checked.
- A router: a config lists several models, a request's
modelfield picks one, and one is loaded at a time. Clients wait through a swap; a wrong name is a 404 and a failed load a 503 naming the model, and the server stays up. models and the router - DeepSeek-V4.1-Flash is first class: what it supports and does not.
Upgrading
- Rebuild: building. The Linux build needs GCC 13 or newer.
- The config format changes. A config without
modelsis refused at start:Basalt requires v2 config, please upgrade.python3 tools/migrations/config_v1_to_v2.py basalt_config.json -o basalt_config.v2.jsonwrites the new shape; the old file is only read. models and the router .basaltfiles keep working as they are.- Open pull requests need a rebase: most of
src/core,src/prefill,src/kernelsandsrc/programmoved. Model code is undersrc/models/<model>andinclude/basalt/models/<model>, and server dialects underserve/models. To add a model: adding a model.
DeepSeek-V4.1-Flash
The pack is DeepSeek-V4.1-Flash-1017-UD-IQ1_M.basalt on Hugging Face, built from Unsloth's UD-IQ1_M GGUF (Dynamic V3.1, @unsloth) with convert.py --sections-from. DeepSeek-V4.1
- Supported: chat on every API, thinking, reasoning effort, tools with its DSML form, grammar and strict tools, images through
--vision dynamic, a context of up to 1,048,576 tokens, one or two cards,--parallelslots, conversations parked in RAM and on disk, idle sleep and wake,POST /v1/vram,basalt-probeand the bench fixtures. - Not supported:
--kv(fp16 is the only cache format, so the flag is the normal unknown-argument error), the sidecar image modes, the--rope-*and--yarn-*flags, and the flags only Flash-Next has. - Quality:
basalt-bench --qualityscores it against a BF16 reference of the model made by @giveen. At 400 W + 180 W, 100 chunks: KLD 0.278, top-1 83.88%, PPL 3.033 against the base's 2.731. precision - Prompt skip: in a long read, far rows stop at the compressor of layer 20, which is all a later token reads of them. It is on by default and
--no-prompt-skipturns it off. Prompt skip and the read share change rounding, not math: from the last prompt token on the math is a full read's, and a run differs from a full read as another chunk size does. prompt skip - Drafting: the DSpark drafter runs by default when the pack carries it, in windows of 3 (
--spec 0turns it off), and each
stage keeps its 32 most routed experts (--draft-experts), 2.41 GiB instead of 7.47, by a ranking counted on live runs of the
model and shipped indata/profiles. A pack without the section decodes plain with one log line. At 400 W + 180 W, greedy 800
tokens: code 82.6 tok/s against 62.2 plain, a conversation 78.1 against 64.7, prose 69.6 against 65.2; a long agentic
conversation at temperature 1, 63.15 against 62.15.
The pack
convert.py --sections-from BASEtakes a deepseek41 pack's DSpark and vision sections from BASE, and its Engram table too when the shard holding it stops after its header, so a new pack that shares the table needs no second copy of it.dspark/ggufis a new optional section:convert.py --dspark FILE --into PACK --undo-dir DIRappends it without moving any other section, and--roll-backundoes it. No format version change: an engine that does not know the section ignores it. model file, format changelog
Recent
Changes since 0.2.1.
New
basalt-bench --qualityscores DeepSeek-V4.1-Flash too, against its BF16 reference (reference by @giveen); each model names the flags and the window of its gate.- The stats page's header is a model picker: choosing a model loads it, and the header shows the load's progress.
/health,/metricsand/v1/statusreport swaps and each model;/v1/modelslists every configured model with its status.--lazykeeps--vision dynamic, which encodes inside the engine a request loads first; only a sidecar encoder is dropped (@polygizer, D_remi).- Images in tool results reach the prompt on every API; what cannot be placed is refused and logged.
Fixed
- An engine line with broken UTF-8 no longer stops the server's reader thread.
- Grammar: a closing tag with non-ASCII characters parses.
- An idle sleep the engine refused warns once and waits for the next request.
- The first SIGTERM ignores later ones, so the engine's exit and its spill to disk are not cut short.
/metricsreports the GPU on Windows: NVML is read fromnvml.dll(@polygizer).
Removed
basalt-overlapandbasalt-concurrent, and code nothing could reach, among it the naive S2 decode and S2 GEMV kernels and the verify window's S2 expert branch.
Checked
On this release's engine code, once each, at 400 W + 180 W:
- Flash-Next greedy output against 0.2.1: 900 of 900 tokens identical on
--gpu 0,1and on--gpu 0, pinned tiers, fp16 KV. - Flash-Next decode against 0.2.1, 1,200 tokens,
--kv int8, cold: prose about 0.5% slower (four runs each, 6,856 against 6,891 ms), code flat (two runs each). - DeepSeek greedy output on
--gpu 0,1, prose and code, 400 tokens: identical to the last build before the release tree. Images end to end. Its quality gate as above; Flash-Next's gate rows on NVFP4 and IQ3_S, 100 chunks, byte identical to 0.2.1's. - The router: swaps both ways, chats restored, a wrong name and a failed load, an image right after a swap, the reserve after a swap back on DeepSeek, SIGTERM.
- DSpark from the pack's section:
--spec 8end to end; with frozen tiers and the drafter on the second card, prose logits byte identical to plain with matched tiers. --lazy --vision dynamic: no VRAM at rest, first request an image.ctest(one test skipped, it needs its model), the server tests and thetools/check_*scripts. Windows: a static review here; CI compiles and CPU-tests it on the push.
Run on earlier builds of this branch and not repeated on this one: feature sweeps on both models, concurrency, the probe, the DeepSeek long-conversation speed, first-token times and the audit of prompt skip.