LogoAISecKit
  • Search
  • Collection
  • Category
  • Tag
  • Blog
  • Pricing
  • Submit
LogoAISecKit

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates

LogoAISecKit

Curated directory of 1700+ AI tools, models, frameworks, MCP servers, and cybersecurity resources

GitHub
Product
  • Search
  • Collection
  • Category
  • Tag
Resources
  • Blog
  • Pricing
  • Submit
Company
  • About Us
  • Privacy Policy
  • Terms of Service
  • Sitemap
Copyright © 2026 All Rights Reserved.
Sponsored Resources
  1. Home
  2. Category
  3. LLMs-from-scratch

LLMs-from-scratch

Implement a ChatGPT-like LLM in PyTorch from scratch, step by step.

Visit Website
Visit Website

Introduction

Introduction

This repository contains the code for developing, pretraining, and finetuning a GPT-like LLM, serving as the official code repository for the book Build a Large Language Model (From Scratch). The book guides readers through the process of creating their own LLM, explaining each stage with clear text, diagrams, and examples. The approach mirrors that used in creating large-scale foundational models like ChatGPT, making it accessible for educational purposes.

Key Features
  • Step-by-Step Guidance: Learn how large language models work from the ground up.
  • Hands-On Coding: Implement a ChatGPT-like model in PyTorch.
  • Pretraining and Finetuning: Includes code for loading weights of larger pretrained models.
  • Accessible for All: Designed to run on conventional laptops without specialized hardware.
Benefits
  • Gain a deep understanding of LLMs and their inner workings.
  • Engage with practical coding exercises that reinforce learning.
  • Utilize GPUs automatically if available, enhancing performance.
Highlights
  • Bonus materials for interested readers.
  • Community feedback encouraged via GitHub Discussions.
  • Consistent with the print book to ensure a smooth learning experience.
Back

Information

  • Publisher
    AISecKit
  • Websitegithub.com
  • Published date2025/04/28

Categories

  • AI Models
  • AI Research Papers
  • AI Development Frameworks

Tags

  • Fine-tuning
  • Open Source
  • LLM
  • AI Education
  • GPT Models
  • Generative AI

More Products

image of Nano Bananary
AI ModelsAI Application PlatformsAI Video Tools
Visit Website
icon of Nano Bananary

Nano Bananary

Nano Bananary is an AI batch image and video generator with 142 effects.

Text-to-VideoGenerative AI
image of ZCF
AI Application PlatformsAI Productivity ToolsAI Development Frameworks
Visit Website
icon of ZCF

ZCF

Zero-Config Code Flow for Claude code & Codex, enabling seamless integration and configuration for AI development.

Open SourceClaude
image of Awesome Public Datasets
AI ModelsAI Application PlatformsAI Productivity Tools
Visit Website
icon of Awesome Public Datasets

Awesome Public Datasets

A topic-centric list of HQ open datasets for various fields and applications.