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/ng-video-lecture

0
View on GitHub↗
4,798 stars·1,317 forks·Python·12 views

Ng Video Lecture

This project is an educational implementation of a small-scale generative pre-trained transformer designed to teach the fundamentals of neural network architecture and training. It serves as a reference implementation and tutorial for constructing a text-generating neural network from scratch.

The codebase demonstrates the mechanics of tokenization, self-attention, and the construction of a lightweight language model. It focuses on the step-by-step process of building a generative model to illustrate how large language models are constructed.

The implementation covers transformer-based architecture, including multi-head attention, feed-forward networks, and causal masking. It utilizes PyTorch for tensor computation and employs backpropagation-based learning to train the model on sequential text data.

Features

  • Transformer Architectures - Implements a transformer architecture utilizing multi-head attention and feed-forward networks for text generation.
  • Educational Implementations - Provides a from-scratch implementation of a generative transformer to teach neural network internals.
  • Educational Neural Network Implementations - Offers a pedagogical implementation of neural network components built from first principles.
  • Language Model Architectures - Provides a framework for constructing language model architectures that predict subsequent tokens.
  • PyTorch Tensor Operations - Uses PyTorch for high-speed tensor operations and dynamic computational graph management.
  • Causal Masking - Implements causal masking to prevent the model from attending to future tokens during training.
  • Reference Models - Implements a small-scale transformer model in PyTorch to demonstrate tokenization and self-attention.
  • Token Embedding Layers - Provides token embedding layers that map discrete characters to high-dimensional dense vectors.
  • GPT Implementations - Provides a concrete code implementation of the Generative Pre-trained Transformer architecture.
  • Generative AI Tutorials - Provides a step-by-step tutorial on creating a text-generating neural network.
  • Educational Implementations - Serves as a functional, readable codebase for teaching the internal mechanics of transformer architectures.
  • Backpropagation - Implements the backpropagation algorithm to update network weights by calculating loss function gradients.
  • Language Model Pre-training - Implements the pre-training process for a transformer model to learn general linguistic patterns.
  • Multi-Layer Architectures - Employs a multi-layer architecture by stacking identical transformer blocks to increase model depth.
  • Educational Model Training - Executes a training process for a small-scale model to demonstrate machine learning convergence concepts.
  • Small Language Models - Constructs a lightweight, small-scale language model for experimentation and learning.

Star history

Star history chart for karpathy/ng-video-lectureStar history chart for karpathy/ng-video-lecture

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 Ng Video Lecture

These projects share indexed features with Ng Video Lecture. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • skyzh/tiny-llmskyzh avatar

    skyzh/tiny-llm

    4,304View on GitHub↗

    tiny-llm is a large language model inference engine and transformer model implementation. It serves as a quantized model runtime and paged key-value cache manager, providing a specialized inference stack optimized for Apple Silicon. The system distinguishes itself through high-throughput execution techniques, including continuous batching and paged attention. It utilizes a paged memory system to eliminate fragmentation during token generation and employs on-the-fly dequantization of compressed weights to reduce the memory footprint during matrix multiplication. The project covers a broad ran

    Pythoncourselarge-language-modelllm
    View on GitHub↗4,304
  • datawhalechina/tiny-universedatawhalechina avatar

    datawhalechina/tiny-universe

    4,505View on GitHub↗

    Tiny Universe is an educational monorepo that delivers multiple independent implementations of core AI subsystems as self-contained Jupyter notebooks. It provides from-scratch constructions of foundational architectures including a complete Transformer model built from the original paper specification, a denoising diffusion probabilistic model for image generation, and a ReAct-style autonomous agent framework that equips an LLM with tools for planning and multi-step task execution. The project distinguishes itself by covering the full lifecycle of modern AI systems through hands-on implementa

    Jupyter Notebookagentdiffusionevaluation-metrics
    View on GitHub↗4,505
  • ashishpatel26/andrew-ng-notesashishpatel26 avatar

    ashishpatel26/Andrew-NG-Notes

    3,594View on GitHub↗

    This project is a collection of structured study notes and notebooks serving as an educational resource for deep learning and neural network fundamentals. It provides a technical reference for implementing machine learning theory, covering everything from basic network design to the construction of advanced architectures. The material specifically focuses on the implementation of convolutional neural networks for computer vision and sequence models for natural language processing. It includes detailed guidance on building object detection systems, face recognition, and speech transcription mo

    Jupyter Notebookandrew-ngandrew-ng-courseandrew-ng-machine-learning
    View on GitHub↗3,594
  • skindhu/build-a-large-language-model-cnskindhu avatar

    skindhu/Build-A-Large-Language-Model-CN

    3,242View on GitHub↗

    This project is a generative AI educational resource and natural language processing course. It serves as a technical implementation guide for building, pre-training, and fine-tuning a large language model from scratch using PyTorch. The curriculum provides a step-by-step tutorial on large language model development, focusing specifically on the design of transformer-based text generation models. It includes dedicated instruction on parameter-efficient fine-tuning to optimize training by updating only a small subset of model weights. The material covers the end-to-end generative AI training

    HTML
    View on GitHub↗3,242
Compare all 30 related projects→

Frequently asked questions

What does karpathy/ng-video-lecture do?

This project is an educational implementation of a small-scale generative pre-trained transformer designed to teach the fundamentals of neural network architecture and training. It serves as a reference implementation and tutorial for constructing a text-generating neural network from scratch.

What are the main features of karpathy/ng-video-lecture?

The main features of karpathy/ng-video-lecture are: Transformer Architectures, Educational Implementations, Educational Neural Network Implementations, Language Model Architectures, PyTorch Tensor Operations, Causal Masking, Reference Models, Token Embedding Layers.

Which projects share features with karpathy/ng-video-lecture?

Projects with overlapping indexed features include: skyzh/tiny-llm — tiny-llm is a large language model inference engine and transformer model implementation. It serves as a quantized… datawhalechina/tiny-universe — Tiny Universe is an educational monorepo that delivers multiple independent implementations of core AI subsystems as… ashishpatel26/andrew-ng-notes — This project is a collection of structured study notes and notebooks serving as an educational resource for deep… skindhu/build-a-large-language-model-cn — This project is a generative AI educational resource and natural language processing course. It serves as a technical… dllxw/baby-llama2-chinese — This project is a training pipeline and framework for developing Chinese language models based on the Llama 2… jzhang38/tinyllama — TinyLlama is a compact 1.1B parameter language model pretrained on a dataset of 3 trillion tokens. It is an edge AI…