Repository navigation
pr-set: pin #376 (release offloaded weight pages on Windows) - #388
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Pins #376 (
llama-mmap: release offloaded weight pages from the working set on Windows) at f12ce09, appended after #335.#376 fixes the extra RAM in unslothai/unsloth#18316: on Windows
unmap_fragmentwas a no-op, so with--load-mode mmapand every layer on the GPU the whole mapped file stayed inllama-server's working set. It now callsVirtualUnlockon the page-aligned unused range, which drops those pages from the working set while the view stays valid. Measurements are in #376 (Strix Halo, Windows 11, ROCm: 10.5 GB to 6.0 GB working set, identical greedy output).The change is Windows only, so
feature-checks.jsonlists it underunchecked(no Windows runner in the pipeline).Checks (local)
llama_pinset.py audit: 26/26 pins clean (llama-mmap: release offloaded weight pages from the working set on Windows #376 basebase/upstream-e4b620af1, +16/-2, 1 file).llama_pinset.py simwith llama-mmap: release offloaded weight pages from the working set on Windows #376 appended: b12566, b12577 and b12588 merge cleanly,pin_contractandmerge_checksclean on each._WIN32branch ofsrc/llama-mmap.cpp, which none of those Linux builds compile.Not covered here: the Windows build itself (covered by the AMD CI and windows-latest runs in #376).