Skip to content
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
5 changes: 3 additions & 2 deletions backends/vulkan/_passes/int4_weight_only_quantizer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import logging
from typing import Any, Callable, Dict, Optional, Type

Expand Down Expand Up @@ -35,7 +36,7 @@ def __init__(
super().__init__()
self.padding = not _check_linear_int4_k(in_features, groupsize, inner_k_tiles)
if self.padding:
from torchao.quantization.utils import find_multiple
from torchao.utils import find_multiple

self.origin_in_features = in_features
in_features = find_multiple(in_features, (1024,))
Expand Down Expand Up @@ -203,7 +204,7 @@ def _create_quantized_state_dict(
if self.padding_allowed:
import torch.nn.functional as F

from torchao.quantization.utils import find_multiple
from torchao.utils import find_multiple

logging.warn(
f"warning: {fqn} is padded to satisfy in_features % 1024 == 0"
Expand Down
3 changes: 2 additions & 1 deletion backends/xnnpack/test/ops/linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
# pyre-unsafe

import unittest

Expand Down Expand Up @@ -30,8 +31,8 @@
from torchao.quantization.quant_api import (
int8_dynamic_activation_int4_weight,
quantize_,
unwrap_tensor_subclass,
)
from torchao.utils import unwrap_tensor_subclass

torchao_installed = True
except:
Expand Down
Loading