[GH-ISSUE #127] Sharing a multi-GPU serving experiment: independent GPU lanes with a shared host expert arena #64

Closed
opened 2026-11-04 01:39:29 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @rhgo1749 on GitHub (Sep 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/127

Hi, I’ve been experimenting with a multi-GPU serving setup built around Strata.

Strata’s single-GPU engine was already very fast, so instead of changing the numerical path or splitting one request across GPUs, I tried keeping each Strata engine independent and parallelizing at the request/session level.

The basic layout is:

  • one normal Strata engine process per GPU;
  • one whole generation request is assigned to one GPU lane;
  • multiple requests can run concurrently on different GPUs;
  • the large host expert arena is shared between lane processes using a Linux MAP_SHARED backing;
  • CUDA state, GPU hot-expert cache, resident KV, host-KV/session state, and failures remain lane-local;
  • there is no required token-by-token synchronization between GPUs.

This has worked surprisingly well on my 3 × RTX 5070 Ti 16 GB machine.

With Qwen3.8-Flash-Next IQ3_XXS and 262K context configured per lane, my current reference result is:

  • warm TG: 78.8 / 78.4 / 80.1 tok/s
  • engine-reported lane sum: 237.3 tok/s
  • 3 concurrent long-context requests (~141K–145K input each) completed without CUDA OOM, context overflow, or lane failure

The 237.3 tok/s figure is only the sum of the three engine-reported lane TG values, not a synchronized wall-clock aggregate benchmark.

One thing I like about this structure is that a slower GPU only affects the request assigned to that lane instead of forcing every other GPU to synchronize with it. It also makes mixed-GPU setups fairly natural as long as each GPU can run one usable Strata lane.

I’m not necessarily suggesting that this exact implementation should be merged upstream. I mainly wanted to share the architecture and measurements because request-level parallelism seems to fit Strata particularly well without disturbing its very fast single-GPU path.

Implementation fork:
https://github.com/rhgo1749/Strata

Reproducible recipe / measurements:
https://github.com/rhgo1749/qwen3.8-flash-next-strata-gpu-per-lane-recipe

I’d be interested to hear what you think about this direction for multi-GPU serving.

Originally created by @rhgo1749 on GitHub (Sep 29, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/127 Hi, I’ve been experimenting with a multi-GPU serving setup built around Strata. Strata’s single-GPU engine was already very fast, so instead of changing the numerical path or splitting one request across GPUs, I tried keeping each Strata engine independent and parallelizing at the request/session level. The basic layout is: - one normal Strata engine process per GPU; - one whole generation request is assigned to one GPU lane; - multiple requests can run concurrently on different GPUs; - the large host expert arena is shared between lane processes using a Linux `MAP_SHARED` backing; - CUDA state, GPU hot-expert cache, resident KV, host-KV/session state, and failures remain lane-local; - there is no required token-by-token synchronization between GPUs. This has worked surprisingly well on my 3 × RTX 5070 Ti 16 GB machine. With Qwen3.8-Flash-Next IQ3_XXS and 262K context configured per lane, my current reference result is: - warm TG: **78.8 / 78.4 / 80.1 tok/s** - engine-reported lane sum: **237.3 tok/s** - 3 concurrent long-context requests (~141K–145K input each) completed without CUDA OOM, context overflow, or lane failure The 237.3 tok/s figure is only the sum of the three engine-reported lane TG values, not a synchronized wall-clock aggregate benchmark. One thing I like about this structure is that a slower GPU only affects the request assigned to that lane instead of forcing every other GPU to synchronize with it. It also makes mixed-GPU setups fairly natural as long as each GPU can run one usable Strata lane. I’m not necessarily suggesting that this exact implementation should be merged upstream. I mainly wanted to share the architecture and measurements because request-level parallelism seems to fit Strata particularly well without disturbing its very fast single-GPU path. Implementation fork: https://github.com/rhgo1749/Strata Reproducible recipe / measurements: https://github.com/rhgo1749/qwen3.8-flash-next-strata-gpu-per-lane-recipe I’d be interested to hear what you think about this direction for multi-GPU serving.
Author
Owner

@Niko1221 commented on GitHub (Sep 29, 2026):

Thanks for sharing this @rhgo1749 - a clean design, and the numbers are impressive. It is the natural way to use several GPUs for several independent requests: one engine per card, one shared read-only expert arena (the biggest memory cost), nothing synchronized between cards, and a slow card only slows its own requests. 0.1.22's layer split answers the other question (one request faster, or a model whose experts don't fit one card), so the two are complementary. Upstream, the pieces I'd consider are the shared arena (MAP_SHARED on Linux; a named file mapping would be the Windows counterpart) and a small request router in the server; I don't plan it for the next releases, but if you'd like to propose the shared-arena part as a PR against main, I'd review it. Keeping this open as a reference.

<!-- gh-comment-id:5888519778 --> @Niko1221 commented on GitHub (Sep 29, 2026): Thanks for sharing this @rhgo1749 - a clean design, and the numbers are impressive. It is the natural way to use several GPUs for several independent requests: one engine per card, one shared read-only expert arena (the biggest memory cost), nothing synchronized between cards, and a slow card only slows its own requests. 0.1.22's layer split answers the other question (one request faster, or a model whose experts don't fit one card), so the two are complementary. Upstream, the pieces I'd consider are the shared arena (MAP_SHARED on Linux; a named file mapping would be the Windows counterpart) and a small request router in the server; I don't plan it for the next releases, but if you'd like to propose the shared-arena part as a PR against main, I'd review it. Keeping this open as a reference.
Author
Owner

@rhgo1749 commented on GitHub (Sep 29, 2026):

Thanks — that matches exactly how I was thinking about the two modes: layer split for scaling a single request, and independent lanes for scaling concurrent requests.
I’ve opened #129 with just the shared-arena primitive, based on current main. I kept the router/supervisor out of scope and made the existing anonymous arena path unchanged unless the shared backing is explicitly requested.
For now it implements the Linux MAP_SHARED side only, with the backing kept explicit so a Windows named-file-mapping implementation can fit the same contract later.
Thanks for offering to review it.

<!-- gh-comment-id:5888990651 --> @rhgo1749 commented on GitHub (Sep 29, 2026): Thanks — that matches exactly how I was thinking about the two modes: layer split for scaling a single request, and independent lanes for scaling concurrent requests. I’ve opened #129 with just the shared-arena primitive, based on current main. I kept the router/supervisor out of scope and made the existing anonymous arena path unchanged unless the shared backing is explicitly requested. For now it implements the Linux MAP_SHARED side only, with the backing kept explicit so a Windows named-file-mapping implementation can fit the same contract later. Thanks for offering to review it.
Author
Owner

@Niko1221 commented on GitHub (Sep 30, 2026):

Thanks! The shared-arena piece continues in #129, so closing this as a reference.

<!-- gh-comment-id:5910284374 --> @Niko1221 commented on GitHub (Sep 30, 2026): Thanks! The shared-arena piece continues in #129, so closing this as a reference.
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#64
No description provided.