Skip to content

Commit

Permalink
fix peft_config type (#883)
Browse files Browse the repository at this point in the history
Co-authored-by: wanglei.w <[email protected]>
  • Loading branch information
u2takey and wanglei.w authored Oct 18, 2023
1 parent f91fb2b commit 122edc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trl/trainer/sft_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def __init__(
callbacks: Optional[List[TrainerCallback]] = None,
optimizers: Tuple[torch.optim.Optimizer, torch.optim.lr_scheduler.LambdaLR] = (None, None),
preprocess_logits_for_metrics: Optional[Callable[[torch.Tensor, torch.Tensor], torch.Tensor]] = None,
peft_config: Optional[Dict] = None,
peft_config: Optional[PeftConfig] = None,
dataset_text_field: Optional[str] = None,
packing: Optional[bool] = False,
formatting_func: Optional[Callable] = None,
Expand Down

0 comments on commit 122edc8

Please sign in to comment.