Skip to content

Commit 3e944c5

Browse files
authored
add cann version info to command accelerate env (huggingface#2689)
1 parent f677373 commit 3e944c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/accelerate/commands/env.py

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def env_command(args):
7979
}
8080
if pt_cuda_available:
8181
info["GPU type"] = torch.cuda.get_device_name()
82+
if pt_npu_available:
83+
info["CANN version"] = torch.version.cann
8284

8385
print("\nCopy-and-paste the text below in your GitHub issue\n")
8486
print("\n".join([f"- {prop}: {val}" for prop, val in info.items()]))

0 commit comments

Comments
 (0)