Footer

Your go-to destination for discovering trending open-source projects and uncovering the insights that matter

Legal

  • Terms and conditions
  • Privacy policy

More

  • Pricing
  • Advertise
  • onedump
  • gosnakego
  • Contact us

Social

  • X (Twitter)
  • GitHub
Trendshift owl
What they build speaks louder than words
© 2026 Trendshift, created by Julian Li with ❤️
SignalAdvertise
Trendshift
SignalAdvertise
Sign in
Trendshift owl

Discover trends that matter

SignalAdvertise
DailyWeeklyMonthlyYearly
Live mentionsTopics
RepositoriesDevelopers
InsightsStats

Bifrost
Bifrost

FareedKhan-dev/train-llm-from-scratch

A straightforward method for training your LLM, from downloading data to generating text.

#Learning resources#LLM training
Visit GitHub
Python
13.3k
2k
8 contributors
MIT License
website
AchievementsView all →
FeaturedAdvertise to 180K+ monthly visitors
Bifrost

Fastest Enterprise AI Gateway for Routing, Governing, and Securing all your AI Traffic

Momentum

How fast FareedKhan-dev/train-llm-from-scratch is gaining stars, and where it lands on Trendshift and GitHub Trending

Activity and trending

Stars, forks and merged pull requests each day or month, lined up with the repository's rank on Trendshift Trending

Sep 28 – Nov 27, 2026

Stars +1,954 in 61 days

0100200300
240

Forks +407 in 61 days

050100
65

Merged PRs 2 in 61 days

012
2

Trendshift Trendingwhere the repository ranked each day it made the top 25

Not in the Trendshift top 25 in this period

Sep 28Oct 6Oct 14Oct 22Oct 30Nov 7Nov 15Nov 23
The left and right arrow keys step from day to day; Home and End go to the first and the last

Stars, forks, merged pull requests and Trendshift Trending rank, by day
DayStars gainedForks gainedMerged PRs
Mon, Sep 28, 2026+240+300
Tue, Sep 29, 2026+161+160
Wed, Sep 30, 2026+89+60
Thu, Oct 1, 2026+34+20
Fri, Oct 2, 2026+24+32
Sat, Oct 3, 2026+23+20
Sun, Oct 4, 2026+14+10
Mon, Oct 5, 2026+18+70
Tue, Oct 6, 2026+18+10
Wed, Oct 7, 2026+15+20
Thu, Oct 8, 2026+12+10
Fri, Oct 9, 2026+7+50
Sat, Oct 10, 2026+14+40
Sun, Oct 11, 2026+15+20
Mon, Oct 12, 2026+39+40
Tue, Oct 13, 2026+24+10
Wed, Oct 14, 2026+8+110
Thu, Oct 15, 2026+8+60
Fri, Oct 16, 2026+21+200
Sat, Oct 17, 2026+9+320
Sun, Oct 18, 2026+23+330
Mon, Oct 19, 2026+160+650
Tue, Oct 20, 2026+41+120
Wed, Oct 21, 2026+22+40
Thu, Oct 22, 2026+37+30
Fri, Oct 23, 2026+30+30
Sat, Oct 24, 2026+12+10
Sun, Oct 25, 2026+5+20
Mon, Oct 26, 2026+10+60
Tue, Oct 27, 2026+121+210
Wed, Oct 28, 2026+206+320
Thu, Oct 29, 2026+121+140
Fri, Oct 30, 2026+78+90
Sat, Oct 31, 2026+29+30
Sun, Nov 1, 2026+20+20
Mon, Nov 2, 2026+19+00
Tue, Nov 3, 2026+13+00
Wed, Nov 4, 2026+19+40
Thu, Nov 5, 2026+12+20
Fri, Nov 6, 2026+10+80
Sat, Nov 7, 2026+4+00
Sun, Nov 8, 2026+12+10
Mon, Nov 9, 2026+8+20
Tue, Nov 10, 2026+6+20
Wed, Nov 11, 2026+12+00
Thu, Nov 12, 2026+10+10
Fri, Nov 13, 2026+9+00
Sat, Nov 14, 2026+6+20
Sun, Nov 15, 2026+11+30
Mon, Nov 16, 2026+10+10
Tue, Nov 17, 2026+9+30
Wed, Nov 18, 2026+5+00
Thu, Nov 19, 2026+19+50
Fri, Nov 20, 2026+4+10
Sat, Nov 21, 2026+3+00
Sun, Nov 22, 2026+6+10
Mon, Nov 23, 2026+2+00
Tue, Nov 24, 2026+12+40
Wed, Nov 25, 2026+12+10
Thu, Nov 26, 2026+8+00
Fri, Nov 27, 2026+5+00
Total+1,954+4072
  • 1#1 on the list
  • 7Rank that day
  • Not trending
