Skip to content

test(scheduler): Gemma 3 lookahead tests fail in the full mlxcel lib run on ROCm #2187

Closed

Description

@inureyes

Problem

On origin/main 9c0ae2e (after #2182), the full -p mlxcel --lib run on ROCm (gfx1151, test-fast profile, --features rocm, --test-threads=1) reports 8844 passed, 5 failed, 156 ignored, which breaks make verify-rocm (baseline: 0 failures). Reproduced twice, deterministically. Found while verifying PR #2186 (#2153), which does not touch the scheduler or Gemma 3.

Failing tests in src/server/batch/scheduler/mod.rs:

  • scheduler_completion_snapshot_tests::model_owned_sequence_primes_the_decode_lookahead_only_with_a_rewind ("Gemma 3 rewinds its own state, so it pipelines")
  • scheduler_model_owned_lookahead_tests::batched_lookahead_matches_force_sync_past_the_window and single_sequence_lookahead_matches_force_sync_past_the_window ("the lookahead pipeline ran (0 ticks)")
  • scheduler_model_owned_lookahead_tests::failed_rewind_fails_the_request ("the request is still running")
  • scheduler_model_owned_lookahead_tests::lookahead_is_gated_on_the_rewind_capability ("Dense: FP16 Gemma 3 pipelines")

Analysis

The tests pass alone and when run with only the models, execution, loading, or server module tests. An earlier test elsewhere in the lib binary leaves process-global state (an env var such as MLXCEL_FORCE_SYNC, a global KV cache mode, or similar) that makes lookahead_params (src/server/batch/scheduler/decode_tick.rs:372) return None. The interfering test is not yet identified.

Acceptance Criteria

Activity

  1. added
    type:bug
    priority:high
    status:ready
    area:inference
    status:in-progress
    status:review
    and removed
    status:ready
    status:in-progress
    on Oct 6, 2026
  2. added
    status:done
    and removed
    status:review
    on Oct 6, 2026
  3. added 2 commits that reference this issue on Oct 6, 2026
    e4ddc1f
    c0a70f6
  4. added a commit that references this issue on Oct 14, 2026
    fc21784
  5. added this to the 0.8 milestone on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:inferencepriority:highstatus:donetype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions