oat icon indicating copy to clipboard operation
oat copied to clipboard

Running LLM-as-a-judge to get rewards

Open Haran71 opened this issue 1 year ago • 1 comments

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?

Haran71 avatar Oct 13 '25 02:10 Haran71

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!

lkevinzc avatar Oct 17 '25 05:10 lkevinzc