M
apple-aiml-research/ml-stable-diffusion★ 17,956 · Python
Core ML conversion and Swift inference for on-device Stable Diffusion on Apple Silicon
MIT · Commercial Friendly1.1.1
Side-by-side 2026 comparison in Voice, Vision & Video: lucidrains/vit-pytorch leads both total GitHub adoption (★ 25.6k) and recent 7-day momentum. Licensing: MIT · Commercial Friendly vs MIT · Commercial Friendly.
Core ML conversion and Swift inference for on-device Stable Diffusion on Apple Silicon
PyTorch Vision Transformers for classification, pretraining, and architecture experiments
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | apple-aiml-research/ml-stable-diffusion | lucidrains/vit-pytorch |
|---|---|---|
| Total GitHub Stars | ★ 17,956 | ★ 25,603 |
| 24h / 7d Velocity | +0 / +1 | +1 / +13 |
| 7-Day Trend Curve | ||
| Engineering Health | B+ · 70/100 | A+ · 89/100 |
| Deployment Signals | Local AI · CLI | CLI |
| Primary Language | Python | Python |
| Commercial License | MIT · Commercial Friendly | MIT · Commercial Friendly |
| Activity | Updated 2mo ago | Updated 8d ago |
| Latest Release | 1.1.1 | 1.17.8 |
| Best For | Apple-platform teams shipping local image generation in a Swift app or testing Core ML model bundles from the CLI on target devices | PyTorch teams comparing ViT architectures, experimenting with mixed-resolution batching, or integrating masked pretraining or distillation into an existing training loop |
StableDiffusion and StableDiffusionSample consume bundled resources on the Swift side.--sd3 mode.--latent-h 96 --latent-w 96 targets 768×768; SPLIT_EINSUM is recommended for CPU plus Neural Engine, while V2 is discouraged for XL compilation.conda create -n coreml_stable_diffusion python=3.8 -y conda activate coreml_stable_diffusion cd /path/to/cloned/ml-stable-diffusion/repository pip install -e .
ViT supports CLS or mean pooling; SimpleViT uses 2D sinusoidal positions, global average pooling, and a linear head.vit_pytorch.na_vit_nested_tensor.NaViT reduces explicit masking and padding and specifies PyTorch 2.5.SimMIM projects masked-token features into pixel space and computes L1 reconstruction loss.$ pip install vit-pytorchSignal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy