News for hackers. Stuff that matters.
Re:Replit's new Code LLM: Open Source, 77% smaller than Code... by sputknick on Wednesday May 03, 2023 @01:24PM (#35805103)
What does "fine tuning" mean in this context? Does it mean you fine-tuned it on a specific code repository, or collection of code repositories and then had it do work in those repositories?
Re:Replit's new Code LLM: Open Source, 77% smaller than Code... by amasad on Wednesday May 03, 2023 @01:33PM (#35805232)
Broadly finetuning is any post pretraining training. Most of the time it is used in the context of fitting a more narrow task. In our case, it was the same training objective as the pretraining but meant to be more representative of what Replit users like to code. However, we were surprised by how well it boosted overall performance. Best guess: it's a) novel data and b) the model could take even more training!!
Re:Replit's new Code LLM: Open Source, 77% smaller than Code... by spenczar5 on Wednesday May 03, 2023 @01:42PM (#35805348)
How feasible and effective would it be to fine-tune a model against an organization's private source code, resulting in an "internal" model that knows how to work with that org's stuff?

Could you, say, fine-tune the model every week with the latest merges? Every hour?

Re:Replit's new Code LLM: Open Source, 77% smaller than Code... by pyth0 on Wednesday May 03, 2023 @02:11PM (#35805694)
Finetuning is a relatively quick process. Training the base model is the expensive part (can take weeks and huge amounts of compute), whereas finetuning usually is only on the last few layers and can be done with much less resources. You could definitely have a "nightly" finetune model that is retrained every day or so.
Re:Replit's new Code LLM: Open Source, 77% smaller than Code... by rattray on Wednesday May 03, 2023 @07:28PM (#35809235)
Interesting - how would that work for a company that wanted to run their own codex model, on-prem, trained on their own code? Perhaps also trained on their dependencies?
Re:Replit's new Code LLM: Open Source, 77% smaller than Code... by naderkhalil on Wednesday May 03, 2023 @02:46PM (#35806145)
Finetuning a smaller model leading to better performance seems like a significant finding that'll lead to a lot of companies fine-tuning their own internal "ChatGPT"s
Re:Replit's new Code LLM: Open Source, 77% smaller than Code... by titaniczero on Wednesday May 03, 2023 @04:55PM (#35807674)
When you fine-tune it, do you train just the head/last few layers or do you also unfreeze the model afterwards and retrain the whole model with a very small LR for a few epochs?
Re:Replit's new Code LLM: Open Source, 77% smaller than Code... by sanderjd on Wednesday May 03, 2023 @05:10PM (#35807851)
You seem to know your stuff some, so I'll ask you a question on this: Are there any good books on all the different approaches in this space, or is it all too new and fast moving for such a thing?
Re:Replit's new Code LLM: Open Source, 77% smaller than Code... by nl on Wednesday May 03, 2023 @09:48PM (#35810299)
There are no books on Large LMs but almost any resource about neural networks covers fine tuning. I like the FastAI courses, and these do cover language models.
Re:Replit's new Code LLM: Open Source, 77% smaller than Code... by osanseviero on Thursday May 04, 2023 @01:51AM (#35811671)
You can also check the NLP with transformers book
Re:Replit's new Code LLM: Open Source, 77% smaller than Code... by WinLychee on Wednesday May 03, 2023 @01:43PM (#35805364)
You can take a network and its weights that someone else trained, and use that pretrained network to train on your own data, which is likely to be a better starting point than random weights.