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.
C++
docs: Older CPUs (experimental) - what setup does on a CPU without AVX2, what was measured
Niko1221a184ac914ed0
diff --git a/docs/AI_SETUP.md b/docs/AI_SETUP.mdindex 8b6e1bb96..24f3da2ec 100644--- a/docs/AI_SETUP.md+++ b/docs/AI_SETUP.md@@ -48,7 +48,7 @@ Requirements (details: [INSTALL.md](INSTALL.md#what-you-need)):- **Driver:** NVIDIA 580 or newer. AMD on Linux: the kernel's amdgpu driver; on Windows: a current AMD Adrenalindriver. If the driver is missing or too old, tell the user to update it (NVIDIA App / nvidia.com/drivers, or AMDSoftware) and restart; do not install drivers yourself unless they ask.-- **RAM:** 32 GB or more (see step 3). **Disk:** ~80 GB free, ideally on an NVMe SSD. **CPU:** x86-64 with AVX2.+- **RAM:** 32 GB or more (see step 3). **Disk:** ~80 GB free, ideally on an NVMe SSD. **CPU:** x86-64 with AVX2. Without AVX2 (Xeon E5 v1/v2 and older) setup still installs, as an experimental and slow build it compiles on the PC (10-20 minutes): tell the user that before starting ([INSTALL.md](INSTALL.md#older-cpus-experimental)).- **OS:** Windows 10/11 or Linux (Ubuntu 22.04/24.04 are fully automatic).If the PC does not meet them, say which part is missing and stop.diff --git a/docs/DETAILS.md b/docs/DETAILS.mdindex dc64a554c..a8935ccce 100644--- a/docs/DETAILS.md+++ b/docs/DETAILS.md@@ -303,7 +303,7 @@ Everything else is installed for you the first time.| --- | --- || GPU | NVIDIA **RTX 20, 30, 40 or 50 series**, **12 GB VRAM or more** (8 GB runs, slowly). Measured on an RTX 5070 and an RTX 3090; RTX 20 (Turing, since 0.1.27) was tested by a contributor on an RTX 2070. Or AMD **Radeon RX 7900 XT / XTX, RX 7800 XT / 7700 XT, RX 9060 XT, RX 9070 / 9070 XT, Radeon AI PRO R9700, RX 6800 / 6900 series**: [AMD_HIP.md](AMD_HIP.md). || RAM | **64 GB** recommended (see the table above). |-| CPU | x86-64 with AVX2 (any Intel/AMD desktop CPU from the last ~8 years). AVX-512 (Ryzen 7000/9000) is a bit faster. |+| CPU | x86-64 with AVX2 (any Intel/AMD desktop CPU from the last ~8 years). AVX-512 (Ryzen 7000/9000) is a bit faster. Older CPUs without AVX2 are experimental and slow: [Older CPUs](INSTALL.md#older-cpus-experimental). || Disk | ~70-80 GB free for the model, ~6 GB for the MTP layer (+1 GB with images). **Q2_0 on an AVX-512 CPU** also writes a one-time ~40 GB pack for the fast CPU kernel (34 GB of experts in its layout, plus the dense weights). An NVMe SSD is strongly recommended. || OS | Windows 10/11, or Linux (Ubuntu 22.04/24.04 get everything installed automatically). |diff --git a/docs/INSTALL.md b/docs/INSTALL.mdindex bc77768b2..4ab28fb12 100644--- a/docs/INSTALL.md+++ b/docs/INSTALL.md@@ -5,9 +5,9 @@ AMD graphics card. The short version is in the [README](../README.md#install); athis for you with [AI_SETUP.md](AI_SETUP.md).> **On this page:** [What you need](#what-you-need) · [Windows](#windows) · [Linux](#linux) ·-> [AMD cards](#amd-cards) · [Several cards](#two-or-three-cards) · [Docker](#docker-linux) · [Updating](#updating) ·-> [Where things are stored](#where-things-are-stored) · [Setup's questions](#setups-questions) ·-> [Tuning](#tuning-for-your-pc) · [All options](#options-without-questions)+> [AMD cards](#amd-cards) · [Several cards](#two-or-three-cards) · [Docker](#docker-linux) ·+> [Older CPUs](#older-cpus-experimental) · [Updating](#updating) · [Where things are stored](#where-things-are-stored) ·+> [Setup's questions](#setups-questions) · [Tuning](#tuning-for-your-pc) · [All options](#options-without-questions)## What you need@@ -15,7 +15,7 @@ this for you with [AI_SETUP.md](AI_SETUP.md).| --- | --- || **GPU** | **NVIDIA** RTX 20, 30, 40 or 50 series, **12 GB VRAM or more** (8 GB runs, slowly). Measured on an RTX 5070 and an RTX 3090; RTX 20 (Turing, since 0.1.27) was tested by a contributor on an RTX 2070. **AMD** Radeon RX 7900 XT / XTX, RX 9070 / 9070 XT and Radeon AI PRO R9700 (validated), RX 7800 XT / 7700 XT and RX 9060 XT (validated by their owners), RX 6800 / 6900 series (community-reported), with 12 GB of VRAM or more. See [AMD cards](#amd-cards). || **RAM** | Enough for the size you pick ([which model](MODELS.md#pick-by-ram)); **64 GB** runs every size. A big GPU makes up for less RAM - the [low-RAM mode](MODELS.md#a-big-graphics-card-and-little-ram). |-| **CPU** | x86-64 with AVX2 (any Intel/AMD desktop CPU from the last ~8 years). AVX-512 (Ryzen 7000/9000) is a bit faster. |+| **CPU** | x86-64 with AVX2 (any Intel/AMD desktop CPU from the last ~8 years). AVX-512 (Ryzen 7000/9000) is a bit faster. Older CPUs without AVX2 are experimental and slow: [Older CPUs](#older-cpus-experimental). || **Disk** | ~70-80 GB free for the model, ~6 GB for the MTP layer (+1 GB with images). **Q2_0 on an AVX-512 CPU** also writes a one-time ~40 GB copy of its experts for the fast CPU kernel. On Linux with an AMD card, ROCm takes ~10 GB more when setup installs it. An NVMe SSD is strongly recommended: it makes the first start much faster. || **OS** | Windows 10/11, or Linux (Ubuntu 22.04/24.04 get everything installed automatically). || **Driver** | **NVIDIA:** a current driver, version 580 or newer ([nvidia.com/drivers](https://www.nvidia.com/drivers) or the NVIDIA App). **AMD:** on Linux the kernel's amdgpu driver (no ROCm install needed); on Windows a current AMD Software: Adrenalin Edition driver ([amd.com/support](https://www.amd.com/en/support)). |@@ -121,6 +121,35 @@ The same idea, in a container (NVIDIA cards).to a network. The image has a `HEALTHCHECK` on `/health`, so `docker ps` shows the containerhealthy once the model is loaded, and `GET /v1/status` says what it is running.+## Older CPUs (experimental)++Strata's ready-made engine needs AVX2 (Intel Haswell 2013, AMD Zen 2017 or newer). Since 0.1.39 an older CPU - AVX+only (Sandy Bridge / Ivy Bridge, Xeon E5 v1/v2, AMD Bulldozer) or SSE4.2 only (Nehalem / Westmere, Xeon X5600) - runs+as an **experimental** build that setup compiles on that PC. Run setup as usual: it says the CPU has no AVX2, warns+that this is experimental and slow, and compiles the engine (10-20 minutes, once; Windows needs the Visual Studio Build+Tools and the CUDA Toolkit, which setup offers to install). It does not stop. The ready-made engine still refuses such+a CPU, and says so.++What differs in that build (`STRATA_ISA_FLOOR=avx` or `none`, chosen from the CPU):++- ggml-cpu is compiled for AVX or SSE4.2 instead of AVX2, and the CPU's share of the experts runs on its kernels.+ Strata's own AVX2 / AVX-512 kernels stay in the program but are used only on a CPU that has them.+- Only the i-quant models' packs run (every model setup installs on such a CPU); the AVX-512 Q2_0 pack does not.+- Speed: the GPU part is unchanged and the CPU part is slower, so a GPU with more VRAM (more experts cached there)+ helps most. With the older paths forced on a Ryzen 5 7600 + RTX 5070 and the expert cache held at 1500 slots, greedy+ decode went from 26 to 11-17 tok/s with the AVX build and to 3.5-3.8 tok/s with the SSE4.2 build (Coder and IQ3_XXS,+ 10 prompts each, one run). An old Xeon with DDR3 will be slower than these.+- Untested on a real old CPU by us. It was checked here by forcing the older paths on a Ryzen 5 7600+ (`STRATA_FORCE_ISA=avx` or `sse`): the answers were sane and passed the engine's checks, but not the same token for+ token as the normal build (ggml-cpu rounds the CPU experts differently, as the AVX2 kernel does from the AVX-512+ one). Contributors ran earlier versions of the same approach on a Xeon E5-2680 (2.87 tok/s with a GTX 1080 Ti)+ and on Xeon E5-2687W / X5690 machines.+- AMD cards: Linux only (setup compiles the AMD engine there anyway); NVIDIA on Windows and Linux.+- Two-socket Xeons: memory on the other socket is slow; keep the RAM on one CPU if you can.++By hand: `cmake ... -DSTRATA_ISA_FLOOR=avx` (or `none`) builds it; `STRATA_ISA_FLOOR=avx` set for setup builds it on+any PC (to try it). Problems and results on real hardware are welcome as GitHub issues.+## Updating**`UPDATE.bat`** (Linux: `./update.sh`) updates Strata without starting the model - for when the GPU is busy with