Transform your text into stunning images with ease using Diffusers for Mac, a native app powered by state-of-the-art diffusion models. It leverages a bouquet of SoTA Text-to-Image models contributed by the community to the Hugging Face Hub, and converted to Core ML for blazingly fast performance. Our latest version, 1.1, is now available on the Mac App Store with significant performance upgrades and user-friendly interface tweaks. It’s a solid foundation for future feature updates. Plus, the app is fully open source with a permissive license, so you can build on it too! Check out our GitHub repository at https://github.com/huggingface/swift-coreml-diffusers for more information.
What exactly is 🧨Diffusers for Mac anyway?
The Diffusers app (App Store, source code) is the Mac counterpart to our 🧨diffusers
library. This library is written in Python with PyTorch, and uses a modular design to train and run diffusion models. It supports many different models and tasks, and is highly configurable and well optimized. It runs on Mac, too, using PyTorch’s mps
accelerator, which is an alternative to cuda
on Apple Silicon.
Why would you want to run a native Mac app then? There are many reasons:
- It uses Core ML models, instead of the original PyTorch ones. This is important because they allow for additional optimizations relevant to the specifics of Apple hardware, and because Core ML models can run on all the compute devices in your system: the CPU, the GPU and the Neural Engine, at once – the Core ML framework will decide what portions of your model to run on each device to make it as fast as possible. PyTorch’s
mps
device cannot use the Neural Engine. - It’s a Mac app! We try to follow Apple’s design language and guidelines so it feels at home on your Mac. No need to use the command line, create virtual environments or fix dependencies.
- It’s local and private. You don’t need credits for online services and won’t experience long queues – just generate all the images you want and use them for fun or work. Privacy is guaranteed: your prompts and images are yours to use, and will never leave your computer (unless you choose to share them).
- It’s open source, and it uses Swift, Swift UI and the latest languages and technologies for Mac and iOS development. If you are