←back to thread

345 points kashifr | 4 comments | | HN request time: 0.712s | source
Show context
_1 ◴[] No.44501951[source]
Which small model is good for fine tuning to various enterprise data sets? Our business units are wanting to run small models in browser and on mobile devices, without dealing with RAG and cloud resources.
replies(5): >>44502175 #>>44502283 #>>44502496 #>>44502868 #>>44508851 #
1. mhitza ◴[] No.44502175[source]
You really need to try them all out yourself and make sure you have proper benchmarks.

While machine learning is not my field, I've tried to finetune Mistral 7B (following their official guide and toolset) and the results did not satisfy. Had a few very specific questions from the dataset that no matter how much I've finetuned and tweaked the process it was not able to respond with correct information.

A mix of vector search + keyword search is still better at building the right question context than expecting it to learn all the information.

I've used the pretrained dataset approach. Maybe building syntethic questions and answers around the dataset yields better results but I didn't have time to experiment with that approach.

replies(2): >>44503664 #>>44505274 #
2. ivape ◴[] No.44503664[source]
How much data did you use to fine tune?
replies(1): >>44503815 #
3. mhitza ◴[] No.44503815[source]
Kilobytes to megabytes of data. I was trying to fine-tune it for some specific legislation I was expecting to be able afterwards to ask about.
4. magicalhippo ◴[] No.44505274[source]
> Maybe building syntethic questions and answers around the dataset yields better results but I didn't have time to experiment with that approach.

While they answer a slightly different question in the Physics of Language Models[1], based on their results it seems to me it is likely that one needs to do such augmentation of the dataset to get good results.

However, they also show that the dataset the base model is trained on can drastically affect finetuning performance. So if the base model is trained on a poor dataset for your specific task, perhaps you'll never get good performance.

[1]: https://physics.allen-zhu.com/part-3-knowledge/part-3-1