Skip to content

pr-set : repin #268 (WSL2 fix for the MoE cache with mmap load) - #482

Merged
danielhanchen merged 1 commit into
masterfrom
pinset/repin-268-wsl
Dec 4, 2026
Merged

danielhanchen merged 1 commit into
masterfrom
pinset/repin-268-wsl

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Repins #268 from 85ca63fd41f to its new head 1d1e4f54979, on top of master 8adea977c54. Only the #268 URL in scripts/unsloth/pr-set.json changes.

What the new #268 commit changes

One commit, ggml/src/ggml-cuda/ggml-cuda.cu +21/-2. It fixes an illegal memory access in CUDA that only shows up on WSL2 when the MoE expert cache is combined with an mmap model load. Some copy sources are registered host memory that the device reads at a different address from the host pointer. Those regions are now copied with cudaMemcpyAsync instead of being batched through cudaMemcpyBatchAsync. On native Linux the path is unchanged.

The #268 evidence:

  • RTX 5090 under WSL2: the old head crashes, the new head answers, and its tokens match.
  • Linux L4: no-op.

Gate

The same gate as the previous pin-set change, run on a CPU VM. It runs the nightly's merge loop with additive_merge.py, then reconcile_op_count.py, merge_checks.py and pin_contract.py from this branch. On the aged and newest tags it also builds with the Linux CPU leg's exact configure under gcc 11 (LLAMA_FATAL_WARNINGS=ON, every CPU variant, tools and server) and runs a clang -Werror -Wdeprecated-declarations pass over the pin-changed C/C++ files.

tag pins merged reconcile merge_checks pin_contract gcc 11 -Werror build clang pass
b12969 (aged) 50 rc 0 (op count 102 -> 103) rc 0 all 50 intact rc 0, 420 s 49 files, no finding
b12973 (newest) 50 rc 0 rc 0 all 50 intact rc 0, 294 s 49 files, no finding
b12966 (fallback) 50 rc 0 rc 0 all 50 intact not run not run

As before, clang also reports the six atomics lines in ggml/src/ggml-cpu/ggml-cpu.c that come from the harness pointing clang at gcc 11's include directory for omp.h; nothing else.

The CUDA file this commit touches is not compiled by the CPU gate. The commit only adds a branch around existing CUDA runtime calls, and the nightly's CUDA legs build it.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 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-12-04T06:08:39.240971Z 4dec15a 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 4f633de into master Dec 4, 2026
7 checks passed
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