Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/SETTINGS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A number or a word is set like any environment variable, for example `STRATA_KVA
(`terminal/strata-<model>.json`), which the server passes to the engine. The Strata project's Terminal writes it there with
`strata launch --set NAME=value`.

## Switches you can turn on (365)
## Switches you can turn on (366)

Off unless you set them. The last column says where each one is described.

Expand Down Expand Up @@ -267,6 +267,7 @@ Off unless you set them. The last column says where each one is described.
| `STRATA_PIPE_BYIELD_NODRAIN` | on / off | NVIDIA and AMD | [BATCHING.md](BATCHING.md) |
| `STRATA_PLE_COMPACT` | on / off | NVIDIA and AMD | [DETAILS.md](DETAILS.md) |
| `STRATA_PLE_COPY_STREAM` | on / off | NVIDIA and AMD | [DETAILS.md](DETAILS.md) |
| `STRATA_POLY_STAGE_NEXT` | on / off | NVIDIA and AMD | [qwen4.md](models/qwen4.md) |
| `STRATA_POLY_STAGE_RING` | on / off | NVIDIA and AMD | [inkling.md](models/inkling.md) |
| `STRATA_POLY_STREAM_STAGE` | number | NVIDIA and AMD | [DETAILS.md](DETAILS.md) |
| `STRATA_POOL_CORES` | on / off | NVIDIA and AMD, Intel Arc | [DETAILS.md](DETAILS.md), [release-notes-0.2.2.md](release-notes-0.2.2.md) |
Expand Down
13 changes: 13 additions & 0 deletions docs/models/qwen4.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,16 @@ All numbers below were measured directly on `strata-poly` with greedy decoding u
| Apple M5 Ultra (256 GB, macOS 27.2.1) | Metal | UD-Q4_K_XL | 8K → 256K NIAH | Embedded MTP (FP16 KV) | 2,206.5 → 1,228.8 | 120.8 → 105.0 | 100% PASS (8K/32K/64K/128K/256K), ~5.5 GiB KV growth |
| Apple M5 Ultra (256 GB, macOS 27.2.1) | Metal | UD-Q4_K_XL | 256K NIAH | `--no-draft` (FP16 KV) | 1,235.0 | 75.3 | 100% PASS (`AMBER-4921`) |
| AMD HIP (not yet measured on hardware) | HIP | — | — | ROCm `10.2.0a20260930` build verified | — | — | Compiled and linked cleanly; not yet run on physical AMD GPU |

## Prompt reads on a card that holds few of the experts

On an 8 GB card a prompt of 2,048 tokens copies almost every routed expert the card does not hold to the card once a
layer (13.6 GB with UD-IQ4_XS on an RTX 4060 Laptop), and the copies, not the multiplications, set the pace. Two
opt-in settings keep the card's one upload copy engine busy: `--stage-ring 1` splits the staging buffer into two halves
so a round's copy runs while the round before it is multiplied, and `--stage-next 1` (with the ring, CUDA, a read of
one or two `--prompt-batch` calls) widens the buffer to two layers while the read lasts and copies the next layer's
experts into the half the current layer does not use. Measured on that laptop (UD-IQ4_XS, `--kv q8_0`, 2,048 tokens,
three runs each, the same tokens in every run): 1,040 tokens/s with `--stage-ring 1` and 1,225 with
`--stage-ring 1 --stage-next 1`, where the row tables of a prompt call go to the card by a kernel
(`STRATA_QWEN4_KERNEL_TABLES`, on by default); without that, the tables' own copy waits behind the next layer's
experts and `--stage-next` stays off. A 6,000-token prompt (six calls) reads as with the ring alone.
Loading