Update rl_replacements.py
This commit is contained in:
parent
d01e4f89b6
commit
1e35ab6722
1 changed files with 11 additions and 0 deletions
|
|
@ -135,3 +135,14 @@ def grpo_trainer__prepare_inputs(function_name, function):
|
|||
return function
|
||||
pass
|
||||
RL_FUNCTIONS["grpo_trainer"].append(grpo_trainer__prepare_inputs)
|
||||
|
||||
|
||||
# Remove _move_model_to_vllm
|
||||
def grpo_trainer__move_model_to_vllm(function_name, function):
|
||||
if function_name != "_move_model_to_vllm": return function
|
||||
|
||||
# .*? matches first match. .+? matches final match.
|
||||
function = "def _move_model_to_vllm(*args, **kwargs): return None\n"
|
||||
return function
|
||||
pass
|
||||
RL_FUNCTIONS["grpo_trainer"].append(grpo_trainer__move_model_to_vllm)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue