Skip to content

Commit

Permalink
remove spurious optimize_cuda_cache deprecation warning on init (#1045)
Browse files Browse the repository at this point in the history
Signed-off-by: Chander Govindarajan <[email protected]>
  • Loading branch information
ChanderG authored Dec 1, 2023
1 parent 481ef96 commit c859f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trl/trainer/ppo_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class PPOConfig:
"""Number of optimisation epochs per batch of samples"""
max_grad_norm: Optional[float] = None
"""Maximum gradient norm for gradient clipping"""
optimize_cuda_cache: bool = False
optimize_cuda_cache: Optional[bool] = None
"""DEPRECATED: use `optimize_device_cache` instead, which does the same thing."""
optimize_device_cache: Optional[bool] = False
"""Optimize device cache for slightly more memory-efficient training"""
Expand Down

0 comments on commit c859f5f

Please sign in to comment.