AI Pulse by Inblix

Swift Transformers Hits 1.0 With 100x Faster Jinja, Pivots to MLX and Agents

Hugging Face Blog · Sep 26, 2025 · 2 min read · Read original article →

Curated by the Inblix editorial team


Featured image for article: Swift Transformers Hits 1.0 With 100x Faster Jinja, Pivots to MLX and Agents

Two years after its quiet launch, the Swift Transformers library just hit version 1.0—and the team is signaling a major strategic shift. If you’re an Apple developer building apps with on-device AI, the library’s original pitch was about filling the gaps Core ML left behind: tokenization, model download, and inference wrappers. That foundation is now stable. What’s changing is where the energy goes next.

Lead maintainer notes that when the project started, MLX and chat templates didn’t exist. The community’s actual usage has since made the priorities clear. Most developers aren’t reaching for the full Core ML inference stack; they’re importing the Tokenizers and Hub modules and pairing them with other tools. Apple’s own mlx-swift-examples project does exactly this, using swift-transformers for tokenization and downloading while leaning on MLX for model execution. WhisperKit, the heavily optimized speech recognition framework from Argmax, relies on the same two modules.

The 1.0 release formalizes this reality by splitting Tokenizers and Hub into top-level packages you can import independently. The headline feature is a rebuilt Swift Jinja library, created in collaboration with John Mai. The team claims the new version is “a couple orders of magnitude faster” than its predecessor—critical since chat templates have grown dramatically more complex as models adopt tool-calling and agentic patterns. Apple contributors also helped modernize the Core ML backend, adopting stateful models and expressive MLTensor APIs that eliminated thousands of lines of custom math code.

Looking ahead, the roadmap is explicit: a heavy focus on MLX and agentic use cases. That’s less a pivot than an acknowledgment of how the ecosystem matured. Core ML conversion guides will remain, but the library’s future isn’t in being a one-stop inference shop. It’s in providing the pipeline pieces—tokenizers that handle chat templates, tool schemas, and agentic flows—that every Apple Silicon app needs regardless of which runtime sits underneath. Swift 6 support is baked in, tests are stronger, and the API surface has been trimmed. For developers already using Tokenizers or Hub, the breaking changes should be minimal. For those on the Core ML components, a migration guide is coming.

💡 Key Takeaways

  1. The Swift Transformers library is splitting into modular, top-level packages, letting developers import only the tokenization or model-download modules they actually need.
  2. A rebuilt Jinja templating engine runs orders of magnitude faster, a critical upgrade as chat templates grow more complex to support tool-calling and agentic AI.
  3. The roadmap explicitly deprioritizes Core ML inference wrappers in favor of deeper integration with MLX and features for agentic use cases, reflecting how Apple's own tools now consume the library.
  4. Apple contributors helped modernize the Core ML backend, adopting stateful models and native MLTensor APIs that removed thousands of lines of custom tensor operation code.

Keep reading: See related articles below for more coverage on this topic.

Get smarter about AI

The sharpest AI news, curated daily. Delivered free to your inbox.

Learn more

Glossary terms

← Back to all articles