Skip to content

fix: point model paths at the names the store actually uses - #1905

Merged
inureyes merged 1 commit into
mainfrom
fix/store-names-gb10
Sep 17, 2026
Merged

inureyes merged 1 commit into
mainfrom
fix/store-names-gb10

Conversation

@inureyes

Copy link
Copy Markdown
Member

e826b050 renamed the M5 Max store after the artifact each directory holds, and docs/model-catalog.tsv records 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 under tests/; these are the ones left in src/, scripts/ and examples/.

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-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, and 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. A test gated on model_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.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.

Note for a later issue, not addressed here: the two GLM failures are deterministic rather than the intermittent text_only_forward_produces_finite_logits class of #997 and #1717, and glm-4.1v-9b-thinking-4bit additionally warns that its model.safetensors.index.json references shards that do not match the on-disk files.

`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.
@inureyes inureyes added status:review Under review type:bug Bug fixes, error corrections, or issue resolutions labels Sep 17, 2026
@inureyes
inureyes merged commit 3c3b56f into main Sep 17, 2026
19 checks passed
@inureyes
inureyes deleted the fix/store-names-gb10 branch September 17, 2026 08:35
@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

status:review Under review type:bug Bug fixes, error corrections, or issue resolutions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant