Skip to content

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

Merged
lucbruni-amd merged 9 commits into
mainfrom
ci-fix-halo-runmodel-mmap
Aug 11, 2026
Merged

pytorch-rocm-llms: unify transformers pin and disable mmap for halo gpt-oss-20b#659
lucbruni-amd merged 9 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
@adamlam2-amd

Copy link
Copy Markdown
Collaborator

have we seen perf improvements by disabling mmap? As well, there were some previous errors with the later versions of transformers. lets keep an eye on the CI in case anything starts to fail.

@saman-amd

Copy link
Copy Markdown
Collaborator

!orc

@lucbruni-amd

Copy link
Copy Markdown
Collaborator Author

have we seen perf improvements by disabling mmap?

No, if anything it may have a slight model loading cost. Let's merge and monitor CI if you approve.

@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown

OrchestrAI results — ❌ failures (6 passed, 4 failed)

Playbook Platform Device Result
pytorch-rocm-llms linux halo ✅ pass
pytorch-rocm-llms linux r9700 ❌ fail
pytorch-rocm-llms linux rx7900xt ❌ fail
pytorch-rocm-llms linux rx9070xt ❌ fail
pytorch-rocm-llms linux stx ✅ pass
pytorch-rocm-llms windows halo ✅ pass
pytorch-rocm-llms windows r9700 ✅ pass
pytorch-rocm-llms windows rx7900xt ✅ pass
pytorch-rocm-llms windows rx9070xt ❌ fail
pytorch-rocm-llms windows stx ✅ pass

tested a61e029d (ci-fix-halo-runmodel-mmap) · workflow run — per-playbook ReportPortal links are in each job summary

@saman-amd

Copy link
Copy Markdown
Collaborator

!orc

Same OSError 1450 mmap failure as run-model when loading gpt-oss-20b on
Windows/halo; run-llm-simple runs run_llm.py, so pin it to a full read.
run-summarizer loads gpt-oss-20b on windows/halo and crashed on the
mmap'd load; align it with run-model and run_llm.py.
@lucbruni-amd

Copy link
Copy Markdown
Collaborator Author

Yes.

@adamlam2-amd

Copy link
Copy Markdown
Collaborator

lgtm

@lucbruni-amd
lucbruni-amd merged commit 3e8d668 into main Aug 11, 2026
17 checks passed
@lucbruni-amd
lucbruni-amd deleted the ci-fix-halo-runmodel-mmap branch August 11, 2026 17:42
@lucbruni-amd lucbruni-amd linked an issue Aug 12, 2026 that may be closed by this pull request
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-llm-simple failed on halo (windows) [CI] pytorch-rocm-llms / run-model failed on halo (windows)

3 participants