UD-IQ4_XS sits between IQ3_S and UD-Q4_K_XL: IQ3_S gate/up experts (IQ4_XS in one layer) with IQ4_NL downs (Q8_0 in five layers), 59.5 GB of them, and UD-Q4_K_XL's dense side. The engine's kernels already take these formats; it was packed (iq_pack.py --compat-bf16) and run on the Strix Halo, not yet on NVIDIA. - MODELS["UD-IQ4_XS"] in the unsloth family: three shards pinned at the same revision 38bb39e with their sizes and SHA-256 (the Hub's LFS pointers), the RAM budget like UD-Q4_K_XL (budget, one GPU, no images, --compat-bf16 pack, no experts.bin), engine 0.1.38 or newer (the fused-layout fix for packs not every layer of which is covered). - A model can have its own shard pattern and count (model_file / model_shards); budget_model() tells which Unsloth model a config runs, for the #498 multi-GPU messages and RAM need. - The AMD question (#429) stays for UD-Q4_K_XL only (nvidia_only): UD-IQ4_XS's formats have AMD prompt kernels. - --gguf-dir accepts UD-IQ4_XS files (#444's list says so). - UNSLOTH_Q4.md: its files, what setup does, what is known (Strix Halo), and the BF16 rounding of the hyper-connection projections that every --compat-bf16 pack has (not changed here). MODELS.md: a paragraph. - test_setup_unsloth: pins, budget, a mocked install, the engine check, no AMD question, the config read back. UD-Q4_K_XL's install, its tests and every other model's config are unchanged.
152 lines
8.7 KiB
Markdown
152 lines
8.7 KiB
Markdown
# Which model? Sizes, versions and what fits
|
|
|
|
Strata runs one model, [Qwen3.8-Flash-Next](https://huggingface.co/Qwen/Qwen3.8-Flash-Next), in several **sizes**
|
|
(the same model, compressed more or less) and several **versions** (the original, a coding version, a fine-tune).
|
|
The installer recommends one for your PC; this page explains the choice. Back to the [README](../README.md).
|
|
|
|
> **On this page:** [Pick by RAM](#pick-by-ram) · [Speed](#how-fast-is-each-size) · [The sizes](#the-sizes) ·
|
|
> [Will it fit?](#will-it-fit) · [The versions](#the-versions) · [Adding another model](#adding-or-switching-models)
|
|
|
|
## Pick by RAM
|
|
|
|
| Your RAM | Take | Why |
|
|
| --- | --- | --- |
|
|
| **32 GB** | **Coder** | it fits 32 GB; best at code, weaker at everything else ([why](#coder)). With a 24 GB card, Q2_0 and IQ2_XS run too ([low-RAM mode](#a-big-graphics-card-and-little-ram)) and are the better pick for general use |
|
|
| **48 GB** | **IQ2_XS** (or Q2_0, the fastest) | the larger sizes do not fit |
|
|
| **64 GB** | **IQ2_XS** (recommended), or IQ3_XXS / IQ3_S | every size fits (IQ3_S with little else open) |
|
|
| **96 GB or more** | **IQ3_S**, or [Unsloth's 4-bit](#unsloth-ud-q4_k_xl-experimental) (experimental) | room for the largest sizes |
|
|
|
|
Not sure? Take **IQ2_XS**. The **Coder** is the one that fits a 32 GB PC, but it keeps only 256 of the 512 experts,
|
|
chosen on code data, so it is weaker outside code and in languages other than English. For general use, or whenever
|
|
your RAM allows, take a full model (Q2_0, IQ2_XS or IQ3_S).
|
|
|
|
## How fast is each size
|
|
|
|
Measured on an RTX 5070 (12 GB), a Ryzen 5 7600 and 64 GB of RAM:
|
|
|
|
| Size | Writes answers (short chat) | Writes answers (128K context) | Reads your prompt |
|
|
| --- | ---: | ---: | ---: |
|
|
| **Q2_0** | 94 tokens/s | 76 tokens/s | 2,650 tokens/s |
|
|
| **IQ2_XS** | 79 tokens/s | 63 tokens/s | 2,090 tokens/s |
|
|
| **IQ3_XXS** | 62 tokens/s | 49 tokens/s | 1,750 tokens/s |
|
|
| **IQ3_S** | 53 tokens/s | 46 tokens/s | 1,620 tokens/s |
|
|
| **Coder** (IQ1_M) | 55 tokens/s | 43 tokens/s | 2,180 tokens/s |
|
|
|
|
Measured on an AMD RX 9070 XT (16 GB), a Ryzen 9 3900X and 47 GB of RAM (Linux, setup's own install; Q2_0 is
|
|
above setup's RAM estimate for 47 GB and was installed with `--model Q2_0 --yes`):
|
|
|
|
| Size | Writes answers (short chat) | Writes answers (128K context) | Reads your prompt |
|
|
| --- | ---: | ---: | ---: |
|
|
| **Q2_0** | 60 tokens/s | 48 tokens/s | 1,160 tokens/s |
|
|
| **IQ2_XS** | 52 tokens/s | 36 tokens/s | 1,110 tokens/s |
|
|
| **Coder** (IQ1_M) | 44 tokens/s | 33 tokens/s | 1,420 tokens/s |
|
|
|
|
- **Writes answers** = how fast the reply appears (tokens per second; a token is about ¾ of a word).
|
|
- **Reads your prompt** = how fast it takes in what you send (long documents, code, chat history), measured on a
|
|
32K-token prompt; a 4K prompt reads at 910-1,580 tokens/s. A 32K prompt takes about 15 seconds with Q2_0.
|
|
|
|
A card with more VRAM is faster, because more of the model fits on the GPU: an RTX 3090 (24 GB) should do roughly
|
|
100-140 tokens per second. All measurements, long-context numbers and estimates for other cards are in the
|
|
[details](DETAILS.md#speed-measured). The AMD measurements per card (RX 9070 XT, Radeon AI PRO R9700, RX 7800 XT,
|
|
RX 9060 XT, RX 6900 XT) are in [AMD_HIP.md](AMD_HIP.md#rdna4-gfx1201).
|
|
|
|
Every PC is different: `START-HERE.bat --calibrate` measures a few engine settings on yours and keeps the fastest
|
|
(about 5-10 minutes; on the PC above it made the Coder 7% faster; NVIDIA cards for now). Measured Strata on your own
|
|
PC? See [Community benchmark results](COMMUNITY_BENCHMARKS.md) for a report template and how to share your results
|
|
in a pull request.
|
|
|
|
## The sizes
|
|
|
|
| Model | RAM+VRAM Requirements | Speed | Quality |
|
|
| --- | ---: | --- | --- |
|
|
| **Q2_0** | 37.6 GB | fastest | good |
|
|
| **IQ2_XS** | 39.2 GB | fast | better (**recommended**) |
|
|
| **IQ3_XXS** | 47.0 GB | slower | great |
|
|
| **IQ3_S** | 54.8 GB | slowest | best: matches the full model on the published tests (original model only) |
|
|
|
|
The download is 66-76 GB for the three smaller sizes ([details](DETAILS.md#which-model)); the first start also
|
|
fetches the MTP draft layer (~6 GB, +1 GB with images).
|
|
|
|
## Will it fit?
|
|
|
|
Shard 1 is the part of the model that gets loaded when it starts: its experts go into your **RAM**, the rest onto
|
|
your graphics card (the second shard, a 29 GB lookup table, stays on the SSD). So it fits when your **RAM is at least
|
|
the experts + about 10 GB** for Windows and your other programs - the experts are most of shard 1: 34 GB for Q2_0,
|
|
35.5 for IQ2_XS, 43 for IQ3_XXS, 50 for IQ3_S, 23 for the Coder (the dense weights in shard 1 go to the graphics
|
|
card). With 64 GB of RAM every size fits (IQ3_S with little else open); with 48 GB, Q2_0 and IQ2_XS. A bigger graphics card makes it faster, but it doesn't lower the RAM needed
|
|
- except in the low-RAM mode below.
|
|
|
|
### A big graphics card and little RAM
|
|
|
|
On a PC whose RAM cannot hold the experts beside the system, setup maps them from the model's files instead and keeps
|
|
in RAM only what the graphics card does not hold (the [low-RAM mode](DETAILS.md#speed-measured), chosen by setup). For
|
|
example, a 32 GB PC with a 24 GB GPU runs Q2_0, IQ2_XS and the Coder this way, and a 32 GB PC with a 12-16 GB GPU the
|
|
Coder. With a small card most experts then come from the SSD and it is much slower (setup says so).
|
|
`START-HERE.bat --setup --low-ram on|off` overrides the choice.
|
|
|
|
## The versions
|
|
|
|
### Qwen3.8-Flash-Next
|
|
|
|
The original, in all four sizes. With images, and with the
|
|
[experimental speed projection](DETAILS.md#experimental-speed-projection-experimental-off-by-default) as an option.
|
|
|
|
### Coder
|
|
|
|
**[Coder](https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF)** - ISTA-DASLab's coding version:
|
|
it keeps 256 of each layer's 512 experts, chosen on code (with agentic and image) data, and drops the rest (91% of
|
|
the full model's SWE-bench Verified score, 99% of LiveCodeBench, by its authors). One size (IQ1_M: its experts stored
|
|
like IQ3_S): shard 1 is **29.6 GB**, so it fits a PC with **32 GB of RAM**, runs 262K context on 64 GB, and reads long
|
|
prompts the fastest of all. With half the experts gone it is weaker outside code and in languages other than
|
|
English, Chinese and other CJK text included (#438: Chinese answers came out wrong or looping where English was
|
|
fine). For general use, or whenever your RAM allows, take a size that keeps every expert: Q2_0, IQ2_XS or IQ3_S.
|
|
More: [details](DETAILS.md#or-the-coder-half-the-experts-for-code).
|
|
|
|
```
|
|
START-HERE.bat --setup --family coder
|
|
```
|
|
|
|
### Swift 1.5
|
|
|
|
**[Swift 1.5](https://huggingface.co/ukisai/Swift-1.5-Qwen3.8-Flash-Next-GSQ-RCO-GGUF)** - a fine-tune by UkisAI that
|
|
thinks much shorter before answering, so you get the answer sooner, with about the same quality. Same speed per
|
|
token, and about the same RAM as the same size of the original (no IQ3_S). Its own license applies (see its page).
|
|
More: [details](DETAILS.md#or-swift-15-a-fine-tune-that-thinks-shorter).
|
|
|
|
```
|
|
START-HERE.bat --setup --family swift --model IQ2_XS
|
|
```
|
|
|
|
### Unsloth UD-Q4_K_XL (experimental)
|
|
|
|
**Unsloth's 4-bit UD-Q4_K_XL** (experimental) is the fourth version in setup's menu (`--family unsloth`): the closest
|
|
to the full model, but a 111 GB download whose 77 GB of experts do not fit in RAM. Strata keeps your RAM minus 24 GB
|
|
of them in RAM and reads the rest from the SSD while it answers: 7-8.5 tokens/s on a 64 GB PC with a 12 GB GPU, several
|
|
times slower than the sizes above, and long prompts are slow. It needs 48 GB of RAM or more, an NVMe SSD and one
|
|
NVIDIA GPU (no images yet). Details and measurements: [UD-Q4_K_XL](UNSLOTH_Q4.md).
|
|
|
|
```
|
|
START-HERE.bat --setup --family unsloth --model UD-Q4_K_XL
|
|
```
|
|
|
|
**Unsloth's UD-IQ4_XS** (experimental, 0.1.39, #621) is the smaller choice of the same family: a 94 GB download with
|
|
59.5 GB of experts (IQ3_S and IQ4_NL), between IQ3_S and UD-Q4_K_XL. Setup runs it the same way (a RAM budget of your
|
|
RAM minus 24 GB, the rest from the SSD), so on a 64 GB PC far fewer experts come from the SSD than with UD-Q4_K_XL, and
|
|
on 96 GB all of them stay in RAM. Not measured on NVIDIA yet: [details](UNSLOTH_Q4.md#ud-iq4_xs-experimental-setup-from-0139-621).
|
|
|
|
```
|
|
START-HERE.bat --setup --family unsloth --model UD-IQ4_XS
|
|
```
|
|
|
|
### OrcaRouter Uncensored IQ3_XXS
|
|
|
|
For **OrcaRouter's Flash-Next Uncensored IQ3_XXS**, see the [manual compatibility setup](ORCA.md). It needs an
|
|
explicit packing conversion and is not an installer menu option.
|
|
|
|
## Adding or switching models
|
|
|
|
You can add another model any time with `SETUP.bat` (the same as `START-HERE.bat --setup`; on Linux
|
|
`./setup.sh --setup`). Files another model shares are not downloaded again (the Coder uses the original's shard 2 and
|
|
vision encoder). With more than one model installed, `START-HERE.bat` asks which one to start; `run-<model>.bat`
|
|
(Linux: `run-<model>.sh`) starts one directly.
|