Running LLM-as-a-judge to get rewards
I want to use an LLM based reward model with my PPO-like algorithmn. I want it to be instantiated onece, and all the learners/actors across different GPUs, should use the same one. How do I implement it with the OAT library?
Hi @Haran71 , you can use the remote oracle to serve your model then use client to query the LLM-as-a-judge results. The related code is here:
https://github.com/sail-sg/oat/tree/main/oat/oracles/remote (serve your own judge)
https://github.com/sail-sg/oat/blob/main/oat/oracles/gpt.py (query GPT)
https://github.com/sail-sg/oat/blob/main/oat/oracles/init.py#L22
As of now I do not have immediately runnable example for this, but I have run similar experiments using Oat long ago. It takes some time to understand the code so if you have any further questions welcome to ask!