Update rl_replacements.py
This commit is contained in:
parent
b1e963b2ea
commit
40cc4cbe05
1 changed files with 1 additions and 1 deletions
|
|
@ -255,7 +255,7 @@ def grpo_trainer_fix_batch_size(RLTrainer_source, RLConfig_source):
|
|||
"div = per_device_train_batch_size // num_generations\n"\
|
||||
"if div * num_generations != per_device_train_batch_size:\n"\
|
||||
" print('Unsloth: We know expect `per_device_train_batch_size` to be a multiple of `num_generations`.\\n"\
|
||||
"We will change the batch size of ' + str(per_device_train_batch_size) + ' to the `num_generations` of ' + str(num_generations)')\n"\
|
||||
"We will change the batch size of ' + str(per_device_train_batch_size) + ' to the `num_generations` of ' + str(num_generations))\n"\
|
||||
" per_device_train_batch_size = num_generations\n"
|
||||
return check_batch_size
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue