Skip to content

Fix failing uint4 test #501

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

Closed
wants to merge 1 commit into from
Closed
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
8 changes: 1 addition & 7 deletions test/dtypes/test_uint4.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,14 @@
PerChannelSymmetricWeightUInt4Tensor,
)
import unittest
from unittest import TestCase, main
from torch.ao.quantization.quantize_pt2e import prepare_pt2e, convert_pt2e
from torch.ao.quantization.quantizer import QuantizationSpec, Quantizer

from torch._export import capture_pre_autograd_graph
from torch._export import dynamic_dim
from torch.testing._internal.common_quantization import (
NodeSpec as ns,
QuantizationTestCase,
)
from torchao.quantization.utils import (
compute_error,
)
from torchao.quantization.quant_api import (
_replace_with_custom_fn_if_matches_filter,
)
Expand All @@ -30,7 +25,6 @@
QuantizationAnnotation,
)
import copy
from packaging import version


def _apply_weight_only_uint4_quant(model):
Expand Down Expand Up @@ -229,4 +223,4 @@ def forward(self, x):
)

if __name__ == "__main__":
main()
unittest.main()
Loading