TGViewer
Ученый без степени | AI-блог Ани Ученый без степени | AI-блог Ани @applied_scientist_blog · 834 subscribers
Post #148 695
🐈Learning is not supposed to be fun

Карпатый зарелизил новый репозиторий для обучения LLM’ок с нуля — 🔗nanochat

It weighs ~8,000 lines of imo quite clean code to:

- Train the tokenizer using a new Rust implementation

- Pretrain a Transformer LLM on FineWeb, evaluate CORE score across a number of metrics

- Midtrain on user-assistant conversations from SmolTalk, multiple choice questions, tool use.

- SFT, evaluate the chat model on world knowledge multiple choice (ARC-E/C, MMLU), math (GSM8K), code (HumanEval)

- RL the model optionally on GSM8K with "GRPO"

- Efficient inference the model in an Engine with KV cache, simple prefill/decode, tool use (Python interpreter in a lightweight sandbox), talk to it over CLI or ChatGPT-like WebUI.

- Write a single markdown report card, summarizing and gamifying the whole thing.


С какими еще техниками можно тут поупражняться:

⏺Архитектура — упрощенная Llama
⏺Rotary Embeddings, QK Normalization, Multi-Query Attention (MQA)
⏺ReLU² активации, logit softcapping
⏺Muon+AdamW из modded-nanoGPT

Ресурсы: ~4 часов 8XH100

В общем, берем на заметку🙌

🔗https://github.com/karpathy/nanochat
GitHub GitHub - karpathy/nanochat: The best ChatGPT that $100 can buy. The best ChatGPT that $100 can buy. Contribute to karpathy/nanochat development by creating an account on GitHub.
  • ✍ 8
  • ❤ 4
  • 🔥 4
More from @applied_scientist_blog
  1. Dec 27, 2025Почитала тех репорт 🔗Fun-Audio-Chat — LALM (Large Audio Language Model) от Tongyi Team (A…
  2. Dec 25, 2025Год подходит к концу, поэтому самое время подводить итоги. В этом посте разбираю одну из ц…
  3. Dec 22, 2025✨ Meta выпустила 🔗SAM Audio, модель для open-domain audio separation. В отличие от класси…
  4. Dec 16, 2025Давно не было разборов. А все потому, что последние ~1,5 месяца я много собеседовалась. 🐹…
  5. Nov 7, 2025Генерация речи с LLM задача нетривиальная, мы тренируем модель воспроизводить наиболее вер…
  6. Nov 3, 2025В далеком 2020 году вывели степенные законы масштабирования для pre-training. Теперь коман…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →