Repository navigation
fix(test): stabilize Qwen3.5 dense CI e2e gates on 7 GB macOS runners - #390
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
… footprint on 7 GB CI
Summary
Fixes the deterministic failure and remaining flake sources in the
e2e qwen3_5-denseCI leg on 7 GBmacos-26runners:Deterministic failure since feat: Control Panel redesign, Chat/Work, Flash Next fixes, Qwen3.5 scheduler on by default #384 (
qwen3_5_concurrent_batched_parity):macos-26VM (working_set ≈ 4.67 GiB),Qwen/Qwen3.5-0.8Bbf16 + MTP at its native262,144context window is memory-bound at 1 lane, soevaluate_qwen35_planrejectscount = 2to preserve the single-lane window (MLX_SCHED_MAX_NUM_SEQS=2only clamps downward).max_position_embeddings = 8192and nopaged_cache_memory_mboverride so bothasymmetric_finish_and_cross_owner_warm_wave_match_serialandwaves_of_one_two_four_and_eight_match_serialgenuinely planlanes >= 2on 7 GB CI VMs while still scaling to 4/8 lanes on larger Macs.waves_of_one_two_four_and_eight_match_serialto assert(2..=8).contains(&lanes)so CI cannot silently degrade back to 1 lane.load_plan::tests::small_runner_0_8b_mtp_grants_two_lanes_when_context_is_cappedpinning the 7 GB runner memory-plan math.join_all+decode_debt_msoccupancy race (qwen3_5_concurrent_batched_parity):asymmetric_finish_and_cross_owner_warm_wave_match_serial's concurrent pair from(7, 15)to(32, 48)tokens sobatch-0still finishes well beforebatch-1while having enough decode steps to reliably overlap even ifbatch-0prefills solo first and chargesdecode_debt_ms.Wall-clock TTFT flake (
qwen3_5_delta_chat):stream_session_path_keeps_ttft_flat_across_turnswith the same deterministiccached_tokens/uncachedaccounting assertions already used insession_path_keeps_ttft_flat_across_turns, plus checks that every streamed turn emits at least one non-empty incremental chunk beforedone: true.Blocking sleep & tight poll window (
qwen3_5_state_tier_restart):status_oncefromstd::thread::sleeptotokio::time::sleepinsideasync fnand raises its polling ceiling from 12s to 30s (matchingclose_cache's 30s deadline).Verification
cargo test --locked -p mlx-core --lib small_runner_0_8b_mtp_grants_two_lanes_when_context_is_capped— passedQWEN35_STAGE2_MODEL_PATH=... MLX_SCHED_MAX_NUM_SEQS=2 cargo test --locked -p mlx-core --test qwen3_5_concurrent_batched_parity -- --ignored --test-threads=1 --nocapture(tested with both relative and absolute paths, plus unthrottled) — passed (planned lanes: 2,max_batch_occupancy: 2; unthrottledplanned lanes: 4,max_batch_occupancy: 4)MLX_TEST_MODEL_PATH=... cargo test --locked -p mlx-core --test qwen3_5_delta_chat -- --ignored --test-threads=1 --nocapture— 6 passedMLX_TEST_MODEL_PATH=... cargo test --locked -p mlx-core --test qwen3_5_state_tier_restart -- --ignored --test-threads=1 --nocapture— 3 passedcargo fmt --all -- --check&cargo clippy --locked -p mlx-core --tests -- -D warnings— passed