Skip to content

Releases

RAI v0.2.6

Choose a tag to compare

@github-actions github-actions released this 17 Nov 15:13

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

Choose a tag to compare

@github-actions github-actions released this 08 Sep 20:05

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

Choose a tag to compare

@github-actions github-actions released this 18 Aug 00:15

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/chat and /api/chat/stream accept a
    messages array 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-message form,
    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-server memories can be deleted, and the capacity is configurable.
    POST /v1/forget and the mutation-gated rai_forget MCP tool remove a
    memory by its exact stored text; RAI_CAPACITY raises 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 into w4a8_matvec only, while decode reaches QKV
    through w4a8_fused_qkv and the MLP through w4a8_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 .partial file 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 serve dropped Gemma's <bos>. The serve path encoded prompts
    without the beginning-of-sequence token that rai run adds 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 shipped x86-64-v2 baseline: 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 --version with 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 omitted phi3 and gemma; --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 a cargo package gate 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.