pipeline-windows beside the asynchronous adaptive tier: copies queued from the decode loop at a card's gap (#905)
--adapt-async 1 no longer drops to the blocking tier with --pipeline-windows 2: the steps that overwrite something a window in flight may read wait for those windows. STRATA_PIPELINE_ADAPT_ASYNC=0 keeps the blocking tier there. Opt-in; default output unchanged.
This commit is contained in:
1 parent
08cdd8bf68
commit
13eee452de
3 files changed
+244
-68
No files matched your search
+7
-4
@@ -154,10 +154,13 @@ other ~18 GB), a 32 GB PC with a 12-16 GB GPU the Coder; IQ3_XXS on a 32 GB PC s
|
||||
RAM place of the one that replaces it, so the RAM copy keeps holding exactly what the GPU does not.
|
||||
- `--adapt-async 1` (opt-in, `--serve`): the swaps of a round advance between decode windows on a helper thread
|
||||
(copy back, copy in, move into RAM) instead of one window waiting for the whole round. Not with `--batch` or
|
||||
`--peer-device` (the blocking tier runs there). It is not bit-exact from run to run: which window first computes a
|
||||
swapped-in expert on the GPU (which rounds differently from the CPU) depends on when its copy lands.
|
||||
It stays on the blocking tier (said in the log) when the exchange buffers are not page-locked, and with
|
||||
`--pipeline-windows`; the stats line reports ms per round.
|
||||
`--peer-device` (the blocking tier runs there). With `--pipeline-windows 2` (two windows in flight, see
|
||||
[MULTI_GPU.md](MULTI_GPU.md)) the copies into the evicted slots and the moves into RAM also wait until the windows
|
||||
that were in flight when they were decided have completed (`STRATA_PIPELINE_ADAPT_ASYNC=0`: the blocking tier
|
||||
there). It is not bit-exact from run to run: which window first computes a swapped-in expert on the GPU (which
|
||||
rounds differently from the CPU) depends on when its copy lands.
|
||||
It stays on the blocking tier (said in the log) when the exchange buffers are not page-locked; the stats line
|
||||
reports ms per round.
|
||||
- `STRATA_EXCHANGE_ROTATE=1` (opt-in): an adaptive swap hands buffer ownership over instead of copying the evicted
|
||||
blob into the RAM copy (equal-size blobs, fully page-locked copy). Same tokens, fewer host copies; it works with
|
||||
`--adapt-async 1` too. Details and the measurement: [EXCHANGE_ROTATION.md](EXCHANGE_ROTATION.md).
|
||||
|
||||
@@ -227,6 +227,10 @@ Two cards, exactly two stages, `--serve`. In the config:
|
||||
(`--expert-cache-device1..3`, `--remote-expert-opt`), a split into three or more stages or onto one GPU
|
||||
(`--split-device 0`), or no draft layer. A request with repetition penalties (`penalty_last_n`) or coupled
|
||||
draft sampling decodes serially.
|
||||
- **With the resident RAM mode's asynchronous swaps** (`--adapt-async 1`, [DETAILS.md](DETAILS.md)) a round's steps
|
||||
advance between the verified windows. Each card's copies are queued by the decode loop itself while that card has
|
||||
no window in flight, after every window that may still read what they overwrite has finished; the moves into RAM
|
||||
wait the same way.
|
||||
- **Measured** (Swift 1.5 IQ3_XXS, 160K context, q4_0 KV, the stock draft layer, RTX 4060 Ti (layers 0-19) +
|
||||
RTX 5080 (20-47), i9-14900KF, 32 GB of RAM with the resident RAM mode on the split (#848); greedy, 500 tokens, two
|
||||
interleaved pairs of three rounds, decode tok/s): Python code 90.4 -> 103.1, C code 76.6 -> 81.6, English prose
|
||||
|
||||
Reference in new issue
Block a user