Earlier quoted context omitted.
This was discussed in another comment, DPO is pretty much strictly better than RLHF + PPO, and far more stable when training. Yes, DPO is not technically "RL", but it's semantics for the most part. DataDreamer does support PPO training if you want, but it's so unstable, it's a less popular choice now.
> DPO is pretty much strictly better than RLHF + PPO Out of genuine curiosity, do you have any pointers/evidence to support this. I know that some of the industry leading research labs haven't switched over to DPO yet, in spite of the fact that DPO is significantly faster than RLHF. It might just be organizational inertia, but I do not know. I would be very happy if simpler alternatives like DPO were as good as RLHF…
RLHF a LLM in <50 lines of Python
61–68 of 68 posts
Re: RLHF a LLM in <50 lines of Python
#62Earlier quoted context omitted.
did people say the same thing when assembly code got abstracted away?
Importing a library is not abstraction any more than closing your eyes is abstracting the world to black.
Re: RLHF a LLM in <50 lines of Python
#63It's not 50 lines of code if all the real work is done by importing a library... That's like saying, I can solve any problem in 2 lines of code. I'll publish a library for it first, then: import foo; foo.do_the_thing() Magic!
did people say the same thing when assembly code got abstracted away?
Re: RLHF a LLM in <50 lines of Python
#64Earlier quoted context omitted.
did people say the same thing when assembly code got abstracted away?
There's levels of abstraction. "lines of Python" to me roughly means the standard library.
Re: RLHF a LLM in <50 lines of Python
#65Re: RLHF a LLM in <50 lines of Python
#66to actually do something from scratch or using the author's code requires adopting something esoteric just for this purpose. for these scenarios it is nice to appreciate hf and their abstraction. but the reinventing the wheel situation is very frustrating to work with.
if you want to go beyond the demo, you have to deal with this painful reality. i hope there is more progress on this rather than making stacks of api.
Re: RLHF a LLM in <50 lines of Python
#67Re: RLHF a LLM in <50 lines of Python
#68The 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.
The latter is strictly superior to the former though. RlHF has been abandoned in the open source world.