Lurker News
I'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

Earlier comments
la647101 reply#
Can this be used to programmatically train the model ? I got a big website that I would like llama to chew on and be aware of the content there so it can answer questions.
capableweb#
Yes. Check `main.py`, rewrite it to load the text from whatever you want.
akrymski#
How does Llama compare to the actually open source Flan UL2?
nathanasmith#
I've built up a large personal library of hand made Anki flashcard decks over the years. This looks like just what I need to train a model on those decks.
sea_temple2 replies#
Is it possible to fine-tune using CPU only?
lxe#
I haven't tried it myself, and I haven't actually heard anyone attempt doing it with a model this large.
kiraaa#
you could but it will be very slow. oh and make sure the code is cpu compatible.

Load more comments