How to Fine-tune GPT-3 to Get Better Results and Save Cost | NLP | Python |

  Рет қаралды 22,251

Pradip Nichite

Pradip Nichite

Күн бұрын

Пікірлер: 73
@FutureSmartAI
@FutureSmartAI Жыл бұрын
📌 Hey everyone! Enjoying these NLP tutorials? Check out my other project, AI Demos, for quick 1-2 min AI tool demos! 🤖🚀 🔗 KZbin: www.youtube.com/@aidemos.futuresmart We aim to educate and inform you about AI's incredible possibilities. Don't miss our AI Demos KZbin channel and website for amazing demos! 🌐 AI Demos Website: www.aidemos.com/ Subscribe to AI Demos and explore the future of AI with us!
@rudrasharma91
@rudrasharma91 Жыл бұрын
Thank You Pradip.. i looked for a couple of videos of fine tuning models, but nobody could give the clarity you gave in this video. All the best
@FutureSmartAI
@FutureSmartAI Жыл бұрын
Glad it helped
@sairam332
@sairam332 Жыл бұрын
Awesome content. Thanks for the effort.
@capeandcode
@capeandcode Жыл бұрын
Great Video Pradip! Clear explanation and clean code. Thanks!
@FutureSmartAI
@FutureSmartAI Жыл бұрын
Most welcome!
@planetmars6615
@planetmars6615 2 жыл бұрын
Thanks pradip. Really helpful and straight to the point videos. I wish all the luck and blessings for your channel. Full power! 🥳
@FutureSmartAI
@FutureSmartAI 2 жыл бұрын
Thank You. Do check other videos also.
@muruvetalpay5290
@muruvetalpay5290 Жыл бұрын
Thanks for this video. I keep getting the error "Stream interrupted (client disconnected).To resume the stream, run". How can I fix this?
@duetplay4551
@duetplay4551 Жыл бұрын
Would you please refer more study material on fine-tuning mechanisms behind the scene, Thanks!
@FutureSmartAI
@FutureSmartAI Жыл бұрын
We really don't know anything behind scenes we only have their guide and best practices. beta.openai.com/docs/guides/fine-tuning
@duetplay4551
@duetplay4551 Жыл бұрын
@@FutureSmartAIgot it, Thanks
@bilalirfan7303
@bilalirfan7303 Жыл бұрын
Hi Sir, thanks for video. Q1- How can we add parameters in fine tuning like we want to fine tune data with specific number of tokens, temperature how can we add that. Q2- For example we want content Generation from GPT-3 Model do we need to use different prompt's for reference because we want to generate unique content every time in same domain Q3- If we fine tune Model without max token's how can we decide max token's while using that Model because if we select less max token's then we don't get complete results with fine tuned Model. (I am working on content generation in sport's domain like (write a unique article on how to play t20 match?))
@venkatesanr9455
@venkatesanr9455 2 жыл бұрын
Thanks for the video and great explanation. It is better to discuss handling unstructured and unbalanced dataset(real time experiments most of the time) in nlp tasks. Can you make such video?
@FutureSmartAI
@FutureSmartAI 2 жыл бұрын
Great suggestion!
@josemariagh6565
@josemariagh6565 2 жыл бұрын
Thanks for the video really interesting . about unstructured dataset I have tried load a book directly without any key in the prompt for "talk" with the author of the book and I have had crazy answers. .... I don't know how could do something like that .... Could you help me?
@Fingiorstyle
@Fingiorstyle 2 жыл бұрын
@@josemariagh6565 did you have any progress with this book thing?
@sarbanimaiti8839
@sarbanimaiti8839 Жыл бұрын
Thanks Pardip, very good detail explanation. One thing I would like to ask here, I was experimenting the fine tuning with similar data and then also I was passing generic prompt to check if chatgpt is also showing its generic knowledge. But the generic answers were not correct sometimes quite random meaningless. Also I wanted to combine the prompt to get response from my data as well as generic knowledge of chatgpt. Again it was not able to answer. Any thought around this?
@FutureSmartAI
@FutureSmartAI Жыл бұрын
I know we don't have control over GPT-3 response, mostly on the factual part. Thats why we dont want to rely on models for knowledge rather we should maintain knowledgebase outside. In two days, I will be releasing a video on Semantic Search + GPT-3 Qna.
@sarbanimaiti8839
@sarbanimaiti8839 Жыл бұрын
@@FutureSmartAI Thank you
@s.sasisekhar4608
@s.sasisekhar4608 2 жыл бұрын
Very Helpful content
@FutureSmartAI
@FutureSmartAI 2 жыл бұрын
Glad it was helpful!
@MegaJaddi
@MegaJaddi Жыл бұрын
Thank you for your tutorial, just the problem in real life we ​​can't share private data like that in the open model for everyone. So is there a possibility to create a private model for my own usé. Thanks
@FutureSmartAI
@FutureSmartAI Жыл бұрын
You can use open source llm
@SwingingInTheHood
@SwingingInTheHood Жыл бұрын
This is really great. I have recently done some fine-tuning and understand everything you did here except for including " Intent: " in the prompt. Why did you do that?
@FutureSmartAI
@FutureSmartAI Жыл бұрын
From Open AI "Each prompt should end with a fixed separator to inform the model when the prompt ends and the completion begins. A simple separator which generally works well is ### . The separator should not appear elsewhere in any prompt." Instead of a generic separator, I would prefer to give a more meaningful one. This is how it will look to GPT-3 "Some text for intent detection Intent: "
@sarathipriya
@sarathipriya Жыл бұрын
thank you for your video , 1)if i fine tune my dataset will i get the exact out put from completion, if i set temperature to zero, 2)while giving prompt ,do i have to give the exact prompt that i have set in dataset?
@FutureSmartAI
@FutureSmartAI Жыл бұрын
Not guaranteed. When temperature is zero you are more likely get same output on same input on multiple runs. Prompt format has to be the same during fine tuning model prediction.
@sarathipriya
@sarathipriya Жыл бұрын
@@FutureSmartAI I have a historical data having year, name of achiver and a party name, in that case if have only 50 records. Whether I have to give all format of possible questions?
@FutureSmartAI
@FutureSmartAI Жыл бұрын
@@sarathipriya Can you post here ? discord.gg/ACTgwNUF
@RiyazPatanwala
@RiyazPatanwala Жыл бұрын
Great video Pradip. Is there a possibility that a single or same prompt can provide 2 different completions? say prompt is about monthly sales figure Jan sales 10k, Feb sales 15k, Mar sales 20k and so on then the completion can be "Q1 Sales 45k" or "Yearly Sales 100k". How to manage such scenarios?
@FutureSmartAI
@FutureSmartAI Жыл бұрын
Hi Riyaz, I created discord to help people with my videos. Can you ask this question in discord? discord.gg/6K7Q7wXH
@sarbanimaiti8839
@sarbanimaiti8839 Жыл бұрын
@@FutureSmartAI the invite is invalid
@duetplay4551
@duetplay4551 Жыл бұрын
@Pradip, quick question: what's the mechanism behind the fine-tuning? Is that telling the GPT3 if I input this prompt, please response this.If I input that prompt, please response that. Just build the links between promt and response?
@FutureSmartAI
@FutureSmartAI Жыл бұрын
Its like creating our own variation of model which understands our problem better than generic model, How they do internally I am not sure. Most likely some meta layer on top of GPT-3
@duetplay4551
@duetplay4551 Жыл бұрын
@@FutureSmartAI make sense. thx
@fahimsheikh4260
@fahimsheikh4260 2 жыл бұрын
such a nice video..... sir please make a video on how to create your own ai article writing tool using python and gpt3 (with finetuned).....
@FutureSmartAI
@FutureSmartAI 2 жыл бұрын
Sure I will.
@jeromesoh9249
@jeromesoh9249 2 жыл бұрын
hi, watched your video and everything is clear, but i need your help with something. I'm running the codes on jupyter notebook "!openai tools fine_tunes.prepare_data -f intent_sample.jsonl". When i try running this, my whole notebook just crashes. Do you know what i can do to solve this?
@jeromesoh9249
@jeromesoh9249 2 жыл бұрын
hey, just an update, i solved this using a -q at the back, not sure what it means though
@FutureSmartAI
@FutureSmartAI 2 жыл бұрын
Awesome 👏👏
@10points56
@10points56 Жыл бұрын
any way to finetune SVGs
@DharaThacker-nf3ok
@DharaThacker-nf3ok Жыл бұрын
I'm somehow unable to proceed further, I'm stuck at this cmd: openai api fine_tunes.create -t "intent_sample.jsonl" -m 'davinci' I'm getting this error: Stream interrupted (client disconnected). To resume the stream, run: openai api fine_tunes.follow -i ft-BAyMSys9M25GnL2IPkvzG2W6 Any idea how can I get it working?
@FutureSmartAI
@FutureSmartAI Жыл бұрын
Yes, the stream can be disconnected; it will not stop finetuning. You can check finetuning progress by running. openai api fine_tunes.follow -i ft-BAyMSys9M25GnL2IPkvzG2W6
@thesksamim382
@thesksamim382 Жыл бұрын
now they fixed it, try again with the latest openai version. if it's getting error, just run the command they are telling to run furthure, something like "follow ......"
@sriharivaila7276
@sriharivaila7276 2 жыл бұрын
Hi nice video I am working on a project related to Q and A thing where I will ask a question related to a particular specific domain along with that I will finetune the openAi api in that domain can it answer questions in an much more descriptive way, like can it type a whole paragraph of answer by itself after fine tuning.
@FutureSmartAI
@FutureSmartAI 2 жыл бұрын
Yes. If you are fine-tuning, make sure fine-tuning examples should represent the kind of output you are expecting. If you are expecting more description, have such examples in training data. Also, max tokens parameters should be high for descriptive answers.
@sriharivaila7276
@sriharivaila7276 2 жыл бұрын
@@FutureSmartAI thanks for reply.
@s.sasisekhar4608
@s.sasisekhar4608 2 жыл бұрын
Can we download this model locally? and is there any way we can train this GPT model without using the opanAI platform?
@FutureSmartAI
@FutureSmartAI 2 жыл бұрын
No. GPT-3 is not open sourced. You can use other open source GPT model like huggingface.co/EleutherAI/gpt-j-6B
@s.sasisekhar4608
@s.sasisekhar4608 2 жыл бұрын
@@FutureSmartAI May I know how was the performance difference between those? If you have benchmarked
@mvkrishna760
@mvkrishna760 Жыл бұрын
Can I fine tune with a excel file with almost 1000+ rows ?
@FutureSmartAI
@FutureSmartAI Жыл бұрын
Yes, you can
@mvkrishna760
@mvkrishna760 Жыл бұрын
Thanks for your reply! I wish I could get some guidance for that
@mvkrishna760
@mvkrishna760 Жыл бұрын
I messaged your Instagram page
@arslanjutt4282
@arslanjutt4282 2 жыл бұрын
Butt sir the cost $0.40 how this payment pay ?? It pay by us or only its show not pay anything
@FutureSmartAI
@FutureSmartAI 2 жыл бұрын
When you create open ai account you will get some free credit. You can also add your payment details and it gets billed as per usage.
@DAYSHIVANSH
@DAYSHIVANSH Жыл бұрын
Bhai tumse bat kese ho skti he?
@Shredder656
@Shredder656 2 жыл бұрын
hey bro do you know what bittensor is?
@FutureSmartAI
@FutureSmartAI Жыл бұрын
I have just heard never explored
@xuechaoyang9632
@xuechaoyang9632 Жыл бұрын
Hi, i followed all th steps and successfully created a fine tuned model. However, after I used it, it answered all questions like an error (e.g., enter multiple symbols to the response), do you know why it happends?
@FutureSmartAI
@FutureSmartAI Жыл бұрын
Can you share screenshot with me www.linkedin.com/in/pradipnichite/
@0xcBenevolent
@0xcBenevolent 2 жыл бұрын
Are you on Fiverr by any chance?
@FutureSmartAI
@FutureSmartAI 2 жыл бұрын
No Currently I am getting work from Upwork and LinkedIN.
@0xcBenevolent
@0xcBenevolent 2 жыл бұрын
@@FutureSmartAI I'm learning about GPT-3 to fine tune a model to write similar like Jasper. Do you have resources that I should follow?
@0xcBenevolent
@0xcBenevolent 2 жыл бұрын
@@FutureSmartAI Are you on Insta? I would like to chat with you. You have a sharp mind and I wish to understand a few things.
@FutureSmartAI
@FutureSmartAI 2 жыл бұрын
@@0xcBenevolent www.linkedin.com/in/pradipnichite/
@TheSoccerzack9
@TheSoccerzack9 Жыл бұрын
Am I able to hire you?
@FutureSmartAI
@FutureSmartAI Жыл бұрын
Yes. www.linkedin.com/in/pradipnichite/
@BharathBhushan-ko7lc
@BharathBhushan-ko7lc Жыл бұрын
hi pradip, when i run this command : !export OPENAI_API_KEY="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"; openai api fine_tunes.create -t "intent_sample_prepared_train.jsonl" --model 'davinci' --n_epochs 5 getting this error : [organization=abc-2179] Error: No file with ID: intent_sample_prepared_train.jsonl (HTTP status code: 400)
@FutureSmartAI
@FutureSmartAI Жыл бұрын
are you sure your filename is same?
@lalituor
@lalituor Жыл бұрын
Very nicely explained. I need some help how can I contact you?
@FutureSmartAI
@FutureSmartAI Жыл бұрын
You can ask in discord. discord.gg/YZUPY8hM
The Lost World: Living Room Edition
0:46
Daniel LaBelle
Рет қаралды 27 МЛН
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН
OpenAI's New GPT 3.5 Embedding Model for Semantic Search
16:15
James Briggs
Рет қаралды 72 М.
Fine-Tune GPT-4o Model Step by Step
15:16
Pradip Nichite
Рет қаралды 4,7 М.
AI Agents Project with LangGraph & LangChain: Plan & Execute Workflow (Part-1)
22:31
BALA GOPAL REDDY PEDDIREDDY
Рет қаралды 1,2 М.
Fine-Tuning GPT-3.5 on Custom Dataset: A Step-by-Step Guide |  Code
24:47
How to Fine-tune a GPT-3 Model - Step by Step 💻
28:47
All About AI
Рет қаралды 82 М.
5. OpenAI Embeddings API - Searching Financial Documents
20:30
Part Time Larry
Рет қаралды 138 М.
How ChatGPT is Trained
13:43
Ari Seff
Рет қаралды 526 М.
How to Scrape Websites with GPT-3.5 (Web Scraping with ChatGPT)
15:07