Repository navigation
fix(tests): point real-model tests at the names the store now uses - #1726
Merged
Merged
Conversation
#1722 made a name that resolves nowhere loud instead of silent. Running with `MLXCEL_REQUIRE_MODELS=1` afterwards, 20 of the 46 distinct checkpoint names under `tests/` resolved to nothing on M5 Max, so those tests had been skipping while reporting `ok`. Fifteen are fixed here, in 55 places. Ten came from the rename pass and are looked up through the catalog's `aliases` column, so each replacement is backed by a recorded former name rather than by a guess: `llama-3.1-8b-4bit` to `meta-llama-3.1-8b-instruct-4bit`, `qwen2.5-7b-4bit` to `qwen2.5-7b-instruct-4bit`, and so on. Five more differed only in case or in a suffix the directory carries, `GLM-4.5V` against `glm-4.5v-4bit` among them, and one had a stale `mlx/` prefix from the old two-level layout. `jamba-v0.1-4bit` is deliberately not remapped, and its alias is removed from the catalog. The directory that carried that name held `AI21-Jamba-Reasoning-3B-4bit`, a 3B 28-layer model rather than Jamba v0.1, so renaming it was correct and recording the old name as an alias was not: an alias means one set of weights had another name, not that a directory was misnamed after a different model. Following it would have pointed a parity test at the wrong architecture. `docs/model-catalog.md` now says that. The remaining five are absent checkpoints rather than wrong names and cannot be fixed by editing a string: `glm5-4bit` was an aborted download deleted on 2026-09-09, `llama-3.2-1b-4bit-lora` is an adapter directory, and `mistral-7b-instruct-v0.3-4bit`, `nvidia-nemotron-h-8b-base-8bit` and the jamba entry are not in this store. Gate: 10539 tests pass with no failures, up from 10534, the difference being tests that now run.
inureyes
added a commit
that referenced
this pull request
Sep 17, 2026
`e826b050` renamed the M5 Max store after the artifact each directory holds and `docs/model-catalog.tsv` records the result, but GB10 kept the old names until it was aligned today. That left 43 references across 21 names pointing at directories that exist on no host: `models/gemma2-2b-4bit`, `repo_model_dir("jamba-v0.1-4bit")`, `const GEMMA3N_E2B_MODEL`, and so on. #1726 fixed 15 such names under `tests/`; these are the ones left in `src/`, `scripts/` and `examples/`.
Five named a directory that turned out to be a byte-for-byte duplicate and was removed, so each now points at the surviving twin: `hunyuan-13b` to `hunyuan-a13b-instruct-4bit`, `qwen3-0.6b` to `qwen3-0.6b-4bit`, `gemma3-4b-4bit` to `gemma-3-4b-it-4bit`, `llama-3.1-8b-4bit` to `meta-llama-3.1-8b-instruct-4bit`, `qwen2.5-7b-4bit` to `qwen2.5-7b-instruct-4bit`.
A second class is worse than stale. Thirteen names, `Meta-Llama-3.1-8B-Instruct-4bit` and `Qwen2.5-1.5B-4bit` among them, differ from a real directory only by case, so they resolve on macOS and never on Linux, and a test gated on `model_dir.exists()` passes on one host while silently skipping on the other. `tests/lang_bias.rs` and three `turbo_kv_e2e` gates were in that state.
Two soft-skip candidate lists are also deduplicated, in `lang_analyzer_tests.rs` and `turbo_kv_e2e.rs`, because pairs of old names collapsed onto one new name.
Deliberately unchanged: prose recording the name a past measurement ran under, upstream repo ids (`mlx-community/...`, `~/.cache/mlxcel/...`), the string-classification fixtures in `src/downloader/` and `src/server/model_source_tests.rs` which never touch the filesystem, and the four checkpoints #1726 identified as absent from every store rather than misnamed.
Every name reaching `repo_model_dir` or a quality gate now resolves against both the GB10 store and the M5 Max listing, except those four.
Gate on GB10, `cargo test --workspace --profile test-fast --features cuda --no-fail-fast -- --test-threads=1`: 11365 passed, 2 failed across 126 suites. Both failures are `text_only_forward_produces_finite_logits`, in `glm4v_parity` and `glm_ocr_parity`, and both reproduce on unmodified `main` at `0ef0a1a4` with an identical message, deterministically across five runs, on checkpoints this change does not rename. Every library-side edit here sits inside a `#[cfg(test)]` module, so the library those integration tests link is unchanged. A third target, `mlxcel-surgery --test replace_integration`, passes its two tests and then aborts at teardown with `Destroy(handle_) failed: driver shutting down`, which is the open #1422 teardown race and touches no file in this change. The real-model tests these three cover need local checkpoints, so they skip on hosted CI.
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.
Follow-up to #1722, which made a checkpoint name that resolves nowhere fail loudly under
MLXCEL_REQUIRE_MODELS=1instead of turning its test into a silent no-op. Running that on M5 Max, 20 of the 46 distinct names undertests/resolved to nothing.Fifteen are fixed, in 55 places. Ten are looked up through the catalog's
aliasescolumn, so each replacement is backed by a recorded former name rather than a guess. Five differed only in case or in a suffix the directory carries, and one kept anmlx/prefix from the old two-level layout.The one that is not remapped
jamba-v0.1-4bitstays unresolved and its alias is removed from the catalog. That directory heldAI21-Jamba-Reasoning-3B-4bit, a 3B 28-layer model, not Jamba v0.1. Renaming it was right; recording the old name as an alias was not. An alias means one set of weights was measured under another name, and following this one would have pointed a parity test at a different architecture.docs/model-catalog.mdnow states the distinction, since the same mistake is available to anyone who renames a misnamed directory.What is left, and why editing a string will not fix it
Five names have no checkpoint behind them on this host:
glm5-4bitwas an aborted download removed on 2026-09-09,llama-3.2-1b-4bit-lorais an adapter directory rather than a base checkpoint, andmistral-7b-instruct-v0.3-4bit,nvidia-nemotron-h-8b-base-8bitand the jamba entry are simply not in the store. They will keep skipping, which is the correct behaviour now that skipping is visible.Gate: 10539 tests pass with no failures, up from 10534. The five extra are tests that now run.