[PR #1201] [CLOSED] verify batch: service the doorbell graph per-window (ar_on), not per-… #3305

Closed
opened 2026-11-07 14:40:30 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1201
Author: @wOvAN
Created: 10/6/2026
Status: ❌ Closed

Base: main ← Head: fix-batch-loan-service


📝 Commits (1)

  • 0be6a89 verify batch: service the doorbell graph per-window (ar_on), not per-process

📊 Changes

1 file changed (+10 additions, -5 deletions)

View changed files

📝 src/core/verify.cpp (+10 -5)

📄 Description

A stage that was 100% resident at init hangs once a prompt loan/shrink/swap puts it on the doorbell graph: run_slot_rows, batch_poll and service() key the all-resident service skip off the init-time all_resident_ flag instead of the per-window ar_on(). The GPU then waits on host doorbells nobody raises (one GPU at 100%, pool idle) while the host sits in cudaStreamSynchronize, until the watchdog fires with the previous stage's stale label (the CPU experts of layer 7 — always stage 0's last serviced layer, 0 ticks).

Evidence: host backtrace of a stuck engine shows the main thread in cuStreamSynchronize called directly from run_slot_rows (post-loop sync, verified by disassembly); pool trace shows layers of stages 1+ never serviced; nvidia-smi shows the loan stage's GPU spinning while the others are idle. The token path run() already uses ar_on() — this extends the same rule to the three batch paths.

Fix: 4 one-word changes, all_resident_ → ar_on(). Verified with a loan repro (parallel 80k-token prefills in borrow mode): 11 watchdog kills before, 0 after, no content regression.


🔄 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/1201 **Author:** [@wOvAN](https://github.com/wOvAN) **Created:** 10/6/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-batch-loan-service` --- ### 📝 Commits (1) - [`0be6a89`](https://github.com/Niko1221/Strata/commit/0be6a891c8e1223a7907a7dd8c4fd2ea8b4399c9) verify batch: service the doorbell graph per-window (ar_on), not per-process ### 📊 Changes **1 file changed** (+10 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/core/verify.cpp` (+10 -5) </details> ### 📄 Description A stage that was 100% resident at init hangs once a prompt loan/shrink/swap puts it on the doorbell graph: run_slot_rows, batch_poll and service() key the all-resident service skip off the init-time all_resident_ flag instead of the per-window ar_on(). The GPU then waits on host doorbells nobody raises (one GPU at 100%, pool idle) while the host sits in cudaStreamSynchronize, until the watchdog fires with the previous stage's stale label (the CPU experts of layer 7 — always stage 0's last serviced layer, 0 ticks). Evidence: host backtrace of a stuck engine shows the main thread in cuStreamSynchronize called directly from run_slot_rows (post-loop sync, verified by disassembly); pool trace shows layers of stages 1+ never serviced; nvidia-smi shows the loan stage's GPU spinning while the others are idle. The token path run() already uses ar_on() — this extends the same rule to the three batch paths. Fix: 4 one-word changes, all_resident_ → ar_on(). Verified with a loan repro (parallel 80k-token prefills in borrow mode): 11 watchdog kills before, 0 after, no content regression. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:40:30 +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#3305
No description provided.