{{ message }}
Repository navigation
Conversation
…Windows commit headroom in the small-host guard
…ync branch with upstream 67 upstream commit(s) since the branch base; see git log for the range.
…ync branch with upstream 5 upstream commit(s) since the branch base; see git log for the range.
…ync branch with upstream 493 upstream commit(s) since the branch base; see git log for the range.
…ync branch with upstream 42 upstream commit(s) since the branch base; see git log for the range.
This branch has not been deployed
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.

Summary
GGUF image loads can exhaust Windows system commit while the small-host guard considers dense loading safe. This corrects the estimates and available-memory reading so affected loads take the existing low-memory route or return the existing RAM refusal.
Fixes #14513
Changes
K32GetPerformanceInfo, falling back to the existing physical-memory reading if unavailable.UNSLOTH_DIFFUSION_HOST_RAM_LIMIT_MIBto cap the total and available memory values supplied to the guard for testing. It does not enforce a process memory limit.Known limitations
Testing
Regression coverage in
studio/backend/tests/test_diffusion_small_host.pyincludes pre-built memory accounting, fits/LoRA metadata, routing and refusal, memory caps, the Windows API reader, and logging of measured fits decisions. The API reader test runs on Windows and skips elsewhere.On the original 48 GB Windows host, the previously failing Turbo load took the low-memory route, completed successfully, and generated images. The physical-memory and commit-headroom log fields were also observed during subsequent load testing.