Live data from Hacker News

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

lightning.ai

31–40 of 126 posts

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

#31

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

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.

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

#32
post #26

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

I've been playing with using documents as OpenAI embeddings for the past weeks and, at least for my use case, the results are meh. It seems sometimes just using context is not enough. My next step is to play with fine tunning, but I have no results to report yet.

I'd be very interested in knowing the outcome. Do you blog anywhere (or post on social)?

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

#33

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;"

It is my understanding that this is how “alignment” works. That is, openAI paid people to chat with their LLM to fine tune it and then other LLMs use chatgpt to generate training data to align their models.

There are three ways

1. make your own RLHF dataset - like OpenAI and Open Assistant

2. exfiltrate data from a bigger/better LLM - Vicuna & family

3. use your pre-trained LLM to generate RLAIF data, no leeching - ConstitutionalAI, based on a set of rules instead of labelling examples

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

#34

Earlier quoted context omitted.

That is against their ToS though if you use your new LLM commercially.

And yet they trained theirs on commercial content on the internet. If that’s legal I doubt their argument holds up in court right?

Of course it will hold up in court, it's their service and their terms of service.

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

#35

Earlier quoted context omitted.

So what are they going to do about it?

Great question! I don’t know the end game there. Maybe if they suspected their model was used they would sue, and in discovery find you used their model for training?

Maybe we don't need to worry, OpenLLaMA is under training right now. It will be the commercial version of LLaMA.

> Update 05/22/2023

> We are happy to release our 700B token checkpoint for the OpenLLaMA 7B model and 600B token checkpoint for the 3B model. We’ve also updated the evaluation results. We expect the full 1T token training run to finish at the end of this week.

https://github.com/openlm-research/open_llama

So we could develop on LLaMA for now and switch to OpenLLaMA later.

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

#37

Earlier quoted context omitted.

So what are they going to do about it?

MS lawyers have a good track record at sending out those scary cease&desist letters

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

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

#38

Earlier quoted context omitted.

Yup, totally. This is a form of knowledge distillation. Openai, or other foundational model providers, can't really do anything about it.

Well they can sue you and bankrupt you by delaying trial for a decade. That's how the US patent system works anyways...

Sue on what grounds? It will be quickly dismissed.

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

#39

Earlier quoted context omitted.

That is against their ToS though if you use your new LLM commercially.

And yet they trained theirs on commercial content on the internet. If that’s legal I doubt their argument holds up in court right?

They trained on publicly-available (no signup with TOS agreement) data, on the theory that training is fair use.

You signed up and agreed to their TOS to use GPT-4.

The legal situations are not similar.

OTOH, lots of people are openly using GPT-4 in one way or another to develop models, though they might generally be at arm’s length from people intending to sell services.

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

#40

Earlier quoted context omitted.

That is against their ToS though if you use your new LLM commercially.

So what are they going to do about it?

> So what are they going to do about it?

If they think they can prove you used it to develop a competing service, sue you for breaking the TOS and recover the greater of the harm it did to their business or the amount of your profits from the service that are due to the uae of GPT-4 in violation of the agreement.

Post reply on HN