nanochat

Currently trending because

  • The pitch: train a GPT-2-level model for under $100 in about two hours on eight H100s, turning LLM building into a weekend project. [2] [5]

Activity, over time

Daily observations from the public event archive.

Attention

Daily stars & forks

Loading attention chart

Star accumulation

Cumulative stars

Loading star accumulation chart

Pull requests

Daily opens & merges

Loading pull requests chart

Conversations

Daily issues & comments

Loading conversations chart

Community

Daily accounts & reviews

Loading community chart

Releases

Daily releases

Loading releases chart

Mentions

16posts · 30d
Nov 32 posts
  1. 看到一个把完整 LLM 训练链压进仓库的项目。 karpathy/nanochat 核心设计只暴露一个层数参数,自动推导宽度、头数、学习率和训练时长,凑出计算最优配置,省去手动调超参。工程上显式管理计算精度,不依赖自动混合精度,权重 fp32 保存,前向按需转换,fp16 配梯度缩放,单卡自动梯度累积,显存不够调小 batch 即可。8 卡 H100 上跑 GPT-2 等级模型约两小时,成本低于一百美元。适合看完整训练流水线并迭代小模型,不适合超大规模吞吐场景。

    2 likes · 127 views
  2. 离谱了,nanochat 居然能用不到一百美元训出一个 GPT-2 级模型。 再也不用花几万美元从头训模型了,一个深度参数就自动配好全部超参,还不快去试试。 karpathy/nanochat

    1 like · 85 views
  3. 🚀 Trending on GitHub nanochat by karpathy ⭐ 59,662 (325 stars today) 🧠 Andrej Karpathy's full recipe to train and chat with your own ChatGPT-style model for about $100. karpathy/nanochat #GenAI #OpenSource #AI

    1 like · 48 views
  4. 想亲手训个 GPT-2 级模型,又不想烧几万刀? Karpathy 的 nanochat 是极简 LLM 训练框架:分词到推理全包,只调 --depth,GPT-2 级别约 2 小时、48 美元跑完。 适合想搞懂 LLM 训练、又没大算力预算的人。 你会先拿它训个什么小模型玩玩? #LLM #开源模型 @grok karpathy/nanochat

    5 likes · 1 repost · 212 views
  5. YouTube · · YouTube description · Alex Hitt

    nanochat GitHub Overview: Rust BPE, Muon, and Single-Node LLM Training nanochat by karpathy: karpathy/nanochat nanochat presents a readable, contiguous route through large-language-model training: Rust BPE tokenization, packed supervised fine-tuning data, depth-driven configuration, explicit dtype handling, memory-aware attention, and separate AdamW/Muon update paths. The overview also covers reinforcement-learning stop-token masking, local Python execution for math verification, and a 22-task evaluation view that goes beyond validation loss. Its central trade-off is deliberate: the code is optimized for transparent single-node execution, so cross-node training needs specialized networking. The narrated target is GPT-2-level capability at roughly 1.6 billion parameters in under two hours on 8xH100 for about $100, contrasted with roughly $43,000 in 2019 compute; treat those figures as source claims, not a benchmark run performed here. TimeStamps: 0:00 Why nanochat rejects fragmented training stacks 0:50 Mapping the end-to-end pipeline 1:16 Rust BPE and packed training blocks 2:05 Depth controls model scale and precision 2:49 Blockwise attention for memory-constrained hardware 3:14 AdamW and Muon split optimization 3:54 RL stop tokens and reward calculation 4:12 Python execution for verifiable reasoning 4:42 22-task evaluation beyond validation loss 5:04 Single-node limits and networking trade-offs 5:29 Transparent execution as the design thesis 5:43 What the stripped-down pipeline exposes 🧩 End-to-end Python training pipeline ⚙️ Rust tokenization, explicit precision, and Muon updates 🧮 Local code execution and 22-task evaluation 🖥️ Single-node constraints and networking trade-offs For readers comparing LLM training frameworks, nanochat is most useful as an architecture overview: it makes tokenization, optimization, evaluation, and hardware assumptions visible in one path. The same transparency clarifies the boundary too—the repository is designed around contiguous single-node execution, not universal multi-node deployment. #nanochat #LLMTraining #MachineLearning [de-DE] YNAS ynp_b0ce9aefba6479ab filmreif Privater automatisierter Staging-Upload. Paketidentität: ynp_b0ce9aefba6479ab; Ausgabe: cinematic. [es-US] YNAS ynp_b0ce9aefba6479ab cinemático Carga de entorno de prueba de automatización privada. Identidad del paquete: ynp_b0ce9aefba6479ab; salida: cinemática. [fr-FR] YNAS ynp_b0ce9aefba6479ab cinématique Téléchargement de l'environnement de test d'automatisation privé. Identifiant du package : ynp_b0ce9aefba6479ab ; sortie : cinématique. [hi] YNAS ynp_b0ce9aefba6479ab सिनेमाई निजी स्वचालन स्टेजिंग अपलोड। पैकेज पहचान: ynp_b0ce9aefba6479ab; आउटपुट: सिनेमाई। [id] Sinematik YNAS ynp_b0ce9aefba6479ab Unggahan staging otomatisasi pribadi. Identitas paket: ynp_b0ce9aefba6479ab; output: sinematik. [it] YNAS ynp_b0ce9aefba6479ab cinematografico Caricamento di automazione privata. Identità del pacchetto: ynp_b0ce9aefba6479ab; output: cinematografico. [pt-BR] YNAS ynp_b0ce9aefba6479ab cinematográfico Upload de teste de automação privada. Identificação do pacote: ynp_b0ce9aefba6479ab; saída: cinemática.

    101 views
  6. Tomorrow at the Belgium NLP meetup, I'll talk about @karpathy's "nanochat" repo (karpathy/nanochat); a fully open-source LLM implementation with GPT-2 capabilities you can train from scratch. Apart from being educational, a repo like nanochat is a perfect test bed for "autoresearch" functionaly, where one LLM is trying to improve on the implementation of another LLM. Being the "repo szar" of nanochat and seeing the autoresearch improvements has inspired me to start building Faberon together with the European AI lab @Sevren_ai. Faberon is currently in early beta (sevren-ai/faberon) and still has some rough edges, but it's already quite fun to tinker with! See faberon#61 for a sneak preview of Faberon taking over as ML Engineer 🤩

    5 likes · 164 views

Latest stargazers

The last 10 distinct accounts we observed this year.

Most active participants

PR, issue, comment & review events in the past year.

Packages

1
PackageVersionDownloads · 30dTrend · 30d
nanochatv0.1.2
v0.1.2
≥55

README badges

Embed a badge in your README or website.

  • karpathy/nanochat reached #1 in daily stars on gitwal · Oct 13, 2025
  • karpathy/nanochat reached #1 in weekly stars on gitwal · Week of Oct 13, 2025
  • karpathy/nanochat reached #3 in daily forks on gitwal · Jun 17, 2026
Live mentions · last 30 days
karpathy/nanochat mentions in the last 30 days