Skip to content

Explain unsupported mlx-lm Inkling 2 Mini checkpoints - #385

Merged
samir-lms merged 3 commits into
mainfrom
bionic/inkling2-unsupported-format-error
Nov 25, 2026
Merged

samir-lms merged 3 commits into
mainfrom
bionic/inkling2-unsupported-format-error

Conversation

@samir-lms

@samir-lms samir-lms commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fail early with a clear error when loading Inkling 2 Mini checkpoints converted by mlx-lm, such as mlx-community/Inkling-2-Mini-4bit:

Unsupported Inkling 2 Mini format, try lmstudio-community/Inkling-2-Mini-MLX-4bit.

Why

mlx-lm saves Inkling 2 Mini tensors under model.language_model.*. We load vision models through mlx-vlm, which only reads the original checkpoint names and its own converted names. Loading one of these checkpoints failed with ValueError: Received 1559 parameters not in model: …, which doesn't tell users what's wrong or what to do. Upstream mlx-vlm has the same gap.

How

  • Add raise_if_unsupported_checkpoint in mlx_engine/utils/unsupported_checkpoints.py. It checks for model_type: inkling2_loop with model.language_model.* tensor names, read from the safetensors index or the file headers.
  • Call it in load_model before choosing a model kit. It's skipped for vocab-only loads.
  • Add tests for rejected and allowed layouts, and for failing before a model kit is created.

In-app Experience

image Screenshot 2026-11-24 at 8 14 21 PM

Review

Had no findings.

mlx-lm saves Inkling 2 Mini (inkling2_loop) with tensor names under
model.language_model., which mlx-vlm cannot read. Loading such a
checkpoint (e.g. mlx-community/Inkling-2-Mini-4bit) failed with a long
list of unrecognized parameters. Detect the layout before choosing a
model kit and fail with a short message pointing to a supported build.
@github-actions github-actions Bot added the CLA signed Indicates that all contributors have signed label Nov 25, 2026
@samir-lms
samir-lms marked this pull request as ready for review November 25, 2026 01:24
@samir-lms
samir-lms requested a review from will-lms November 25, 2026 01:24

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8272d1e832

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T01:27:14.014992Z 8272d1e Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@samir-lms
samir-lms merged commit 8142de9 into main Nov 25, 2026
2 checks passed
@samir-lms
samir-lms deleted the bionic/inkling2-unsupported-format-error branch November 25, 2026 01:54
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA signed Indicates that all contributors have signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants