Skip to content

Commit 783a081

Browse files
committed
update docstring
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
1 parent 90cf72d commit 783a081

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/compressed_tensors/compressors/model_compressors/model_compressor.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -519,11 +519,7 @@ def _replace_weights(self, dense_weight_generator, model: Module):
519519

520520
def map_module_to_scheme(model: Module) -> Dict[str, QuantizationScheme]:
521521
"""
522-
Given a pytorch model, map out the submodule name (usually linear layers)
523-
to the weight QuantizationArgs. If running input activation quantization, will also
524-
map to the input QuantizationArgs in a tuple.
525-
526-
:param model: pytorch model
522+
Returns a dictionary which maps quantized module names to their quantization schemes
527523
"""
528524
quantized_modules_to_args = {}
529525
for name, submodule in iter_named_leaf_modules(model):

0 commit comments

Comments
 (0)