Fine-tune LLMs from one YAML. Layer streaming trains an 8B model on a 4 GB laptop GPU.
Python cliconsumer-gpudpofine-tuningggufhuggingfacellmllmopslocal-ailocal-llmloralow-vrammachine-learningollamapeftpythonpytorchqlorasfttransformers
task: dpo,ipo,bcoandpreferencetrain on the bundled DPO examples again. Both files (examples/data/dpo_sample.jsonl,examples/data/chat_preferences.jsonl) and any dataset written the same way, a stringpromptbesidechosen/rejectedmessage lists that repeat the user turn, failed inside trl after the model had loaded, with an error that changed withPYTHONHASHSEED('list' object has no attribute 'endswith', or aTypeError). Thedpoandktoconverters now hand the trainer every preference row in one layout: all strings, or all message lists with the prompt turns inpromptonly.reward_modelno longer trains on a text with the question in it twice, andorpoandsimpoprepare the same tokens as before. A row that cannot be written that way (one answer a string and the other a message list, a malformed message, no prompt to be found) is dropped at load with a reason that names the field, and a dataset that mixes text rows with conversational ones loads as conversations, with a note. A stringpromptbeside message-list answers is not read when the two answers share leading turns: those turns are the prompt, asorpoandsimpoalready read such a row, so a question written only in that string has to be in the conversations as well (#1849 by @dryn85-max in #1866).