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
rasbt avatar

rasbt/LLMs-from-scratch

0
View on GitHub↗
97,260 stars·14,878 forks·Jupyter Notebook·45 viewsamzn.to/4fqvn0D↗

LLMs From Scratch

This repository serves as an educational framework for building large language models from the ground up. It provides a structured curriculum that guides learners through the end-to-end lifecycle of model development, including data processing, architecture design, and optimization. By focusing on low-level implementation, the project enables users to master the fundamental mechanics of artificial intelligence without relying on high-level abstraction frameworks.

The project distinguishes itself by constructing neural network components and gradient-based optimization logic from first principles. It utilizes tensor-based computational modeling and stateless functional architectures to define network layers as pure mathematical transformations. This approach exposes the underlying mechanics of weight updates and loss minimization, allowing for a deeper conceptual mastery of modern machine learning architectures.

The content is organized into a series of executable notebooks that facilitate incremental learning. Each chapter is encapsulated within an independent directory, providing a clear separation of concerns that simplifies dependency management. The repository supports various execution environments, including local Python, Docker containers, and cloud-based platforms, ensuring that the code remains accessible and functional on conventional hardware.

Features

  • Generative AI Resources - Guides learners through the end-to-end creation of generative language models using a structured, ground-up approach.
  • Backpropagation Implementations - Implements gradient-based optimization logic manually to clarify the mechanics of weight updates and loss minimization.
  • Deep Learning Implementations - Translates complex deep learning theory into functional code to provide practical experience with neural network architectures.
  • Educational Neural Network Implementations - Demonstrates the construction of neural network components from first principles without relying on high-level abstractions.
  • Model Training Frameworks - Establishes a structured environment for building and training custom language models to master the development lifecycle.
  • Large Language Model Tutorials - Explains the fundamental mechanics of large language models through hands-on, step-by-step implementation examples.
  • Machine Learning Curricula - Offers a comprehensive educational path covering the architecture, training, and implementation of large language models.
  • Neural Network Components - Defines modular mathematical transformations and layer structures essential for building custom neural network architectures.
  • Technical Training Repositories - Bundles instructional materials and code examples to guide developers through the implementation of complex technical systems.
  • Interactive Notebooks - Organizes technical concepts into sequential, executable notebooks that allow users to verify theory through immediate practice.
  • Low-Level Tensor Libraries - Utilizes low-level array manipulation to perform mathematical operations and build neural network layers from scratch.
  • Interactive Learning Platforms - Provides interactive, executable documents that allow users to experiment with model components in a live environment.
  • Technical Tutorials - Teaches the fundamentals of large language models through a structured curriculum of guided, hands-on tutorials.
  • AI and Neural Networks - Building large language models from the ground up.
  • Artificial Intelligence - Listed in the “Artificial Intelligence” section of the Build Your Own X awesome list.
  • Large Language Models - Educational guide to building language models from the ground up.
  • LLM Development and Research - Step-by-step implementation of a ChatGPT-like model.
  • LLM Development Books - Step-by-step technical guide to building models from the ground up.
  • Machine Learning - Educational repository for building LLMs.
  • Natural Language Processing - Step-by-step guide to building language models from the ground up.
  • Books and Guides - Step-by-step guide to building LLMs from scratch.
  • Educational Resources - Repository for building large language models from scratch.
  • Learning Resources - Step-by-step implementation of LLMs.
  • Large Language Models (LLMs) - Listed in the “Large Language Models (LLMs)” section of the The Incredible Pytorch awesome list.
  • Video Courses - Features a comprehensive companion video course that walks through the implementation of each chapter.
  • Modular and Plugin Architectures - Separates distinct stages of model development into independent, modular directories for clear architectural organization.

Star history

Star history chart for rasbt/llms-from-scratchStar history chart for rasbt/llms-from-scratch

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 LLMs From Scratch

