compressed-tensors-nightly 0.5.0.20240903__py3-none-any.whl → 0.5.0.20240904__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- compressed_tensors/quantization/quant_args.py +4 -1
- {compressed_tensors_nightly-0.5.0.20240903.dist-info → compressed_tensors_nightly-0.5.0.20240904.dist-info}/METADATA +1 -1
- {compressed_tensors_nightly-0.5.0.20240903.dist-info → compressed_tensors_nightly-0.5.0.20240904.dist-info}/RECORD +6 -6
- {compressed_tensors_nightly-0.5.0.20240903.dist-info → compressed_tensors_nightly-0.5.0.20240904.dist-info}/LICENSE +0 -0
- {compressed_tensors_nightly-0.5.0.20240903.dist-info → compressed_tensors_nightly-0.5.0.20240904.dist-info}/WHEEL +0 -0
- {compressed_tensors_nightly-0.5.0.20240903.dist-info → compressed_tensors_nightly-0.5.0.20240904.dist-info}/top_level.txt +0 -0
@@ -93,7 +93,7 @@ class QuantizationArgs(BaseModel, use_enum_values=True):
|
|
93
93
|
strategy: Optional[QuantizationStrategy] = None
|
94
94
|
block_structure: Optional[str] = None
|
95
95
|
dynamic: bool = False
|
96
|
-
actorder:
|
96
|
+
actorder: Union[ActivationOrdering, bool, None] = None
|
97
97
|
observer: str = Field(
|
98
98
|
default="minmax",
|
99
99
|
description=(
|
@@ -151,6 +151,9 @@ class QuantizationArgs(BaseModel, use_enum_values=True):
|
|
151
151
|
|
152
152
|
@field_validator("actorder", mode="before")
|
153
153
|
def validate_actorder(cls, value) -> Optional[ActivationOrdering]:
|
154
|
+
if isinstance(value, bool):
|
155
|
+
return ActivationOrdering.GROUP if value else None
|
156
|
+
|
154
157
|
if isinstance(value, str):
|
155
158
|
return ActivationOrdering(value.lower())
|
156
159
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: compressed-tensors-nightly
|
3
|
-
Version: 0.5.0.
|
3
|
+
Version: 0.5.0.20240904
|
4
4
|
Summary: Library for utilization of compressed safetensors of neural network models
|
5
5
|
Home-page: https://github.com/neuralmagic/compressed-tensors
|
6
6
|
Author: Neuralmagic, Inc.
|
@@ -17,7 +17,7 @@ compressed_tensors/config/sparse_bitmask.py,sha256=pZUboRNZTu6NajGOQEFExoPknak5y
|
|
17
17
|
compressed_tensors/linear/__init__.py,sha256=fH6rjBYAxuwrTzBTlTjTgCYNyh6TCvCqajCz4Im4YrA,617
|
18
18
|
compressed_tensors/linear/compressed_linear.py,sha256=G0gEFfxLAUsgRcnfSV-PKz1ZBNTVokOauOoup7SE1mw,3210
|
19
19
|
compressed_tensors/quantization/__init__.py,sha256=83J5bPB7PavN2TfCoW7_vEDhfYpm4TDrqYO9vdSQ5bk,760
|
20
|
-
compressed_tensors/quantization/quant_args.py,sha256=
|
20
|
+
compressed_tensors/quantization/quant_args.py,sha256=L6H0DDdzqtCIYNm4-1_DPj9bR9zsZTH6ZmK_CSZTKgI,7842
|
21
21
|
compressed_tensors/quantization/quant_config.py,sha256=NpVu8YJ4Xw2pIQW_PGaNaml8kx1bUnxkvb0jBYWbKdE,9971
|
22
22
|
compressed_tensors/quantization/quant_scheme.py,sha256=VRvWweqwlhjYMrKf62fXKQTeoJGhjJa3tXnE-TuFdFA,6093
|
23
23
|
compressed_tensors/quantization/lifecycle/__init__.py,sha256=MXE2E7GfIfRRfhrdGy2Og3AZOz5N59B0ZGFcsD89y6c,821
|
@@ -45,8 +45,8 @@ compressed_tensors/utils/permutations_24.py,sha256=kx6fsfDHebx94zsSzhXGyCyuC9sVy
|
|
45
45
|
compressed_tensors/utils/permute.py,sha256=V6tJLKo3Syccj-viv4F7ZKZgJeCB-hl-dK8RKI_kBwI,2355
|
46
46
|
compressed_tensors/utils/safetensors_load.py,sha256=m08ANVuTBxQdoa6LufDgcNJ7wCLDJolyZljB8VEybAU,8578
|
47
47
|
compressed_tensors/utils/semi_structured_conversions.py,sha256=XKNffPum54kPASgqKzgKvyeqWPAkair2XEQXjkp7ho8,13489
|
48
|
-
compressed_tensors_nightly-0.5.0.
|
49
|
-
compressed_tensors_nightly-0.5.0.
|
50
|
-
compressed_tensors_nightly-0.5.0.
|
51
|
-
compressed_tensors_nightly-0.5.0.
|
52
|
-
compressed_tensors_nightly-0.5.0.
|
48
|
+
compressed_tensors_nightly-0.5.0.20240904.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
49
|
+
compressed_tensors_nightly-0.5.0.20240904.dist-info/METADATA,sha256=eOyEThMsY-VDsh-yk9HVTfPXB59nKBSpiNJCkRN-pHE,6799
|
50
|
+
compressed_tensors_nightly-0.5.0.20240904.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
51
|
+
compressed_tensors_nightly-0.5.0.20240904.dist-info/top_level.txt,sha256=w2i-GyPs2s1UwVxvutSvN_lM22SXC2hQFBmoMcPnV7Y,19
|
52
|
+
compressed_tensors_nightly-0.5.0.20240904.dist-info/RECORD,,
|
File without changes
|
File without changes
|