{"adoption": {"forks": 15891, "observed_at": "2026-08-28T04:12:23.732365+00:00", "stars": 103857}, "canonical_url": "https://ross.abutalabs.com/products/llms-from-scratch", "card": {"archived": false, "artifact_type": "learning-resource", "description": "Implement a ChatGPT-like LLM in PyTorch from scratch, step by step", "domain": ["large-language-models", "deep-learning", "machine-learning", "tutorials"], "enriched": true, "function": ["llm-training", "machine-learning", "deep-learning", "nlp"], "health_score": 80, "homepage": "https://amzn.to/4fqvn0D", "language": "Jupyter Notebook", "license": "NOASSERTION", "license_family": "other", "maturity": "active", "member_repos": ["rasbt/LLMs-from-scratch"], "name": "rasbt/LLMs-from-scratch", "platform": ["python"], "pushed_at": "2026-08-26T22:54:48+00:00", "repo": "rasbt/LLMs-from-scratch", "stars": 103857, "tags": ["gpt", "pytorch", "from-scratch", "transformers", "pretraining", "finetuning", "instruction-tuning", "educational", "jupyter-notebooks", "book-companion", "natural-language-processing"], "topics": ["gpt", "large-language-models", "llm", "python", "pytorch", "ai", "artificial-intelligence", "language-model", "deep-learning", "machine-learning", "from-scratch", "generative-ai", "transformers", "attention-mechanism", "finetuning", "instruction-tuning", "natural-language-processing", "pretraining", "tokenizer"], "urls": [], "use_cases": ["learn how large language models work internally by coding one from scratch", "implement a GPT-like transformer in PyTorch step by step", "understand attention mechanisms and tokenization hands-on", "pretrain a small language model for educational purposes", "finetune pretrained LLM weights like GPT-2", "study instruction tuning and classification finetuning of LLMs"], "what_it_is": "The official code repository for the book 'Build a Large Language Model (From Scratch)', containing step-by-step PyTorch implementations of a GPT-like LLM. It covers building, pretraining, and finetuning a small functional model for educational purposes, including loading pretrained weights for finetuning.", "when_to_avoid": ["you need a production-ready LLM framework or inference server", "you want to train large-scale foundation models efficiently", "you just need to use existing LLMs via APIs without understanding internals", "you need optimized, performant training code rather than pedagogical clarity"], "when_to_choose": ["you want a deep, code-first understanding of how LLMs like ChatGPT are built", "you are following the companion book and need its official source code", "you prefer educational, from-scratch implementations over using high-level libraries", "you want to learn pretraining and finetuning concepts with clear diagrams and notebooks"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/llms-from-scratch", "repo": "rasbt/LLMs-from-scratch", "role": "main", "score": 73}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:12:23.732365+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T16:12:17.310688+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74b6c7459e88fab78434dcef872dee3097f1e7545fa9dcdc48101c29fddfb580", "fetched_at": "2026-08-28T04:12:23.732365+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rasbt/LLMs-from-scratch"}, {"content_hash": "44491a836726c3907ddef8165141f5ae40a6e0b96ebeace23bf87c329e69ff84", "fetched_at": "2026-08-28T17:32:51.271327+00:00", "kind": "homepage", "missing": false, "url": "https://amzn.to/4fqvn0D"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:12:23.732365+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T16:12:17.310688+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74b6c7459e88fab78434dcef872dee3097f1e7545fa9dcdc48101c29fddfb580", "fetched_at": "2026-08-28T04:12:23.732365+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rasbt/LLMs-from-scratch"}, {"content_hash": "44491a836726c3907ddef8165141f5ae40a6e0b96ebeace23bf87c329e69ff84", "fetched_at": "2026-08-28T17:32:51.271327+00:00", "kind": "homepage", "missing": false, "url": "https://amzn.to/4fqvn0D"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T16:12:17.310688+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74b6c7459e88fab78434dcef872dee3097f1e7545fa9dcdc48101c29fddfb580", "fetched_at": "2026-08-28T04:12:23.732365+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rasbt/LLMs-from-scratch"}, {"content_hash": "44491a836726c3907ddef8165141f5ae40a6e0b96ebeace23bf87c329e69ff84", "fetched_at": "2026-08-28T17:32:51.271327+00:00", "kind": "homepage", "missing": false, "url": "https://amzn.to/4fqvn0D"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:12:23.732365+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:12:23.732365+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:12:23.732365+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T16:12:17.310688+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74b6c7459e88fab78434dcef872dee3097f1e7545fa9dcdc48101c29fddfb580", "fetched_at": "2026-08-28T04:12:23.732365+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rasbt/LLMs-from-scratch"}, {"content_hash": "44491a836726c3907ddef8165141f5ae40a6e0b96ebeace23bf87c329e69ff84", "fetched_at": "2026-08-28T17:32:51.271327+00:00", "kind": "homepage", "missing": false, "url": "https://amzn.to/4fqvn0D"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:12:23.732365+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:12:23.732365+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T16:12:17.310688+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74b6c7459e88fab78434dcef872dee3097f1e7545fa9dcdc48101c29fddfb580", "fetched_at": "2026-08-28T04:12:23.732365+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rasbt/LLMs-from-scratch"}, {"content_hash": "44491a836726c3907ddef8165141f5ae40a6e0b96ebeace23bf87c329e69ff84", "fetched_at": "2026-08-28T17:32:51.271327+00:00", "kind": "homepage", "missing": false, "url": "https://amzn.to/4fqvn0D"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:12:23.732365+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:12:23.732365+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:12:23.732365+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T16:12:17.310688+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74b6c7459e88fab78434dcef872dee3097f1e7545fa9dcdc48101c29fddfb580", "fetched_at": "2026-08-28T04:12:23.732365+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rasbt/LLMs-from-scratch"}, {"content_hash": "44491a836726c3907ddef8165141f5ae40a6e0b96ebeace23bf87c329e69ff84", "fetched_at": "2026-08-28T17:32:51.271327+00:00", "kind": "homepage", "missing": false, "url": "https://amzn.to/4fqvn0D"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:12:23.732365+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:12:23.732365+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T16:12:17.310688+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74b6c7459e88fab78434dcef872dee3097f1e7545fa9dcdc48101c29fddfb580", "fetched_at": "2026-08-28T04:12:23.732365+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rasbt/LLMs-from-scratch"}, {"content_hash": "44491a836726c3907ddef8165141f5ae40a6e0b96ebeace23bf87c329e69ff84", "fetched_at": "2026-08-28T17:32:51.271327+00:00", "kind": "homepage", "missing": false, "url": "https://amzn.to/4fqvn0D"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T16:12:17.310688+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74b6c7459e88fab78434dcef872dee3097f1e7545fa9dcdc48101c29fddfb580", "fetched_at": "2026-08-28T04:12:23.732365+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rasbt/LLMs-from-scratch"}, {"content_hash": "44491a836726c3907ddef8165141f5ae40a6e0b96ebeace23bf87c329e69ff84", "fetched_at": "2026-08-28T17:32:51.271327+00:00", "kind": "homepage", "missing": false, "url": "https://amzn.to/4fqvn0D"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T16:12:17.310688+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74b6c7459e88fab78434dcef872dee3097f1e7545fa9dcdc48101c29fddfb580", "fetched_at": "2026-08-28T04:12:23.732365+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rasbt/LLMs-from-scratch"}, {"content_hash": "44491a836726c3907ddef8165141f5ae40a6e0b96ebeace23bf87c329e69ff84", "fetched_at": "2026-08-28T17:32:51.271327+00:00", "kind": "homepage", "missing": false, "url": "https://amzn.to/4fqvn0D"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T16:12:17.310688+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74b6c7459e88fab78434dcef872dee3097f1e7545fa9dcdc48101c29fddfb580", "fetched_at": "2026-08-28T04:12:23.732365+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rasbt/LLMs-from-scratch"}, {"content_hash": "44491a836726c3907ddef8165141f5ae40a6e0b96ebeace23bf87c329e69ff84", "fetched_at": "2026-08-28T17:32:51.271327+00:00", "kind": "homepage", "missing": false, "url": "https://amzn.to/4fqvn0D"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 99, "longevity": 81, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases", "no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 1137, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 73, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}