[PR #4187] [CLOSED] [Engine] replicas: start engines one after another when they back one expert arena #4940

Closed
opened 2026-11-07 16:31:29 +07:00 by bsakaguchi · 0 comments
Owner

📋 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-arena file, start the engines one after another instead of together. A parallel start that fails is retried one engine at a time. STRATA_REPLICA_START=serial keeps 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 with prefill 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 with STRATA_REPLICA_START=serial served 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 replicas path.

Numbers (patched server, 6 concurrent requests x 500 tokens, 60 s window)

  • parallel: 1 per 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.
  • The same box with parallel: 2 per 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4187 **Author:** [@Jerry-Lee661](https://github.com/Jerry-Lee661) **Created:** 10/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/replicas-serial-start` --- ### 📝 Commits (1) - [`84d5b1c`](https://github.com/Niko1221/Strata/commit/84d5b1c82ea33ea6fb0fce0963e35d2fd231f669) [Engine] replicas: start engines one after another when they back one expert arena ### 📊 Changes **1 file changed** (+38 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `serve/server.py` (+38 -3) </details> ### 📄 Description ## What When every replica passes the same `--shared-expert-arena` file, start the engines one after another instead of together. A parallel start that fails is retried one engine at a time. `STRATA_REPLICA_START=serial` keeps 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 with `prefill 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 with `STRATA_REPLICA_START=serial` served 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 `replicas` path. ## Numbers (patched server, 6 concurrent requests x 500 tokens, 60 s window) - `parallel: 1` per 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. - The same box with `parallel: 2` per 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:31:29 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4940
No description provided.