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 9008f84 commit d8c1f02Copy full SHA for d8c1f02
torchao/utils.py
@@ -1153,7 +1153,10 @@ def is_package_at_least(package_name: str, min_version: str):
1153
def _is_fbgemm_gpu_genai_available():
1154
# TODO: use is_package_at_least("fbgemm_gpu", "1.2.0") when
1155
# https://github.com/pytorch/FBGEMM/issues/4198 is fixed
1156
- if importlib.util.find_spec("fbgemm_gpu") is None:
+ if (
1157
+ importlib.util.find_spec("fbgemm_gpu") is None
1158
+ or importlib.util.find_spec("fbgemm_gpu.experimental") is None
1159
+ ):
1160
return False
1161
1162
import fbgemm_gpu.experimental.gen_ai # noqa: F401
0 commit comments