Fine-Tune EmbeddingGemma: 5% to 77% RAG Accuracy (Free Colab)
Skills:
Fine-tuning LLMs90%
๐ Notebook: https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/EmbeddingGemma_(300M).ipynb
โฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌ
Fine-tune embedding models 2x faster with Unsloth. This tutorial shows you how to fix your RAG retrieval by training embeddings on your own domain data.
๐ RESOURCES
Unsloth Embedding Docs: https://docs.unsloth.ai/
EmbeddingGemma-300M: https://huggingface.co/google/embeddinggemma-300m
Medical Dataset: https://huggingface.co/datasets/tomaarsen/miriad-4.4M-split
โฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌ
๐ GO DEEPER: Extension Materials
Annotated notebook + slides explaining the metrics, loss functions, and production configs:
โ Join Discord (free): https://discord.com/invite/KpnJQbgpjt
โฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌ
โฑ๏ธ TIMESTAMPS
00:00 Intro & Results Preview
00:42 Why Retrieval Quality Matters
01:24 Unsloth Features & Speed
02:09 Setup & Loading Model
02:47 Adding LoRA Adapters
03:07 Medical Dataset Prep
03:44 Baseline Model Performance
04:32 Training Configuration
05:14 Fine-Tuned Results Evaluation
05:49 Real-World Inference Test
06:09 Saving & Exporting Models
06:22 Metrics Guide & Outro
โฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌโฌ
#unsloth #embeddings #rag #finetuning #machinelearning #llm #python #colab #tutorial
Watch on YouTube โ
(saves to browser)
Sign in to unlock AI tutor explanation ยท โก30
More on: Fine-tuning LLMs
View skill โRelated AI Lessons
โก
โก
โก
โก
How I Discovered My RAG Was Wrong 29% of the Time
Medium ยท RAG
The 10-Layer Security System Your RAG Pipeline Is Missing
Dev.to ยท klement Gunndu
The Hidden Complexity of RAG โ From Beginner Surface to Builder Depth
Medium ยท LLM
The Hidden Complexity of RAG โ From Beginner Surface to Builder Depth
Medium ยท RAG
Chapters (12)
Intro & Results Preview
0:42
Why Retrieval Quality Matters
1:24
Unsloth Features & Speed
2:09
Setup & Loading Model
2:47
Adding LoRA Adapters
3:07
Medical Dataset Prep
3:44
Baseline Model Performance
4:32
Training Configuration
5:14
Fine-Tuned Results Evaluation
5:49
Real-World Inference Test
6:09
Saving & Exporting Models
6:22
Metrics Guide & Outro
๐
Tutor Explanation
DeepCamp AI