Repository navigation
basal 2.4.1
basal 2.4.1
basal 2.4.1 makes start-up of the graph engine (--mode fast) shorter and adds prompt layouts. On the usual paths
every probability is the same as in 2.4.0.
- Shorter start-up (#43, Miłosz Kucharski, @Butterski). Every CUDA graph is now warmed up once before its
capture. Before, it was warmed up three times (pass-2 graphs: twice). The first call already compiles and sets up
the kernels; the extra calls only ran the same kernels again.-
One H100, warm compile cache:
model 2.4.0 2.4.1 basal-2.0-mini, default rows 146 s 124 s basal-2.0-mini, compact rows 176 s 150 s basal-2.0-4.5B, compact rows 330 s 276 s basal-omni-1.0-mini 152 s 123 s basal-omni-1.0-max 203 s 123 s -
His RTX 4060 Ti 16 GB: the graph warm-up went from 468 to 323 s on basal-2.0-mini, and from 1,094 to 680 s on
the 4.5B. -
Same answers: on an H100, all 5,800 identity readouts were bit-identical to 2.4.0. That covers basal-2.0-mini
with default and compact rows, the 4.5B with compact rows, and basal-omni-1.0-mini and 1.0-max. basal-omni-pico in--mode fastgave
the same probabilities as 2.4.0 on all 1,700 QD items (max |dp| 0). GPU memory is the same. -
The 2.3.4 determinism still holds: two runs of basal-omni-1.0-mini on empty compile caches and one on a warm
cache give the same probabilities (840 of 840 readouts).
-
- Prompt layouts (
--layout).- What they are: a model trained on another prompt layout can be served in it.
qfirstputs the question
before the state as well, so the state is read knowing the question; it takes one pass per question.state_twice
reads the state twice. - Unchanged: the canonical prompt (the state first, shared by a request's questions) is bit-identical to 2.4.0,
and so are the codes, the prefill and the readout tokens. - Default: without
--layout, a model is served in its basal.json"layout", or canonical. - Calibration: each layout loads its own
CALIBRATION.<layout>.json. Without one, the answers are marked
"calibration": "unvalidated".basal-calibrate --layoutfits one. - Limits:
--state-cache-gband--prefix-cacheneed the canonical layout. Images and audio are read in it
only. - Checked on basal-omni-1.0-mini with
qfirstandstate_twice: 20 requests of 3 questions each, none refused,
every probability finite. All 60 answers were marked unvalidated, since the model ships no per-layout file, and
/v1/modelsreported the layout.
- What they are: a model trained on another prompt layout can be served in it.
Install:
uv pip install "basal @ https://github.com/rkinas/basal/archive/refs/tags/v2.4.1.tar.gz"From the community
- Miłosz Kucharski (@Butterski): one warm-up per CUDA graph (#43), with his RTX 4060 Ti measurements.