# smolcluster

> Open-source PyTorch library for distributed training and inference across Mac minis, Raspberry Pis, and GPUs using Python sockets, without NCCL or MPI.

Canonical URL: https://smolcluster.com/
GitHub: https://github.com/YuvrajSingh-mist/smolcluster
Author: Yuvraj Singh (https://yuvrajsingh.io/)

## Supported Algorithms

- **FSDP (ZeRO Stage 0/1)**: Memory-constrained nodes; ZeRO Stage 1 cuts memory to ~1/N per worker via optimizer state partitioning.
- **ClassicDP (All-Reduce)**: Balanced clusters; ring all-reduce gradient averaging with configurable bounded staleness.
- **EDP (Elastic DP)**: Heterogeneous clusters; async training with stale gradient tolerance that handles stragglers.
- **SyncPS (Parameter Server)**: Homogeneous clusters; barrier-based synchronization with strict consistency.
- **Expert Parallelism**: MoE models; distributed expert assignment across nodes.
- **Model Parallelism & Pipeline**: Large model inference; layer-wise distribution with streaming token generation.

## Core Pages & Guides

- [Home](https://smolcluster.com/)
- [Quick Start Guide](https://smolcluster.com/quickstart.html)
- [Cluster Setup](https://github.com/YuvrajSingh-mist/smolcluster/blob/master/docs/setup_cluster.md)
- [Network Configuration](https://github.com/YuvrajSingh-mist/smolcluster/blob/master/docs/networking.md)
- [Training Guide](https://github.com/YuvrajSingh-mist/smolcluster/blob/master/docs/training.md)
- [Inference Guide](https://github.com/YuvrajSingh-mist/smolcluster/blob/master/docs/inference.md)

## Machine Interfaces

- [llms.txt](https://smolcluster.com/llms.txt)
- [llms-full.txt](https://smolcluster.com/llms-full.txt)
- [OpenAPI 3.1 Spec](https://smolcluster.com/openapi.json)
- [RSS Feed](https://smolcluster.com/feed.xml)
- [Sitemap](https://smolcluster.com/sitemap.xml)
