ml-explore/mlx-examples

Examples in the MLX framework

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 53 minutes ago
Added to GitGenius on April 13th, 2025
Created on November 28th, 2023
Open Issues & Pull Requests: 173 (+0)
Number of forks: 1,210
Total Stargazers: 8,900 (+0)
Total Subscribers: 96 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 7.6 hours
Mean response time: 25.5 days
90th percentile: 70.2 days
Tracked items: 343

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 99% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "bug" is answered fastest, typically in about 6 hours, while "enhancement" waits about 4 days. Only 5% of issues opened in the past year have been closed. Three people close 78% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 107
New in 7 days: 3
Closed in 7 days: 0
Avg open age: 521 days
Stale 30+ days: 100
Stale 90+ days: 99

Recent activity

Opened in 7 days: 3
Closed in 7 days: 0
Comments in 7 days: 1
Events in 7 days: 1

Top labels

  • enhancement (34)
  • bug (15)
  • good first issue (2)
  • question (2)
  • wontfix (2)

Detailed Description

The MLX Examples repository serves as a comprehensive collection of standalone examples demonstrating the capabilities of the MLX framework, a machine learning library designed for efficient model training and inference. Written primarily in Python, the repository functions as both a practical resource and educational tool for developers working with machine learning models across multiple domains.

The repository encompasses examples spanning text, image, video, audio, and multimodal models. For text-based applications, it includes implementations of transformer language models, large-scale text generation examples using models like LLaMA and Mistral, mixture-of-experts architectures with Mixtral 8x7B, parameter-efficient fine-tuning techniques using LoRA and QLoRA, and bidirectional language understanding with BERT. Image generation examples cover FLUX and Stable Diffusion or SDXL, while image classification is demonstrated through ResNets on CIFAR-10 and convolutional variational autoencoders on MNIST. Video generation capabilities are illustrated through text-to-video and image-to-video examples using Wan2.1. Audio applications include speech recognition with OpenAI's Whisper, audio compression and generation with Meta's EnCodec, and music generation with Meta's MusicGen. Multimodal examples demonstrate joint text and image embeddings using CLIP, text generation from multimodal inputs with LLaVA, and image segmentation with Segment Anything.

The repository is actively maintained with significant community engagement.

The repository encourages community contribution and maintains an acknowledgments file recognizing individual contributors. It directs users toward the MLX Community organization on Hugging Face for accessing converted model checkpoints and invites developers to contribute new models. The MNIST example is positioned as an entry point for learning MLX fundamentals, while the repository also references MLX LM as a more fully featured Python package for large language model applications. The codebase is designed to be modular, with each example functioning as a standalone demonstration that can be studied and adapted independently for various machine learning tasks.