Skip to content

Commit

Permalink
add metadata of device and cuda version
Browse files Browse the repository at this point in the history
  • Loading branch information
tianleiwu committed Nov 28, 2023
1 parent 6741855 commit 15476ba
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ def get_metadata(args, is_xl: bool = False) -> Dict[str, Any]:
except PackageNotFoundError:
continue
metadata["packages"] = packages
metadata["device"] = torch.cuda.get_device_name()
metadata["torch.version.cuda"] = torch.version.cuda

return metadata

Expand Down

0 comments on commit 15476ba

Please sign in to comment.