Niko1221 fd203ddf6a fix(inkling2/cuda): do not reuse a stale converted X buffer between mixed-format attention projections (#6788)
From PR #6788 by @paperniuk.

On Inkling-2-Mini-SQ-15 the attention weights of one layer are in two formats (wq_du and gate_attn
Q8_ROW; wr_du, wk_dv and wv_dv BF16). linear_multi() ran them one by one with reuse_x_bf16 = (i > 0),
which assumes the first projection already converted X into d_x_bf16; the Q8_ROW GEMV never does, so the
BF16 GEMMs read whatever an earlier GEMM had left there. The same prompt then answered differently
depending on what ran before it (prefill M = 4..16).

linear_x_cache_fmt() says which format linear() converts X into for a weight, linear_cached() reuses the
buffer only when it already holds that format; used in the linear_multi() fallback and in the M > 16 QKV
block. The pre-quantized Q8_ROW path checks cur_moe_ws and the xq_sk capacity like linear() does.

Checked here on three cards: SQ-15, prompts of 15, 19, 15 (and more) tokens, greedy, --draft off. On
origin/main the 15-token prompt answers with one token repeated (6648, 24757, 68911 ... depending on the card)
or a different text on every repeat; with this change every run gives the same right answer
(140215, 68014, 68025, 220, 16, 13 ...), 4 and 2 repeats identical.
- Tesla V100 16 GB (sm_70, the FP16 attention path), so the PR fixes Volta too, not only sm_120.
- RTX 3060 12 GB (sm_86), 9 prompts of 8..19 tokens, 4 repeats of the 15-token one.
- RTX 4090 24 GB (sm_89), 25000 and 40000 token prompts give the same tokens as origin/main.
2026-11-23 11:19:41 +01:00

Strata

Run powerful AI on your own computer.

Chat, code and work with images, locally.

Models · Install · Hardware · Tools · Help · Support

Download Strata MIT license Sponsor Strata on GitHub Sponsors Support Strata on Buy Me a Coffee

English · 简体中文 · 日本語 · Deutsch · Français · Español · Português · Polski

Free, open source, and yours to run. Use Strata on your desktop or with your favorite coding tools. No account needed.

Models

We recommend ISTA-DASLab first, then Unsloth and other providers, where a compatible model fits.

 Qwen3.8-Flash-Next
Provider Choices
ISTA-DASLab · recommended Q2_0, IQ2_XS, IQ3_XXS, IQ3_S. Coder: IQ1_M for coding.
Unsloth UD-IQ4_XS, UD-Q4_K_XL, UD-Q5_K_XL, UD-Q6_K_XL, Q8_0
Gyro · agentionai Gyro-S, Gyro-M. Lower memory use but slower.
Other options Swift 1.5, NVFP4, OrcaRouter

Compare sizes, memory needs and compatibility.

 Tencent Hy4-Flash
Pack Your RAM Graphics card
SQ-64 64 GiB 8, 12 or 16 GiB
SQ-96 96 GiB 8 or 12 GiB
SQ-128 128 GiB 8 or 12 GiB

The number in the name is the RAM the pack is made for.

Hy4-Flash packs on Hugging Face

 Qwen3.6-35B-A3B

Unsloth: UD-Q4_K_XL, UD-Q6_K_XL, Q8_0. These are the currently documented packs for this model.

Model guide and compatibility.

Thinking Machines  Inkling 2 Mini
Provider Choices
Strata SQ-20 (19.35 GB), SQ-15 (14.35 GB), SQ-10 (10.47 GB)
Unsloth UD-Q8_K_XL (22.87 GB), UD-Q4_K_XL (17.63 GB), UD-Q4_K_M (16.61 GB), UD-IQ4_XS (15.73 GB), UD-Q3_K_XL (13.63 GB), UD-IQ3_XXS (11.66 GB), UD-Q2_K_XL (9.14 GB), UD-IQ2_XXS (8.49 GB), UD-IQ1_M (8.02 GB), UD-IQ1_S (7.76 GB)

SQ-20 is made for a 24 GiB graphics card, SQ-15 for 16 GiB and SQ-10 for 12 GiB. A 4 GiB card is enough to start.

Strata packs on Hugging Face · Unsloth GGUF files

Not sure what fits? Choose a model for your computer.

Install

Desktop app

Download Strata for Windows, Linux or Mac →

Install the app, choose a model, and start chatting. There is one installer for each system. On first start the app downloads the engine for your graphics card. Help with the installer.

Files: Strata-0.2.20-windows-x64-setup.exe · Strata-0.2.20-linux-x86_64.AppImage · Strata-0.2.20-macos-arm64.dmg

Strata desktop app with a chat and live code preview side by side
Chat, files and a live preview in one window.

Terminal app

Prefer the terminal? Install Strata, then run strata launch.

Install commands

Linux / Mac

curl -fsSL --connect-timeout 15 --max-time 120 https://github.com/Niko1221/Strata/releases/latest/download/install.sh -o install.sh && sh install.sh

Windows PowerShell

irm -TimeoutSec 120 https://github.com/Niko1221/Strata/releases/latest/download/install.ps1 | iex

On Windows, open a new terminal afterwards. Then:

strata launch

Follow the prompts to download and start a model. Terminal guide.

Strata terminal app showing model activity, speed, memory and recent requests
Watch your model and hardware while it runs.

Build from source · Docker · Full install guide

Hardware

Supported hardware Guide
NVIDIA GeForce RTX 20 / 30 / 40 / 50 series NVIDIA setup
AMD Radeon RX 7700 / 7800 / 7900, RX 9060 / 9070, AI PRO R9700 AMD setup
AMD Radeon RX 6800 / 6900 · experimental RX 6000 setup
Intel Arc · Linux Intel setup
Apple Silicon · M1 or newer Mac setup
AMD Ryzen AI Max · Strix Halo Strix Halo setup
NVIDIA DGX Spark · Linux DGX Spark setup

Tools

Claude Code · Codex CLI · OpenCode · oh-my-pi · pi.dev · Hermes Agent · OpenClaw, and more through the OpenAI- and Anthropic-compatible APIs.

Run strata connect to see setup instructions for your tool. Connection guide.

Help

All guides · Troubleshooting · Report a bug · Benchmarks · How it works · Contribute

Sponsors of Strata

Olares      Linger

Support Strata

Help keep local AI open to everyone. A GitHub sponsorship or a coffee helps fund development and testing on more hardware.

GitHub Sponsors: sponsor Strata Buy Me a Coffee: support Strata

Loyal supporters

Thank you to everyone who supports Strata.

codeconduit-official

kod88vn router0mail kingdonb Daisame

ryan4yin themactep macintog bisonbet vizv seoulworker jaceknoga jackyini moruku36 hrkgk

All supporters and how to support Strata: SUPPORTERS.md

MIT license · Credits and model licenses · Privacy

For AI tools and automated readers: technical reference · setup instructions.

Sponsorships, hardware partnerships or collaborations: niko.veit@outlook.com.

S
Description
Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
Readme MIT
940 MiB
0 Stars 1 Watchers 0 Forks
Languages
C++ 44%
Python 26%
Cuda 14.1%
JavaScript 7.5%
Metal 2.4%
Other 5.7%