Skip to content

Conversation

@Vaibhavs10
Copy link
Contributor

Simple PR to put pip install instructions in comments
and hf_transfer -> hf_xet for MLX (since the models have moved over to xet backend.

re: MLX VLM - currently there is a broken comment at the top here: https://huggingface.co/mlx-community/gemma-3-27b-it-qat-4bit?library=mlx

const mlx_unknown = (model: ModelData): string[] => [
`# Download the model from the Hub
pip install huggingface_hub hf_transfer
pip install huggingface_hub[hf_xet]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

cc: @jsulz - should we put any other env variables here? IIRC no, but wondering if you'd recommend any!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

put this here: 3c5ab82

pip install huggingface_hub[hf_xet]
export HF_HUB_ENABLE_HF_TRANSFER=1
export HF_XET_HIGH_PERFORMANCE=1
Copy link
Member

Choose a reason for hiding this comment

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

I'd suggest we remove this to make everything simpler. In my experience it works fast enough without the flag.

const mlxlm = (model: ModelData): string[] => [
`# Make sure mlx-lm is installed
pip install --upgrade mlx-lm
# pip install --upgrade mlx-lm
Copy link
Member

Choose a reason for hiding this comment

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

ah good call, no longer a cli

Copy link
Contributor Author

@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.

failing tests look unrelated

@Vaibhavs10 Vaibhavs10 merged commit e55e687 into main May 20, 2025
4 of 5 checks passed
@Vaibhavs10 Vaibhavs10 deleted the vb/fix-mlx-vlm-snippet branch May 20, 2025 15:46
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