"okay, but I want Llama 3 for my specific use case" - Here's how

  Рет қаралды 294,971

David Ondrej

David Ondrej

Күн бұрын

Пікірлер: 185
@DavidOndrej
@DavidOndrej 9 ай бұрын
🚀 Developers, I’m hiring! Apply here: forms.gle/NbLaQNwAE6d9kkWs7 If you want a personalized AI strategy to future-proof yourself and your business, join my community: www.skool.com/new-society
@SimonBorecMed
@SimonBorecMed 9 ай бұрын
I highly recommend it, the community is fabulous!
@PreparelikeJoseph
@PreparelikeJoseph 8 ай бұрын
Ive been a wordpress developer for the past 20 years and then became the lead search engine optimization manager for an agency, I see a lot of things in AI that are replacing the need for me, I’d like to learn a new skill set in AI that makes me irreplaceable. Maybe I can run an ai automation agency
@dennisking8281
@dennisking8281 9 ай бұрын
Yes, please make a video on how to create the datasets for fine tuning AI - and Thanks for all you do.
@alvinjamur1
@alvinjamur1 9 ай бұрын
why are some here trashing david ondrej? he is imparting knowledge in an easy to understand way for peeps that do not know. i wrote my first neural net from scratch in 1993 and i have been an ML practitioner since then. i can tell u that info back then was hard to come by. be grateful that u have easy access to it. if u dont like it better to move along rather than disperse caustic.
@ageresequituresse
@ageresequituresse 5 ай бұрын
Agree, I just want to confirm that you gerundized 'disperse caustic.' I like it.
@cocosloan3748
@cocosloan3748 2 ай бұрын
Both channel guys are amazing guys Ondrej and Fahid 👍👍
@christopheboucher127
@christopheboucher127 9 ай бұрын
yes dataset made by agents ! Thx for all your content !
@Matthew-tg4uk
@Matthew-tg4uk 9 ай бұрын
vicious circle. give llm a little data and say simulate. llm uses trained data to simulate. user takes simulated data and does the same in another llm. very little new data has been added to the system.
@AlphaCrucis
@AlphaCrucis 9 ай бұрын
This is the kind of content that I've been wanting to see that I haven't been able to find in an easily digestible form.
@vishalsaichindepalli2798
@vishalsaichindepalli2798 9 ай бұрын
It would be great if you could make a video on how to create datasets for fine tuning using LLM's/Agents!
@d.d.z.
@d.d.z. 9 ай бұрын
It can be so helpful!
@AndreSilva-oy5kv
@AndreSilva-oy5kv 8 ай бұрын
each problem you will need to adjust your dataset, this is why data engineers and data scientists work together. If i were a beginner i would start reading public IA notebooks in kaggle, in order to be able to create my own dataset.
@RUSHIKESHTHORAT-sb6rv
@RUSHIKESHTHORAT-sb6rv 8 ай бұрын
did u find any way
@TheMurasaki1
@TheMurasaki1 4 ай бұрын
Interested as well!
@houstonfirefox
@houstonfirefox 26 күн бұрын
This should be relatively simple either using Python or a SQL Script. Let's imagine a dataset containing movies and actors in the movies. You could write a script to generate several prompts describing each line such as "Tom Cruise starred in Top Gun", "Tom Cruise was 28 years old when he starred in Top Gun", "Tom Cruise's character was named "Maverick" in the Top Gun Movie"... and so on and so forth using variables from the dataset to define the various prompts, then simply do the same for each movie/character line in the original dataset. Each prompt may sound similar but they are slightly different in order for the model to fully understand the context behind each. Similarly, generating prompts for financial data is very similar as I do this on a daily basis. My scripts gather the sales for the day, the yearly revenues up until that point in time and generate nightly prompts to train our local LLM. In the morning the data is available to our executive team to query. They can then ask questions such as "What are our average daily sales for December of 2024?". You can also get assistance from Data Scientists on Fiverr to assist with your specific use case.
@laimi7
@laimi7 9 ай бұрын
Thank you for this video. The topic of fine-tuning was very interesting to me.
@LeviFullerThe
@LeviFullerThe 4 ай бұрын
Thanks for the video, David. Really appreciated seeing such a detailed E2E example as I evaluate options for training a custom LLM. Keep up the great work!
@sethjchandler
@sethjchandler 9 ай бұрын
I have seen a lot of videos on fine-tuning and read a lot, and I have to say this is one of the most lucid, explanations. By making it very concrete and showing the code and, importantly, the training data you make very clear what is going on in fine tuning great job!
@gonzalodijoux5953
@gonzalodijoux5953 9 ай бұрын
hello, do you know if it's possible to fine tune with ebook pdf on a specific domain (financial, medical...) ?
@AMarie2326
@AMarie2326 5 ай бұрын
He talks about this in his example where he made an app similar to Blinkist and uploaded a free ebook as his example and he mentioned a section where he added a pdf script somewhere in his Python code so that it would filter certain things in the pdf like the useless cover pages and page numbers etc etc
@visualworkstv
@visualworkstv 6 ай бұрын
Nice video, down to the point and good overview. And cool your honest about how much you know. I like that. Would be interesting to have a video about creating dataset and using Agents for training.
@jonathanholmes9219
@jonathanholmes9219 9 ай бұрын
Yes please. Team of Agents to create a fine tuning data set from your proprietary data.
@Alex-In-AI
@Alex-In-AI 4 ай бұрын
+++
@Chris-zc9bp
@Chris-zc9bp 9 ай бұрын
TY I finally trained my first model. Here's another vote for the how to create the fine tuning using LLM agents.
@gearscodeandfire
@gearscodeandfire 2 ай бұрын
Dude, just found you, you rule! This was an incredibly great analysis!
@DrKnowitallKnows
@DrKnowitallKnows 9 ай бұрын
Hey I could be wrong but I believe you'll have better luck fine tuning with a less quantized version of the model. At least 8 or 16bit would be preferable to 4. I'm not an expert on quantized models, but you lose a lot of resolution when you quantize that much and that likely makes it more challenging for the LoRA to train. Definitely correct me if I'm wrong, folks, but I think this is the case.
@AlphaCrucis
@AlphaCrucis 9 ай бұрын
Nice to see you here!
@isaacnaughton5206
@isaacnaughton5206 8 ай бұрын
Yes, this is consistent with the programming adage 'optimize last'. The trade off is speed for accuracy, but refined-model accuracy will be more important in the longer term than the speed of the refinement process itself.
@elnurasgarli6142
@elnurasgarli6142 3 ай бұрын
Excellent tutorials
@omarsalah3786
@omarsalah3786 7 ай бұрын
the best fine tuning video for ever , thx David
@zeynelacikgoez
@zeynelacikgoez 9 ай бұрын
It would be an interesting topic for a video on how to use agents to generate data for fine-tuning.
@MYPL89
@MYPL89 5 ай бұрын
thank you! this helped me so much.. I just want to know how to tune hyper-parameters? tips and tricks and so on
@gileneusz
@gileneusz 9 ай бұрын
10:29 that would be great tbh, using agents to make dataset to finetune the model is just like inception, you can also make agents to prepare dataset for other agents to create dataset to finetune the model (inception level 2) or make agents to prepare dataset for agents to prepare dataset for finetuning the model which will be used to prepare dataset for agents to prepare dataset............
@St_Phoenix
@St_Phoenix 4 ай бұрын
Awesome video, glad I found your channel. Shout out from South Africa. A video on how to prepare datasets for training, like finetuning an 8b model for a MySQL database. Peace brotherman.
@Mokeysurfer
@Mokeysurfer 8 ай бұрын
I love how enthusiastic you seem. You seem super interested in this stuff. AI is not my specialty, im utilizing it more as a tool for the projects I work on (security research and other stuff). Cool to see someone just being themselves :)
@louisebuijs3221
@louisebuijs3221 3 ай бұрын
I really enjoyed watching this! Your energy gives me hope my project will be fine! I was also wondering what the process is called of finetuning in an iterative way. For instance if I were to finetune a model to make a specific style summary, and I am not fully happy with the output with regards to it not capturing specific information from the input text. How would I provide this as feedback / or turn it into more training data for a next round of finetuning?
@agenticmark
@agenticmark 8 ай бұрын
your right headphone will be over your eye soon ;D Thanks for the great content David!
@____________________________.x
@____________________________.x 4 ай бұрын
This sounds like exactly the thing that I need, thanks
@isaacnaughton5206
@isaacnaughton5206 8 ай бұрын
This is a great video David, you've got yourself a new subscriber. I've been looking for some guidance on this for a while. Don't sweat on not being a complete expert on the topic; you don't need to be 100% across every aspect of a topic to point someone in the right direction. People can fill in the gaps as required.
@patatacaliente8270
@patatacaliente8270 6 ай бұрын
Thank you very much, really informative video. Keep it up!
@drahmadxmedss8078
@drahmadxmedss8078 7 ай бұрын
It would be amazing and helpful if you could make a video on how to create datasets for fine tuning using LLM's/Agents!
@carnageasada5350
@carnageasada5350 9 ай бұрын
Please do make a video on creating datasets, both with and without the use of agents!
@UnSingeEnivre
@UnSingeEnivre 9 ай бұрын
I would love to see a dataset fine tuning tutorial!
@glorixx5974
@glorixx5974 9 ай бұрын
Great vid, it would be really awesome if you could make a video on how to make data sets for fine tuning! That would help a lot
@DihelsonMendonca
@DihelsonMendonca 7 ай бұрын
I didn't understand almost anything, but the video is excellent. You really tried to help. The problem is mine, which needs to have an entire course on "who knows what" to understand that. Perhaps beginning to learn Python, Linux, and data engineering.😅
@flavorbot
@flavorbot 9 ай бұрын
love the videos thanks a lot for taking the time to put them out
@jayhu6075
@jayhu6075 9 ай бұрын
This is a very useful topic, in the future we can train our datasets to specifically use them for different applications, particularly in healthcare or other institutions, benefiting people. Hopefully, a next topic will be about how to create your own datasets. Thanks for the explanation
@Jonathan-et4df
@Jonathan-et4df 9 ай бұрын
please make a video on how to create datasets!
@NB-qq8wo
@NB-qq8wo 9 ай бұрын
LOVE these empowering videos, thanks for sharing 🙏
@humanbeingmusic
@humanbeingmusic 9 ай бұрын
can you offer any advise about importing the ggufs into ollama, mine just spit out gibberish, I presume it has something to do with the modelcard but no idea
@christiansroy
@christiansroy 9 ай бұрын
You can definitely fine-tune ChatGPT 3.5 and you can also ask open AI to invite you to their private waitlist to be able to fine tune GPT 4. So it is definitely possible.
@jimmysrandomness
@jimmysrandomness 8 ай бұрын
is there a unrestricted dalle e generator? or a something simular like dalle. i like it but the restrictions around it is just crazy now these days.
@DavidOndrej
@DavidOndrej 8 ай бұрын
of course, there are plenty of unrestricted SDXL models
@jimmysrandomness
@jimmysrandomness 8 ай бұрын
​@@DavidOndrej What I'm looking for is an unregistered Dalle model The reason for it is that Dalle can convert simple text into extended prompts, unlike many other engines like sdxl
@WhhhhhhjuuuuuH
@WhhhhhhjuuuuuH 8 ай бұрын
Stable cascade ​@@jimmysrandomness
@MathiasKinninkpo
@MathiasKinninkpo 8 ай бұрын
Thanks for the contents. How can we made a dataset by agents, for simulating an interview for example ?
@thiago.nobrega
@thiago.nobrega 9 ай бұрын
Keep up the amazing work bro. You provide us valuable knowledge.
@卢志刚-b6c
@卢志刚-b6c 9 ай бұрын
Where is fine tuning models stored and how can I find and download it for use?
@siema32
@siema32 9 ай бұрын
Actually GPT-4 can be fine-tuned by the user, it's done within the openai API and of course used by it's API later on. It obviously has downsides, like the model is still invoked on the OpenAI servers and they are collecting all the data which goes through it (no privacy), but it is possible :)
@eonian9784
@eonian9784 3 ай бұрын
Has a video on making custom data sets using a team of agents been made?
@nasiksami2351
@nasiksami2351 9 ай бұрын
Hey David, great video and great explanation. Please make a tutorial on how to generate dataset using LLM. For my use case, I have a classification problem and the class imbalance is severe. for the minority classes, I want to generate more meaningful samples using LLM and then build an LLM model to do text classification on the dataset. Any suggestion on achieving this would be great!
@AaksY1-p8t
@AaksY1-p8t 3 ай бұрын
Hi David I have requirement to fine tune off file images. Any idea on how to do it?
@juntonglee7702
@juntonglee7702 7 ай бұрын
Hi, I didn't see how this is domain specific, as I tested the 2 prompts on llama3-8b-instruct itself, the ouput is correct as well. I've tried to fine-tune the instruct model with some Q&A dataset, and it can correctly answer original questions from the dataset, but cannot answer them correctly if I paraphrase the question. Would be great if you can share more on domain specific perspective.
@joaomonteiro9838
@joaomonteiro9838 12 күн бұрын
What if I run this on a Linux Virtual Machine where there will not be a GPU ? Would it work? Cause in first place we check the gpu compatibility
@EfficioIgnisVitae
@EfficioIgnisVitae 6 ай бұрын
What about running this locally? I'd really like to know how to do that, cause the documents aren't easy to follow.
@PaulFishwick
@PaulFishwick 9 ай бұрын
This seems like a lot of work in forming the data prep rather than the RAG approach (eg. custom GPTs) where you embed N documents to “fine tune”. Thoughts on each approach?
@yongxing1848
@yongxing1848 9 ай бұрын
when are you going to make datasets for fine-tuning, I have currently data in mysql that I need to extract and create the datasets for fine-tuning llama.
@MariodeFelipe
@MariodeFelipe 5 ай бұрын
Hi David I think it would be a fantastic idea to do a video on how to make a dataset for llama 3.1 on one complex API. I repeat, complex, long API with multiple inputs and outputs. Every time I see an example the APIs are too simple but real world apis are long and complex they might not fit in a prompt
@Balajik7-qh1pq
@Balajik7-qh1pq 9 ай бұрын
awesome David
@abhayurmaliya6801
@abhayurmaliya6801 3 ай бұрын
Hello Sir !!! Please reply to my question. I have finetunes llama on my custom dataset but now I am having problem in Deployment I am using Flask and each time I run the flask app it load the lora adapters and then load the while base model architecture which end up loading all the ram and then end the session but I don't want that. I just want to use the lora adapters Also the problem I am facing is also with model.save_pretrained() it says that quantised model can't be stored like this. Please tell me what to do
@rtut79
@rtut79 3 ай бұрын
Thank you so much
@jackderrida
@jackderrida 9 ай бұрын
3:37 He is 100% correct that already fine-tuned LLMs like GPT, Claude, and even Gemini 1.5 Pro with 1m+ context, are freaking awful at trying to emulate writing styles. Worst part about ChatGPT for this purpose is that no matter how much you tell it not to, it's filled with clauses like "On the other hand,", "Finally, ", or "As a consequence" and I'll explain to it again all the reasons those phrases don't belong in a rap song.
@Will_669
@Will_669 9 ай бұрын
what's the dataset like if train for conversations? for example: in a conversation, we have one instruction, multi inputs, and multi outputs
@kylearnold9647
@kylearnold9647 9 ай бұрын
You're putting out some great content
@andrelvcoelho
@andrelvcoelho 9 ай бұрын
Yeah, it would be nice if you could set up a video showing how to automatically generate datasets for fine-tuning LLMs… Tks
@AIMLDemo
@AIMLDemo 2 ай бұрын
Informative video!
@SpicyMelonYT
@SpicyMelonYT 9 ай бұрын
Is the trained model able to be used with "ollama run trained_model_name"? Do I have to download it directly and put it some where for that to work? I currently have a python program setup that uses the ollama module and runs llama3. But I would like to use a fine tuned model instead as I am trying to make a Jarvis like personal assistant!
@kamipls6790
@kamipls6790 9 ай бұрын
Hey Ondrej! I think this might be a stretch of the topic, but is it possible to use an llm like llama 3 and fine tune it to respond in another language or would it be necessary to train an llm from scratch for this?
@icesteel5855
@icesteel5855 9 ай бұрын
As I am , i need to know this
@jees__antony
@jees__antony 9 ай бұрын
Great work... Thanks for the tutorial ❤❤❤
@joseeduardobolisfortes
@joseeduardobolisfortes 9 ай бұрын
This video is exactly what I was looking for. Thank you. Now, I wish to know which hardware configuration I will need to install and use Llama 3 models locally in my own machine. Can you help me?
@tanmaychakraborty7818
@tanmaychakraborty7818 7 ай бұрын
But what if I have tabular data containing different columns such as name age dob etc and I want to generate synthetic data from it
@stanisd
@stanisd 9 ай бұрын
open AI has its own API for fine-tuning
@farazfitness
@farazfitness 8 ай бұрын
Need help with this can you do a video how to use it on gpt4all after fine tuning I'm unable to do that. Also amazing video thank you soo much
@chibuzoemelike6403
@chibuzoemelike6403 7 ай бұрын
After fine tuning this model, how do I create a chatbot with the model.
@gnoppixlinux
@gnoppixlinux 9 ай бұрын
love the 3 primary colors at 10:12 :)
@sourabhiitian
@sourabhiitian 9 ай бұрын
hi i have a question, what if i want to use my dataset json file into the cell instead of huggingface alpaca json. Can you give the part of the input code
@tanvirmiahjoy7153
@tanvirmiahjoy7153 7 ай бұрын
Can you make a video performing fine tuning?
@doveshouse
@doveshouse 7 ай бұрын
Could I fine tune my private llama 3 llm but also connect it to chat GPT 4 API such that it can reach out for additional information beyond what the pre-trained model and private knowledge base May have? If so would it then be using chat GPT for API almost like some people can figure rag to look at their private data sets?
@Because_Reasons
@Because_Reasons 8 ай бұрын
I'm finding the data-set stuff very confusing. What if I want to create a data-set that's just my writing? I want the model to emulate my writing perfectly. I don't have question/answer pairs.
@anomiedesign5030
@anomiedesign5030 8 ай бұрын
@David what do you suggest if you want to create javascript? and how do i train it?
@keflat23
@keflat23 8 ай бұрын
do you think that sora could be at the point to "read a book" and create a direct visual video of the story of the book?
@JenuelDevTutors
@JenuelDevTutors 8 ай бұрын
your a savior
@belu6914
@belu6914 9 ай бұрын
Did anyone get the example running? The copied notbook results in an error when starting the training. I already fixed the missing comma and set the max_steps to 60.
@rougeseventeen
@rougeseventeen 8 ай бұрын
thanks for the tutorial!!
@SUSMA.SSNSCE-CSE
@SUSMA.SSNSCE-CSE 8 ай бұрын
What is the python version used in the above colab code
@richierosewall3035
@richierosewall3035 9 ай бұрын
Hey what about phi-3..?
@GreenStorm01
@GreenStorm01 9 ай бұрын
How about Fine-Tuning vs. RAG in those specific things?
@shaigrustamov5115
@shaigrustamov5115 9 ай бұрын
it's a good video, thanks. But there are a lot of videos about fine tuning. It would be perfect if you would create a video on how to create own data sets for fine tuning. 👍
@Alejandro_Casti
@Alejandro_Casti 9 ай бұрын
I want to Create a Lama 3 legal Assistent. I would be happy in you can Show a data prep example
@lorenzoplaatjies8971
@lorenzoplaatjies8971 8 ай бұрын
Can I use Visual Studio Code & follow along ?
@SwoleKitchen
@SwoleKitchen 7 ай бұрын
Can I import llama three into software that I’m developing ?
@RemekKinas
@RemekKinas 9 ай бұрын
I am looking for tutorial how to generate dataset using Agents. There is no such tutorial (or I am not able to find it). It would be great to generate chat format (conversation) dataset as a response of task. So as an input you have list of task, question and then agents generate conversation to this topic.
@tekipeps
@tekipeps 9 ай бұрын
Nice, how to deploy the saved model?
@josephtilly258
@josephtilly258 9 ай бұрын
Are local LLM really that local or just free ? Because I'm not really running it on my computer, more of a cloud base free and flexible llm ?
@theobgshow
@theobgshow 9 ай бұрын
Yea they are. You can run ollama on your computer then pull down a model, such as llama3, Mistral or Dolphin and run everything, completely locally
@NagasriPappu
@NagasriPappu 8 ай бұрын
do we have to pass a csv an an input data or json ?
@giseiitb
@giseiitb 8 ай бұрын
I didn't understand, where you gave your dataset to fine-tune on?
@nimesh.akalanka
@nimesh.akalanka 9 ай бұрын
Is there any free method to fine tune an large language model locall. I have a small workstation with 128GB DDR4 memory, Nvidia RTX A1000 X2 SLI VGA, AMD Threadripper process. I tried AutoTune-Advanced and LLaMA-Factory. They both failed on me. Autotrain say I dont have enough VRAM. LLaMA-Factory say I dont have CUDA. Please help me.
@kamruzzamanuzzal3764
@kamruzzamanuzzal3764 9 ай бұрын
any way to input images as well to fine tune on image and text at the same time?
@darkesco
@darkesco 9 ай бұрын
Very useful information!
@strategy419
@strategy419 9 ай бұрын
did you try finetuning gpt3.5 on the playground?
@trueindian03
@trueindian03 9 ай бұрын
How to train a data set which is not in the form of instructions, input, output format, lets say I want to train the model using the data from a pdf, or any other means, how can we do that, please suggest some ideas. Thanks in advance.
@AndreSilva-oy5kv
@AndreSilva-oy5kv 8 ай бұрын
i've been seen people using llava model to train models like that
@광광이-i9t
@광광이-i9t 9 ай бұрын
Thanks alot !!! it is really helpful :)
@zippytechnologies
@zippytechnologies 9 ай бұрын
If there a way to generate the dataset input output data from contextual data like emails and q&a from website forums?
@abeenoch
@abeenoch 6 ай бұрын
Yes, I generated synthetic data i used for training an rlhf model.
@raushanpathak2748
@raushanpathak2748 4 ай бұрын
Hi David could you please provide the video on Llama4
@InfectedChild
@InfectedChild 4 ай бұрын
10:36 -- Yes, please! Thats the most interesting thing to me. Lets assume I have a company with tons of internal information (Intranet posts, PDF files etc.) and I want an easy way to fine tune LLaMA 3 on all this info. How to create a dataset out of this? To create questions and answers based on those information would take a humans life. 😅
@DrumAndSpaces
@DrumAndSpaces 9 ай бұрын
perfect timing i was just thinking about having multiple llama 3 versions fine tuned for specific coding projects instead of a broad coding language base. is this just a waste of time and im better off having a general coding version instead? i was considering having a few fine tuned models to imitate a development team with crew.
@VaibhavPatil-rx7pc
@VaibhavPatil-rx7pc 9 ай бұрын
Excellent information ❤
Fine-tuning Large Language Models (LLMs) | w/ Example Code
28:18
Shaw Talebi
Рет қаралды 407 М.
This Llama 3 is powerful and uncensored, let’s run it
14:58
David Ondrej
Рет қаралды 193 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
RAG vs. Fine Tuning
8:57
IBM Technology
Рет қаралды 158 М.
I Analyzed My Finance With Local LLMs
17:51
Thu Vu
Рет қаралды 507 М.
Build Anything on AI Agents, Here’s How
23:05
David Ondrej
Рет қаралды 47 М.
EASILY Train Llama 3 and Upload to Ollama.com (Must Know)
14:51
Mervin Praison
Рет қаралды 58 М.
Build Anything with Llama 3.1 Agents, Here’s How
1:00:31
David Ondrej
Рет қаралды 72 М.
Turn ANY Website into LLM Knowledge in SECONDS
18:44
Cole Medin
Рет қаралды 203 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН