Skip to content

Add back AOPerModuleConfig for BC #2282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2025
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions test/integration/test_vllm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
import torch

from packaging import version
from torchao.utils import TORCH_VERSION_AT_LEAST_2_7
from torchao.utils import TORCH_VERSION_AT_LEAST_2_8

if not TORCH_VERSION_AT_LEAST_2_7:
pytest.skip("Requires PyTorch 2.7 or higher", allow_module_level=True)
if not TORCH_VERSION_AT_LEAST_2_8:
pytest.skip("Requires PyTorch 2.8 or higher", allow_module_level=True)


VLLM_AVAILABLE = importlib.util.find_spec("vllm") is not None
Expand Down
4 changes: 4 additions & 0 deletions torchao/quantization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@
)
from .weight_only import WeightOnlyInt8QuantLinear

# TODO: remove after migration of APIs are done
AOPerModuleConfig = ModuleFqnToConfig

__all__ = [
# top level API - auto
"autoquant",
Expand Down Expand Up @@ -148,6 +151,7 @@
"IntxWeightOnlyConfig",
"FPXWeightOnlyConfig",
"GemliteUIntXWeightOnlyConfig",
"AOPerModuleConfig",
"ModuleFqnToConfig",
"FbgemmConfig",
# smooth quant - subject to change
Expand Down
Loading