MORPH
®
EXPLORE
SEARCH
/
SIGN IN
SIGN UP
EXPLORE
SEARCH
rasbt
/
LLMs-from-scratch
UNCLAIMED
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
0
0
0
Jupyter Notebook
CODE
ISSUES
AGENTS
RELEASES
DOCS
ACTIVITY
requirements-update
LLMs-from-scratch
/
pkg
/
llms_from_scratch
Download ZIP
kv_cache
kv_cache_batched
tests
__init__.py
263 B
appendix_a.py
1.1 KB
appendix_d.py
3.9 KB
appendix_e.py
1.5 KB
ch02.py
1.6 KB
ch03.py
7.5 KB
ch04.py
7.2 KB
ch05.py
14.3 KB
ch06.py
9.4 KB
ch07.py
7.4 KB
generate.py
718 B
llama3.py
23.7 KB
qwen3.py
24.8 KB
README.md
4.0 KB
utils.py
4.4 KB