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.
- {compressed-tensors-nightly-0.8.1.20250111/src/compressed_tensors_nightly.egg-info → compressed-tensors-nightly-0.9.0.20250115}/PKG-INFO +1 -1
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/setup.py +32 -6
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/version.py +1 -1
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115/src/compressed_tensors_nightly.egg-info}/PKG-INFO +1 -1
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/LICENSE +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/README.md +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/pyproject.toml +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/setup.cfg +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/__init__.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/base.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/__init__.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/base.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/helpers.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/model_compressors/__init__.py +0 -0
- {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
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/quantized_compressors/__init__.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/quantized_compressors/base.py +0 -0
- {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
- {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
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/sparse_compressors/__init__.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/sparse_compressors/base.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/compressors/sparse_compressors/dense.py +0 -0
- {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
- {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
- {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
- {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
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/config/__init__.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/config/base.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/config/dense.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/config/sparse_24_bitmask.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/config/sparse_bitmask.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/linear/__init__.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/linear/compressed_linear.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/__init__.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/lifecycle/__init__.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/lifecycle/apply.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/lifecycle/compressed.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/lifecycle/forward.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/lifecycle/helpers.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/lifecycle/initialize.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/quant_args.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/quant_config.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/quant_scheme.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/utils/__init__.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/quantization/utils/helpers.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/registry/__init__.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/registry/registry.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/utils/__init__.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/utils/helpers.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/utils/offload.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/utils/permutations_24.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/utils/permute.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/utils/safetensors_load.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors/utils/semi_structured_conversions.py +0 -0
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors_nightly.egg-info/SOURCES.txt +0 -0
- {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
- {compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/src/compressed_tensors_nightly.egg-info/requires.txt +0 -0
- {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.
|
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.
|
{compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/setup.py
RENAMED
@@ -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
|
-
|
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
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: compressed-tensors-nightly
|
3
|
-
Version: 0.
|
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.
|
{compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/LICENSE
RENAMED
File without changes
|
{compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/README.md
RENAMED
File without changes
|
File without changes
|
{compressed-tensors-nightly-0.8.1.20250111 → compressed-tensors-nightly-0.9.0.20250115}/setup.cfg
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|