5
  • GitHub trending history

    Where the repository ranked on GitHub Trending, one dot for each day it was on a list

    May 30 – Jun 10, 2026Best #9

    #1#5#10#15#20#25
    Top 10
    Jun 2026JulAugSep
    The left and right arrow keys step from day to day; Home and End go to the first and the last

    Mentions and achievements

    Where people are talking about FareedKhan-dev/train-llm-from-scratch, and every badge it has earned
    1. Oct 221 post
      • 想真正看懂 LLM 训练链路,最好亲手把代码跑一遍。 Train LLM From Scratch 用纯 PyTorch 从零实现 Transformer,从 Token、注意力、多头一路做到预训练、SFT、Reward、DPO/PPO/GRPO,不依赖 Transformers、TRL、PEFT。每个模块都有说明和预期输出,适合边跑边理解。 🔗

        Read full on X, posted by @aoteman1can

        @aoteman1can · x.com

    2. 1 month earlier
    3. Sep 211 post
      • 🚨 Someone built a complete LLM training codebase from scratch and explained every single line. Not "here's how transformers work in theory." Working code. Every architectural decision explained.…

        Read full on X, posted by @RituWithAI

        @RituWithAI · x.com

    4. Sep 201 post
      • Train your own LLM from scratch! A step-by-step repo that walks you through building and training a transformer model from scratch using PyTorch. The architecture is built from "Attention is All You…

        Read full on X, posted by @PrasannaPatil10

        @PrasannaPatil10 · x.com

    5. Sep 181 post
      • Train your own LLM from scratch! A step-by-step repo that walks you through building and training a transformer model from scratch using PyTorch. From downloading training data all the way to…

        Read full on X, posted by @Sumanth_077

        @Sumanth_077 · x.com

    6. 26 days earlier
    7. Aug 231 post
      • OpenAI keeps their training pipeline a secret. ​Fareed Khan just open-sourced the entire thing. ​train-llm-from-scratch takes you from raw data to a modern reasoning model in pure PyTorch—no…

        Read full on X, posted by @Urooj978

        @Urooj978 · x.com

    8. Aug 171 post
      • Training your own LLM? Start with raw text to tokens in PyTorch. Check out FareedKhan-dev/train-llm-from-scratch for step-by-step guide. See link below 👇

        Read full on X, posted by @RepoGems

        @RepoGems · x.com

    9. 17 days earlier
    10. Jul 311 post
      • 🚨STOP USING OTHER PEOPLE’S LLMs. You can build your OWN LLM right now. This repository teaches you how to build your own model from SCRATCH with PyTorch. No APIs. No hype. No pretrained models. It…

        Read full on X, posted by @josesilesdata

        @josesilesdata · x.com

    11. Jul 291 post
      • Train your own LLM from scratch. This repo builds a GPT-style transformer from the ground up, without using any high-level libraries. You see exactly how attention, multi-head attention, the…

        Read full on X, posted by @DailyDoseOfDS_

        @DailyDoseOfDS_ · x.com

    12. 1 month earlier
    13. Jun 191 post
      • 🚨Someone open-sourced a complete guide to train your own LLM from scratch > Goes from raw data to a fully trained model > Covers pretraining, instruction tuning, and alignment > Works on models from…

        Read full on X, posted by @oliviscusAI

        @oliviscusAI · x.com

    14. Jun 151 post
      • Train your own LLM from scratch. This repo builds a GPT-style transformer from the ground up, without using any high-level libraries. You see exactly how attention, multi-head attention, the…

        Read full on X, posted by @akshay_pachaar

        @akshay_pachaar · x.com

    You might also like

    Repositories close to FareedKhan-dev/train-llm-from-scratch
    FeaturedAdvertise to 180K+ monthly visitors
    Bifrost

    Fastest Enterprise AI Gateway for Routing, Governing, and Securing all your AI Traffic

    fangpin/llm-from-scratch

    Python

    Build LLM from scratch

    13615

    raiyanyahya/how-to-train-your-gpt

    Jupyter Notebook

    Build a modern LLM from scratch. Every line commented. Explained like we are five.

    4.2k546

    jingedawang/TutorialLLM

    Jupyter Notebook

    LLM Tutorial for Everyone.

    9218

    jammastergirish/BuildAnLLM

    Python
    18349

    rasbt/LLMs-from-scratch

    Jupyter Notebook

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

    109.1k17.3k

    theaniketgiri/create-llm

    TypeScript

    The fastest way to build and start training your own LLM. CLI tool that scaffolds production-ready PyTorch training projects in seconds. Like create-next-app but for language models.

    37446

    vivekkalyanarangan30/llm_from_scratch

    Python
    1.1k306

    roberottt/llm-creator-studio

    Python
    5412

    walkinglabs/modern-llm-notebook

    Jupyter Notebook

    A hands-on course on modern LLM architectures, training, and inference, with step-by-step PyTorch implementations and runnable notebooks.

    29264