MLX Community Projects #654
Replies: 62 comments 21 replies
|
text generation: https://github.com/mzbac/mlx-moe-models |
|
An implementation of Reinforcement Learning algorithms in MLX based in the Implementations from CleanRL. Still WIP because it’s missing a benchmark and some other minor things, but the implementations work correctly. |
|
mlx-models. Currently supporting vision models by loading/converting from PyTorch checkpoints. Will later add support for text and audio models as well. |
|
Hi I would love to add chat-with-mlx. It is a Chat UI + RAG Implementation on MLX. I wIll add more features later on (more advanced RAG pipeline + multimodal) |
|
I have an example of training a simple language model using BitLinear instead of nn.Linear. It's a port of Karpathy's minGPT to MLX along with a custom implementation of a BitLinear module. https://github.com/adhulipa/mlx-mingpt I noticed this collection already has the far more meatier |
|
Transformer Lab https://github.com/transformerlab/transformerlab-app is an LLM research platform that allows you to run, train, perform RAG, and evaluate LLMs through a GUI. |
|
MLX RAG with GGUF Models: https://github.com/Jaykef/mlx-rag-gguf The code here builds on https://github.com/vegaluisjose/mlx-rag, it has been optimized to support RAG-based inferencing for .gguf models. I am using BAAI/bge-small-en for the embedding model, TinyLlama-1.1B-Chat-v1.0-GGUF as base model and the custom vector database script for indexing texts in a pdf file. Inference speeds can go up to ~413 tokens/sec for prompts and ~36 tokens/sec for generation on my 8G M2 Air. |
|
Vision: MLX3D A library for deep learning with 3D data using mlx. |
|
JSON schema decoding (allowing function calling, including an OpenAI-compatible server with tools) using MLX: https://github.com/otriscon/llm-structured-output |
|
Hello for text generation part, I'm happy to share with you that I've proposed and contributed to the integration of MLX with LibreChat.ai. So now you can use your local LLM powered by MLX through a fancy interface privately, enjoy! :D See danny-avila/LibreChat#2580 If in the future the community proposes an API servers supporting also multimodality, transcription, image generation for example, I will add them into LibreChat ;) It could be great also to have and LLM API supporting /models endpoint and multiple models simultaneously :D |
|
Hello, mlx community, we are happy to share with you that we have contributed the first strong sub-4 bit LLM model zoo for MLX community.
The modern LLM families include Llama3/2, Phi-3, Mistral, 01-Yi, and Qwen. A mlx-style inference toolkit is also shared for the local web chatting.
We are an active team here, supporting the better low-bit community on the local platform. Enjoy! |
|
mlx_micrograd - mlx port of Karpathy's micrograd - a tiny scalar-valued autograd engine with a small PyTorch-like neural network library on top. Installationpip install mlx_microgradExample usageExample showing a number of possible supported operations: from mlx_micrograd.engine import Value
a = Value(-4.0)
b = Value(2.0)
c = a + b
d = a * b + b**3
c += c + 1
c += 1 + c + (-a)
d += d * 2 + (b + a).relu()
d += 3 * d + (b - a).relu()
e = c - d
f = e**2
g = f / 2.0
g += 10.0 / f
print(f'{g.data}') # prints array(24.7041, dtype=float32), the outcome of this forward pass
g.backward()
print(f'{a.grad}') # prints array(138.834, dtype=float32), i.e. the numerical value of dg/da
print(f'{b.grad}') # prints array(645.577, dtype=float32), i.e. the numerical value of dg/db
|
|
mlx-serve — OpenAI-compatible inference server that manages text, vision, embeddings, TTS, and STT models through a single endpoint, loading one at a time to stay within unified memory limits.
Thanks to the MLX team for the foundation libraries that make this possible. |
|
Looks like the "Deep Dive Into AI With MLX PyTorch" has moved to a different location (a link you have in the top post is broken): |
|
mlx-node is an inference and training library that exposes Node.js APIs. It also includes an experimental WebGPU backend: https://mlx.void.app |
|
I would like to share a small early-beta sparse primitives package for MLX, called mlx-sparse It is an attempt at an MLX-native sparse array package for Apple Silicon. It provides Python-facing sparse array containers, with the performance-critical parts implemented as MLX primitives using C++, CPU backends, and Metal kernels. It is still an early beta, but I hope it can be useful for people experimenting with sparse linear algebra, graph-like workloads, scientific computing, and sparse model components in MLX. Feedback, issues, and any contributions are very welcome! Edit: it also supports some linalg operations. More in the docs. |
|
Two MLX diffusion tools for Apple Silicon, both drop into mflux:
|
|
llm-swarm-router — LLM server mesh router for oMLX/Ollama/LM Studio/vLLM; OpenAI + Anthropic Messages on :11400 (macOS menubar + home-lab routing): https://github.com/matthewdcage/llm-swarm-router |
These are all meant to be runnable on personal mac mini or macbooks. |
|
Benchmarking / Misc: mlx-chronos - A benchmark suite and community leaderboard for MLX inference engines on Apple Silicon, with TTFT, throughput, RAM, thermal metadata, and reproducible JSON submissions. Leaderboard: https://igurss.github.io/mlx-chronos |
|
MLX Diffuser: Train from scratch, fine-tune, or run inference for diffusion & flow models - for image, video, and discrete modalities. |
|
Hi! I'd love to have this added to the list:
More details in the Show & Tell thread #3732. Thanks! |
|
mlx-serve — native Zig inference server for Apple Silicon, no Python. Runs MLX-format models and exposes OpenAI-compatible and Anthropic-compatible HTTP APIs out of the box, so the same Highlights:
MIT, Apple-Silicon only. Site: ddalcu.github.io/mlx-serve |
|
atlas — measured-cost quantization for MLX: profiles per-block KL sensitivity, then solves (bit-width, group-size) allocation exactly for any RAM budget. Benchmarked vs uniform MLX and llama.cpp K-quants. https://github.com/Matth21/atlas |
|
I built something that cuts local model latency and footprint. Squish is an MLX-based local inference server for Apple Silicon, no VRAM, no CUDA. Measured against Ollama on an M3 16GB, 1.15x to 14.7x faster depending on how much your prompts repeat, plus a smaller memory footprint on top. Only tested on a 16GB M3 so far, looking for feedback and testers with more unified memory or a newer M series chip to see how it handles bigger models. |
|
A few more MLX tools from me, this time on the developer and diagnostics side (the two diffusion ones I posted earlier are already in the list):
Thanks for keeping this list going! |
|
PostTrainLLM — Mac-local post-training + eval factory (specialists, report cards, MLX packaging).
Happy to adjust the blurb if a shorter line is preferred. |


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Let's collect some cool MLX integrations and community lead projects here for visibility!
If you have a project you would like to feature, leave a comment, and we will add it. If the project is build with MLX Swift, add it to the MLX Swift Community Project page.
Text Generation
Vision
Speech and Audio
Multi-modal
Misc
Educational
picoGPT.All reactions