nativ
Nativ is a native macOS app that lets you run AI models locally on Apple silicon, offering chat, model management, performance analytics, and an OpenAI/Anthropic-compatible API server.
该项目展示了在移动设备上实现 AI 图像生成的实际可行性,经过精细的内存优化、详细的性能基准测试,并注重隐私保护,同时采用 MIT 许可。
On-device, native image generation for iPhone — a SwiftUI app that runs text-to-image diffusion models entirely on the device with MLX Swift. No cloud, no accounts; your images never leave the phone.
The mobile sibling of Alis Studio (the Mac desktop app), sharing its design language — clay accent, cream surfaces, the pine mark, light + dark.
| Generate | Gallery |
|---|---|
Real images generated on an iPhone 16 Pro Max — SDXL-Turbo, 512², 4 steps.
[!IMPORTANT] An 8 GB-class iPhone is required. The app runs a multi-gigabyte diffusion model fully in memory; on devices with less than 8 GB of RAM it shows an "unsupported device" screen and will not generate (the OS would otherwise kill it mid-generation). This is enforced at runtime.
| Minimum | |
|---|---|
| Device RAM | 8 GB — iPhone 15 Pro, 15 Pro Max, 16, 16 Plus, 16 Pro, 16 Pro Max, or newer. Not supported: iPhone 15 / 15 Plus (6 GB), SE, and all older models. |
| iOS | 17.0 or later |
| Free storage | ~8 GB for SDXL-Turbo (≈7 GB weights + ≈0.3 GB fp16-fix VAE), or ~2.5 GB for SD-Turbo. Downloaded once, then cached. |
| Network | Required on first run to download model weights from Hugging Face. Keep the screen on — the download is several GB and the app is killed if it's suspended mid-download. |
| Hardware | A physical iPhone. MLX has no Metal backend in the iOS Simulator, so generation only runs on a real device. |
| Model | Config | Peak resident | Latency (512²) | Quality |
|---|---|---|---|---|
| SDXL-Turbo | 4-bit UNet · sdxl-vae-fp16-fix · 2–4 steps | ~4.25 GiB | ~10–13 s/img | highest (photorealistic) |
| SD-Turbo | 4-bit UNet · fp16 VAE · 4 steps | ~3.4 GiB | ~6 s/img | good, fastest |
Both stay well under the 8 GB device's jetsam limit at 512². The memory tuning came from on-device measurement: the VAE decode activation is the memory peak, so SDXL loads the fp16-stable VAE (the stock SDXL VAE NaNs in fp16); the UNet is 4-bit; and the MLX cache is cleared between generations to stop it accumulating.
On-device image generation for iPhone (MLX Swift) — the mobile sibling of Alis Studio
根据分类、Topic 和编程语言匹配的相似项目。
Nativ is a native macOS app that lets you run AI models locally on Apple silicon, offering chat, model management, performance analytics, and an OpenAI/Anthropic-compatible API server.

Hermex is a native SwiftUI iPhone app that lets you control a self-hosted Hermes AI agent directly from your phone, with no subscriptions, tracking, or third-party relay.
A macOS command-line tool that uses Apple's on-device speech APIs to transcribe prerecorded audio into plain text, JSON, JSONL, SRT, or WebVTT.