Hugging FacePedro Cuenca, Christopher Fleetwood, Mattt, Vaibhav SrivastavAnnouncement
Swift Transformers Reaches 1.0 – and Looks to the Future
Summary
swift-transformers has released version 1.0 to provide a stable foundation for running local models on Apple Silicon platforms. The library supplies components missing from Core ML and MLX, focusing heavily on tokenization, chat templates, and Hugging Face Hub integration. In this major release, Tokenizers and Hub become standalone top-level modules, enabling developers to import only the components they require. The update also integrates an updated swift-jinja library for faster template processing, adopts Modern Core ML stateful models and MLTensor APIs, removes unnecessary CLI dependencies, and adds full Swift 6 support. Future development will prioritize deeper integration with MLX frameworks and agentic workflows like MCP.
Context
Developers integrating local LLMs on Apple Silicon platforms require functionality not included in Core ML or MLX alone, such as tokenization, chat templates, and downloading models from the Hugging Face Hub. As community usage matured and tools like MLX emerged, the library needed a stable release that aligns with these patterns.
Approach / What changed
The maintainers published swift-transformers 1.0, separating Tokenizers and Hub into top-level modules so downstream projects can import them independently. The update integrates a rewritten swift-jinja package for faster template execution, adopts modern Core ML APIs with stateful models and MLTensor to replace custom tensor code, adds Swift 6 support, and removes CLI targets and swift-argument-parser dependencies.
Takeaways
Tokenizers and Hub are now top-level modules, allowing developers to import them independently rather than bringing in the entire swift-transformers package.
The release integrates an updated swift-jinja library for faster chat template execution and adopts modern Core ML stateful models and MLTensor APIs for KV-caching.
Version 1.0 brings breaking API changes for Core ML modules while eliminating the swift-argument-parser dependency to avoid downstream dependency conflicts.
Source and freshness
- Source
- huggingface.co
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.