Repository navigation
cb2-8 (chain 8/8): prefix-cache fetch on batched admission + audit hardening #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ronaldmannak
wants to merge
15
commits into
claude/cb2-7-loader-frontdoor
Choose a base branch
from
claude/cb2-8-prefix-fetch
base: claude/cb2-7-loader-frontdoor
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
849d52b
EngineDriver: prefix-cache fetch on batched admission (chain 8/8)
claude ea79835
Scheduler: re-validate the context epoch after the upgrade handshake
claude 887e367
Scheduler: honor driverStale in ensureDriver; never resurrect a torn-…
claude e522b2e
Scheduler: self-heal the state machine when a submit races a loop-finish
claude 46e8570
Scheduler: detach owners on container deinit; new owners replace the …
claude 446357a
Scheduler: close the cancel dead zones (upgrade window, queued drain)
claude 874f1ee
Scheduler: drain the held queue when a failure path settles at idle
claude 999af63
Scheduler/driver: finishUpgradedSingle honors stop strings, timing, w…
claude 8889013
Engine: continue -- don't replay -- a seeded sampler's chain on upgrade
claude 52e35b8
Scheduler: cacheless models must not pass canUpgrade; loud config val…
claude eb45f54
Driver: write back a cancelled row's KV like every other finish
claude 5f2d727
Scheduler/driver: thread ONE policy-gated cache-eligibility decision
claude b066c40
Engine/scheduler: negative-temperature parity + doc/dead-code hygiene
claude a6ed775
Scheduler: never initiate an upgrade while the driver is stale
claude 4f63b10
Tests: end-to-end scheduler auto-upgrade token parity and cancellation
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
504 changes: 425 additions & 79 deletions
504
Libraries/MLXLMCommon/Batching/InferenceScheduler.swift
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If client code releases one container and immediately calls
generateon a new container sharing the scheduler, this unstructured task is not guaranteed to run before the new container checkscurrentOwner. The new call can therefore nondeterministically see the dead container's owner and throwschedulerAlreadyAttached, despite this change intending to make scheduler reuse possible. Provide an awaitable/ordered release mechanism rather than relying solely on a deinit-scheduled task.Useful? React with 👍 / 👎.