News for hackers. Stuff that matters.
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by unraveller on Wednesday April 24, 2024 @10:55PM (#40152843)
This is a thorough "how to" but it is missing a "why for" about any of the chosen starting elements.

I don't understand why you would use an old dataset that worked for llama2 and just fine-tune llama3 on it. Isn't it most likely that the new model has covered off everything it missed last time around and now the last dataset is only valuable for the last gen.

Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by sa-code on Thursday April 25, 2024 @12:41AM (#40153495)
Thank you for saying this! The number of people that would need to fine tune vs just using RAG is really small. People that are not familiar with the source often jump to fine tuning as an option
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by Foobar8568 on Thursday April 25, 2024 @01:12AM (#40153688)
I am still unsure where to stand on this fine tuning vs rag. I feel that for live data, rag would be preferable but for daily/weekly updated one, then fine tuning.

Another aspect where I am unsure is multi user for a model e.g. can we have concurrency for a model or the queries have to be queued.

Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by bigfudge on Thursday April 25, 2024 @03:27AM (#40154530)
Fine tuning doesn’t ’add content’ the way RAG does though. They’re not really comparable in that way.
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by Foobar8568 on Thursday April 25, 2024 @06:53AM (#40155859)
So more to be optimized for specific tasks in a domain ?
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by factorymoo on Wednesday April 24, 2024 @11:56PM (#40153240)
This might be an unfair statement but it really feels like all of these blogs don't know why. They copy/paste each other (you often seem the same errors in multiple notebooks/blogs) and I have a feeling no one really deeply understands what they're doing.
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by jackblemming on Thursday April 25, 2024 @01:47AM (#40153887)
Most of the entire field of machine learning is “try shit and see what works”. So it seems like they’re par for the course.
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by v3ss0n on Thursday April 25, 2024 @04:10AM (#40154794)
Same as software engineering field too.
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by littlestymaar on Thursday April 25, 2024 @05:08AM (#40155174)
It's even worse for AI given that nobody really understands why anything works.
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by sinuhe69 on Thursday April 25, 2024 @05:14AM (#40155208)
I wonder what we don’t understand from the SE POV?
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by unraveller on Thursday April 25, 2024 @05:23AM (#40155262)
Found my answer for why thanks to the issues in latest dolphin fine-tune. They do these types of fine tunes mainly to reduce refusal rates and increase intelligence. They did the knee-jerk rerun of the same old data this time, as I suspected, just for lols to see where open-source is at.

Spoiler alert, fine-tunes won't be better until the data quality is better than meta's instruction fine-tune. Give it some weeks.

Why does [doplin-l3-8B] perform substantially worse in some tests?

Essentially, it's trained like this:

  LLama-3-8B-base_model --> LLama-3-8B-Instruct
  LLama-3-8B-base_model --> dolphin-2.9-llama3-8B
And not like this:

  LLama-3-8B-Instruct --> dolphin-2.9-llama3-8B
https://huggingface.co/cognitivecomputations/dolphin-2.9-lla...
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by ijk on Thursday April 25, 2024 @10:12AM (#40157854)
One additional problem with people who write breathless tutorials about doing things with AI is that they are more likely than average to have been written with ChatGPT. Which, given the knowledge cutoff for most models, is not where I'd personally turn for data on recent technical developments, but is par for the course for the kind of low-effort copy-paste bloggers doing it for attention.

This particular one seems to be from someone who is documenting their learning process, which is a valuable contribution but, obviously, not a source of great authority on the how's and why's.

Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by blackoil on Wednesday April 24, 2024 @11:35PM (#40153119)
Dataset may not be public. All large companies have millions of internal documents. Internal LLM can be trained on them.
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by bradfox2 on Wednesday April 24, 2024 @11:44PM (#40153177)
Qlora won't work well to add knowledge via private data.

Parameter efficient methods are not useful for these cases at the 8b scale without a more complex training procedure that periodically merges back adapters. Maybe at the 70B scale.

Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by tpurves on Thursday April 25, 2024 @12:05AM (#40153306)
What scale of company do you need to be to actually be able afford and get return on investment on retraining base models with your own proprietary knowledge and docs? Considering also the implications of continually retraining?
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by sdesol on Thursday April 25, 2024 @12:29AM (#40153423)
I was under the impression that you wouldn't. If you want access to proprietary knowledge, you would use RAG + LLM.
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by littlestymaar on Thursday April 25, 2024 @05:09AM (#40155182)
I don't think anyone has the answer to this question yet.
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by bradfox2 on Thursday April 25, 2024 @01:59PM (#40160919)
The only experience I have is first hand, what my company is doing for our client base. We are doing continuous pretraining and the rest of the alignment stack training on about 10B private tokens + private customer data to produce private custom models for companies in the 500 to 3000 employee range. We built and operate a single rack cluster that cost mid 6 figures in order to be able to do this.

These models get combined with rag for highly specific technical doc authoring and other uses.

Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by tpurves on Thursday April 25, 2024 @03:19PM (#40161845)
This is very helpful context on what works right now, thanks for sharing.
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by anonymousDan on Thursday April 25, 2024 @06:05AM (#40155528)
Can you point to any literature on this by any chance? I would be really interested to see some in depth analysis.
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by bradfox2 on Saturday May 04, 2024 @11:27PM (#40262053)
I don't have the arxiv link bookmarked, but there was a paper written on pretraining with Lora. It involved merging adapters back every n steps with good results.
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by imjonse on Thursday April 25, 2024 @12:53AM (#40153562)
The "why for" is usually learning/gaining experience/FOMO.
Re:Fine tune LLAMA3 on million scale dataset in consumer GPU... by TOMDM on Thursday April 25, 2024 @12:59AM (#40153593)
For the human or the LLM?