LocalLLaMA
Welcome to LocalLLaMA! Here we discuss running and developing machine learning models at home. Lets explore cutting edge open source neural network technology together.
Get support from the community! Ask questions, share prompts, discuss benchmarks, get hyped at the latest and greatest model releases! Enjoy talking about our awesome hobby.
As ambassadors of the self-hosting machine learning community, we strive to support each other and share our enthusiasm in a positive constructive way.
Rules:
Rule 1 - No harassment or personal character attacks of community members. I.E no namecalling, no generalizing entire groups of people that make up our community, no baseless personal insults.
Rule 2 - No comparing artificial intelligence/machine learning models to cryptocurrency. I.E no comparing the usefulness of models to that of NFTs, no comparing the resource usage required to train a model is anything close to maintaining a blockchain/ mining for crypto, no implying its just a fad/bubble that will leave people with nothing of value when it burst.
Rule 3 - No comparing artificial intelligence/machine learning to simple text prediction algorithms. I.E statements such as "llms are basically just simple text predictions like what your phone keyboard autocorrect uses, and they're still using the same algorithms since <over 10 years ago>.
Rule 4 - No implying that models are devoid of purpose or potential for enriching peoples lives.
view the rest of the comments
A base-model / pre-trained is fed with a large dataset of random text files. Books, Wikipedia etc. After that the model can autocomplete text. And it has learned language and concepts about the world. But it won't answer your questions. It'll refine them, or think you're writing an email or long list of unanswered questions and write some more questions underneath, instead of engaging with you. Or think it's writing a novel and autocomplete "...that's what character asked while rolling their eyes." Or something completely arbitrary like that.
After that major first step it'll get fine-tuned to some task. The procedure is the same, it'll get fed different text in almost the same way. And this just continues the training. But now it's text that tunes it to it's role. For example be a Chatbot. It'll get lots of text that is a question, then a special character/token and then an answer to the question. And it'll learn to reply with an (correct) answer if you put in a question and that token. It'll probably also be fine-tuned to write dialogue as a Chatbot. And follow instructions. (And refuse some things and speak more unbiased, be nice...)
You can also put in domain-specific data, make it learn/focus on medicine... I think that's also called fine-tuning. But as far as I understand teaching knowledge with arbitrary data comes before teaching/tuning it to follow instructions, or it might forget that.
I think instruction tuning is a form of fine-tuning. It's just called that to distinguish it from other forms of fine-tuning. But I'm not really an expert on any of this.