These projects share indexed features with LLMs From Scratch. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • mlabonne/llm-coursemlabonne avatar

    mlabonne/llm-course

    80,178View on GitHub↗

    This project is a comprehensive educational curriculum and engineering handbook focused on the lifecycle of large language models. It serves as a structured knowledge base for machine learning practitioners, covering the fundamental mathematical and architectural principles of transformer-based sequence modeling, as well as the practical implementation of supervised instruction fine-tuning and preference-based model alignment. The repository distinguishes itself by providing a deep dive into advanced model composition and optimization techniques. It details methodologies for weight-space mode

    courselarge-language-modelsllm
    View on GitHub↗80,178
  • tensorflow/tensorflowtensorflow avatar

    tensorflow/tensorflow

    195,697View on GitHub↗

    TensorFlow is a comprehensive machine learning framework designed for the construction, training, and deployment of complex mathematical models. It utilizes a graph-based execution model that represents operations as directed acyclic graphs, enabling automatic differentiation and efficient parallel processing. The system provides high-level interfaces for defining neural network architectures, alongside a robust engine for managing multidimensional array structures and tensor mathematics. The framework distinguishes itself through a scalable distributed runtime that orchestrates workloads acr

    C++deep-learningdeep-neural-networksdistributed
    View on GitHub↗195,697
  • pytorch/pytorchpytorch avatar

    pytorch/pytorch

    100,814View on GitHub↗

    PyTorch is a machine learning framework centered on a GPU-ready tensor library that supports multi-dimensional array operations across both CPU and accelerator hardware. It provides a foundational infrastructure for mathematical computation and dynamic neural network construction, utilizing a tape-based automatic differentiation system that allows for flexible, non-static graph execution. The framework is designed for deep integration with Python, enabling natural usage alongside standard scientific computing ecosystems. It distinguishes itself through a comprehensive distributed training sui

    Pythonautograddeep-learninggpu
    View on GitHub↗100,814
  • hpcaitech/colossalaihpcaitech avatar

    hpcaitech/ColossalAI

    41,395View on GitHub↗

    ColossalAI is a distributed deep learning framework designed for training and deploying massive artificial intelligence models across clusters of hardware accelerators. It functions as a parallel computing engine that partitions model workloads and data across multiple processors to maximize memory efficiency and throughput. The platform distinguishes itself through a comprehensive suite of parallelization strategies, including multi-dimensional tensor parallelism and pipeline-based model parallelism, which segment neural network layers and stages across devices. To support large-scale genera

    Pythonaibig-modeldata-parallelism
    View on GitHub↗41,395
Compare all 30 related projects→

Frequently asked questions

What does rasbt/llms-from-scratch do?

This repository serves as an educational framework for building large language models from the ground up. It provides a structured curriculum that guides learners through the end-to-end lifecycle of model development, including data processing, architecture design, and optimization. By focusing on low-level implementation, the project enables users to master the fundamental mechanics of artificial intelligence without relying on high-level abstraction frameworks.

What are the main features of rasbt/llms-from-scratch?

The main features of rasbt/llms-from-scratch are: Generative AI Resources, Backpropagation Implementations, Deep Learning Implementations, Educational Neural Network Implementations, Model Training Frameworks, Large Language Model Tutorials, Machine Learning Curricula, Neural Network Components.

Which projects share features with rasbt/llms-from-scratch?

Projects with overlapping indexed features include: mlabonne/llm-course — This project is a comprehensive educational curriculum and engineering handbook focused on the lifecycle of large… tensorflow/tensorflow — TensorFlow is a comprehensive machine learning framework designed for the construction, training, and deployment of… pytorch/pytorch — PyTorch is a machine learning framework centered on a GPU-ready tensor library that supports multi-dimensional array… hpcaitech/colossalai — ColossalAI is a distributed deep learning framework designed for training and deploying massive artificial… arbox/machine-learning-with-ruby — Curated list: Resources for machine learning in Ruby. lm-sys/fastchat — FastChat is a training and serving platform for large language models that provides an integrated toolkit for…