Skip to content

pr-set: pin #376 (release offloaded weight pages on Windows) - #388

Merged
danielhanchen merged 1 commit into
masterfrom
pinset/add-376-win-mmap
Nov 20, 2026
Merged

danielhanchen merged 1 commit into
masterfrom
pinset/add-376-win-mmap

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

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_fragment was a no-op, so with --load-mode mmap and every layer on the GPU the whole mapped file stayed in llama-server's working set. It now calls VirtualUnlock on 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.json lists it under unchecked (no Windows runner in the pipeline).

Checks (local)

Not covered here: the Windows build itself (covered by the AMD CI and windows-latest runs in #376).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T19:06:53.224953Z 2278233 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.

@danielhanchen
danielhanchen merged commit 028e2a0 into master Nov 20, 2026
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