mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2232] Throughput with 4 slots on 2x RX 7900 XTX + an old Xeon: where to go from here? #891
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#891
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mantovaniluca91 on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2232
Thanks again for 0.1.43.1 (#1996). Now that the engine holds under our load, I would like your advice on speed. Below is our setup, what we measured, and where we would like to get to. Some of it may be a wrong assumption on our side; please correct anything that is.
Setup
cuda_device).STRATA_ISA_FLOOR=avx,STRATA_HIP_WMMA=1 STRATA_SELECT_WMMA=1.parallel 4,--max-context 262144 --kv int8 --kv-resident 32768 --spec 4 --mtp --no-prefill-borrow --batch-groups auto --trim-stage-weights --layer-split 27 --conversation-cache-mib 6144 --conversation-cache-slots 4 --vram-reserve-mib 700,--expert-cache autowith a profile.The workload
The engine serves a small company (in-house, no data leaves the box):
94% of the tokens written in production are written while 2 or more slots are busy.
What we measured
One request alone:
--batch), where 100% of the experts fit. This was measured at 65K context.Each slot costs 0.52 GiB (CUDA0) and 0.50 GiB (CUDA1) of VRAM, plus 3.09 GiB of pinned RAM at 262K. With
--expert-cache auto, one slot fewer means about 360 + 265 more resident expert slots (83% → ~86%).4 slots, production log, 350 minutes of real work:
While one slot reads a long prompt, the other slots get very little decode time. In that stretch, 101 of the 182 minutes in batch were such stalls.
Prompt reads: long prompts read at ~1,850-2,000 tok/s. A conversation that has to be read again from its 16-21K checkpoint costs 73 s for ~150K tokens. In 2 hours of production, 46 re-reads over 20K tokens took 39 of 123 minutes.
Conversation cache (6 GiB):
2 slots instead of 4 (same 6-client stress, 75 min,
--conversation-cache-slots 4): stable, 22 GiB RAM free instead of ~10. The total written did not go up (~2,500 tokens/min against ~2,900 with 4 slots on 0.1.43), and each delivery note took 190-210 s instead of ~110 s because the requests waited for a slot.--batch-mtp: from generate.cpp (0.1.43.1) we understand that on a layer split it needs serial windows (--batch-groups 1orSTRATA_BATCH_MTP_SERIAL=1) and about 0.9 GB per slot for the drafters. That is 3.6 GB fewer experts for us, and the pipelined groups are 25-30% faster anyway. So we have not tried it. Is that right for our case?Where we would like to get to
Questions
STRATA_BATCH_DECODE_SHAREthe right knob? What value would you start from for 4 slots and 100K+ prompts? Is there anything else that keeps the decoding slots moving while one slot reads, such as the prefill chunk size inside the batch?--conversation-cache-mibto 16-24 GiB. Is--conversation-cache-slotslarger than--batchfine, for example 6-8 parked conversations with 4 slots? Would more frequent checkpoints make a partial restore cheaper than a full re-read?parallel 1(100% experts, MTP on every request) with 6-8 parked conversations be a sensible alternative for this mix, or does the queueing always lose with several agent sessions?--kv-resident, a smaller--vram-reserve-mib, or a shorter--max-contextfor some slots.We can run any test or build you suggest and report back with the same harness.
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.