compressed-tensors-nightly 0.6.0.20241006__py3-none-any.whl → 0.6.0.20241008__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.
@@ -107,8 +107,8 @@ def load_pretrained_quantization(model: Module, model_name_or_path: str):
107
107
 
108
108
 
109
109
  def apply_quantization_config(
110
- model: Module, config: QuantizationConfig, run_compressed: bool = False
111
- ) -> Dict:
110
+ model: Module, config: Union[QuantizationConfig, None], run_compressed: bool = False
111
+ ) -> OrderedDict:
112
112
  """
113
113
  Initializes the model for quantization in-place based on the given config
114
114
 
@@ -117,6 +117,10 @@ def apply_quantization_config(
117
117
  :param run_compressed: Whether the model will be run in compressed mode or
118
118
  decompressed fully on load
119
119
  """
120
+ # Workaround for when HF Quantizer passes None, see PR #180
121
+ if config is None:
122
+ return OrderedDict()
123
+
120
124
  # remove reference to the original `config`
121
125
  # argument. This function can mutate it, and we'd
122
126
  # like to keep the original `config` as it is.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: compressed-tensors-nightly
3
- Version: 0.6.0.20241006
3
+ Version: 0.6.0.20241008
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.
@@ -28,7 +28,7 @@ compressed_tensors/quantization/quant_args.py,sha256=73KevZXHyrkMCT_3CxbYHz70fI3
28
28
  compressed_tensors/quantization/quant_config.py,sha256=NCiMvUMnnz5kTyAkDylxjtEGQnjgsIYIeNR2zyHEdTQ,10371
29
29
  compressed_tensors/quantization/quant_scheme.py,sha256=uFgp6ECU6ZkHWkeKlAVAzZTLDbrTrzPSPrY23eJluaw,5931
30
30
  compressed_tensors/quantization/lifecycle/__init__.py,sha256=MXE2E7GfIfRRfhrdGy2Og3AZOz5N59B0ZGFcsD89y6c,821
31
- compressed_tensors/quantization/lifecycle/apply.py,sha256=_rd56GZZkhbu0HWiq6iYzgcnkMsX3GCs-e8DvtmWmbQ,15668
31
+ compressed_tensors/quantization/lifecycle/apply.py,sha256=czaayvpeUYyWRJhO_klffw6esptOgA9sBKL5TWQcRdw,15805
32
32
  compressed_tensors/quantization/lifecycle/calibration.py,sha256=IuLeRkVQPrMxkMcIjr4OMFlIUMHkqjH4qAxC2KiUBGw,2673
33
33
  compressed_tensors/quantization/lifecycle/compressed.py,sha256=Fj9n66IN0EWsOAkBHg3O0GlOQpxstqjCcs0ttzMXrJ0,2296
34
34
  compressed_tensors/quantization/lifecycle/forward.py,sha256=eLup6QDRUUp_Ozcas7RDRLIXBWjFbxn5gWbcAIJEGlw,15715
@@ -52,8 +52,8 @@ compressed_tensors/utils/permutations_24.py,sha256=kx6fsfDHebx94zsSzhXGyCyuC9sVy
52
52
  compressed_tensors/utils/permute.py,sha256=V6tJLKo3Syccj-viv4F7ZKZgJeCB-hl-dK8RKI_kBwI,2355
53
53
  compressed_tensors/utils/safetensors_load.py,sha256=m08ANVuTBxQdoa6LufDgcNJ7wCLDJolyZljB8VEybAU,8578
54
54
  compressed_tensors/utils/semi_structured_conversions.py,sha256=XKNffPum54kPASgqKzgKvyeqWPAkair2XEQXjkp7ho8,13489
55
- compressed_tensors_nightly-0.6.0.20241006.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
56
- compressed_tensors_nightly-0.6.0.20241006.dist-info/METADATA,sha256=H0Labw7XqjeDUBAlX6iLBOY0N4Afm5dH5pBwLnHgJc8,6799
57
- compressed_tensors_nightly-0.6.0.20241006.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
58
- compressed_tensors_nightly-0.6.0.20241006.dist-info/top_level.txt,sha256=w2i-GyPs2s1UwVxvutSvN_lM22SXC2hQFBmoMcPnV7Y,19
59
- compressed_tensors_nightly-0.6.0.20241006.dist-info/RECORD,,
55
+ compressed_tensors_nightly-0.6.0.20241008.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
56
+ compressed_tensors_nightly-0.6.0.20241008.dist-info/METADATA,sha256=YY9Unmo9T98eRRb6aGdIVR_1xI6o0IdWw0KH3iqSG5M,6799
57
+ compressed_tensors_nightly-0.6.0.20241008.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
58
+ compressed_tensors_nightly-0.6.0.20241008.dist-info/top_level.txt,sha256=w2i-GyPs2s1UwVxvutSvN_lM22SXC2hQFBmoMcPnV7Y,19
59
+ compressed_tensors_nightly-0.6.0.20241008.dist-info/RECORD,,