by spunker540 · 3y ago · 0 comments
It seems not that hard to include in your prompt “here is some examples, please write like this and follow the style set here”. While that may make every completion request more expensive (more tokens), it also seems like fine tuning these models can also be quite expensive.
I’m curious if there are other trade offs besides cost— maybe quality achieved is better with fine tuning? Very interested to see how it all plays out. On the one hand a massive model like gpt4 can probably be prompted to match any style quite well, albeit costly, vs fine tuning a cheap model may get exactly what you want.
Fine tuning it in just 52k examples (alpaca) makes a night and day difference in usability for instruction following.
1. train a model
2. fine tune a model
3. create embeddings for a model
4. use few shot prompt examples at inference time
These have decreasing resource need, but also decreasing quality.
For example, the GPT-3 API (not yet the GPT-4 API) has a functionality to send it your own embeddings, for example of your own source code documentation. Then you can query GPT-3 and it "knows" your source code doc and answers specifically with that in mind.