awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
karpathy avatar

karpathy/llm.c

0
View on GitHub↗
30,230 stars·3,648 forks·Cuda·MIT·25 views

Llm.c

This project is a low-dependency engine designed for training large language models using native C and CUDA. It provides a bare-metal environment for tensor computation, allowing for the execution of neural network operations directly on hardware accelerators without the overhead of high-level software abstractions.

The framework distinguishes itself by implementing manual gradient backpropagation and custom hardware-specific kernels, providing granular control over memory mapping and computational precision. It supports distributed training across multiple graphics processors and compute nodes, utilizing collective communication primitives to scale workloads while maintaining numerical consistency through integrated validation tools.

The library includes a comprehensive suite of utilities for data preparation, model checkpoint management, and performance optimization. It covers essential operations such as attention acceleration, layer normalization, and memory-efficient checkpointing, while providing command-line tools for orchestrating training runs and conducting hyperparameter sweeps.

Features

  • Large Language Model Training Frameworks - A high-performance framework for training large language models using native C and CUDA kernels.
  • Bare-Metal Deep Learning Engines - Executes neural network training directly on hardware accelerators using low-level code to eliminate high-level software overhead.
  • Distributed Training Frameworks - A system for scaling neural network training across multiple graphics processors and compute nodes using collective communication primitives.
  • Low-Level Neural Network Trainers - Provides a low-dependency toolkit for executing tensor operations and gradient backpropagation directly on hardware accelerators.
  • Language Model Pretraining - Trains foundational language models from scratch using high-performance hardware kernels.
  • Backpropagation - Implements manual gradient backpropagation to facilitate iterative parameter adjustment during model training.
  • Large-Scale Training Frameworks - Scales neural network training across multiple graphics processors and compute nodes to reduce total training time.
  • Tensor Computation Primitives - Implements custom neural network layers and operations directly in C and CUDA for maximum efficiency.
  • Hardware Acceleration Kernels - Runs optimized computational routines tailored to processor architectures to accelerate complex neural network operations.
  • Backpropagation Implementations - Calculates weight adjustments through explicit mathematical implementation rather than relying on automated differentiation engines.
  • Attention Backends - Implements optimized attention backends using hardware-specific kernels to accelerate transformer model training.
  • Distributed Training - Parallelizes model training workloads across multiple hardware accelerators and compute nodes to maximize processing efficiency.
  • Training Memory Management - Manages training memory by adjusting batch sizes and sequence lengths to fit within hardware constraints.
  • Large Language Models - LLM training implemented in raw C/CUDA.
  • Systems Programming - High-performance implementation of large language models in C.
  • Collective Communication Operations - Synchronizes gradient updates across multiple graphics processors and compute nodes using collective communication operations.
  • Gradient Checkpointing - Utilizes gradient checkpointing to reduce memory consumption by recomputing intermediate activations during the backward pass.
  • Normalization Layers - Includes layer normalization components to stabilize activation scales and improve training convergence.
  • Hyperparameter Sweep Orchestrators - Automates the execution of multiple training iterations with varying configuration parameters to identify optimal model settings.
  • Model Checkpoints - Initializes model structures by reading pre-trained weights and configuration data from binary files directly into hardware memory.
  • Tensor Mappings - Converts multi-dimensional tensor structures into linear memory addresses to maximize hardware cache efficiency.
  • Data Ingestion and Preparation - Processes large-scale datasets into binary streams formatted for direct consumption by low-level training routines.
  • Binary Stream Loaders - Reads pre-processed tokenized data directly from disk into memory to bypass input-output bottlenecks during training.
  • Numerical Accuracy Validators - Provides diagnostic tools to verify numerical consistency of tensor outputs and gradients during the training lifecycle.

Star history

Star history chart for karpathy/llm.cStar history chart for karpathy/llm.c

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Llm.c

These projects share indexed features with Llm.c. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • zhaochenyang20/awesome-ml-sys-tutorialzhaochenyang20 avatar

    zhaochenyang20/Awesome-ML-SYS-Tutorial

    5,371View on GitHub↗

    This project provides a comprehensive technical guide and framework for engineering large-scale machine learning systems. It covers the full lifecycle of model development, focusing on the infrastructure and computational principles required to build, train, and serve generative AI models across distributed GPU clusters. The repository distinguishes itself by offering deep-dive tutorials and implementation strategies for complex system challenges. It emphasizes high-performance architectural primitives, such as collective communication orchestration, distributed tensor sharding, and static gr

    Python
    View on GitHub↗5,371
  • facebookresearch/flashlightfacebookresearch avatar

    facebookresearch/flashlight

    5,443View on GitHub↗

    Flashlight is a C++ machine learning library and deep learning framework designed for building and training neural networks. It functions as a tensor manipulation library and an automatic differentiation engine that tracks operations to calculate gradients via backpropagation for model optimization. The project is distinguished by its role as a distributed training framework, utilizing all-reduce gradient synchronization and distributed environments to scale machine learning workloads across multiple nodes and devices. It features a backend-agnostic memory interface and RAII-based management

    C++
    View on GitHub↗5,443
  • eleutherai/gpt-neoxEleutherAI avatar

    EleutherAI/gpt-neox

    7,392View on GitHub↗

    gpt-neox is a distributed training system and framework for building large-scale autoregressive language models. It implements the transformer architecture and provides a toolkit for training models with billions of parameters by distributing weights across compute clusters. The framework distinguishes itself through extensive support for distributed model parallelism, including pipeline and sequence parallelism, to overcome single-device memory limits. It further supports sparse model architectures using a mixture of experts system with Sinkhorn-based routing. The project covers a broad ran

    Pythondeepspeed-librarygpt-3language-model
    View on GitHub↗7,392
  • pytorch/examplespytorch avatar

    pytorch/examples

    23,752View on GitHub↗

    This repository serves as a comprehensive collection of reference implementations for the PyTorch machine learning library. It provides practical examples for building, training, and deploying deep learning models, functioning as a toolkit for developers to explore neural network architectures and training workflows. The project distinguishes itself by offering concrete demonstrations of complex machine learning operations, ranging from computer vision tasks like object detection and depth estimation to the training of large-scale transformer models. These examples illustrate how to implement

    Python
    View on GitHub↗23,752
Compare all 30 related projects→

Frequently asked questions

What does karpathy/llm.c do?

This project is a low-dependency engine designed for training large language models using native C and CUDA. It provides a bare-metal environment for tensor computation, allowing for the execution of neural network operations directly on hardware accelerators without the overhead of high-level software abstractions.

What are the main features of karpathy/llm.c?

The main features of karpathy/llm.c are: Large Language Model Training Frameworks, Bare-Metal Deep Learning Engines, Distributed Training Frameworks, Low-Level Neural Network Trainers, Language Model Pretraining, Backpropagation, Large-Scale Training Frameworks, Tensor Computation Primitives.

Which projects share features with karpathy/llm.c?

Projects with overlapping indexed features include: zhaochenyang20/awesome-ml-sys-tutorial — This project provides a comprehensive technical guide and framework for engineering large-scale machine learning… facebookresearch/flashlight — Flashlight is a C++ machine learning library and deep learning framework designed for building and training neural… eleutherai/gpt-neox — gpt-neox is a distributed training system and framework for building large-scale autoregressive language models. It… pytorch/examples — This repository serves as a comprehensive collection of reference implementations for the PyTorch machine learning… huggingface/peft — This library provides a framework for parameter-efficient fine-tuning, enabling the adaptation of large pretrained… zyds/transformers-code — This project is a collection of scripts and workflows for training, fine-tuning, and deploying large language models…