AI repos for PyTorch

Open-source AI projects built around PyTorch or genuinely useful if you work with it, each with what it does for you. 21 repos, most relevant first.

  1. LLMs-from-scratch Build a GPT-style model in plain PyTorch, chapter by chapter, from tokenizer to training loop. Learning & resource lists107.1k
  2. minimind Core training code written in PyTorch from scratch, covering a 64M-parameter model's full pipeline. Models & local AI64.3k1.2k
  3. transformers Readable PyTorch model definitions for text, vision, audio and multimodal tasks you can customize. Models & local AI168k
  4. reasoning-from-scratch Notebooks implement reasoning on a Qwen3 base model in PyTorch, step by step. Learning & resource lists5.4k
  5. autoresearch Compact single-GPU LLM training script in PyTorch that the agent edits and re-runs. AI agents98.4k1.3k
  6. AI-For-Beginners Jupyter notebooks teach neural networks in PyTorch alongside TensorFlow with labs and quizzes. Learning & resource lists70.1k769
  7. Kronos Run decoder-only Transformer forecasting models in PyTorch with batch prediction and sampling controls. Models & local AI43.2k3.4k
  8. airllm Run layer-by-layer inference on small GPUs, with optional 4-bit or 8-bit compression. Models & local AI40.4k5.1k
  9. VoxCPM Run a 2B-parameter text-to-speech model in PyTorch with a Python API, CLI and streaming serving options. Image, video & audio40k1.7k
  10. timesfm Run a pretrained forecasting model on a PyTorch backend and get zero-shot quantile forecasts from NumPy arrays. Models & local AI34.7k668
  11. lingbot-map A PyTorch transformer for streaming 3D reconstruction, with checkpoints, demos and benchmarks to run. Models & local AI18.2k989
  12. tribev2 Multimodal Transformer with pretrained weights and training code for predicting fMRI responses. Models & local AI3.3k55
  13. ComfyUI PyTorch-based engine that runs Stable Diffusion and other generative models locally on your GPU. Image, video & audio142.1k6.2k
  14. whisper Reference PyTorch implementation of a transformer speech model you can load and run. Image, video & audio111.1k1.2k
  15. ai-engineering-from-scratch Teaches backprop and attention from scratch so you understand what PyTorch does underneath. Learning & resource lists72.5k10k
  16. modular Write Python model pipelines and fast accelerator kernels in Mojo for ML workloads. Coding agents & dev tools30k85
  17. InvokeAI Runs Stable Diffusion and Flux models locally on PyTorch with a canvas and node workflows. Image, video & audio28.8k
  18. Unlimited-OCR Runs on torch with CUDA, with training and hosting options for the vision-language model. Models & local AI28.2k1.6k
  19. ACE-Step-1.5 A local text-to-music model with LoRA training you can run on CUDA, Mac, AMD or Intel hardware. Image, video & audio13.9k
  20. cosmos Open world model checkpoints, cookbooks and evaluation suites for video, sound and robot action generation. Models & local AI12.1k140
  21. GLiNER PyTorch framework for training and running small NER models. Models & local AI4.1k

    ↑↓ to move, Enter to open, Esc to close