Skip to content

Detect MLX models installed by LM Studio. - #21

Merged
Lazarus-931 merged 3 commits into
mainfrom
feature/detect-external-models
Jul 21, 2026
Merged

Detect MLX models installed by LM Studio.#21
Lazarus-931 merged 3 commits into
mainfrom
feature/detect-external-models

Conversation

@Lazarus-931

Copy link
Copy Markdown
Collaborator

Scans ~/.lmstudio/models (and the legacy ~/.cache/lm-studio/models) for MLX-format model directories, lists them on the Models page with an LM Studio badge, and makes them selectable in chat by loading the model from its directory path. External models are never deleted by Nativ.

Scans ~/.lmstudio/models (and the legacy ~/.cache/lm-studio/models) for
MLX-format model directories, lists them on the Models page with an
LM Studio badge, and makes them selectable in chat by loading the model
from its directory path. External models are never deleted by Nativ.
@Lazarus-931
Lazarus-931 requested a review from Blaizzy July 21, 2026 15:08

@lucasnewman lucasnewman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@Blaizzy Blaizzy left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Why don't we allow users to pass custom paths that we save to DB instead of hard coding new paths to services we don't own or are sure will remain in the same directory.

This approach is more robust and will allow users to even pass external SSDs as model sources.

And we keep the HF on by default.

Resulting in HF cache + custom paths.

Per review: instead of scanning third-party app directories we don't
own, users add custom model folders (external SSDs, LM Studio's models
directory, any MLX folder) from a Sources menu on the Models page.
Folders persist in settings, are scanned alongside the default Hugging
Face cache, and their models appear everywhere with an External badge.
Folders that are themselves a model directory, or that nest models one
or two levels deep, are all recognized.
@Blaizzy

Blaizzy commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Perfect, could you share a screenshot of how it looks like?

@Lazarus-931

Copy link
Copy Markdown
Collaborator Author

tried but don't have enough mem to download full xcode for build, if we merge #20, gh actions can build and i can download to test any prs we make

@Blaizzy Blaizzy left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

LGTM, thanks!

@Blaizzy

Blaizzy commented Jul 21, 2026

Copy link
Copy Markdown
Owner

No worries, great work!

merging it 🚀

1 similar comment
@Blaizzy

Blaizzy commented Jul 21, 2026

Copy link
Copy Markdown
Owner

No worries, great work!

merging it 🚀

@Blaizzy

Blaizzy commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Please fix conflicts and we can merge

@Lazarus-931
Lazarus-931 merged commit 96d610b into main Jul 21, 2026
@Blaizzy
Blaizzy deleted the feature/detect-external-models branch July 21, 2026 21:46
Lazarus-931 added a commit that referenced this pull request Jul 23, 2026
- gated-hf-download and custom-server-port are shipped (PRs #49, #19/#51), not planned/experimental
- reflect merged extras: LM Studio import (#21), chat image paste/screenshot (#39), Developer server port + HF token
- image-gen fit-estimate task done via PR #47; note #46 remaining scope
- add open issue #57 (Homebrew Cask)
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.

3 participants