hanxiao / flash-kmeans-mlx
PublicIO-aware batched K-Means for Apple Silicon, ported from Flash-KMeans (Triton/CUDA) to pure MLX. Up to 94x faster than sklearn.
A fast batched K-Means clustering library optimized for Apple Silicon using MLX, providing hundreds of times speedup over scikit-learn for large datasets.
How It Works
You hear about a speedy tool that groups similar data points super fast on your Apple computer.
You easily add this clustering helper to your Python world with a simple install command.
You prepare your collection of numbers or points that you want to group together.
You tell the tool how many groups you want, and it quickly sorts everything into neat clusters.
You get back labels for each point showing which group it belongs to, plus the group centers.
You run a quick test and see how much faster it is than regular methods – wow!
Your data is perfectly grouped in seconds, ready for insights or next steps.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.