awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
apple avatar

apple/ml-stable-diffusion

0
View on GitHub↗
17,901 stars·1,057 forks·Python·MIT·29 views

Ml Stable Diffusion

This project is a framework for running Stable Diffusion image generation models on Apple Silicon using Core ML hardware acceleration. It provides a local generative AI pipeline for producing images from text prompts using Swift and Python without relying on external cloud APIs.

The system includes a model converter to transform deep learning checkpoints into Core ML formats and a model optimizer to quantize weights and activations. It features a ControlNet integration layer to guide image generation using external signals such as edge and depth maps.

Capabilities cover text-to-image generation with multilingual text encoding and image safety verification. Performance is managed through weight compression, palettization, and model splitting to fit within hardware memory constraints, while compute planning and quantization are used to reduce prediction latency.

The implementation provides native interfaces for both Python and Swift to integrate generative pipelines into macOS and iOS applications.

Features

  • Text-to-Image Generators - Provides a local generative AI pipeline for producing high-resolution images from text prompts on Apple Silicon.
  • Image Generation - Produces high-quality images from text prompts using local hardware acceleration on Apple Silicon.
  • Apple Hardware Acceleration - Offloads image generation inference to Apple's neural engine and hardware-optimized formats for high efficiency.
  • Diffusion Models - Implements Stable Diffusion image generation optimized for Apple Silicon via Core ML.
  • Guided Generation Layers - Implements a ControlNet integration layer to guide image generation using edge and depth maps.
  • Composition-Controlled Generators - Guides and constrains visual output using ControlNet with edge and depth maps.
  • Local AI Runtimes - Provides a complete local pipeline for text-to-image generation without cloud API dependencies.
  • Model Conversion Pipelines - Transforms deep learning checkpoints into specialized Core ML formats for optimized execution on Apple hardware.
  • Model Optimization Suites - Provides a suite of tools for quantizing weights and activations to reduce NPU latency.
  • On-Device Inference Engines - Optimizes on-device inference speed and memory usage via weight and activation compression.
  • Weight Quantization - Reduces model size using palettization and quantization to lower memory usage and improve mobile latency.
  • AI Application Frameworks - Provides dedicated libraries for integrating generative image pipelines into native macOS and iOS applications.
  • Sequential Model Splitting - Divides large generative models into sequential chunks to operate within Apple hardware memory constraints.
  • Hardware Compute Planning - Estimates execution costs and identifies target hardware devices for specific model operations to predict performance.
  • Inference Latency Optimizers - Configures specific hardware compute units and optimization hints to lower response times for model predictions.
  • Hardware Memory Splitting - Divides large models into smaller chunks to fit within Apple Silicon hardware memory limits.
  • Hardware Acceleration - Estimates execution costs and assigns operations to neural processing units for maximum performance.
  • Model Format Converters - Converts deep learning checkpoints into Core ML formats for deployment on Mac and iOS.
  • Model Loading Utilities - Loads pre-compiled model data and memory-mapped weights to decrease startup time for large generative models.
  • Diffusion Process Conditioners - Implements mechanisms to constrain and direct the visual output of the diffusion process using additional input models.
  • Activation Quantization - Lowers memory usage by estimating activation ranges from calibration data to apply precision reduction.
  • Quantized Inference Runtimes - Implements low-latency inference by utilizing lower precision formats for weights and activations.
  • Palettization - Reduces model memory footprint by mapping weights to a smaller set of representative values.
  • Multilingual Encodings - Uses system-level textual embeddings and projection layers to support image generation from diverse languages and scripts.
  • Dynamic Memory Allocation - Dynamically loads and unloads model resources during the generation process to reduce the system memory footprint.
  • Model Safety Filters - Includes a dedicated safety model to verify that generated images adhere to content safety guidelines.
  • Generative AI and LLM Tools - Optimized inference for diffusion models on Apple silicon hardware.

Star history

Star history chart for apple/ml-stable-diffusionStar history chart for apple/ml-stable-diffusion

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does apple/ml-stable-diffusion do?

