---
title: "The PR you would have opened yourself"
description: "Hugging Face released a Claude Code Skill plus a separate non-agentic test harness for porting language models from transformers to mlx-lm, so new architectures become available on MLX shortly after they land in transformers."
url: "https://swe.quest/articles/the-pr-you-would-have-opened-yourself-8befd4446b17e1d6"
canonical: "https://huggingface.co/blog/transformers-to-mlx"
source: "Hugging Face"
published: "2026-04-16"
difficulty: "medium"
kind: "Case study"
reading_minutes: 11
tags: ["ai-coding","open-source","llms","testing","code-review"]
---

# The PR you would have opened yourself

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-04-16, 11 min read, Case study. Original: [https://huggingface.co/blog/transformers-to-mlx](https://huggingface.co/blog/transformers-to-mlx)

## Summary

Hugging Face released a Claude Code Skill plus a separate non-agentic test harness for porting language models from transformers to mlx-lm, so new architectures become available on MLX shortly after they land in transformers. The Skill handles Hub discovery, config diffing across variants, dtype inference from safetensors headers, RoPE checks, float32 contamination detection and per-layer numerical comparisons. It produces PRs that follow mlx-lm conventions and disclose agent assistance. The harness gives reviewers reproducible results that don't depend on the LLM's own claims. The post argues that agent-generated PRs are overwhelming maintainers, and that contributors must own the code and engage with review themselves rather than relaying feedback through an agent.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Code review](https://swe.quest/tags/code-review.md) (Engineering practices)

## Prerequisites

- transformer model architectures
- Hugging Face transformers
- coding agents ([easy posts on AI agents](https://swe.quest/tags/ai-agents.md?difficulty=easy))

## Keywords

MLX, mlx-lm, transformers, Claude Code, Skills, RoPE, safetensors

## Related posts

- [Is it agentic enough? Benchmarking open models on your own tooling](https://swe.quest/articles/is-it-agentic-enough-benchmarking-open-models-on-your-own-tooling-0278c737719b3002.md): Hugging Face · 2026-06-18 · Medium · 15 min read · Evaluation, AI agents, AI for coding, Developer tools, API design
  A benchmarking harness measures not just whether a coding agent solves a task with a library, but how much work it took: turns, tokens, time, errors, and behavior "markers" such as whether it used a CLI or the pipeline API.
- [Detecting malicious pull requests at scale with LLMs](https://swe.quest/articles/detecting-malicious-pull-requests-at-scale-with-llms-18b7d45442154d44.md): Datadog Engineering · 2025-10-21 · Medium · 12 min read · Supply chain security, Threat detection, LLMs, Code review, Evaluation
  Datadog's SDLC Security team built BewAIre, an LLM-based reviewer that classifies the diff of every merged PR (nearly 10,000 a week) as benign or malicious, with a written rationale emitted as a security signal for real-time triage.
- [We Got Claude to Build CUDA Kernels and teach open models!](https://swe.quest/articles/we-got-claude-to-build-cuda-kernels-and-teach-open-models-729005bab002af9e.md): Hugging Face · 2026-01-28 · Medium · 13 min read · AI agents, AI for coding, Evaluation, LLMs
  upskill is a CLI that uses a strong teacher model (Claude Opus 4.5) to turn an agent trace into a portable Agent Skill (SKILL.md), auto-generates test cases, and measures skill lift on cheaper or local student models with and without the skill.
- [Agentic Engineering at Zalando: a snapshot](https://swe.quest/articles/agentic-engineering-at-zalando-a-snapshot-229726b7b6035a8d.md): Zalando Engineering · 2026-08-13 · Medium · 16 min read · AI for coding, AI agents, LLMs, Code review, Developer productivity
  Zalando's 2.5 years of agentic engineering across 250+ teams rest on a LiteLLM-based proxy fronting OpenAI, Bedrock and Vertex.
- [Open-source LLMs as LangChain Agents](https://swe.quest/articles/open-source-llms-as-langchain-agents-e2163a289958a319.md): Hugging Face · 2024-01-24 · Medium · 10 min read · AI agents, LLMs, Evaluation, Python
  Open-source LLMs can now serve as reasoning engines for tool-using ReAct agents, with Mixtral-8x7B outperforming GPT-3.5 out of the box on a mixed benchmark drawn from HotpotQA, GSM8K and GAIA, graded by GPT-4-as-a-judge.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
