Skip to content

Commit 67e83ae

Browse files
Fix docstring interlink to parent class for NashMDTrainer and XPOTrainer (#4179)
1 parent a0df357 commit 67e83ae

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

trl/trainer/nash_md_trainer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@
5656

5757

5858
class NashMDTrainer(OnlineDPOTrainer):
59-
r"""
60-
Initialize NashMDTrainer as a subclass of [`OnlineDPOConfig`].
59+
"""
60+
Trainer for the Nash-MD method.
61+
62+
It is implemented as a subclass of [`OnlineDPOTrainer`].
6163
6264
Args:
6365
model (`transformers.PreTrainedModel`):

trl/trainer/xpo_trainer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@
5656

5757

5858
class XPOTrainer(OnlineDPOTrainer):
59-
r"""
60-
Initialize XPOTrainer as a subclass of [`OnlineDPOConfig`].
59+
"""
60+
Trainer for Exploratory Preference Optimization (XPO).
61+
62+
It is implemented as a subclass of [`OnlineDPOTrainer`].
6163
6264
Args:
6365
model (`transformers.PreTrainedModel`):

0 commit comments

Comments
 (0)