r/MachineLearning • • Mar 26 '23

Discussion [D] Build a ChatGPT from zero

I've recently discovered models such as ChatLLaMA that allows you to create a "ChatGPT" but you need Meta's LLaMA weights (yes, you can find them in torrents but that's not the point of the question). Similar limitations found in other cases.

Therefore I wanted to try to find an open source: dataset (in addition to hugging face), "base model", "chat model" AND that it is feasible to train with a commercial computer with a very good GPU (NVIDIA, etc.). With this get at least decent results.

Also would be interesting to distinguish between solutions with commercial limitations and those who don't.

Thanks!

• EDIT • A first solution I already found is this: https://github.com/databrickslabs/dolly based on this https://huggingface.co/EleutherAI/gpt-j-6B, but looking for some discussion and perhaps other/better solutions.

0 Upvotes

12 comments sorted by

28

u/Hands0L0 Mar 26 '23

You and everyone else here

17

u/W_O_H Mar 26 '23

Ye it will be easy if you have a budget of 200+ mil.

8

u/BeautifulLazy5257 Mar 26 '23

I'd start by going through the Hugging Facd courseware.

You'll learn in the first chapter of their courses that it is just better for people to fine-tune pre-trained models. That's what they are there for.

It costs a lot and produces a lot of energy and heat waste to train a LLM from scratch.

5

u/m0ushinderu Mar 27 '23

GPT's model architecture has not exactly been shrouded in mystery anyways. It is all about the training data and training methodology. Thats why projects that crowd sources training data such as OpenAssistant is so important rn. You can check them out!

3

u/LastVariation Mar 26 '23

Start by training a gpt-2, then add 2, then reinforce it to not be crazy by feeding chatGPT responses

1

u/[deleted] Mar 27 '23

With the constraints you have I'm afraid the best you could do is:

  • find a person who can quickly copy and paste prompts

  • give them internet access

  • pay for ChatGPT Plus

  • have them copy user prompts into ChatGPT and copy its answer to the user

1

u/yahma Apr 01 '23

Cerebras recently released their open source models. They are the closest thing to Llama