Super Data Science: ML & AI Podcast with Jon Krohn
Super Data Science: ML & AI Podcast with Jon Krohn

767: Open-Source LLM Libraries and Techniques, with Dr. Sebastian Raschka

Jon Krohn sits down with Sebastian Raschka to discuss his latest book, Machine Learning Q and AI, the open-source libraries developed by Lightning AI, how to exploit the greatest opportunities for LLM development, and what’s on the horizon for LLMs.This episode is brought to you by the DataConnect C

Featured Speakers

Jon Krohn HostSebastian Raschka Guest

Topics Discussed

Episode Summary

Executive Summary: Sebastian Raschka discussed his new books, especially a Q&A-style ML/AI book and a step-by-step LLM-from-scratch book, then detailed Lightning AI’s open-source stack (PyTorch Lightning, Fabric, LitGPT) and commercial Lightning Studios. He emphasized parameter-efficient fine-tuning, especially LoRA and the newer DoRA, compared LLM architectures like Gemma, and covered emerging training/alignment methods such as RLAIF, DPO, and KTO, plus future directions like MoE and Mamba-style alternatives to transformers.

Main Topics: Sebastian Raschka’s books and teaching approach: Raschka explained his new Q&A-format machine learning book and his LLM-from-scratch book, emphasizing readability, figures, modular chapters, and usefulness for intermediate practitioners. Lightning AI’s open-source ecosystem: He described PyTorch Lightning, Fabric, and LitGPT as complementary tools to simplify PyTorch training, multi-GPU experimentation, and readable LLM implementation. Lightning Studios as a cloud research environment: Raschka outlined the browser-based development environment with easy switching between CPU and GPU hardware, notebook/VS Code support, collaboration, and cluster integration. LLM fine-tuning efficiency and DoRA: A major technical focus was parameter-efficient fine-tuning, especially LoRA, and the newer DoRA method, which decouples magnitude and direction for better performance at lower rank. Model architecture trends: Gemma, multi-query attention, and alternatives: He discussed Google’s Gemma models, why smaller models like 2B may be a sweet spot, and architecture choices such as multi-query attention and GeGLU. Alignment and preference-optimization methods: Raschka reviewed RLHF, RLAIF, DPO, and KTO, contrasting reward-model-based alignment with direct preference optimization and single-score approaches. Future directions: MoE and non-transformer architectures: He highlighted mixture-of-experts and alternatives like Mamba/Hyena as promising directions for efficiency and specialization beyond standard transformers.

Key Arguments: His Q&A book is designed to be timeless by minimizing code dependence and focusing on conceptual clarity, exercises, and figures. Lightning AI’s open-source tools reduce boilerplate and make PyTorch/LLM experimentation easier without locking users into one workflow. Fabric is not more capable than PyTorch Lightning; it exists as a lighter stepping stone for users who want minimal changes to existing PyTorch code. DoRA appears to improve on LoRA by decoupling magnitude and direction, potentially achieving better results with fewer trainable parameters. Smaller LLMs around 2B parameters may be a practical sweet spot for experimentation because they are capable yet cheaper and faster to iterate on. RLHF is powerful but expensive; methods like DPO and KTO are attractive because they reduce the need for a separate reward model or paired comparisons. Future LLM progress may come from specialization, MoE routing, and architectures that are not pure transformers, rather than only scaling up current models.

Data Points: Episode number: 767 - Opening metadata for the podcast episode Book chapter count: 30 questions and answers - Raschka’s Machine Learning Q and AI book Machine Learning Q and AI chapters: 5 chapters - Book structure described by Raschka Largest chapter question count: about 10 questions - Distribution of questions across the Q&A book chapters Book release timeline: August/September for digital chapters; 2025 for final print release - Estimated availability for Build a Large Language Model from Scratch Figure count in chapter 3: 26 figures - Raschka noted the number of illustrations in one early chapter of the LLM book Combined social followers: 350,000+ - Raschka’s following across LinkedIn and Twitter/X Newsletter subscribers: 50,000 - Raschka’s technical blog/newsletter audience ML Extend GitHub stars: about 5,000 - Popularity of his machine learning utilities package ML Extend daily downloads: 20,000+ per day - Usage of the package LoRA rank example: rank 8 commonly used - Raschka’s explanation of typical low-rank adaptation settings DoRA rank example: rank 4 reported in the paper - He said DoRA can outperform standard LoRA with half the rank Gemma model sizes: 2B and 7B - Google’s newly released Gemma family discussed in the episode Llama family sizes mentioned: 7B, 13B, 65B (and 34B in research paper context) - Comparison point for Gemma and existing open models Phi model size: 2.7B (Phi 2) and 1.3B (Phi 1) - Raschka fact-checked Microsoft Phi sizes during the discussion

Pivotal Quotes: "If you are traveling, you're on a plane, or you sit in your favorite chair and drink your morning coffee." — Sebastian Raschka: Describing the intended reading experience for his no-code Q&A book "There is no need to use Fabric because you already have all the cool things available in PyTorch Lightning." — Sebastian Raschka: Explaining that Fabric is a minimal stepping-stone, not a more powerful alternative "LoRa is a technique to make hyperparameter tuning, oh, sorry, fine-tuning more parameter efficient. And with LoRa, you can make LoRa more parameter efficient." — Sebastian Raschka: Summarizing why DoRA matters and how it improves parameter-efficient fine-tuning

Implications: For practitioners, the episode highlights a practical path to cheaper, faster LLM work: use open-source tooling, smaller models, and parameter-efficient methods. For the industry, the next gains may come less from brute-force scaling and more from specialization, alignment innovation, and architectural efficiency.

🔓 Sign Up for Unlimited Episode Search

About Super Data Science: ML & AI Podcast with Jon Krohn

View all episodes from Super Data Science: ML & AI Podcast with Jon Krohn