compressed-tensors-nightly 0.8.1.20250111__tar.gz → 0.9.0.20250115__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. {compressed-tensors-nightly-0.8.1.20250111/src/compressed_tensors_nightly.egg-info → compressed-tensors-nightly-0.9.0.20250115}/PKG-INFO +1 -1
  2. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/setup.py +32 -6
  3. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/version.py +1 -1
  4. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115/src/compressed_tensors_nightly.egg-info}/PKG-INFO +1 -1
  5. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/LICENSE +0 -0
  6. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/README.md +0 -0
  7. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/pyproject.toml +0 -0
  8. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/setup.cfg +0 -0
  9. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/__init__.py +0 -0
  10. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/base.py +0 -0
  11. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/__init__.py +0 -0
  12. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/base.py +0 -0
  13. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/helpers.py +0 -0
  14. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/model_compressors/__init__.py +0 -0
  15. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/model_compressors/model_compressor.py +0 -0
  16. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/quantized_compressors/__init__.py +0 -0
  17. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/quantized_compressors/base.py +0 -0
  18. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/quantized_compressors/naive_quantized.py +0 -0
  19. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/quantized_compressors/pack_quantized.py +0 -0
  20. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/sparse_compressors/__init__.py +0 -0
  21. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/sparse_compressors/base.py +0 -0
  22. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/sparse_compressors/dense.py +0 -0
  23. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/sparse_compressors/sparse_24_bitmask.py +0 -0
  24. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/sparse_compressors/sparse_bitmask.py +0 -0
  25. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/sparse_quantized_compressors/__init__.py +0 -0
  26. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/sparse_quantized_compressors/marlin_24.py +0 -0
  27. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/config/__init__.py +0 -0
  28. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/config/base.py +0 -0
  29. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/config/dense.py +0 -0
  30. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/config/sparse_24_bitmask.py +0 -0
  31. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/config/sparse_bitmask.py +0 -0
  32. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/linear/__init__.py +0 -0
  33. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/linear/compressed_linear.py +0 -0
  34. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/__init__.py +0 -0
  35. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/lifecycle/__init__.py +0 -0
  36. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/lifecycle/apply.py +0 -0
  37. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/lifecycle/compressed.py +0 -0
  38. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/lifecycle/forward.py +0 -0
  39. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/lifecycle/helpers.py +0 -0
  40. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/lifecycle/initialize.py +0 -0
  41. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/quant_args.py +0 -0
  42. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/quant_config.py +0 -0
  43. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/quant_scheme.py +0 -0
  44. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/utils/__init__.py +0 -0
  45. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/utils/helpers.py +0 -0
  46. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/registry/__init__.py +0 -0
  47. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/registry/registry.py +0 -0
  48. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/utils/__init__.py +0 -0
  49. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/utils/helpers.py +0 -0
  50. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/utils/offload.py +0 -0
  51. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/utils/permutations_24.py +0 -0
  52. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/utils/permute.py +0 -0
  53. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/utils/safetensors_load.py +0 -0
  54. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/utils/semi_structured_conversions.py +0 -0
  55. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors_nightly.egg-info/SOURCES.txt +0 -0
  56. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors_nightly.egg-info/dependency_links.txt +0 -0
  57. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors_nightly.egg-info/requires.txt +0 -0
  58. {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors_nightly.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: compressed-tensors-nightly
3
- Version: 0.8.1.20250111
3
+ Version: 0.9.0.20250115
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.
@@ -1,11 +1,11 @@
1
1
  # Copyright (c) 2021 - present / Neuralmagic, Inc. All Rights Reserved.
2
- #
2
+ #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
- #
6
+ #
7
7
  # http://www.apache.org/licenses/LICENSE-2.0
8
- #
8
+ #
9
9
  # Unless required by applicable law or agreed to in writing,
10
10
  # software distributed under the License is distributed on an "AS IS" BASIS,
11
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -15,7 +15,33 @@
15
15
  import os
16
16
  from setuptools import setup, find_packages
17
17
  from typing import List, Dict, Tuple
18
- from utils.artifacts import get_release_and_version
18
+
19
+
20
+ def get_release_and_version(package_path: str) -> Tuple[bool, bool, str, str, str, str]:
21
+ """
22
+ Load version and release info from compressed-tensors package
23
+ """
24
+ # compressed-tensors/src/compressed_tensors/version.py always exists, default source of truth
25
+ version_path = os.path.join(package_path, "version.py")
26
+
27
+ # exec() cannot set local variables so need to manually
28
+ locals_dict = {}
29
+ exec(open(version_path).read(), globals(), locals_dict)
30
+ is_release = locals_dict.get("is_release", False)
31
+ version = locals_dict.get("version", "unknown")
32
+ version_major = locals_dict.get("version_major", "unknown")
33
+ version_minor = locals_dict.get("version_minor", "unknown")
34
+ version_bug = locals_dict.get("version_bug", "unknown")
35
+
36
+ print(f"Loaded version {version} from {version_path}")
37
+
38
+ return (
39
+ is_release,
40
+ version,
41
+ version_major,
42
+ version_minor,
43
+ version_bug,
44
+ )
19
45
 
20
46
 
21
47
  package_path = os.path.join(
@@ -35,7 +61,7 @@ if is_release:
35
61
  _PACKAGE_NAME = "compressed-tensors"
36
62
  else:
37
63
  _PACKAGE_NAME = "compressed-tensors-nightly"
38
-
64
+
39
65
 
40
66
  def _setup_long_description() -> Tuple[str, str]:
41
67
  return open("README.md", "r", encoding="utf-8").read(), "text/markdown"
@@ -44,7 +70,7 @@ def _setup_packages() -> List:
44
70
  return find_packages(
45
71
  "src", include=["compressed_tensors", "compressed_tensors.*"], exclude=["*.__pycache__.*"]
46
72
  )
47
-
73
+
48
74
  def _setup_install_requires() -> List:
49
75
  return ["torch>=1.7.0", "transformers", "pydantic>=2.0"]
50
76
 
@@ -17,7 +17,7 @@ Functionality for storing and setting the version info for SparseML
17
17
  """
18
18
 
19
19
 
20
- version_base = "0.8.1"
20
+ version_base = "0.9.0"
21
21
  is_release = False # change to True to set the generated version as a release version
22
22
 
23
23
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: compressed-tensors-nightly
3
- Version: 0.8.1.20250111
3
+ Version: 0.9.0.20250115
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.