Train LLMs in just 50 lines of code!

From the creator

In this video, i'll show you how you can train or finetune your own LLM in the least amount of code possible. In addition, as a bonus, ill also show you how you can do the same without writing any code at all. For the coding part, we will be using torch, transformers, peft and trl libraries. For the no-code solution, we will be using autotrain-advanced. You can install autotrain-advanced using pip: "pip install autotrain-advanced" I'll be using my home machine. No cloud needed! Please subscribe and like the video to help me keep motivated to make awesome videos like this one. :) My book, Approaching (Almost) Any Machine Learning problem, is available for free here: https://bit.ly/approachingml Follow me on: Twitter: https://twitter.com/abhi1thakur LinkedIn: https://www.linkedin.com/in/abhi1thakur/ Kaggle: https://kaggle.com/abhishek

Choose to Build with AI
Matched to Train a Team

AI Maker Residence 3

The third AI workshop taught by our legendary teacher, Nick Sarafa. This is a full-day hands-on training workshop for purposeful co-creation with AI using Claude Code. Imagine having access to hundreds of billions of dollars of computing power and knowing exactly how to make it work for you through the power of super intelligence.

◆ Fri 09 Oct 2026 ◆ KOKO Cafe, London ◆ With Nick Sarafa
AI Maker Residence 3
Live event
AI Maker Residence 3
Fri 09 Oct 2026

More like this

Running one yourself?

List your AI event,
wherever it is.

A meetup, a workshop, a hackathon, a conference. Any city, or online. Tell us about it and it lands in front of people already learning this stuff.