Skip to content

fix(test): derive the props batch-alias default from the chunk policy - #2212

Merged
inureyes merged 1 commit into
mainfrom
fix/issue-2211-props-batch-alias-default
Oct 7, 2026
Merged

inureyes merged 1 commit into
mainfrom
fix/issue-2211-props-batch-alias-default

Conversation

@inureyes

@inureyes inureyes commented Oct 7, 2026

Copy link
Copy Markdown
Member

Summary

The batch-size alias test in src/server/routes/props_tests.rs hard-coded 512 as the default prefill chunk. After #2205 (epic #2166) the resolver's default is prefill_chunk_len() (2048 unless MLXCEL_PREFILL_CHUNK is set), so 512 counted as an explicit chunk and the alias lost. Production behavior matches ADR 0007, so only the test and stale comments change.

  • The test takes the default from prefill_chunk_len() and uses an alias value that differs from it.
  • The comments in src/bin/bench_engine.rs and src/models/phi3_tests.rs that called 512 the server default are corrected. The phi3 test keeps 512 as a fixed fixture.

Verification

  • cargo test --profile test-fast --features rocm -p mlxcel --lib server::routes::props: 13 passed.
  • cargo test --profile test-fast --features rocm -p mlxcel --lib server::cli_input: 146 passed.
  • make verify-fmt: clean. make verify-rocm is left to the orchestrator.

Closes #2211

The batch-size alias test in the props routes passed a literal 512 as the default prefill chunk. Since #2205 the resolver compares against prefill_chunk_len() (default 2048, ADR 0007), so 512 counted as an explicit chunk and the alias did not apply.

The test now takes the default from prefill_chunk_len() and picks an alias value that differs from it. The comments in bench_engine and the phi3 test that still called 512 the server default are corrected; the phi3 test keeps 512 as a fixed fixture.

Refs #2166, closes #2211
@inureyes inureyes added status:done Completed type:bug Bug fixes, error corrections, or issue resolutions priority:high High priority area:core mlxcel-core: MLX FFI, primitives, KV cache, layers labels Oct 7, 2026
@inureyes
inureyes merged commit 454500b into main Oct 7, 2026
26 checks passed
@inureyes
inureyes deleted the fix/issue-2211-props-batch-alias-default branch October 7, 2026 10:36
@inureyes inureyes added this to the 0.8 milestone Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:core mlxcel-core: MLX FFI, primitives, KV cache, layers priority:high High 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(test): props batch-size alias test assumes a 512 default prefill chunk

1 participant