Skip to content

Count the context ceiling's per-device reserve gate from #14492 in the compute buffer wiring test - #14560

Merged
danielhanchen merged 1 commit into
mainfrom
fix-compute-buffer-reserve-count
Oct 21, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix-compute-buffer-reserve-count

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Backend CI (Python 3.13, a-k) is red on main (run 39659390757 on 4a5a3e5, the only failure out of 32116):

TestPerDeviceSplitReserve.test_wired_into_the_auto_context_loop
E   assert 4 == 3
E    +  where 4 = ...count('ifnotself._every_gpu_holds_reserve(')

The test reads LlamaCppBackend.load_model's source and pins where the per-device reserve gate is wired. #14492 changed two things it pins, both on purpose:

  1. It added a fourth gate: the context ceiling now caps a dGPU-only tier to the smallest card's reserve, as Auto's walk does, because pooling can hide a small card there.
  2. It moved the Auto walk's body into a helper, so a subset the cap empties now return Nones instead of continue. The behaviour is the same.

The product is right; the test pinned the old shape.

Change

  • The gate count is 4, and the new site is pinned by its own line (_usable_mib = [_gpu_usable(g, _cap_fraction) for g in subset]), so losing it fails by name rather than only by count.
  • The walk's "cap, then reject an emptied subset" check now matches if capped <= 0: return None.

Testing

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T20:37:48.631703Z 6b47436 Manual request
🔒 Security Review ⚠️ Failed 2026-10-21T20:20:53.862925Z
We couldn’t complete this review. Comment @codex security review to try again.
6b47436 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Unknown error
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 6b47436bfb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 35b4cf4 into main Oct 21, 2026
@danielhanchen
danielhanchen deleted the fix-compute-buffer-reserve-count branch October 21, 2026 20:39
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