Repository navigation
RAI v0.2.4
Prebuilt binaries for x86-64 Linux and Windows, and for macOS on both
Intel and Apple Silicon: the
rai inference CLI (convert, run, serve, models) and
rai-server, plus the deprecated rai-convert, rai-generate, and
rai-chat wrappers.
Verify your download before running it. Fetch SHA256SUMS from
this release, put it next to the archive, and run:
sha256sum --ignore-missing -c SHA256SUMS
The x86-64 archives are built with -C target-cpu=x86-64-v2, so they
start on any x86-64 CPU from roughly 2009 onward, and their
AVX2/FMA/F16C kernels are selected at runtime on CPUs that report
them. The aarch64-apple-darwin archive is native Apple Silicon and
runs the scalar kernels — there is no NEON path yet, so expect it to
be slower than the x86 archives on comparable hardware.
Setup and a sixty-second first run: see INSTALL.md.
What changed
Added
- Multi-turn chat.
POST /api/chatand/api/chat/streamaccept a
messagesarray carrying the whole conversation; every chat template
renders history the way its reference template does, and a one-message
thread produces byte-identical prompts to the old single-messageform,
which is still accepted. Studio now replays the visible thread on every
request — until now it showed a conversation but sent each message alone,
so the model never saw what it had already been asked. rai-servermemories can be deleted, and the capacity is configurable.
POST /v1/forgetand the mutation-gatedrai_forgetMCP tool remove a
memory by its exact stored text;RAI_CAPACITYraises the 512-item default
(up to 100,000), including over a snapshot written at the old ceiling. The
capacity-exhausted error now names two remedies that exist.
Fixed
- The 0.2.2 decode-dispatch fix missed the two fused entry points. The
packed-size gate was wired intow4a8_matveconly, while decode reaches QKV
throughw4a8_fused_qkvand the MLP throughw4a8_fused_gate_up, so small
models kept paying the rayon fan-out on two of the four decode GEMMs per
layer. The gate now applies to the combined fused matrix. - A failed re-conversion destroyed the previous good model. Conversion
wrote its minutes-long output straight into the target file through a
truncating create, so a Ctrl+C, crash, or disk error mid-write left nothing.
The bytes now go to a sibling.partialfile that is fsynced and renamed
over the target only after the size check passes; a failure leaves the old
model untouched and removes the partial. rai servedropped Gemma's<bos>. The serve path encoded prompts
without the beginning-of-sequence token thatrai runadds for Gemma, so
the same model produced different prompts depending on which front end ran
it.- The interference report could never fire. Storing a fact can only bring
an existing memory's nearest neighbour closer — a score drop — but the
detector reported score rises, a direction a store cannot produce, and its
critical tier sat above the ceiling of the score scale./v1/contradict,
rai_contradict, and the store-time report now flag the memories a
candidate would crowd, and a coincident duplicate reaches the critical tier. - The 0.2.2 changelog's TinyLlama figures (2.0 and 10.9 tok/s) sat
unreconciled against the README's quiet-machine 21.8. Re-measured on this
release at the shippedx86-64-v2baseline: 22.1-23.0 tok/s quiet,
2-17 tok/s under background load — the 0.2.2 numbers were loaded-machine
measurements. BENCHMARKS.md carries the run record. - Release builds are now executed before they are packaged: every shipped
binary must answer--versionwith the release's version on the runner that
built it. The Docker build compiles with the pinned 1.95.0 toolchain instead
of a newer image default no other build used. - Stale documentation that contradicted the code: INSTALL and MODELS said
Qwen3, Gemma2/3, OLMo2, and mixture-of-experts checkpoints are refused (they
convert and run, and MODELS.md's own support table said so); ARCHITECTURE
described header bytes 100..128 as reserved (they carry the Gemma3 and MoE
fields); the chat-template lists omittedphi3andgemma;--max-context
documented a 2048 default the code does not have; the macOS floor claim
ignored the Apple Silicon archive; RELEASE.md described a three-target
matrix and acargo packagegate that cannot pass. The pondering
strategies' "significant quality improvement" claims are demoted to what
they are — unmeasured — in the module doc, the CLI help, and the README.
Full history: CHANGELOG.md.