Skip to content
The Daily Repo

fangpin / llm-from-scratch

Build LLM from scratch

Why this job: says: from scratch

What it does

  • From-Scratch Implementation. Every component of the Transformer model is implemented from scratch using PyTorch, providing a deep understanding of the underlying mechanisms.
  • BPE Tokenizer. A from-scratch implementation of the Byte Pair Encoding (BPE) tokenizer, which can be trained on any text corpus.
  • Modern Architecture. The model incorporates modern techniques used in state-of-the-art language models, including:
  • Data Processing Pipeline. A comprehensive suite of tools for data cleaning, filtering, and pre-processing.
  • Flash Attention 2. Includes a Triton implementation of Flash Attention 2, significantly improving performance and memory efficiency.

Get started

No single install command. Read the steps in the README (opens in new tab)

Maintenance
Active
Last commit 45 days ago
Stars
136
On GitHub
Licence
MIT
Allows business use
Downloads for
None listed
No release files
Latest version
None yet
No releases
Built with
Python
83% of the code

Is it looked after?

Contributors
Not stated
Last 90 days
Issues
0% closed
1 still open
Pull requests
0 merged
0 waiting
Releases
None
Never published
  • No contributing guide
  • No security policy
  • No code of conduct

Similar repos

Repos similar to this one
RepoStarsLast commitLicenceDownloads for
TsinghuaC3I / Awesome-RL-for-LRMs2,50056 days agoMITNo downloads
XiaomingX / awesome-ai-memory19534 days agoApache-2.0No downloads
aa1143 / NamiGPT20812 days agoMITNo downloads
More: languages, topics and project record

Languages

  • Python 83%
  • TypeScript 8%
  • Astro 6%
  • CSS 3%

Topics

  • bpe
  • gpt
  • llm
  • llm-from-zero-to-hero
  • transformer
  • rl
  • sft

Project record

  • JobLists and guides
  • StatusListed
  • Commits62
  • Forks15
  • Watching1
  • Stars in 28 days+3
  • CreatedAug 15, 2025
  • First seen by usNov 7, 2026
  • CheckedNov 8, 2026

Type to search.

Try