Move two source pins to where recent main commits left their targets by lonexreb · Pull Request #9958 · unslothai/unsloth · GitHub
Skip to content

Move two source pins to where recent main commits left their targets - #9958

Closed
lonexreb wants to merge 1 commit into
unslothai:mainfrom
lonexreb:fix/source-pin-drift
Closed

lonexreb wants to merge 1 commit into
unslothai:mainfrom
lonexreb:fix/source-pin-drift

Conversation

@lonexreb

Copy link
Copy Markdown
Contributor

What

Last two of the Backend CI red families on main (inventory in #9949; siblings #9956, #9957). Both are source-inspection tests whose guarded wiring is intact — the pins just point at pre-refactor spellings:

  • test_parallel_slots_per_load.py::test_route_resolves_slots_once_before_dedupe_guard_and_load — pinned llama_backend.load_model, but _load_model_impl loads through its backend-dispatch local (backend.load_model) since the MLX split in studio: serve installed mlx models through the openai-compatible api #8768, so .index() throws ValueError: substring not found. The ordering chain the test proves (resolve < fast-dedupe < intent < resolved-dedupe < training-guard < load) is unchanged, verified by position against the current source.
  • test_video_attachment_part.py::test_video_joins_the_projector_requirement_before_switching — scanned a 400-char window after _needs_image = bool(_pre_parsed[2]) for the audio/video modality votes; explanatory comments and the widened _needs_image derivation pushed the votes to ~430+ chars. Widened to 600; both votes are exactly where the test expects, feeding the same _needs_vision.

Test-side only.

Verification

Both files green locally: 41 passed, 1 skipped (was 2 failed). Ruff clean.

Both are inspection tests red on main with their guarded wiring intact:

- test_parallel_slots_per_load pinned llama_backend.load_model, but
  _load_model_impl loads through its backend-dispatch local since the
  MLX split, so the ordering chain never found its last link. Pin
  backend.load_model; the resolve < dedupe < guard < load ordering it
  proves is unchanged.
- test_video_attachment_part scanned a 400-char window for the video
  and audio modality votes; added comments and the widened _needs_image
  derivation pushed them past the window. Widen to 600 — the votes are
  still exactly there.
@lonexreb

Copy link
Copy Markdown
Contributor Author

@lonexreb lonexreb closed this Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant