RLHF a LLM in <50 lines of Python
datadreamer.dev
RLHF a LLM in <50 lines of Python
1–10 of 68 posts
Re: RLHF a LLM in <50 lines of Python
#2Title should be instead “Library for low-code RLHF in python”
Re: RLHF a LLM in <50 lines of Python
#3DataDreamer is an open source Python package with a nice API from the University of Pennsylvania that does all this that we’re actively developing. Will be here to answer questions.
Re: RLHF a LLM in <50 lines of Python
#4Re: RLHF a LLM in <50 lines of Python
#5I don’t understand the obsession of LOC for wrappers - it’s the whole point of a wrapper. It makes it much easier for the user at the expense of making it less hackable Title should be instead “Library for low-code RLHF in python”
Re: RLHF a LLM in <50 lines of Python
#6Very cool, but I can't help but feel like titles that reference low-LOC are a bit clickbait-y when nearly all the heavy lifting is done by imported libraries.
However, we also tried to simplify the API and have sensible defaults to make it usable for anyone / make ML research code cleaner :)
Re: RLHF a LLM in <50 lines of Python
#7I don’t understand the obsession of LOC for wrappers - it’s the whole point of a wrapper. It makes it much easier for the user at the expense of making it less hackable Title should be instead “Library for low-code RLHF in python”
Re: RLHF a LLM in <50 lines of Python
#8Re: RLHF a LLM in <50 lines of Python
#9The first paragraphs says RLHF can be used to align models, and the seconds say here's how to do it by using DPO. These two methods are not the same, and the latter is not an instance of the former.
Re: RLHF a LLM in <50 lines of Python
#10The first paragraphs says RLHF can be used to align models, and the seconds say here's how to do it by using DPO. These two methods are not the same, and the latter is not an instance of the former.