Twisterminigen: native Krea 2 Turbo studio on Swift and MLX for Mac
Moonshot AI
OpenAI
Alibaba/Qwen
Developer created Twisterminigen, a native SwiftUI app for local Krea 2 Turbo inference on Mac mini M4 (32 GB). The app runs entirely without Python inside, uses MLX, and generates 1024×1024 images in about 7 minutes. A critical bug in the text encoder (wrong RoPE positions for 5 tokens) caused 99.32% pixel change after fix, despite near-perfect cosine similarity tests.
Twisterminigen is a native macOS application built with Swift, SwiftUI, and MLX that runs Krea 2 Turbo locally on a Mac mini M4 with 32 GB unified memory. It has no Python inside, no cloud inference, and requires users to accept the Krea 2 license before use. The pipeline uses Qwen3-VL-4B as text encoder, a 12.9B DiT, and Qwen-Image VAE. A subtle bug in the text encoder gave wrong positional indices to five tokens, which caused 99.32% pixel change after correction, even though cosine similarity tests looked perfect. The app supports multiple themes (Dark, Light, Glass), Queue, Presets, LoRA import, Regional Prompts, and immutable recipes that store all generation parameters. The developer used GPT‑5.6 Sol (Codex) to assist with most code changes. Weights occupy 31.18 GB, but memory is managed by sequential loading: Qwen, then DiT, then VAE. Best Fidelity q8 uses ~4.1 GiB more RAM than Default mixed-4/8. Character Sheet and Regional prompts produce coherent results via shared inference. The app is released as source-only under MIT license; model weights are obtained separately.
- Сокращения
- MLX = Machine Learning Extensions — расширения для машинного обучения
- VAE = Variational Autoencoder — вариационный автоэнкодер
- DiT = Diffusion Transformer — диффузионный трансформер
- CFG = Classifier-Free Guidance — бесклассификаторное управление
- LoRA = Low-Rank Adaptation — низкоранговая адаптация
- RoPE = Rotary Position Embedding — вращательное позиционное вложение
- SHA-256 = Secure Hash Algorithm 256-bit — алгоритм безопасного хеширования 256 бит
- MIT = Massachusetts Institute of Technology license — лицензия MIT
- PNG = Portable Network Graphics — портативная сетевая графика
Source: Habr — хаб ИИ —
original