This project is a framework for running Stable Diffusion image generation models on Apple Silicon using Core ML hardware acceleration. It provides a local generative AI pipeline for producing images from text prompts using Swift and Python without relying on external cloud APIs.

What are the main features of apple/ml-stable-diffusion?

The main features of apple/ml-stable-diffusion are: Text-to-Image Generators, Image Generation, Apple Hardware Acceleration, Diffusion Models, Guided Generation Layers, Composition-Controlled Generators, Local AI Runtimes, Model Conversion Pipelines.

What are some open-source alternatives to apple/ml-stable-diffusion?

Open-source alternatives to apple/ml-stable-diffusion include: sgl-project/sglang — Sglang is a high-performance inference engine and serving system designed for large language and multimodal models. It… pytorch/executorch — ExecuTorch is a lightweight C++ runtime for deploying PyTorch models on mobile, embedded, and edge hardware. It… alibaba/mnn — MNN is a high-performance inference engine and framework designed for on-device machine learning. It provides a… black-forest-labs/flux — Flux is a diffusion model inference engine designed for text-to-image generation and image-to-image manipulation. It… qwenlm/qwen-image — Qwen-Image is a text-to-image model and large language model image generation framework. It functions as an AI image… stability-ai/generative-models — This is a framework for training and sampling diffusion models to generate high-fidelity images, video, and 4D assets.…

Open-source alternatives to Ml Stable Diffusion

Similar open-source projects, ranked by how many features they share with Ml Stable Diffusion.
  • sgl-project/sglangsgl-project avatar

    sgl-project/sglang

    29,079View on GitHub↗

    Sglang is a high-performance inference engine and serving system designed for large language and multimodal models. It provides a programmable interface for orchestrating complex generation workflows, enabling developers to coordinate multi-turn dialogues, tool invocations, and reasoning chains through a domain-specific language. The platform is built to support production-scale deployments, offering an OpenAI-compatible API that allows for integration with existing application ecosystems. The system distinguishes itself through a disaggregated architecture that separates compute-intensive pr

    Pythonattentionblackwellcuda
    View on GitHub↗29,079
  • pytorch/executorchpytorch avatar

    pytorch/executorch

    4,296View on GitHub↗

    ExecuTorch is a lightweight C++ runtime for deploying PyTorch models on mobile, embedded, and edge hardware. It provides an ahead-of-time compilation pipeline that exports, quantizes, and lowers model graphs into compact serialized programs, then executes them through a minimal runtime with hardware acceleration and on-device large language model inference capabilities. The project distinguishes itself through a hardware accelerator delegate system that partitions model subgraphs and offloads computation to specialized backends including NPUs, GPUs, and DSPs from Apple, Arm, Intel, MediaTek,

    Pythondeep-learningembeddedgpu
    View on GitHub↗4,296
  • alibaba/mnnalibaba avatar

    alibaba/MNN

    14,242View on GitHub↗

    MNN is a high-performance inference engine and framework designed for on-device machine learning. It provides a comprehensive environment for executing, optimizing, and deploying neural network models directly on mobile and resource-constrained edge devices. The framework distinguishes itself through a robust model optimization toolkit that supports quantization, compression, and structural graph manipulation to minimize memory footprint and maximize execution speed. It features a modular architecture that abstracts hardware-specific backends, allowing models to run efficiently across diverse

    C++armconvolutiondeep-learning
    View on GitHub↗14,242
  • black-forest-labs/fluxblack-forest-labs avatar

    black-forest-labs/flux

    25,637View on GitHub↗

    Flux is a diffusion model inference engine designed for text-to-image generation and image-to-image manipulation. It provides a system for executing open-weight models to transform natural language descriptions into visual imagery or to modify existing images. The project distinguishes itself through a flow-matching framework for image generation and a structural image controller. This controller allows for guided synthesis by using depth maps and Canny edge detection to constrain the geometry and composition of the output. The toolkit covers a broad range of image editing capabilities, incl

    Python
    View on GitHub↗25,637
  • See all 30 alternatives to Ml Stable Diffusion→