[PR #225] [CLOSED] perf(prefill): honor explicit routed-only staging for large chunks #2513

Closed
opened 2026-11-04 02:00:52 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/225
Author: @rluisr
Created: 9/30/2026
Status: ❌ Closed

Base: main ← Head: perf/routed-only-prefill-ring


📝 Commits (1)

  • 7430c3c perf(prefill): allow explicit routed-only staging for large chunks

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 src/prefill/prefill.cpp (+1 -0)

📄 Description

Summary

Split the staging-policy change out of #139 as requested in https://github.com/Niko1221/Strata/pull/139#issuecomment-5898192943.

An explicit STRATA_PREFILL_RING=8 now opts into the existing routed-only staging path even for chunks of 2048 tokens or more. Previously the value was clamped to 16, so it kept all-expert streaming enabled instead of honoring that opt-in.

  • One production-code line; no GEMM or architecture changes.
  • Defaults remain 384 slots for mostly pinned experts and 96 otherwise at large chunk sizes.
  • Small chunks still use 8 slots.
  • Other explicit values retain the existing 16–512 clamp.

This is an opt-in tradeoff, not a new default: routed-only staging can reduce host-staging pressure but forfeits overlap from all-expert prefetch. The original combined V100 tuning evidence is retained as historical evidence in #139; it does not isolate this line's contribution.

Validation

Compiled and executed a host-side assertion harness using the exact ring_slots function from this branch. Verified:

  • Default pinned/unpinned behavior.
  • The 2047/2048-token boundary.
  • Explicit 8 for 1, 2047, 2048, 4096, and 8192 tokens.
  • Unchanged clamping for explicit 0, 7, 9, 16, 96, 512, and 513.

No isolated end-to-end staging speedup is claimed.


🔄 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/225 **Author:** [@rluisr](https://github.com/rluisr) **Created:** 9/30/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `perf/routed-only-prefill-ring` --- ### 📝 Commits (1) - [`7430c3c`](https://github.com/Niko1221/Strata/commit/7430c3cd63640c1e431ccb2edc4a1d8d004ead8c) perf(prefill): allow explicit routed-only staging for large chunks ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/prefill/prefill.cpp` (+1 -0) </details> ### 📄 Description ## Summary Split the staging-policy change out of #139 as requested in https://github.com/Niko1221/Strata/pull/139#issuecomment-5898192943. An explicit `STRATA_PREFILL_RING=8` now opts into the existing routed-only staging path even for chunks of 2048 tokens or more. Previously the value was clamped to 16, so it kept all-expert streaming enabled instead of honoring that opt-in. - One production-code line; no GEMM or architecture changes. - Defaults remain 384 slots for mostly pinned experts and 96 otherwise at large chunk sizes. - Small chunks still use 8 slots. - Other explicit values retain the existing 16–512 clamp. This is an opt-in tradeoff, not a new default: routed-only staging can reduce host-staging pressure but forfeits overlap from all-expert prefetch. The original combined V100 tuning evidence is retained as historical evidence in #139; it does not isolate this line's contribution. ## Validation Compiled and executed a host-side assertion harness using the exact `ring_slots` function from this branch. Verified: - Default pinned/unpinned behavior. - The 2047/2048-token boundary. - Explicit `8` for 1, 2047, 2048, 4096, and 8192 tokens. - Unchanged clamping for explicit 0, 7, 9, 16, 96, 512, and 513. No isolated end-to-end staging speedup is claimed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:00:52 +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#2513
No description provided.