mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4187] [CLOSED] [Engine] replicas: start engines one after another when they back one expert arena #4940
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#4940
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4187
Author: @Jerry-Lee661
Created: 10/26/2026
Status: ❌ Closed
Base:
main← Head:fix/replicas-serial-start📝 Commits (1)
84d5b1c[Engine] replicas: start engines one after another when they back one expert arena📊 Changes
1 file changed (+38 additions, -3 deletions)
View changed files
📝
serve/server.py(+38 -3)📄 Description
What
When every replica passes the same
--shared-expert-arenafile, start the engines one after another instead of together. A parallel start that fails is retried one engine at a time.STRATA_REPLICA_START=serialkeeps working as before.Why
On a 2x RX 7900 XTX box (121 GB RAM, Swift-125B IQ3_S, 0.1.48 and 0.1.50 rx7900 packages,
replicas: [{gpus:[0]},{gpus:[1]}],--batch 2, 524288 context) both engines started together were healthy, then the first prompt on each died withprefill mmq: mul_mat_q: no kernel image is available for execution on the device. The automatic restart brought replica 0 back on the identical command line (prefill 294-314 tok/s, decode 69.2 tok/s); a single engine alone on either card never failed; the same config withSTRATA_REPLICA_START=serialserved without a single kernel error. Replica 1 then hit the known replica-restart bug and stayed dead, so 11 of 14 concurrent requests got a 503.This is the order #4047 asks for a shared arena ("The replicas start one after another: the first fills the file, the next ones attach"), applied to the existing
replicaspath.Numbers (patched server, 6 concurrent requests x 500 tokens, 60 s window)
parallel: 1per replica, 131072 context, shared arena: 19/19 ok, 80.8 tok/s aggregate (13.34 rows/s of 60-row batches), both replicas served, prefill ~342 tok/s and decode ~64 tok/s each.parallel: 2per replica and 524288 context before the change: 3/14 ok, aggregate 7.1 tok/s, 11 x 503.python3 -m unittest serve.test_replicas: 19 tests pass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.