Skip to content

fix(tests): let make verify-test-cuda finish on a 121 GB GB10 - #3151

Merged
inureyes merged 1 commit into
mainfrom
fix/issue-3147-cuda-gate-blockers
Nov 18, 2026
Merged

inureyes merged 1 commit into
mainfrom
fix/issue-3147-cuda-gate-blockers

Conversation

@inureyes

Copy link
Copy Markdown
Member

Two test-only defects kept the CUDA gate from completing on spark-102.

tests/maskless_padded_prefill_parity.rs loads one real checkpoint per test in a single process, and the freed weights of each model stayed in MLX's buffer cache while the next one loaded. The kernel OOM killer stopped the binary twice, right after glm4v_moe (glm-4.5v-4bit alone takes MemAvailable from 101 GB to 13 GB). Each test now binds a guard that clears the MLX cache once its model drops, on success and on panic, and the GLM-4.5V gate is opt-in through MLXCEL_TEST_GLM4V_MOE=1, like the Mistral 4 one. The skip message names the variable.

coordinator_names_peers_that_did_not_commit failed once with "resolved 1 peer(s)": reserve_port() dropped its listener before returning, so two back-to-back calls could return the same ephemeral port and plan_cluster deduplicated the two peers. reserve_ports::<N>() holds every listener until all ports are known, every call site uses it, and a test checks that 8 reserved ports are distinct, 64 times.

Validation on GB10: the maskless binary passes with MemAvailable never below 91 GB by default, and with GLM-4.5V enabled all 8 tests pass at a 17 GB low. The 19 stage_assignment tests passed in 10 of 10 runs, and make verify-test-cuda with no skips completed with 184 binaries, 15914 passed, 0 failed.

Closes #3147

Two test-only defects kept the CUDA gate from completing on spark-102.

`tests/maskless_padded_prefill_parity.rs` loads one real checkpoint per test in a single process, and the freed weights of each model stayed in MLX's buffer cache while the next one loaded. The kernel OOM killer stopped the binary twice, right after glm4v_moe (glm-4.5v-4bit alone takes MemAvailable from 101 GB to 13 GB). Each test now binds a guard that clears the MLX cache once its model drops, on success and on panic, and the GLM-4.5V gate is opt-in through `MLXCEL_TEST_GLM4V_MOE=1`, like the Mistral 4 one. The skip message names the variable.

`coordinator_names_peers_that_did_not_commit` failed once with "resolved 1 peer(s)": `reserve_port()` dropped its listener before returning, so two back-to-back calls could return the same ephemeral port and `plan_cluster` deduplicated the two peers. `reserve_ports::<N>()` holds every listener until all ports are known, every call site uses it, and a test checks that 8 reserved ports are distinct, 64 times.

Validation on GB10: the maskless binary passes with MemAvailable never below 91 GB by default, and with GLM-4.5V enabled all 8 tests pass at a 17 GB low. The 19 `stage_assignment` tests passed in 10 of 10 runs, and `make verify-test-cuda` with no skips completed with 184 binaries, 15914 passed, 0 failed.

Closes #3147
@inureyes inureyes added type:bug Bug fixes, error corrections, or issue resolutions status:review Under review priority:medium Medium priority platform:linux Linux (CUDA / packaging) specific labels Nov 18, 2026
@inureyes
inureyes merged commit ce18d22 into main Nov 18, 2026
32 checks passed
@inureyes
inureyes deleted the fix/issue-3147-cuda-gate-blockers branch November 18, 2026 02:59
@inureyes inureyes added status:done Completed and removed status:review Under review labels Nov 18, 2026
@inureyes inureyes added this to the 0.9 milestone Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform:linux Linux (CUDA / packaging) specific priority:medium Medium priority status:done Completed type:bug Bug fixes, error corrections, or issue resolutions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(tests): two test-only defects keep make verify-test-cuda from completing on GB10

1 participant