Skip to content

Commit

Permalink
Fixing accelerator version function call. (#1056)
Browse files Browse the repository at this point in the history
Co-authored-by: Partha Ghosh <[email protected]>
  • Loading branch information
ParthaEth and Partha Ghosh authored Dec 4, 2023
1 parent a60ceef commit 4cdc03a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trl/import_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def is_wandb_available() -> bool:


def is_xpu_available() -> bool:
if is_accelerate_greater_20_0:
if is_accelerate_greater_20_0():
import accelerate

return accelerate.utils.is_xpu_available()
Expand Down

0 comments on commit 4cdc03a

Please sign in to comment.