transformers-to-mlx
Convert transformers language models to MLX for Apple Silicon
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install transformers-to-mlx?โผ
Run `npx skills add huggingface/transformers-to-mlx --all -g -y` in your terminal to install the skill globally, then reload your agent configuration.
How to convert a transformers model to MLX?โผ
Ask your agent to convert a specific architecture, such as 'convert the olmo_hybrid architecture to MLX'. The skill sets up an environment, ports the model code, and runs verification tests automatically.
Which model architectures does it support?โผ
It handles standard attention models plus MoE, MLA (DeepSeek style), hybrid SSM plus attention, GatedDeltaNet linear attention, and sliding window variants. Vision-language models are not supported yet.
How does it verify the converted model is correct?โผ
It compares generation output, logits, and per-layer hidden states between transformers and MLX, checks runtime dtype, and tests long-sequence generation to catch RoPE errors.
Does it support large models and multiple Macs?โผ
Yes. It supports quantize-first workflows for models too large for fp16, and distributed inference across multiple Apple Silicon machines using a hostfile.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core