Skip to content

pytorch-rocm-llms: unify transformers pin and disable mmap for halo gpt-oss-20b - #659

Open
lucbruni-amd wants to merge 3 commits into
mainfrom
ci-fix-halo-runmodel-mmap
Open

pytorch-rocm-llms: unify transformers pin and disable mmap for halo gpt-oss-20b#659
lucbruni-amd wants to merge 3 commits into
mainfrom
ci-fix-halo-runmodel-mmap

Conversation

@lucbruni-amd

@lucbruni-amd lucbruni-amd commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

On Windows, halo loads gpt-oss-20b (dequantized to ~40GB bf16 since MXFP4/Triton kernels aren't available on Windows ROCm). safetensors memory-maps the shards, and a mapping that large intermittently exhausts the Windows paged pool: OSError 1450 (ERROR_NO_SYSTEM_RESOURCES). Not a RAM limit (halo has 128GB).

Fix: pass disable_mmap=True to the halo run-model load so weights are read into RAM instead of mmapped. Available in transformers 5.x.

Also unify the transformers pin at 5.10.1 across all devices/OSes: halo-windows was stale at 4.57.1 (which lacks disable_mmap), halo-linux and others-linux were floating.

Possibly fixes #655.

…mmap on halo

Windows halo loaded gpt-oss-20b via safetensors mmap, which exhausts the
Windows paged pool on the ~40GB bf16 model (OSError 1450). Add disable_mmap
to read weights into RAM instead. Also unify the transformers pin at 5.10.1
across all devices (halo-windows was stale at 4.57.1, which lacks disable_mmap;
halo-linux and others-linux were unpinned). Possibly fixes #655.
@lucbruni-amd
lucbruni-amd marked this pull request as draft July 29, 2026 15:03
@lucbruni-amd
lucbruni-amd marked this pull request as ready for review July 29, 2026 15:15
@lucbruni-amd
lucbruni-amd requested a review from sreeram-11 August 6, 2026 18:36
@sreeram-11

sreeram-11 commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

@adamlam2-amd to approve after verifying.

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.

[CI] pytorch-rocm-llms / run-model failed on halo (windows)

2 participants