File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/llmcompressor/modifiers/awq Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 11import inspect
22from itertools import product
3- from typing import Literal , Iterator
3+ from typing import Iterator , Literal
44
55import torch
66from 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
You can’t perform that action at this time.
0 commit comments