Repository navigation
fix(tests): let make verify-test-cuda finish on a 121 GB GB10 - #3151
Merged
Merged
Conversation
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
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.
Two test-only defects kept the CUDA gate from completing on spark-102.
tests/maskless_padded_prefill_parity.rsloads 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 throughMLXCEL_TEST_GLM4V_MOE=1, like the Mistral 4 one. The skip message names the variable.coordinator_names_peers_that_did_not_commitfailed 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 andplan_clusterdeduplicated 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_assignmenttests passed in 10 of 10 runs, andmake verify-test-cudawith no skips completed with 184 binaries, 15914 passed, 0 failed.Closes #3147