llms-from-scratch vs hello-agents

Two of the top projects in Learning and cookbooks, side by side: who leads on each score part and who each one suits, then setup, license, activity and what each review found.

33rd of 8 in Learning and cookbooks

llms-from-scratch

Code for the book on building a GPT-style LLM in PyTorch

74 out of 100
#44th of 8 in Learning and cookbooks

hello-agents

Chinese-language course on building LLM agents from scratch

72 out of 100

Verdict

llms-from-scratch ranks higher, 74 to 72. Of the 4 score parts we measure for both, llms-from-scratch leads on 1, hello-agents on 1 and 2 are even.

  • Adoptionllms-from-scratch leads by 17 points, 88 to 71: a wide gap.
  • FreshnessEven at 100.
  • Maintenancehello-agents leads by 12 points, 70 to 58.
  • Agent-readyEven at 0.

Pick llms-from-scratch if you are

Python developers learning how LLMs work by coding one in PyTorch

  • Main chapter code runs on a conventional laptop and uses a GPU automatically if present
  • Plain PyTorch with no external LLM libraries, so every component is readable

Pick hello-agents if you are

Python developers and students learning to build LLM agents, Chinese readers

  • 16 chapters from theory to capstone, with runnable code in the code folder
  • Includes an Agentic-RL chapter going from SFT to GRPO training
llms-from-scratch vs hello-agents: score parts and facts
What we comparellms-from-scratchhello-agents
Score parts, out of 100
Adoption88, widely used71, popular
Freshness100, active100, active
Maintenance58, fair70, fair
Easy to runNot scored for this kindNot scored for this kind
Agent-ready0, none0, none
Facts from GitHub and the README
Stars106.5k82.9k
Licensecustom license (read the license)custom license (read the license)
Last commitOct 2026Oct 2026
Last releaseNone publishedJul 2026
LanguageJupyter NotebookPython
DockerNoNo
GPUOptionalNot stated
arm64 or Apple SiliconNot statedNot stated

llms-from-scratch

Official code for the Manning book "Build a Large Language Model (From Scratch)". Notebooks and scripts implement tokenization, attention, a GPT model, pretraining, classification finetuning, instruction finetuning and LoRA in plain PyTorch, without external LLM libraries. Bonus folders add from-scratch Llama 3.2, Qwen3, Gemma 3, Olmo 3, KV cache, MoE and DPO.

Who it is for: Python developers learning how LLMs work by coding one in PyTorch

Strengths

  • Main chapter code runs on a conventional laptop and uses a GPU automatically if present
  • Plain PyTorch with no external LLM libraries, so every component is readable
  • Bonus material covers KV cache, GQA, MoE, DPO and several model architectures
  • Exercise solutions, a companion video course and CI tests on Linux, Windows and macOS

Weaknesses

  • Tied to a print book; contributions extending main chapter code are not accepted
  • Produces a small educational model, not a production-grade LLM
  • License is reported as NOASSERTION; the README states no license terms
  • Video course and quiz PDF are hosted by the publisher, not in the repo
  • GPU optional
  • Needs PyTorch, Jupyter, Ollama (optional, ch07 evaluation)
  • Models: GPT-2, Llama 3.2, Qwen3, Gemma 3, Olmo 3

hello-agents

A 16-chapter Chinese tutorial from Datawhale covering agent fundamentals, ReAct, Plan-and-Solve and Reflection, low-code platforms (Coze, Dify, n8n) and frameworks (AutoGen, AgentScope, LangGraph). Later chapters build a custom framework on the OpenAI API and cover memory, RAG, context engineering, MCP/A2A/ANP, Agentic-RL (SFT to GRPO) and evaluation. Chapter code is in the repo's code folder.

Who it is for: Python developers and students learning to build LLM agents, Chinese readers

Strengths

  • 16 chapters from theory to capstone, with runnable code in the code folder
  • Includes an Agentic-RL chapter going from SFT to GRPO training
  • Builds a custom agent framework on the OpenAI API, not only framework usage
  • Free online reading and PDF download, plus extra chapters on interviews and skills

Weaknesses

  • Written in Chinese; an English README is linked separately
  • License is CC BY-NC-SA 4.0, which bars commercial use
  • Assumes basic Python and experience calling an LLM API
  • Hardware and model requirements for the exercises are unknown
  • Needs OpenAI-compatible LLM API
  • Models: OpenAI API

More in Learning and cookbooks

Building with these?

We help teams pick an open-source AI stack and run it in production. Client work never changes a rank.