[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
bd4cbf10af
commit
477af87961
1 changed files with 1 additions and 0 deletions
|
|
@ -1587,6 +1587,7 @@ def _patch_prepare_multimodal_messages():
|
|||
# Also patch in grpo_trainer module if imported
|
||||
try:
|
||||
import trl.trainer.grpo_trainer as _gt
|
||||
|
||||
if hasattr(_gt, "prepare_multimodal_messages"):
|
||||
_gt.prepare_multimodal_messages = _safe_prepare_multimodal_messages
|
||||
except ImportError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue