Fine-Tuning Llama 3 on a Custom Dataset: Training LLM for a RAG Q&A Use Case on a Single GPU

  Рет қаралды 7,795

Venelin Valkov

Venelin Valkov

Күн бұрын

Are you happy with your Large Language Model (LLM) performance on a specific task? If not, fine-tuning might be the answer. Even a simpler, smaller model can outperform a larger one if it's fine-tuned correctly for a specific task. In this video, you'll learn how to fine-tune Llama 3 on a custom dataset.
Model on HF: huggingface.co/curiousily/Lla...
Philipp Schmid Post: www.philschmid.de/fine-tune-l...
Follow me on X: / venelin_valkov
AI Bootcamp: www.mlexpert.io/bootcamp
Discord: / discord
Subscribe: bit.ly/venelin-subscribe
GitHub repository: github.com/curiousily/AI-Boot...
👍 Don't Forget to Like, Comment, and Subscribe for More Tutorials!
00:00 - Why fine-tuning?
00:25 - Text tutorial on MLExpert.io
00:53 - Fine-tuning process overview
02:19 - Dataset
02:56 - Lllama 3 8B Instruct
03:53 - Google Colab Setup
05:30 - Loading model and tokenizer
08:18 - Create custom dataset
14:30 - Establish baseline
17:37 - Training on completions
19:04 - LoRA setup
22:25 - Training
26:42 - Load model and push to HuggingFace hub
28:43 - Evaluation (comparing vs the base model)
32:50 - Conclusion
Join this channel to get access to the perks and support my work:
/ @venelin_valkov
#llama3 #llm #rag #finetuning #promptengineering #chatgpt #chatbot #langchain #gpt4

Пікірлер: 10
@venelin_valkov
@venelin_valkov Ай бұрын
Full-text tutorial (requires MLExpert Pro): www.mlexpert.io/bootcamp/fine-tuning-llama-3-llm-for-rag What performance did you get with your fine-tuned model?
@karthikb.s.k.4486
@karthikb.s.k.4486 Ай бұрын
How to buy monthly subscription please let me know any link for it? As the link says yearly need the link for monthly
@TayyabAhmad007
@TayyabAhmad007 24 күн бұрын
I trained it with 2 epochs and the result was amazing! Nice explanation btw!!
@francycharuto
@francycharuto 17 күн бұрын
Could you share your use case?
@fardinahmadpor1225
@fardinahmadpor1225 10 күн бұрын
Thank you in have watch several videos on llama fine tuning With lots of differences you are the best ! Especially anout dataset and how you formatted it
@MecchaKakkoi
@MecchaKakkoi Ай бұрын
Great stuff as usual. Very useful info!
@karthikeyakollu6622
@karthikeyakollu6622 Ай бұрын
Im looking for this ❣️
@mohammedaitkheri6200
@mohammedaitkheri6200 2 күн бұрын
can we follow the same steps to finetuning another model LMM like Mistral AI ?
@cchristoff
@cchristoff 13 күн бұрын
Дали base model-a ще може да се тренира с двойки въпрос-отговор на Български?
@TheRottweiler_Gemii
@TheRottweiler_Gemii Ай бұрын
Can we fine tune to 2bit model ?
QLoRA-How to Fine-tune an LLM on a Single GPU (w/ Python Code)
36:58
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 63 МЛН
Amazing weight loss transformation !! 😱😱
00:24
Tibo InShape
Рет қаралды 65 МЛН
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 28 МЛН
"okay, but I want Llama 3 for my specific use case" - Here's how
24:20
Create fine-tuned models with NO-CODE for Ollama & LMStudio!
21:52
Tim Carambat
Рет қаралды 17 М.
Llama3.1 Fine Tuning Complete Guide on Colab
14:39
Business Applications of AI
Рет қаралды 1,2 М.
Why Fine Tuning is Dead w/Emmanuel Ameisen
50:07
Hamel Husain
Рет қаралды 29 М.
Fine-tuning Large Language Models (LLMs) | w/ Example Code
28:18
Shaw Talebi
Рет қаралды 286 М.
I wish every AI Engineer could watch this.
33:49
1littlecoder
Рет қаралды 76 М.
Meta Llama 3 Fine tuning, RAG, and Prompt Engineering for Drug Discovery
1:07:41
Prompt Engineering, RAG, and Fine-tuning: Benefits and When to Use
15:21
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 63 МЛН