We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cda845 commit 29826d9Copy full SHA for 29826d9
1 file changed
bitsandbytes/backends/utils.py
@@ -1,4 +1,4 @@
1
-import importlib
+from importlib.metadata import metadata
2
3
from packaging import version
4
import torch
@@ -69,7 +69,7 @@ def get_gaudi_sw_version():
69
"""
70
try:
71
# if we find the spec, examine the installed version
72
- plugin_metadata = importlib.metadata.metadata("habana-torch-plugin")
+ plugin_metadata = metadata("habana-torch-plugin")
73
plugin_version = plugin_metadata.get("Version")
74
if plugin_version:
75
gaudi_version = version.parse(plugin_version)
0 commit comments