{"slug": "reasoning-models-from-scratch-code-setup", "title": "Reasoning Models From Scratch: Code Setup", "summary": "Sebastian Raschka published a video and accompanying note explaining how to set up the Python and PyTorch environment for building a reasoning model from scratch, using the `uv` package manager. The video clarifies the relationship between conventional LLMs, reasoning models, and agents, and discusses the philosophy of 'from scratch' approaches. It is part of a series on building reasoning models from scratch.", "body_md": "# Reasoning Models From Scratch: Code Setup\n\nA little video that\n\n- explains the relationship between conventional LLMs and reasoning models (and agents),\n- philosophizes about “from scratch” approaches,\n- and explains how to install the Python and PyTorch requirements with\n`uv`\n\n.\n\nThe video is here: [Build A Reasoning Model From Scratch #1: Motivation & Code Setup](https://www.youtube.com/watch?v=Kh9mqTzjuEQ).\n\nSource: website version of my [Substack note](https://substack.com/@rasbt/note/c-325854620).\n\n## Read Next\n\n[Two Live Book Club Q&As on September 3 Two free live book club Q&A sessions on September 3 about Build a Reasoning Model From Scratch and related reader questions.](/blog/2026/reasoning-model-book-club-q-and-a.html)\n\n[GLM-5.3-Flash Architecture Notes Architecture note on GLM-5.3-Flash, formerly Ox Alpha, covering its KDA and MLA/DSA hybrid attention, sparse MoE backbone, and four-stream mHC residual pat](/blog/2026/glm-5-3-flash-architecture-notes.html)\n\n[How Claude's Text Watermarking Works Short illustration of how Claude's text watermarking is supposed to work based on Anthropic's released materials.](/blog/2026/claude-text-watermarking.html)", "url": "https://wpnews.pro/news/reasoning-models-from-scratch-code-setup", "canonical_source": "https://sebastianraschka.com/blog/2026/reasoning-models-and-agents-from-scratch.html", "published_at": "2026-08-30 08:42:39+00:00", "updated_at": "2026-08-30 15:52:27.712232+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "ai-research", "developer-tools"], "entities": ["Sebastian Raschka", "PyTorch", "Python", "uv"], "alternates": {"html": "https://wpnews.pro/news/reasoning-models-from-scratch-code-setup", "markdown": "https://wpnews.pro/news/reasoning-models-from-scratch-code-setup.md", "text": "https://wpnews.pro/news/reasoning-models-from-scratch-code-setup.txt", "jsonld": "https://wpnews.pro/news/reasoning-models-from-scratch-code-setup.jsonld"}}