Skip to content

Commit 77b2614

Browse files
style fixes
Signed-off-by: Brian Dellabetta <[email protected]>
1 parent c8eeabc commit 77b2614

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/llmcompressor/modifiers/awq/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ class AWQModifier(Modifier, QuantizationMixin):
9595
- on_finalize
9696
- clear resolved mappings and captured activations
9797
98-
:param sequential_targets: list of module names to compress in the same calibration pass
98+
:param sequential_targets: list of module names to compress in
99+
the same calibration pass
99100
:param mappings: list activation layers to smooth, and which layers to
100101
scale the output such that activations are smoothed.
101102
Each entry of the mapping list should be a list itself, in which the first

tests/llmcompressor/modifiers/awq/test_base.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
import pytest
22
import torch
3+
from compressed_tensors.quantization import (
4+
QuantizationArgs,
5+
QuantizationScheme,
6+
)
37
from pydantic import ValidationError
8+
49
from llmcompressor.modifiers.awq import AWQMapping, AWQModifier
510
from llmcompressor.modifiers.awq.base import _sanitize_kwargs
611
from llmcompressor.modifiers.factory import ModifierFactory
712
from tests.llmcompressor.modifiers.conf import setup_modifier_factory
8-
from compressed_tensors.quantization import (
9-
QuantizationArgs,
10-
QuantizationConfig,
11-
QuantizationScheme,
12-
QuantizationStatus,
13-
QuantizationStrategy,
14-
)
1513

1614

1715
@pytest.mark.unit

0 commit comments

Comments
 (0)