Update rl_replacements.py
This commit is contained in:
parent
fd436e4c61
commit
74c8f12b21
1 changed files with 1 additions and 0 deletions
|
|
@ -165,6 +165,7 @@ RL_FUNCTIONS["grpo_trainer"].append(grpo_trainer__prepare_inputs)
|
|||
def grpo_trainer__move_model_to_vllm(function_name, function):
|
||||
if function_name != "_move_model_to_vllm": return function
|
||||
|
||||
print(function)
|
||||
# .*? matches first match. .+? matches final match.
|
||||
replacement = "def _move_model_to_vllm(self, *args, **kwargs): return None\n"
|
||||
return " "*function.find("def") + replacement
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue