Repository navigation
fix: point model paths at the names the store actually uses - #1905
Merged
Merged
Conversation
`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.
e826b050renamed the M5 Max store after the artifact each directory holds, anddocs/model-catalog.tsvrecords the result. GB10 kept the old names until it was aligned today (181 directories, 176 of them now matching the M5 Max listing exactly). 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 undertests/; these are the ones left insrc/,scripts/andexamples/.Five of them 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-13btohunyuan-a13b-instruct-4bit,qwen3-0.6btoqwen3-0.6b-4bit,gemma3-4b-4bittogemma-3-4b-it-4bit,llama-3.1-8b-4bittometa-llama-3.1-8b-instruct-4bit, andqwen2.5-7b-4bittoqwen2.5-7b-instruct-4bit.A second class is worse than stale. Thirteen names,
Meta-Llama-3.1-8B-Instruct-4bitandQwen2.5-1.5B-4bitamong them, differ from a real directory only by case, so they resolve on macOS and never on Linux. A test gated onmodel_dir.exists()therefore passes on one host and silently skips on the other, which is the failure mode #1722 was built to expose.tests/lang_bias.rsand threeturbo_kv_e2egates were in that state.Two soft-skip candidate lists are also deduplicated, in
lang_analyzer_tests.rsandturbo_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 insrc/downloader/andsrc/server/model_source_tests.rswhich never touch the filesystem, and the four checkpoints #1726 identified as absent from every store rather than misnamed.Every name reaching
repo_model_diror 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 aretext_only_forward_produces_finite_logits, inglm4v_parityandglm_ocr_parity, and both reproduce on unmodifiedmainat0ef0a1a4with 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 withDestroy(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.Note for a later issue, not addressed here: the two GLM failures are deterministic rather than the intermittent
text_only_forward_produces_finite_logitsclass of #997 and #1717, andglm-4.1v-9b-thinking-4bitadditionally warns that itsmodel.safetensors.index.jsonreferences shards that do not match the on-disk files.