Repository navigation
Picker contract test: follow the Ollama MLX tag predicate - #18372
Merged
Merged
Conversation
#18253 lets the API load an Ollama MLX tag's checkpoint, which the resolver indexes, so apiAutoSwitchMayLoad and the override backfill now test isMaterializedOllamaLink instead of isOllamaLinkPath. test_the_chat_picker_marks_ollama_targets_unloadable_by_the_api pinned the old line and fails on main. Pin the new predicate and the definition that keeps a materialized .gguf link unloadable.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
danielhanchen
added a commit
that referenced
this pull request
Nov 18, 2026
…th_zoo is absent (#18338) ## Summary A test fix for a check that fails on every PR against current main. ### 1. Trainer-backed num_proc veto tests without unsloth_zoo These tests, added in #17701, import `core.training.trainer`, which imports unsloth and so needs `unsloth_zoo`: - `test_the_batched_packing_pool_asks_the_same_veto` (through `_pack_num_proc`'s lazy import of the trainer); - the five `test_block_swap_counts_for_the_veto_only_when_it_offloads` cases. Some CPU CI buckets (Repo tests, Python 3.13 a-f) do not install the zoo, so these fail there with `ImportError: Unsloth: Please install unsloth_zoo`. Both tests now call a small `_trainer_or_skip()` helper. It skips the same way `test_dataset_preview_role_aliases.py` already does when the zoo cannot be imported. `studio/backend/tests/test_dataset_map_num_proc.py`: - with `unsloth_zoo`: 40 passed, nothing skipped; - without it: 32 passed, 8 skipped (6 failed before). The Unreal level tools encoding fix and the model picker contract update this PR also carried landed separately on main (#18344, #18372), so this branch now takes main's versions of those files.
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.
Summary
tests/studio/test_model_picker_contracts.py::test_the_chat_picker_marks_ollama_targets_unloadable_by_the_apifails on main:Seen in "Repo tests (CPU, studio)" on the staging run for #17742, which is on current main.
Cause
#18253 lists and loads Ollama MLX-format tags. Their checkpoint directories sit under the same
ollama_linkstree, but the resolver does index them. SoapiAutoSwitchMayLoadand the override backfill (migrate-model-overrides.ts) now exclude only a materialized.gguflink,isMaterializedOllamaLink, instead of everyisOllamaLinkPath. That change is intended and covered bymodel-identity.test.ts. The contract test still pinned the old line.Fix
Test-only:
apiAutoSwitchMayLoadand in the backfill.isMaterializedOllamaLink's definition (isOllamaLinkPath(modelId) && !isOllamaMlxModelId(modelId)). A materialized.gguflink stays unloadable, which is what this test exists to guard.Verification
features/hub/lib/model-identity.tsisMaterializedOllamaLinkreduced back to every link (sabotage)ruff is clean.