From 4cdc03ab5c655f9baa403ada27f7be1a89df9c9b Mon Sep 17 00:00:00 2001 From: Partha Ghosh Date: Mon, 4 Dec 2023 12:39:58 +0100 Subject: [PATCH] Fixing accelerator version function call. (#1056) Co-authored-by: Partha Ghosh --- trl/import_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trl/import_utils.py b/trl/import_utils.py index eaba70d580..7697f6db84 100644 --- a/trl/import_utils.py +++ b/trl/import_utils.py @@ -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()