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
2 changes: 1 addition & 1 deletion docs/source/sft_trainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ trainer = SFTTrainer(
trainer.train()
```

You can also continue training your [`peft.PeftModel`]. For that, first load a `PeftModel` outside [`SFTTrainer`] and pass it directly to the trainer without the `peft_config` argument being passed.
You can also continue training your [`~peft.PeftModel`]. For that, first load a `PeftModel` outside [`SFTTrainer`] and pass it directly to the trainer without the `peft_config` argument being passed.

```python
from datasets import load_dataset
Expand Down
2 changes: 1 addition & 1 deletion trl/trainer/gkd_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class GKDTrainer(SFTTrainer):
preprocess_logits_for_metrics (`Callable`, *optional*):
Function to preprocess the logits before computing the metrics. Must take in the `logits` and `labels` and
return the logits to be used for metrics computation.
peft_config ([`~peft.config.PeftConfig`], *optional*):
peft_config ([`~peft.PeftConfig`], *optional*):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a similar mistake in PPO as well

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oups, I had missed that! 😅

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

PEFT configuration to use PEFT for training. If `None`, PEFT is not used. If provided, the `model` will be
wrapped with the specified PEFT adapter.
formatting_func (`Callable`, *optional*):
Expand Down
2 changes: 1 addition & 1 deletion trl/trainer/ppo_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class PPOTrainer(BaseTrainer):
[`~transformers.Trainer.create_optimizer_and_scheduler`] method.
callbacks (`list` of [`~transformers.TrainerCallback`], *optional*):
Callbacks to use during training.
peft_config ([`~peft.config.PeftConfig`], *optional*):
peft_config ([`~peft.PeftConfig`], *optional*):
PEFT configuration to use PEFT for training. If `None`, PEFT is not used. If provided, the policy `model`
will be wrapped with the specified PEFT adapter.
"""
Expand Down
Loading