Repository navigation
Releases
RAI v0.2.6
Install
Windows: download rai-0.2.6-windows-x64-setup.exe below and run it. If Windows shows "Windows protected your PC", choose More info, then Run anyway. Or, in PowerShell:
irm https://github.com/Classevelabs/rai/releases/latest/download/install.ps1 | iex
macOS and Linux: in a terminal:
curl -fsSL https://github.com/Classevelabs/rai/releases/latest/download/install.sh | sh
Linux packages:
- Ubuntu and Debian:
sudo apt install ./rai_0.2.6_amd64.deb - Fedora and RHEL:
sudo dnf install ./rai-0.2.6-1.x86_64.rpm - openSUSE:
sudo zypper install --allow-unsigned-rpm ./rai-0.2.6-1.x86_64.rpm
Then open RAI Studio from the Start menu or your app menu, or run rai-studio. The first time, it offers to download a model to chat with. The archives (.zip, .tar.gz) hold the same program for running without installing.
Check your download
Every file is listed in SHA256SUMS. Put it next to your download and run sha256sum --ignore-missing -c SHA256SUMS (on Windows, certutil -hashfile <file> SHA256 and compare). Each file also carries a signed build-provenance attestation that ties it to this repository and the tagged commit: gh attestation verify <file> --repo Classevelabs/rai.
What it needs
A 64-bit Intel or AMD processor from 2011 or later (with AVX2, as most Intel Core and AMD Ryzen chips since 2015 have, it takes its fast path), or an Apple Silicon Mac, where it runs natively. No graphics card. On Linux, glibc 2.28 or newer: Ubuntu 20.04, Debian 10, RHEL 8 or anything newer.
Every download here was installed on clean Windows, macOS and Linux machines before release, where it downloaded a model, converted it and answered a question.
Privacy
The rai program never connects to the internet, and RAI Studio answers only your own computer. rai-get-model downloads models from Hugging Face, and only when you run it.
What changed in this release: see CHANGELOG.md.
RAI v0.2.5
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), plus the
deprecated rai-convert, rai-generate, and rai-chat wrappers.
Every binary in these archives is the inference engine. Nothing in
them opens a network connection to anything but your own loopback
interface.
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 in this release, and whether it fixes something you hit:
see CHANGELOG.md.
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.