Live data from Hacker News

How to train your own large language models

blog.replit.com

21–30 of 63 posts

Re: How to train your own large language models

#21
I am leading a similar initiative and I have also used Databricks for the preprocessing.

Most interesting is what happens between the preprocessing and the model training - the hand-off to the cluster workers.

I guess the efficient option is to partition the data, set up shards in-advance and ideally cache or even copy the data to local workers during init.

This, of course, breaks some of the promise of being able to scale training flexibly, for instance to experiment with the scaling of compute and data.

A different way to go about it is to use a streaming/iterable dataset/loader implementation with its own sharding logic that reads from a central store of parquets with some reasonable row-group size. This gives full flexibility in terms of node/gpu/worker/batch_size for experimentation - e.g. literally as parameters in PyTorch. Of course, one has to also implement caching of remote data since the data is kept centrally.

In my opinion, there is no satisfying/flexible solution for this, especially when one also wants to experiment with complex transformations or augmentations in the dataset/loader and remain portable across cloud offerings. So, this has to be implemented from scratch (not too difficult but still a lot of code). The coming datapipes also probably make this trivial.

Would love to hear more experiences in how you set this up!

Edit: I guess for NLP this is a good implementation and what Mosaic uses https://huggingface.co/docs/datasets/stream

Re: How to train your own large language models

#23
post #20

Earlier quoted context omitted.

The founder admitted his mistake and the ex-intern's site is back up and running https://riju.codes/ . I'm personally a fan of both Amjad's (CEO) and Radon's (intern) and realize that everyone makes mistakes. It's not a reason to discount the hard work of the people at replit.

The CEO refused to apologize, and instead doubled down, taking advantage of a massive power differential between himself and a random college grad. He only apologized when the differential evaporated after the post hit the top of HN with something like 3000 points. I don't know about you, but I don't find that to be particularly acceptable, nor a "mistake", and I'm happy to continue to punish a CEO's unethical behavi…

Sounds pretty toxic

Re: How to train your own large language models

#24

Earlier quoted context omitted.

Yeah that's awesome. I honestly think the next 'leap' in AI will come from these 'domain specific' models. Also I'm not talking about just 'prompt' output model. These ones are great and I'm sure they will be extremely impressive. However I'm talking more about being able to 'operate' something. Imagine this, an AI able to operate some specific API in a deterministic / reliable way. I'm talking about complex operatio…

So training an LLM on OpenAPI specs ;)? It actually seems like more of a task for good 'ol fashioned NLP (intent recognition) with some wiring for all of the connectors...

https://news.ycombinator.com/item?id=35634120 (LlamaAcademy: Teach GPTs to understand API documentation with LoRA) ?

https://github.com/danielgross/LlamaAcademy

Re: How to train your own large language models

#25
post #7

Ghostwriter is notably worse than GPT-4, so while it may be true in a sense that "Training a custom model allows us to tailor it to our specific needs and requirements", the reality is they'd be getting better results just using OpenAI right now. Probably true for almost every other use case. That said, I am patiently waiting and champing at the bit for the day this isn't true anymore. Cool to see the groundwork bein…

just my 5 cents. it should be easier to train small custom model which works off a big pre-trained one. getting latent state as an input. while big model does all the hard work. but, getting latent means it should be accessible. that's why open source models are so valuable, even if they are not that good in general. more over, open source models can be used in other projects in various setups.

Re: How to train your own large language models

#26

Earlier quoted context omitted.

There is plenty of less attention-grabbing work being done on "domain specific LLMs" like BioMedLM[0], Med-PaLM[1], BloombergGPT[2], etc. That reminds me - I saw a somewhat-clever acronym variant for LLM that communicated this the other day but it escapes me ATM... [0] - https://www.mosaicml.com/blog/introducing-pubmed-gpt [1] - https://cloud.google.com/blog/topics/healthcare-life-science... [2] - https://dev.to/ream…

Yeah that's awesome. I honestly think the next 'leap' in AI will come from these 'domain specific' models. Also I'm not talking about just 'prompt' output model. These ones are great and I'm sure they will be extremely impressive. However I'm talking more about being able to 'operate' something. Imagine this, an AI able to operate some specific API in a deterministic / reliable way. I'm talking about complex operatio…

LangChain

Re: How to train your own large language models

#27
post #2

Did we ever get any resolution about what happened after this company threatened to sue their intern for making a side project that supposedly stole all their great ideas? I would like to know before I ever consider anything from them again.

The founder admitted his mistake and the ex-intern's site is back up and running https://riju.codes/ . I'm personally a fan of both Amjad's (CEO) and Radon's (intern) and realize that everyone makes mistakes. It's not a reason to discount the hard work of the people at replit.

> I’m personally a fan of both Amjad's (CEO)

Why?

Re: How to train your own large language models

#28

Earlier quoted context omitted.

There is plenty of less attention-grabbing work being done on "domain specific LLMs" like BioMedLM[0], Med-PaLM[1], BloombergGPT[2], etc. That reminds me - I saw a somewhat-clever acronym variant for LLM that communicated this the other day but it escapes me ATM... [0] - https://www.mosaicml.com/blog/introducing-pubmed-gpt [1] - https://cloud.google.com/blog/topics/healthcare-life-science... [2] - https://dev.to/ream…

Yeah that's awesome. I honestly think the next 'leap' in AI will come from these 'domain specific' models. Also I'm not talking about just 'prompt' output model. These ones are great and I'm sure they will be extremely impressive. However I'm talking more about being able to 'operate' something. Imagine this, an AI able to operate some specific API in a deterministic / reliable way. I'm talking about complex operatio…

> Imagine this, an AI able to operate some specific API in a deterministic / reliable way.

It doesn’t seem like LLMs are going to be able to do this, unless the application has a high tolerance for mistakes.

Re: How to train your own large language models

#29
post #2

Did we ever get any resolution about what happened after this company threatened to sue their intern for making a side project that supposedly stole all their great ideas? I would like to know before I ever consider anything from them again.

Shh, another post on the home page is about them hiring (YC W18), don’t interfere with the business model!

Re: How to train your own large language models

#30
post #28

Earlier quoted context omitted.

Yeah that's awesome. I honestly think the next 'leap' in AI will come from these 'domain specific' models. Also I'm not talking about just 'prompt' output model. These ones are great and I'm sure they will be extremely impressive. However I'm talking more about being able to 'operate' something. Imagine this, an AI able to operate some specific API in a deterministic / reliable way. I'm talking about complex operatio…

> Imagine this, an AI able to operate some specific API in a deterministic / reliable way. It doesn’t seem like LLMs are going to be able to do this, unless the application has a high tolerance for mistakes.

Maybe something new needs to be invented? Or utilize something we already have? Anyway I think this is the next leap in AI.

Operative Language Models. Where the model is trained to do specific tasks very well. In a reliable way. I don't anticipate them to be 'large' and expensive also.

Then we have lots of these models and some kind of 'orchestration' layer that makes them all work together. This I believe will be the future. Micro Operative Language Models.

Post reply on HN