Skip to content

Commit 93560e0

Browse files
committed
reduce diff
Signed-off-by: Kyle Sayers <[email protected]>
1 parent d95cc6b commit 93560e0

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/compressed_tensors/quantization/quant_args.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import warnings
1615
from enum import Enum
1716
from typing import Any, Dict, List, Optional, Union
1817

1918
import torch
2019
from compressed_tensors.utils import Aliasable
21-
from compressed_tensors.utils.helpers import deprecated
2220
from pydantic import BaseModel, ConfigDict, Field, field_validator, model_validator
2321

2422

src/compressed_tensors/quantization/quant_scheme.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ def validate_model_after(model: "QuantizationScheme") -> "QuantizationScheme":
8585
if inputs.actorder is not None:
8686
raise ValueError("Cannot apply actorder to input activations")
8787

88-
if inputs.observer is None:
89-
inputs.observer
90-
9188
# validate output args
9289
if outputs is not None:
9390
if outputs.actorder is not None:
@@ -206,7 +203,6 @@ def is_preset_scheme(name: str) -> bool:
206203
symmetric=True,
207204
dynamic=False,
208205
group_size=16,
209-
observer="static_minmax",
210206
),
211207
input_activations=QuantizationArgs(
212208
num_bits=4,
@@ -215,7 +211,6 @@ def is_preset_scheme(name: str) -> bool:
215211
symmetric=True,
216212
dynamic=DynamicType.LOCAL,
217213
group_size=16,
218-
observer="static_minmax",
219214
),
220215
)
221216

0 commit comments

Comments
 (0)