Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lmstudio deeplink for MLX models #963

Merged
merged 2 commits into from
Oct 10, 2024
Merged

Conversation

yagil
Copy link
Contributor

@yagil yagil commented Oct 9, 2024

(Not yet tested)

LM Studio 0.3.4 and newer supports MLX - reference

Copy link
Member

@Vaibhavs10 Vaibhavs10 left a comment

Choose a reason for hiding this comment

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

Niceee! Looking forward to testing this 😄

@@ -82,6 +82,10 @@ function isLlamaCppGgufModel(model: ModelData) {
return !!model.gguf?.context_length;
}

function isMlxModel(model: ModelData) {
return model.tags.includes("mlx");
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return model.tags.includes("mlx");
return model.library_name === "mlx";

or maybe like this @Vaibhavs10 if we want to be pedantic about it

Copy link
Member

Choose a reason for hiding this comment

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

actually nvm because https://huggingface.co/mlx-community/Llama-3.2-3B-Instruct-4bit for instance is not library=mlx

Copy link
Member

Choose a reason for hiding this comment

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

Yes! Just mlx tag would be more reliable 👍

@julien-c
Copy link
Member

CI failure is unrelated

Copy link
Member

@Vaibhavs10 Vaibhavs10 left a comment

Choose a reason for hiding this comment

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

Just tested with this: lmstudio://open_from_hf?model=mlx-community/Llama-3.2-1B-Instruct-4bit

Works perfectly! 🔥

@julien-c julien-c merged commit 6f22376 into huggingface:main Oct 10, 2024
3 of 4 checks passed
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