Skip to content

Reuse ready batch proposals after short concurrent bursts - #1570

Closed
jonathan308 wants to merge 4 commits into
fix/cluster-gemma-prefill-arithmeticfrom
fix/cluster-retain-ready-batch
Closed

jonathan308 wants to merge 4 commits into
fix/cluster-gemma-prefill-arithmeticfrom
fix/cluster-retain-ready-batch

Conversation

@jonathan308

@jonathan308 jonathan308 commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

A short concurrent burst can drain before automatic batch planning finishes. The host previously discarded the valid proposal, leaving GPT-OSS serial through repeated bursts despite four successful capacity proposals. This draft retains the metadata-only result for at most 30 seconds and consumes it once on renewed queue pressure in the same serving generation.

Generation, expiry and live pressure are checked again immediately before reuse. Idle requests never reload workers. Teardown clears the proposal; original request deadlines, response ownership, cleanup-before-load, fresh post-release memory quotes, exact promised width and rollback remain intact. The existing plain-pipeline batch planner tries independently priced widths 8, 4 and 2 in descending order once pressure exists.

This is a separate child of #1569. It repairs the existing lifecycle; it does not establish tensor-parallel batching or restore omitted media capabilities. Final acceptance requires tensor parallel for every included model with all supported capabilities retained.

Before

flowchart TD
  A["Concurrent burst"] --> B["Read-only batch planning"]
  B --> C{"Queue still waiting?"}
  C -->|No| D["Discard valid proposal"]
  D --> E["Next burst remains serial"]
  classDef default fill:#e8f0fe,stroke:#174ea6,color:#102a43;
  classDef failure fill:#fde2e2,stroke:#9b1c1c,color:#571111;
  class D,E failure;
Loading

After

flowchart TD
  A["Completed proposal after burst drains"] --> B["Retain bounded metadata only"]
  B --> C{"Fresh queued pressure, same generation, unexpired?"}
  C -->|Yes| D["Consume once and drain original workers"]
  D --> E["Fresh exact-width memory check and load"]
  C -->|No| F["Keep serving without idle reload"]
  classDef default fill:#e8f0fe,stroke:#174ea6,color:#102a43;
  classDef guard fill:#fff4ce,stroke:#8a6100,color:#332500;
  classDef success fill:#d7f0df,stroke:#176b39,color:#103b23;
  class C,E guard;
  class D,F success;
Loading

Validation: full actual ProviderCore module and object compilation; 29 real host/loopback/queue tests; 1,108 pure placement checks; canonical documentation, impact and changelog checks all pass. Regression tests reproduce the drained first burst, reuse without another planner call, expiry/replanning, disconnect, empty queue, stop during planning, teardown, generation and capacity guards. Independent review found and fixed the scheduled-task expiry race, then verified the final source and test receipts with no unresolved finding.

make docs-check
make docs-impact-check BASE=42ffe36af63ab5496632f6e774b742d6f6e40f5d
make changelog-check
make changelog-preview
bash libs/darkbloom-cluster/Tests/PlacementChecks/run.sh

The focused host suites are DistributedLocalServerBatchReplacementTests, DistributedLocalServerTests and DistributedRequestQueueTests. Recorded compilation/tests used pinned isolated actual-source closures; native sessions in host tests are deliberately model-free. Patch SHA-256: 1bd5279946f44cdc006ec1cd96a93d53e3445170970167e9262c3b965b31c5bd; independent review SHA-256: 8dd8563e62efccc2560654dd313880d5b5771f913c63a91cfa1f0eae11da171a.

The original installed GPT-OSS automatic test remains failed and immutable: both endpoint passes were 36/0/2, but neither activated native batching. Fresh installed hardware validation for this repair is pending. This draft does not relax memory admission or numerical tolerances, count phase-split results, or claim universal TP/capability qualification.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Oct 23, 2026 2:59pm UTC
d-inference-console-ui-dev Ready Ready Preview Oct 23, 2026 2:59pm UTC
d-inference-landing Ready Ready Preview Oct 23, 2026 2:59pm UTC
darkbloom-status Ready Ready Preview Oct 23, 2026 2:59pm UTC
eigen-homepages-darkbloom Ready Ready Preview Oct 23, 2026 2:59pm UTC

Request Review

This branch was successfully deployed

5 active deployments
Preview – d-inference-console-ui-dev — 144ed529 Deployed Oct 23, 2026 by vercel[bot]
Preview – d-inference — 144ed529 Deployed Oct 23, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — 144ed529 Deployed Oct 23, 2026 by vercel[bot]
Preview – d-inference-landing — 144ed529 Deployed Oct 23, 2026 by vercel[bot]
Preview – darkbloom-status — 144ed529 Deployed Oct 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant