Skip to content

Commit

Permalink
Expose auto in dataclass (#1914)
Browse files Browse the repository at this point in the history
* Auto

* Update str
  • Loading branch information
muellerzr authored Sep 5, 2023
1 parent 739b135 commit afed2f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/accelerate/utils/dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,10 @@ class DeepSpeedPlugin:
},
)
gradient_accumulation_steps: int = field(
default=None, metadata={"help": "Number of steps to accumulate gradients before updating optimizer states"}
default=None,
metadata={
"help": "Number of steps to accumulate gradients before updating optimizer states. If not set, will use the value from the `Accelerator` directly."
},
)
gradient_clipping: float = field(default=None, metadata={"help": "Enable gradient clipping with value"})
zero_stage: int = field(
Expand Down

0 comments on commit afed2f7

Please sign in to comment.