esp32-ai
A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.
It demonstrates state-of-the-art 3D parallelism (DP, FSDP, TP) entirely through JAX's GSPMD compiler, requires far less code than equivalent PyTorch solutions, includes spectral muTransfer for hyperparameter scaling, and is designed to run from a laptop to large TPU pods.
Jaxotron is a highly-scalable, educational, and production-ready JAX adaptation of Hugging Face's Nanotron, heavily inspired by the Google DeepMind "How to Scale Your Model" JAX book.
Jaxotron proves that you can build state-of-the-art 3D parallelized LLM training pipelines in a fraction of the code compared to PyTorch, all by leveraging JAX's GSPMD compiler magic and functional programming.
AllGather and ReduceScatter collectives based on semantic mesh rules.jax.lax.scan loop cleanly calculates gradient accumulations without blowing out accelerator HBM memory.equinox for clean PyTree OOP modules, optax for optimization, orbax for async multi-host checkpointing, and wandb for logging.jaxotron/
├── app.py # Entry point for training
├── config.py # Strongly typed dataclasses for topology/model/training
├── data/
│ ├── collator.py # Asynchronous JAX data prefetcher
│ └── nanoset.py # Fast memory-mapped binary dataset reader
├── models/
│ ├── attention.py # GQA Attention & SwiGLU MLP
│ ├── layers.py # RMSNorm & Exact RoPE math
│ └── llama.py # Main LlamaForCausalLM model
├── optim/
│ ├── build.py # Optax AdamW + LR Schedulers
│ └── mup.py # Spectral muP initialization & LR multipliers
├── parallel/
│ ├── mesh.py # JAX device mesh creation
│ ├── partitioning.py # Megatron/FSDP logical axis rules
│ └── sharding_utils.py # PyTree node sharding applier
└── serialize/
└── orbax_utils.py # Async P
A minimal, 3D-parallel LLM trainer written in pure JAX and Equinox.
Similar projects matched by category, topics, and programming language.
A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.
Deltafin is a research project that runs the 2.8-trillion-parameter Mixture-of-Experts model Kimi K3 on a single Apple Silicon Mac (e.g., M1 Max with 64 GB) at about 16 seconds per token, using exact, reproducible inference with local or streaming expert loading.

A comprehensive guide for building and configuring a high-end local machine to run state-of-the-art LLMs, with detailed hardware choices, BIOS tuning, and Docker-based model serving.