karpathy / llm.c
LLM training in simple, raw C/CUDA
See what the GitHub community is most excited about today.
LLM training in simple, raw C/CUDA
NCCL Tests
DeepEP: an efficient expert-parallel communication library
Causal depthwise conv1d in CUDA, with a PyTorch interface
Instant neural graphics primitives: lightning fast NeRF and more
DeepGEMM: clean and efficient FP8 GEMM kernels with fine-grained scaling
how to optimize some algorithm in cuda.
Tile primitives for speedy kernels
GPU accelerated decision optimization
[ARCHIVED] Cooperative primitives for CUDA C++. See https://github.com/NVIDIA/cccl
CUDA Kernel Benchmarking Library
[ICLR2025, ICML2025, NeurIPS2025 Spotlight] Quantized Attention achieves speedup of 2-5x compared to FlashAttention, without losing end-to-end metrics across language, image, and video models.
RTP-LLM: Alibaba's high-performance LLM inference engine for diverse applications.