[Docs] the MMQ build path is gone: four pages say where the old numbers and builds come from (own-stack step 10)

- docs/AMD_HIP_PERFORMANCE.md: the numbers were measured with llama.cpp's MMQ kernels (Strata 0.2.15 and earlier); to repeat them, build the
  v0.2.15 tag with the old flags.
- docs/ORCA_Q4_K_S.md: Strata 0.2.16 builds no MMQ kernels, so this file's Q5_0 down layers have no GPU prompt kernel yet; build the v0.2.15
  tag to run it.
- docs/QUANTS.md: Q4_K / Q5_K / Q5_1 / Q6_K experts take Strata's fused prompt kernels where they cover a layer and the FP16 path elsewhere;
  the separate K-quant library left in 0.2.16.
- docs/UNSLOTH_Q4.md: the STRATA_MMQ_KQ=1 row is deleted (nothing reads it now).
tools/check_links.py, tools/settings_register.py --check and tools/test_settings_register.py: ok.
This commit is contained in:
Niko1221 committed 2026-11-16 15:05:55 +01:00
1 parent 3e26b4e157
commit 88b5ca6d0d
4 files changed
+7 -7

No files matched your search

+3 -2
View File
@@ -12,8 +12,9 @@ refills, to avoid repeated pageable-source registrations.
Build instructions are in [AMD_HIP.md](AMD_HIP.md). Use the repository-pinned
llama.cpp dependency; do not silently substitute another revision. The numbers
below were measured on a build with llama.cpp's MMQ kernels: build with
`-DSTRATA_PREFILL_MMQ=ON -DSTRATA_MMQ=ON` and use these runtime variables for the measured arm:
below were measured on a build with llama.cpp's MMQ kernels (Strata 0.2.15 and earlier; that build option was
removed in 0.2.16). To repeat them, build the v0.2.15 tag with `-DSTRATA_PREFILL_MMQ=ON -DSTRATA_MMQ=ON` and use these
runtime variables:
```sh
export STRATA_PREFILL_MMQ=1
+2
View File
@@ -6,6 +6,8 @@ The ordinary GGUF quantizes some small projections which Strata reads as BF16. `
## Build and prepare
Strata 0.2.16 builds no MMQ kernels, so the Q5_0 down layers of this file have no GPU prompt kernel yet. To run it, build the v0.2.15 tag with `-DSTRATA_ORCA_Q4KS_MMQ=ON` as below.
Build Strata with CUDA, native experts, `STRATA_ORCA_Q4KS_MMQ=ON` (and `STRATA_BUILD_TESTS=ON` for the two parity programs below). This opt-in compiles the Q5_0 GGML MMQ instance for CUDA or HIP (the Q4_K and Q5_1 instances come with the engine's K-quant MMQ build on CUDA); the usual Q8_0 draft-layer instance remains in both builds. HIP also needs `STRATA_PREFILL_MMQ=ON`. Select your card's compute capability, for example `89` on an L40S. On Windows with Ninja and CUDA 12.6, use the Visual Studio developer environment and `-DCMAKE_CUDA_RUNTIME_LIBRARY=Shared` to keep the CUDA runtime linkage consistent. The default pinned ggml checkout is supported by the project build.
```sh
+2 -4
View File
@@ -46,10 +46,8 @@ SHA-256), so a PC that has one of them can link those two shards instead of down
kernel needs VRAM later, mid-prompt), which is why kernels for formats a model does not have used to take expert
slots from every model. The Q6_K expert kernels are now part of every build: one more instance per grouped kernel,
+19 KB of sm_60 code, and the expert-cache slot counts measured unchanged (IQ3_XXS: 6,028 slots on a P100, 15,878
and 1,980 on an R9700). The K-quant MMQ prompt kernels (Q4_K, Q5_K, Q5_1, Q6_K: ~3.8 MB of sm_60 code, 3 IQ3_XXS
slots on the P100 when they were in the engine) are on CUDA a library of their own next to the engine
(`libstrata_kq.so` / `strata_kq.dll`), opened only for a model with these experts and `STRATA_MMQ_KQ=1`; without the
file those experts take the FP16 prompt path. On AMD a code object loads on first use, so they stay in the engine.
and 1,980 on an R9700). Q4_K, Q5_K, Q5_1 and Q6_K experts take Strata's fused prompt kernels where they cover
a layer, and the FP16 path elsewhere. The separate K-quant library (`libstrata_kq.so` / `strata_kq.dll`) left in 0.2.16.
- `STRATA_MMQ_KQ=1` is opt-in because MMQ rounds the prompt's products differently from the FP16 path (the output
differs at the rounding level); its speed and KL are measured before it becomes a default.
-1
View File
@@ -200,7 +200,6 @@ same top 20 per position.
| Variable | Effect |
| --- | --- |
| `STRATA_LOOKAHEAD=0` | Turns off the routing-aware prefetch (on by default in this mode). While the CPU works on a layer, a thread applies the next layer's router to this layer's input and asks the OS to read the predicted experts' pages. Pages only; the answers are the same. `STRATA_LOOKAHEAD_K` sets the experts per token (default 10). |
| `STRATA_MMQ_KQ=1` | Multiplies the Q4_K / Q5_K / Q5_1 experts of a prompt with llama.cpp's MMQ kernels instead of dequantizing them to FP16. It rounds differently from the FP16 path, so it is opt-in for this file. On CUDA the kernels are a library next to the engine (`libstrata_kq.so` / `strata_kq.dll`), opened only then, so they take no VRAM from other models ([QUANTS.md](QUANTS.md)). |
| `STRATA_KQ256=1` | Multi-token AVX2 kernels for the Q4_K / Q5_1 / Q8_0 experts. Bit-exact with ggml's, but measured no faster, so off. |
| `STRATA_PARTIAL_PIN=1` | Registers the hottest part of the RAM budget (up to `STRATA_PARTIAL_PIN_GIB`, default 24) with the GPU driver, so the GPU computes a share of the misses over PCIe (`--pcie-frac`). Measured no faster, and it changes the numerics of those experts, so off. |
| `STRATA_FETCH_THREADS=N` | Threads that read the experts from the GGUF while it answers (default 8). The prompt path has its own: `STRATA_STAGER_THREADS` (default 32 here) and `STRATA_STAGER_RING` (128). |