Live data from Hacker News

How to Finetune GPT-Like Large Language Models on a Custom Dataset

lightning.ai

51–60 of 126 posts

Re: How to Finetune GPT-Like Large Language Models on a Custom Dataset

#51
post #31

Earlier quoted context omitted.

I think it probably works a lot better, but I would love to see some research validating this

I've read in a few places that it actually works worse in most cases. Much better to put the context in your prompt.

Fine tuning + context will outperform context alone, and it's cheaper to burn cycles fine tuning then use a smaller context than to use a larger context in production.

Re: How to Finetune GPT-Like Large Language Models on a Custom Dataset

#52

Have a question to the Generative AI experts here. So, I can use smthg like GPT-4 to label data and then use that as a train set for my own LLM, right? EDIT: adding this from OpenAI Restriction TOS: "(iii) use output from the Services to develop models that compete with OpenAI;"

Yes, and in fact that's the best method available if you want good performance. I would suggest using a local open source model to do this however, to cut down on costs and make it far simpler to deal with than the unwieldy OpenAI systems.

https://arxiv.org/pdf/2305.02301.pdf

Re: How to Finetune GPT-Like Large Language Models on a Custom Dataset

#53

When is fine tuning worth it, rather than just prompt engineering?

It's worth it whenever you have a reasonable amount of training data. You can get substantial quality improvements automatically. Unless you're doing some kind of prompt-optimization, prompt-tuning is a lot of random guessing and trial-and-error. It's also most necessary when you have a smaller base model, as opposed to one of the big ones.

Re: How to Finetune GPT-Like Large Language Models on a Custom Dataset

#54
post #37

Earlier quoted context omitted.

I don't think that works. LLM-generated contents are not copyrightable.

Breach of contract for violating the TOS agreed to when signinf uo for the service doesn’t depend on copyright.

Right but cease and desist usually relates to intellectual property or copyright matters, typically not TOS violations. Please correct me if I am mistaken.

Re: How to Finetune GPT-Like Large Language Models on a Custom Dataset

#55

Earlier quoted context omitted.

Breach of contract for violating the TOS agreed to when signinf uo for the service doesn’t depend on copyright.

Right but cease and desist usually relates to intellectual property or copyright matters, typically not TOS violations. Please correct me if I am mistaken.

Cease and desist can be used for any issues where the person or entity issuing the C&D thinks they have a legal right that is being violated and wants to put the violator on notice in the hopes of securing a change in behavior short of legal action.

Re: How to Finetune GPT-Like Large Language Models on a Custom Dataset

#56

Have a question to the Generative AI experts here. So, I can use smthg like GPT-4 to label data and then use that as a train set for my own LLM, right? EDIT: adding this from OpenAI Restriction TOS: "(iii) use output from the Services to develop models that compete with OpenAI;"

> I can use smthg like GPT-4 to label data and then use that as a train set for my own LLM, right? Yes, almost all improved LLama models are tuned exactly that way (trained on examples of questions and answers from say GPT 4). If OpenAI stole copyrighted works to train their models it is morally fair game to do the same to them regardless of their TOS. It's not like they can prove it anyway. Plus there's the other po…

Because by training it they created something new.

I don't mind just making a point.

But I don't think they mind. I don't believe that this type of model training is able to be bleeding edge which should guarantee that openai has enough motivation to continue the development and having a healthy competition

Re: How to Finetune GPT-Like Large Language Models on a Custom Dataset

#57
post #31

Earlier quoted context omitted.

I've read in a few places that it actually works worse in most cases. Much better to put the context in your prompt.

Fine tuning + context will outperform context alone, and it's cheaper to burn cycles fine tuning then use a smaller context than to use a larger context in production.

Fine tuning + same context will probably outperform context alone, but if you use a smaller context that does not seem to work that well as GP stated.

Re: How to Finetune GPT-Like Large Language Models on a Custom Dataset

#58

Have a question to the Generative AI experts here. So, I can use smthg like GPT-4 to label data and then use that as a train set for my own LLM, right? EDIT: adding this from OpenAI Restriction TOS: "(iii) use output from the Services to develop models that compete with OpenAI;"

> I can use smthg like GPT-4 to label data and then use that as a train set for my own LLM, right? Yes, almost all improved LLama models are tuned exactly that way (trained on examples of questions and answers from say GPT 4). If OpenAI stole copyrighted works to train their models it is morally fair game to do the same to them regardless of their TOS. It's not like they can prove it anyway. Plus there's the other po…

It's against the terms of service to do the generation, but the generated text is not copyrighted. Those are different things.

Re: How to Finetune GPT-Like Large Language Models on a Custom Dataset

#59

Can someone explain why I'd want to use fine-tuning instead of a vector database (or some other way of storing data/context)?

Wouldn't a vector database just get you nearest-neighbors on the embeddings? How would that answer a generative or extractive question? I can see it might get you sentiment, but would it help with "tell me all the places that are mentioned in this review"?

i think the point is that you use the vector database to locate the relevant context to pass to the LLM for question answering. here’s an end-to-end example:

https://www.dbdemos.ai/demo.html?demoName=llm-dolly-chatbot

Re: How to Finetune GPT-Like Large Language Models on a Custom Dataset

#60
post #37

Earlier quoted context omitted.

I don't think that works. LLM-generated contents are not copyrightable.

Breach of contract for violating the TOS agreed to when signinf uo for the service doesn’t depend on copyright.

What I don't understand - is there anything that would prevent Alice from publishing ChatGPT prompts and outputs for anyone to use, with no T&C attached?

Once Alice has done that, is there anything to prevent Bob, who has never agreed to ChatGPT ToS, to use those prompts and outputs to train his own models to compete with OpenAI's?

(Purely from a contractual/legal/IP angle rather than ML/technical.)

Post reply on HN