Update rl.py
This commit is contained in:
parent
5c0ed78b9b
commit
eb1f9b91f1
1 changed files with 1 additions and 0 deletions
|
|
@ -275,6 +275,7 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):
|
|||
spaces = __init__.find("def")
|
||||
__init__ = __init__.split("\n")
|
||||
__init__ = "\n".join(x[spaces:] for x in __init__)
|
||||
__init__ = __init__.replace("def ", "def _unsloth_", 1)
|
||||
|
||||
# Replace vLLM sections since we already have it done!
|
||||
vllm_part = re.findall(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue