Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion trl/trainer/cpo_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def __init__(self, *args, **kwargs):
warnings.warn(
"The `CPOTrainer` is now located in `trl.experimental`. Please update your imports to "
"`from trl.experimental.cpo import CPOTrainer`. The current import path will be removed and no longer "
"supported in TRL 0.29. For more information, see https://github.com/huggingface/trl/issues/4223."
"supported in TRL 0.29. For more information, see https://github.com/huggingface/trl/issues/4223.",
FutureWarning,
stacklevel=2,
)
super().__init__(*args, **kwargs)
1 change: 1 addition & 0 deletions trl/trainer/kto_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ def __init__(
"it and want it to remain, please share your comments here: "
"https://github.com/huggingface/trl/issues/4223. Silence this warning by setting environment variable "
"TRL_EXPERIMENTAL_SILENCE=1.",
FutureWarning,
stacklevel=2,
)
if type(args) is TrainingArguments:
Expand Down
1 change: 1 addition & 0 deletions trl/trainer/rloo_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ def __init__(
"it and want it to remain, please share your comments here: "
"https://github.com/huggingface/trl/issues/4223. Silence this warning by setting environment variable "
"TRL_EXPERIMENTAL_SILENCE=1.",
FutureWarning,
stacklevel=2,
)

Expand Down
Loading