Skip to content

Commit f485af6

Browse files
committed
Merge remote-tracking branch 'origin' into kylesayrs/transform-simplify-key
2 parents 5590e28 + 15177be commit f485af6

File tree

40 files changed

+720
-562
lines changed

40 files changed

+720
-562
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Quality Checks
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- 'release/*'
7+
pull_request:
8+
branches:
9+
- main
10+
- 'release/*'
11+
12+
jobs:
13+
quality-check:
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.10'
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
fetch-tags: true
23+
- name: Set Env
24+
run: |
25+
pip3 install --upgrade pip && pip3 install --upgrade setuptools
26+
- name: "⚙️ Install dependencies"
27+
run: pip3 install .[dev]
28+
- name: "🧹 Running quality checks"
29+
run: make quality

.github/workflows/test-check.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
push:
55
branches:
66
- main
7+
- 'release/*'
78
pull_request:
89
branches:
910
- main
11+
- 'release/*'
1012

1113
jobs:
1214
python-tests:
@@ -26,3 +28,4 @@ jobs:
2628
run: pip3 install .[dev,accelerate]
2729
- name: "🔬 Running tests"
2830
run: make test
31+

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ensure_newline_before_comments = True
55
force_grid_wrap = 0
66
include_trailing_comma = True
77
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
8+
skip = src/compressed_tensors/version.py
89

910
line_length = 88
1011
lines_after_imports = 2

src/compressed_tensors/base.py

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

15-
SPARSITY_CONFIG_NAME = "sparsity_config"
15+
# configs
1616
QUANTIZATION_CONFIG_NAME = "quantization_config"
17-
COMPRESSION_CONFIG_NAME = "compression_config"
18-
KV_CACHE_SCHEME_NAME = "kv_cache_scheme"
17+
SPARSITY_CONFIG_NAME = "sparsity_config"
18+
TRANSFORM_CONFIG_NAME = "transform_config"
19+
20+
# required fields
1921
COMPRESSION_VERSION_NAME = "version"
2022
QUANTIZATION_METHOD_NAME = "quant_method"
23+
24+
# auxillary configs
25+
KV_CACHE_SCHEME_NAME = "kv_cache_scheme"

0 commit comments

Comments
 (0)