Skip to content

Commit 9a898d6

Browse files
committed
format
Summary Signed-off-by: HDCharles <[email protected]>
1 parent 129c660 commit 9a898d6

File tree

1 file changed

+6
-3
lines changed
  • src/llmcompressor/modifiers/awq

1 file changed

+6
-3
lines changed

src/llmcompressor/modifiers/awq/base.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import inspect
22
from itertools import product
3-
from typing import Literal, Iterator
3+
from typing import Iterator, Literal
44

55
import torch
66
from compressed_tensors.quantization import disable_quantization
@@ -739,10 +739,13 @@ def _check_layers_are_compatible(
739739
return True
740740

741741

742-
def get_lowest_common_ancestor_with_avoid(balance_names: Iterator[str], model: Module, avoid=torch.nn.ModuleList):
742+
def get_lowest_common_ancestor_with_avoid(
743+
balance_names: Iterator[str], model: Module, avoid=torch.nn.ModuleList
744+
):
743745
"""
744746
Get the lowest ancestor that is not the avoided class/type.
745-
see compressed_tensors.utils.get_lowest_common_ancestor_name for detail on case handling.
747+
see compressed_tensors.utils.get_lowest_common_ancestor_name
748+
for detail on case handling.
746749
747750
NOTE: primarily used to exclude parents of type ModuleList, which don't play
748751
nicely with hooks because their forward method is never directly

0 commit comments

Comments
 (0)