transformers-to-mlx
Converts Hugging Face transformers language models to MLX format for inference on Apple Silicon.
Identity proven by GitHub's verified organisation badge (huggingface)
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode
- License
- No license stated
- Pin
- 1800e73pinned Oct 9, 2026
- Context cost
- about 6,800 tokenswhen the skill loads
- GitHub stars
- 51on huggingface/transformers-to-mlx
- Scripts
- 7 scripts
What it does
“Convert Hugging Face transformers language models to MLX format for Apple Silicon inference. Use when asked to convert a model from transformers to MLX, port a model to MLX, create an MLX implementation of a model, or test/validate an MLX model conversion. Triggers include mentions of "convert to MLX", "MLX implementation", "port to MLX", "mlx-lm", or requests involving both transformers and MLX frameworks.”
Generated summary from the skill's own text
Converts Hugging Face transformers language models to MLX format for inference on Apple Silicon. The skill analyzes source model architecture, creates an MLX implementation, validates numerical correctness through generation and layer-by-layer comparison, and submits a pull request to mlx-lm with quantized variants.
When to use it
- User requests converting a transformers model to MLX format
- Porting a language model to run on Apple Silicon devices
- Creating an MLX implementation of a transformers architecture
- Validating or testing an existing MLX model conversion
When not to
- The model is not a language model or is vision-only
- Model is already in MLX format or native quantized weights
- User needs to run inference immediately without implementation work
Install
No license stated: install from the publisher's repository, and ask the author before you reuse or share it.
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add huggingface/transformers-to-mlx --skill transformers-to-mlxInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install huggingface/transformers-to-mlx transformers-to-mlx@1800e733dc99edf6b33c4c631c813e880dc9cb8fInstalls the commit we checked (1800e73).
Copy by hand
Download the folder at 1800e73 and put it in .claude/skills/transformers-to-mlx for Claude Code and in .agents/skills/transformers-to-mlx for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Claude Code plugin
/plugin install huggingface-skills@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "transformers-to-mlx" by Hugging Face. Source, pinned to commit 1800e733dc99edf6b33c4c631c813e880dc9cb8f: https://github.com/huggingface/transformers-to-mlx/tree/1800e733dc99edf6b33c4c631c813e880dc9cb8f/skills/transformers-to-mlx 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/transformers-to-mlx/ for Claude Code and .agents/skills/transformers-to-mlx/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Its license is restricted or not stated. Show me the license terms from the repository before you copy anything. Listing and checks: https://www.agentnative.dev/skills/hugging-face/transformers-to-mlx
SKILL.md at the pin
The license of this skill does not let us show its files here.
Files
- SKILL.md28 KB · 19de705e71fa
- references/
- code-selection-simplification.md7.6 KB · 417b1b130c98
- conversion-and-quantization.md3.1 KB · adf75f42b3ed
- distributed-inference.md6.1 KB · 8da09050895c
- github-pr-workflow.md5.2 KB · 9d85e88e99d1
- hybrid-and-ssm-models.md6.1 KB · bb3bec403b52
- large-models.md6.0 KB · e64bb4f849f7
- mla.md5.7 KB · 985063794c61
- mlx-common-infrastructure.md3.3 KB · 19905c23a746
- model-discovery-and-config-analysis.md6.5 KB · 16654b4652ed
- weight-sanitization.md8.2 KB · de48977702e0
- scripts/
- check_dtype.py866 B · 3b54770bb238
- compare_generation.py4.9 KB · 9d50c7c12565
- compare_layers.py9.4 KB · bfcd8dfdd349
- compare_predictions.py5.6 KB · c149fd83d348
- debug_mlx.py3.5 KB · 62d67d8975da
- debug_transformers.py4.0 KB · 1f7dd051f4ff
- resolve_dtype.py3.5 KB · 3e6852aba14f
18 files, 117 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at 1800e73More from Hugging Face
hf-cloud-aws-context-discovery
This skill reads the user's local AWS configuration to discover their active profile, region, account ID, and caller identity before any AWS work begins.
Claude Code, Codex, Cursor +4 · about 830 tokens · pinned 7 days ago
hf-cloud-python-env-setup
Sets up an isolated Python environment for SageMaker and AWS work with the correct Python version (3.10, 3.11, or 3.12) and current boto3 and awscli.
Contains scripts
Claude Code, Codex, Cursor +3 · about 1.5K tokens · pinned 7 days ago
hf-cloud-sagemaker-deployment-planner
This skill helps users plan and execute deployments of machine learning models to Amazon SageMaker by gathering requirements, selecting appropriate deployment…
Claude Code, Codex, Cursor +4 · about 1.9K tokens · pinned 7 days ago
hf-cloud-sagemaker-iam-preflight
This skill validates or creates an AWS IAM execution role before deploying SageMaker endpoints, training jobs, or models.
Contains scripts
Claude Code, Codex, Cursor +3 · about 1.6K tokens · pinned 7 days ago
hf-cloud-sagemaker-production-defaults
Deploys SageMaker endpoints with production defaults: autoscaling based on traffic, CloudWatch alarms for latency and errors, and consistent tagging.
Contains scripts
Claude Code, Codex, Cursor +3 · about 6.7K tokens · pinned 7 days ago
hf-cloud-serving-image-selection
This skill helps select the correct SageMaker serving container image for model deployments and retrieves its current URI from AWS's Deep Learning Containers…
Contains scripts
Claude Code, Codex, Cursor +3 · about 4.3K tokens · pinned 7 days ago
Related in Coding workflow
maintainer-review
This skill helps maintainers assess GitHub issues and PRs by evaluating whether claimed problems are real, whether existing features already solve them, and…
by OpenAIOfficial publisher
Claude Code, Codex, Cursor +4 · about 8.9K tokens · pinned 7 days ago
huggingface-tool-builder
This skill builds reusable command-line scripts and utilities that call the Hugging Face API to fetch, enrich, or process model and dataset metadata.
by Hugging FaceOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 1.4K tokens · pinned 7 days ago
maintainer-review
Evaluates GitHub issues and PRs through a systematic desk review to assess demonstrated need, existing workarounds, design correctness, and maintainer impact.
by OpenAIOfficial publisher
Claude Code, Codex, Cursor +4 · about 8.3K tokens · pinned 7 days ago
nemo-automodel-model-onboarding
This skill guides adding or modifying model architecture support in NeMo AutoModel, covering discovery of model type from config, implementation of custom…
by NVIDIAOfficial publisher
Claude Code, Codex, Cursor +3 · about 5.6K tokens · pinned 7 days ago
dd-file-issue
This skill helps file GitHub issues to the DataDog/pup repository for bugs, feature requests, and documentation problems related to the pup CLI, agents, and…
by DatadogOfficial publisher
Claude Code, Codex, Cursor +3 · about 2.2K tokens · pinned 7 days ago
cpu-kernels
This skill guides agents in writing and optimizing C++ CPU kernels with AVX2 and AVX512 intrinsics for x86 processors, targeting the Hugging Face kernels…
by Hugging FaceOfficial publisher
Contains scripts
Claude Code · about 6.5K tokens · pinned 7 days ago
Open roles at Hugging Face
3 open roles on the jobs board
- Senior Open-Source Python Engineer, ML Developer Tools - US Remote
United States (Remote)
- Open-Source Machine Learning Engineer - EMEA Remote
Paris, Île-de-France, France (Remote)
- Senior Machine Learning Engineer, Voice Agents - EMEA Remote
Paris, Île-de-France, France (Remote)