Show HN: Finetune LLaMA-7B on commodity GPUs using your own text (opens in a new tab)github.com
449 pointsI've been playing around with https://github.com/zphang/minimal-llama/ and https://github.com/tloen/alpaca-lora/blob/main/finetune.py, and wanted to create a simple UI where you can just paste text, tweak the parameters, and finetune the model quickly using a modern GPU.
To prepare the data, simply separate your text with two blank lines.
There's an inference tab, so you can test how the tuned model behaves.
This is my first foray into the world of LLM finetuning, Python, Torch, Transformers, LoRA, PEFT, and Gradio.
Enjoy!
Comments (98) 20 threads
Show all comments
Showing thread 7 of 20
Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction: {instruction}
### Response:
or
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction: {instruction}
### Input: {input}
### Response:
[1] https://github.com/cocktailpeanut/dalai
Alpaca/Dalai are finetuned on a dataset that's formatted as this:
So even without pre-prompting in this format it's going to be heavily biased towards performing completions in this format anyways.It's always helpful to finetune on a preformatted prompt depending on what your task is.
Yes, but wasn't the whole point of the recent LLM research to show that you didn't need to fine-tine for a specific task?
Remember that GPT3 is 175 billion parameters so many times bigger than both the above models (and gpt4 is rumoured to be bigger still), which also allows it to be more generalisable.
If GPT3 was trained at 7 billion parameters it might also lose it's language translation capabilities.