A simple guide to fine-tuning Llama 2
brev.dev
brev.dev
Here are some actually useful links
https://blog.ovhcloud.com/fine-tuning-llama-2-models-using-a...
This is the opposite of useless.
That said, I don't think op is useless.
1. You should really download the huggingface hosted model.
2. Why convert the model if meta already hosts it here: https://huggingface.co/meta-llama
3. This step completely glossed over the hardware requirements. Doesn't explain any of the instructions needed in the finetuning process.
4. "Now run the model". What? What about the model precision, hosting, standard open source tools, etc,etc...
1. There is a list of open source fine-tuning datasets on millions of topics. Like, anime, lord of the rings, dnd, customer service responses, finance, code in many programming languages, children's books, religions, philosophies, etc. I mean, on every topic imaginable sort of like a Wikipedia or Reddit of fine-tuning data sets.
2. Users can select one or more available datasets as well as upload their own private datasets
3. Users can turn-key fine-tune llama 2 or other pre-trained models
Right now, doing this kind of thing is way beyond the capability of the common user.
The second point is, we don't know if fine-tuned models, vector search or more-massive general purpose llm models is the right way to go.
But for business-to-business, I think this might be a viable business. If you had a whole bunch of ready-to-go open-source fine-tune datasets for commercial applications you might find a market of businesses that want to run their own models for a variety of reasons.
But now. Now. Its DNAX... Cloning fraudulant DNA to make BIO-chips to unlock credits for "yee ol' goods an' services gub'nah"
Basically every transaction is bio-tracked, so if you want an off grid you have to have false clones...
DNA from old embryoes that allow you to build identities in their names and wear them like sleaves to navigate the systems.
This is how you manipulate the engines.
They could host the text database for free, and then offer a "oh look, you can train llama on this text right now for cheaper than a Nvidia box" button on every listing.
Then charge through the nose for private business training (kinds like they do now, but charging more.)
But a big difference is that (for now) Stable Diffusion finetuning is much easier than LLaMA.
In my wildest dreams, and even reasonably, you could incentivize people with a digital currency. I was thinking something along the lines of a community that could stake some money ($100/$1000). They would then get "ownership" and moderating rights to the contents of a dataset. Other people could submit content to their dataset that they could allow or deny. The allowance of the content would distribute some share of the stake in the form of tokens. Then they would be able to re-sell the data in the set to people who want to fine-tune AIs using that dataset. The value of the tokens associated with that dataset would go up thereby distributing some portion of the profit to the moderators and the contributors.
I’ve been live streaming myself fine tuning llama on my GitHub data (to code like me)
I am able to finetune meta-llama/Llama-2-13b-chat-hf on a 3090 using instructions from quickstart.ipynb.
This user on HuggingFace has all the models ready to go in GGML format and quantized at various sizes, which saves a lot of bandwidth:
Found the repo, couldn't easily find the HN thread.
llama cpp has python bindings: https://pypi.org/project/llama-cpp-python/
Here's using it with langchain: https://python.langchain.com/docs/integrations/llms/llamacpp
For local batch stuff: https://huggingface.co/docs/transformers/main_classes/pipeli...
We also released some of the data as a free dataset with a commercial option for all of it. This was more successful than I thought it would be and was hoovered up by the kind of people that buy these datasets.
It will have been surpassed by recent developments now but it was an incredibly enjoyable project.
/s