News for hackers. Stuff that matters.
Re:Mistral Fine-Tune by ankit219 on Saturday May 25, 2024 @07:02AM (#40474186)
Finetuning would never add any new knowledge. For internal corporate data, use RAG or train a model from scratch. Finetuning would not help anyone answer a question from that data.
Re:Mistral Fine-Tune by qeternity on Saturday May 25, 2024 @08:09AM (#40474440)
This isn’t true at all. Fine tune with a single sample and see what happens to your model.
Re:Mistral Fine-Tune by ankit219 on Saturday May 25, 2024 @08:23AM (#40474543)
Will share a longer post on this once I finish it. I have tested this multiple times, on bigger models, on custom smaller models, and it does not work.

In a strict sense, finetuning can add new knowledge but for that you need millions of tokens and multiple runs without using LoRA or Peft. For practical purposes, it does not.

Re:Mistral Fine-Tune by F-Lexx on Saturday May 25, 2024 @08:56AM (#40474740)
Bring on the new post and more details, this stuff is interesting.
Re:Mistral Fine-Tune by zwaps on Saturday May 25, 2024 @09:19AM (#40474913)
PEFT is not for adding knowledge, that's obvious
Re:Mistral Fine-Tune by qeternity on Sunday May 26, 2024 @03:02PM (#40484523)
I get the sense that you want to do the anti-RAG: take some relatively small corpus of data, train a lora, and then magically have a chatbot that knows your stuff...yeah, that will not work.

But chatbots are only one single use-case. And broadly I think this pattern of LLM-as-store-of-knowledge is a bad one (of course, until ASI, and then it isn't).

That said, you absolutely can impart new knowledge through fine-tuning. Millions of tokens is a rather small hurdle to overcome. And if you're not retraining with original/general data, then your model will become very specialized and possibly overfit...which is not an issue in many instances, and may even be desirable.

Re:Mistral Fine-Tune by Exuma on Saturday May 25, 2024 @07:53AM (#40474373)
How does one do RAG? I see it mentioned like 20 times
Re:Mistral Fine-Tune by meiraleal on Saturday May 25, 2024 @08:58AM (#40474758)
you supply to the LLM the subset of data that you need for a specific prompt. That's RAG.
Re:Mistral Fine-Tune by behnamoh on Saturday May 25, 2024 @09:00AM (#40474778)
This article reviews some of the most advanced RAG methods: https://medium.com/@krtarunsingh/advanced-rag-techniques-unl...

(not mine)