docs: the layer split's per-card dense weights (PR #639), STRATA_ARENA_MMAP (PR #640), make_profile --reorder (#587)
This commit is contained in:
1 parent
1d789a14c0
commit
29181ca203
2 files changed
+18
-1
No files matched your search
+10
-1
@@ -145,6 +145,13 @@ other ~18 GB), a 32 GB PC with a 12-16 GB GPU the Coder; IQ3_XXS on a 32 GB PC s
|
||||
with `--resident-experts` started with `--gpus` switches to `--mmap-experts` with a note, and the engine runs that
|
||||
pair as `--mmap-experts` with a warning instead of refusing it.
|
||||
|
||||
**A mapped arena for small RAM (Linux, opt-in, 0.1.39, PR #640):** `STRATA_ARENA_MMAP=1` maps a native pack's expert
|
||||
arena read-only from the pack's `experts.bin` instead of reading it into locked RAM, for a PC whose GPUs hold most
|
||||
experts but whose RAM is small (2x 16 GB GPUs with 32 GB of RAM: ~1 GB -> 25 GB available while serving). The first
|
||||
start writes `experts.bin` (when the drive has room for it), later starts map it; the pages of the experts a GPU holds
|
||||
are handed back to the OS. Run it with `--pcie-frac 0` (the GPUs get no mapped alias). Without the variable nothing
|
||||
changes.
|
||||
|
||||
**Low-RAM mode without `experts.bin` (engine 0.1.31):** for the native packs (IQ2_XS, IQ3_XXS, IQ3_S, the Coder, Swift,
|
||||
Q2_0 packed by `tools/iq_pack.py`; not the canonical Q2_0 pack setup makes for AVX-512 CPUs) the mapped mode no longer
|
||||
needs the pack's `experts.bin`: when the pack has none, the engine
|
||||
@@ -208,7 +215,9 @@ card gains depends on its PCIe link (the experts stream over it), so they are st
|
||||
More VRAM matters more than a faster GPU: every extra GB holds ~700 more experts, and every expert on the GPU is one the
|
||||
CPU does not have to compute. A 3090's 24 GB takes most of the CPU work away. (Since 0.1.14 the expert profile ranks
|
||||
all 24,576 experts; before, the cache stopped at 8,000, about 10-14 GB. `tools/make_profile.py` builds a profile from
|
||||
your own prompts: run the engine once with `--dump-routing trace.bin`, see the tool's help.)
|
||||
your own prompts: run the engine once with `--dump-routing trace.bin`, see the tool's help. The shipped profile already
|
||||
ranks every pair, so a trace only changes the order with `--reorder` (0.1.39, #587): your trace's pairs first, then the
|
||||
base's, then the rest.)
|
||||
|
||||
## Which model?
|
||||
|
||||
|
||||
@@ -75,6 +75,14 @@ The engine flags behind it: `--layer-split K1[,K2..]|auto` and `--split-device D
|
||||
devices; default the next visible ones). `--layer-split K --split-device 0` runs both stages on one card sharing
|
||||
everything - the bit-exact check of the hand-off, not a speed mode.
|
||||
|
||||
**Each card loads only its own layers' dense weights** (0.1.39, PR #639) with explicit split points (`--layer-split
|
||||
27`, not `auto`): every card used to keep a full copy (~3.4 GB for the Coder) though its stage reads only its own
|
||||
layers, and the VRAM it frees goes to that card's expert cache (2x MI50 16 GB, Coder: 8,819 -> 10,626 experts in
|
||||
VRAM, decode 39.2 -> 41.7 tok/s). On by default in the AMD (HIP) builds, `STRATA_STAGE_TRIM=0` keeps the full copies;
|
||||
on NVIDIA it is opt-in with `STRATA_STAGE_TRIM=1` until it has been run on NVIDIA cards (please report how it goes).
|
||||
A card holding more experts can change which experts run on the GPU, so the output can differ slightly from a run
|
||||
without it.
|
||||
|
||||
**auto** tries every placement (all of them for two or three cards; proportional to the free VRAM beyond that) and
|
||||
keeps the one whose caches would hold the most of the expert profile, hottest pairs weighted most; ties go to the
|
||||
placement that leaves the fullest card the most room. The startup log prints the choice:
|
||||
|
||||
Reference in new issue
Block a user