Hacker GitHub

← All repos

rasbt/LLMs-from-scratch

View on GitHub ↗ ★ 107,687 Jupyter Notebook

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

33 mentions on Hacker News by 22 people: 18 stories, 15 comments · first 2024-01-27 · latest 2026-10-26

Mentions per year 33 mentions · busiest year 2024 (14)
20082026
  1. ▲ 2
    DeepSeek Sparse Attention
    story by eigenBasis · 2026-05-24 · 0 comments
  2. ▲ 1
    Olmo 3 from Scratch (Standalone Notebook)
    story by quietlearning · 2025-11-24 · 0 comments
  3. ▲ 3
    Explanation of Gated DeltaNet (Qwen3-Next and Kimi Linear)
    story by ModelForge · 2025-11-03 · 0 comments
  4. ▲ 417
    Gemma 3 270M re-implemented in pure PyTorch for local tinkering
    story by ModelForge · 2025-08-20 · 57 comments
  5. ▲ 3
    Qwen3 from Scratch
    story by tzury · 2025-08-02 · 0 comments
  6. ▲ 3
    Qwen3 Implemented from Scratch
    story by sbbq · 2025-06-20 · 0 comments
  7. ▲ 2
    Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
    story by jinqueeny · 2025-04-24 · 0 comments
  8. ▲ 1
    Day 1 of trying to fit a Chatbot into a QR Code
    story by kuberwastaken · 2025-04-20 · 2 comments
  9. ▲ 2
    Python Setup Tips
    story by tosh · 2025-02-16 · 0 comments
  10. ▲ 5
    Implementing the Llama 3.2 1B and 3B Architectures from Scratch
    story by sbbq · 2024-10-05 · 0 comments
  11. ▲ 2
    Converting GPT to Llama step-by-step code guide
    story by sbbq · 2024-09-23 · 0 comments
  12. ▲ 2
    LLM instruction finetuning from-scratch tutorial
    story by sbbq · 2024-06-17 · 0 comments
  13. ▲ 2
    Evaluating LLMs locally, on a laptop, with Llama 3 and Ollama
    story by rasbt · 2024-06-13 · 0 comments
  14. ▲ 14
    Finetuning an LLM-Based Spam Classifier with LoRA from Scratch
    story by rasbt · 2024-05-11 · 0 comments
  15. ▲ 3
    Finetune a GPT Model for Spam Detection on Your Laptop in Just 5 Minutes
    story by rasbt · 2024-05-03 · 0 comments
  16. ▲ 2
    Insights from Finetuning LLMs for Classification Tasks
    story by rasbt · 2024-04-28 · 0 comments
  17. ▲ 3
    Comparing 5 ways to implement Multihead Attention in PyTorch
    story by rasbt · 2024-03-08 · 0 comments
  18. ▲ 739
    Implementing a ChatGPT-like LLM from scratch, step by step
    story by rasbt · 2024-01-27 · 98 comments