COSCUP x UbuCon Asia 2026 Logo
  • About
  • Session
  • Transportation
  • Venue
  • Communities
  • Sponsors
    • Participate Guide
    • First Timer
    • Activity
    • Speaker Participation
    • Welcome Party
    • For Overseas Visitors
    • Open Source Communities
    • Sponsorship Partners
    • Invitation Letter Guide
  • Staff
  • Fringe Events / BoF
  • Blog
  • CoC
中文

What Can 200 Lines of Python Train? A Deep Dive into MicroGPT

Time
2026-08-08 10:40 ~ 11:10
Speaker
Tim Hsu
Room
TR412-1
Co-write
https://hackmd.io/r1ZIx4eLzg
Feedback
https://coscup.org/2026-feedback/?session=ANYHFP
Python Track by Taipei.py IntermediateMandarin

Abstract

Have you ever wondered what it really takes to train a GPT model? Surprisingly, the core ideas can fit into just a couple hundred lines of Python.

In this talk, I'll walk through my notes on studying Andrej Karpathy's microGPT implementation. Designed to be as simple and educational as possible, microGPT implements the essential building blocks of modern language models—Transformers, Attention, Embeddings, and more—without the complexity of production-scale frameworks.

Rather than treating GPT as a black box, we'll build an intuitive understanding of how these components work together to train a language model.

By the end of the session, Attention may not feel nearly as mysterious anymore. You'll also understand what all that ever-growing GPU memory is actually being used for—and why modern language models need so much of it. 🙂

Speaker

Tim Hsu

Diamond

Cumulative4 YrsCanonical

Gold

Consecutive2 YrsInformation Management AssociationConsecutive2 YrsCathay Financial HoldingsConsecutive5 YrsE.SUN BankCumulative13 YrsMySQLCumulative6 YrsBerry AINitra

Silver

Cumulative16 YrsGamesofa Inc.Cumulative3 YrsLinux Professional Institute

Bronze

Collaborator2 YrsKKTIXCumulative3 YrsNational Center for High-performance ComputingONLYOFFICECumulative6 YrsQNAP Systems, Inc.Consecutive16 YrsThe Archilife Research FoundationSUN SQUARE Co., LtdPenpeer

Friend

Consecutive3 YrsAndes Technology CorporationCumulative12 YrsAppierCumulative3 YrsGeode Labs & ETHTaipei

Special Thanks

Consecutive2 YrsDepartment of Information Technology, Taipei City GovernmentCollaborator3 YrsSiFive數位發展部Rozeta AIGrafana LabsLive YoungCollaborator5 YrsThree Wheel Nitro CoffeeCollaborator9 YrsHackmdCollaborator4 Yrs天瓏書局Collaborator3 YrsTapPayIndividual-Sponsorship

Co-host

Collaborator9 YrsNTUST - Department of Electronic and Computer Engineering

Co-organizer

Collaborator12 YrsOpen Culture Foundation

COSCUP x UbuCon Asia 2026

Conference for Open Source Coders, Users, and Promoters | Asia's largest open source community conference.

Contact

  • Attendee Services
  • Sponsorship
  • Call for Proposals
  • Marketing

Resources

  • COSCUP Blog
  • Newsletter Subscription
  • Event Photos

Sitemap

  • Home
  • About
  • Transportation
20062007200820092010201120122013201420152016201720182019202020212022202320242025