Update rl_replacements.py

This commit is contained in:
Daniel Han 2025-02-12 16:19:13 -08:00
commit 7b13eb0eca

View file

@ -143,6 +143,6 @@ def grpo_trainer__move_model_to_vllm(function_name, function):
# .*? matches first match. .+? matches final match.
function = "def _move_model_to_vllm(*args, **kwargs): return None\n"
return function
return function.find("def") * " " + function
pass
RL_FUNCTIONS["grpo_trainer"].append(grpo_trainer__move_model_to_vllm)