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

Add AutoModel support #193

Open
not-lain opened this issue Jan 30, 2025 · 1 comment
Open

Add AutoModel support #193

not-lain opened this issue Jan 30, 2025 · 1 comment

Comments

@not-lain
Copy link

About this feature

I think it would be highly useful to add AutoModel support to the current library.
Something that goes like

from mlx_vlm import AutoModel 

model = AutoModel.from_pretrained("hf_repo_or_path")

Auxiliary info

I was able to get this feature running on pxia by checking the model_info first (specifically the repo tag which is stored in the readme file) then calling the appropriate model architecture

I'm not currently in possession of any mac resources so i can't work on this, but feel free to reach out if you have any further questions.

@not-lain
Copy link
Author

additionally if you want to make the file download more optimized i can share this interesting resource HF's PyTorchModelHubMixin as well

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

No branches or pull requests

1 participant