In Lecture 37 of our Gen AI in Hindi series, Bipin Kumar goes fully hands-on ā writing and running real fine-tuning code live using Kaggle's free GPU, the Unsloth library, and the Qwen2.5-0.5B model.
This is where theory becomes practice. If you've been following the series, this is the session you've been waiting for.
š» What You'll Build in This Lecture:
A Transaction Categorizer ā a fine-tuned LLM that classifies any bank transaction (e.g. "DMart ā¹850" ā shopping, "IRCTC booking" ā travel) into 10 categories automatically.
š§ Topics Covered in This Lecture:
āļø Setup & Tools:
Kaggle ā free GPU (T4) for fine-tuning, no cost for learning
Google Colab ā alternative for smaller experiments
AWS SageMaker ā production fine-tuning walkthrough (ML.G4DN instances)
Unsloth ā fastest open-source fine-tuning library with standard notebooks
š Dataset Preparation:
JSONL format: system + user + assistant template structure
Train/validation split ā why unseen data matters (batsman analogy explained!)
How many examples are enough? Starting small and scaling up
š¢ LoRA ā Matrix Math Explained Simply:
Full fine-tuning vs LoRA ā why we don't change all 0.8B weights
W + ĪW = W + AĆB ā the core LoRA equation, step by step
Rank r controls trainable params: r=16 ā only 6.4M of 568M params trained
8Ćr matrix A + rĆ8 matrix B ā same output shape, fraction of the cost
ā” QLoRA:
Combine quantization (4-bit model weights) + LoRA (frozen base)
Massive GPU memory savings ā run fine-tuning on consumer hardware
š Reading Training Results:
Training loss vs validation loss ā both should decrease
Overfitting & underfitting ā how to spot and fix them
accuracy ā 1 - validation_loss ā quick estimation trick
num_epochs, batch_size, learning_rate, lora_rank, lora_alpha ā all explained next class
āļø Next Lecture (Lecture 38):
š Fine Tuning Parameters Deep Dive ā epochs, learning rate, precision, recall, overfitting & underfitting ā and completing fine tuning end-to-end
š Full Course Roadmap:
š Python ā š¤ Generative AI ā š§ Agentic AI ā āļø AWS + Real Projects
š ļø Tools Used This Lecture:
Kaggle ā kaggle.com
Unsloth ā unsloth.ai
Hugging Face ā huggingface.co
AWS SageMaker ā aws.amazon.com/sagemaker
š¬ Drop your questions in the comments ā Bipin replies!
š Subscribe & hit the bell for weekly lectures.
#FineTuningLLM #LoRA #QLoRA #Unsloth #Kaggle #HuggingFace #GenerativeAI #AIHindi #BipinKumar #Qwen #LLMTraining #MachineLearning #AIforEngineers #SageMaker #HandsOnAI
In Lecture 37 of our Gen AI in Hindi series, Bipin Kumar goes fully hands-on ā writing and running real fine-tuning code live using Kaggle's free GPU, the Unsloth library, and the Qwen2.5-0.5B model.
This is where theory becomes practice. If you've been following the series, this is the session you've been waiting for.
š» What You'll Build in This Lecture:
A Transaction Categorizer ā a fine-tuned LLM that classifies any bank transaction (e.g. "DMart ā¹850" ā shopping, "IRCTC booking" ā travel) into 10 categories automatically.
š§ Topics Covered in This Lecture:
āļø Setup & Tools:
Kaggle ā free GPU (T4) for fine-tuning, no cost for learning
Google Colab ā alternative for smaller experiments
AWS SageMaker ā production fine-tuning walkthrough (ML.G4DN instances)
Unsloth ā fastest open-source fine-tuning library with standard notebooks
š Dataset Preparation:
JSONL format: system + user + assistant template structure
Train/validation split ā why unseen data matters (batsman analogy explained!)
How many examples are enough? Starting small and scaling up
š¢ LoRA ā Matrix Math Explained Simply:
Full fine-tuning vs LoRA ā why we don't change all 0.8B weights
W + ĪW = W + AĆB ā the core LoRA equation, step by step
Rank r controls trainable params: r=16 ā only 6.4M of 568M params trained
8Ćr matrix A + rĆ8 matrix B ā same output shape, fraction of the cost
ā” QLoRA:
Combine quantization (4-bit model weights) + LoRA (frozen base)
Massive GPU memory savings ā run fine-tuning on consumer hardware
š Reading Training Results:
Training loss vs validation loss ā both should decrease
Overfitting & underfitting ā how to spot and fix them
accuracy ā 1 - validation_loss ā quick estimation trick
num_epochs, batch_size, learning_rate, lora_rank, lora_alpha ā all explained next class
āļø Next Lecture (Lecture 38):
š Fine Tuning Parameters Deep Dive ā epochs, learning rate, precision, recall, overfitting & underfitting ā and completing fine tuning end-to-end
š Full Course Roadmap:
š Python ā š¤ Generative AI ā š§ Agentic AI ā āļø AWS + Real Projects
š ļø Tools Used This Lecture:
Kaggle ā kaggle.com
Unsloth ā unsloth.ai
Hugging Face ā huggingface.co
AWS SageMaker ā aws.amazon.com/sagemaker
š¬ Drop your questions in the comments ā Bipin replies!
š Subscribe & hit the bell for weekly lectures.
#FineTuningLLM #LoRA #QLoRA #Unsloth #Kaggle #HuggingFace #GenerativeAI #AIHindi #BipinKumar #Qwen #LLMTraining #MachineLearning #AIforEngineers #SageMaker #HandsOnAI