Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion torchao/quantization/quant_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
is_MI300,
is_sm_at_least_89,
is_sm_at_least_90,
is_fbcode,
)

from .autoquant import AutoQuantizableLinearWeight, autoquant
Expand Down Expand Up @@ -2010,7 +2011,7 @@ def _(module: torch.nn.Module, config: FbgemmConfig) -> torch.nn.Module:

import fbgemm_gpu.experimental.gen_ai # noqa: F401

if fbgemm_gpu.__version__ < "1.2.0":
if not is_fbcode() and fbgemm_gpu.__version__ < "1.2.0":
raise ImportError("Requires fbgemm-gpu-genai >= 1.2.0")

_SUPPORTED_DTYPES = {
Expand Down
Loading