From edf6957478236da94c737ed704759996ef4713c6 Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Tue, 7 Jan 2025 19:17:52 +0200 Subject: [PATCH 1/3] Add compressed-tensors --- recipes/compressed-tensors/meta.yaml | 44 ++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 recipes/compressed-tensors/meta.yaml diff --git a/recipes/compressed-tensors/meta.yaml b/recipes/compressed-tensors/meta.yaml new file mode 100644 index 0000000000000..1087ca63097d3 --- /dev/null +++ b/recipes/compressed-tensors/meta.yaml @@ -0,0 +1,44 @@ +{% set name = "compressed-tensors" %} +{% set version = "0.8.1" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/compressed-tensors-{{ version }}.tar.gz + sha256: c8d04c0e6768c8286b0e8c38d63a7b89ae34d4b03f5de77cbe4f6f58222d4390 + +build: + noarch: python + script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + number: 0 + +requirements: + host: + - python + - setuptools + - pip + run: + - python + - pytorch >=1.7.0 + - transformers + - pydantic >=2.0 + +test: + imports: + - compressed_tensors + commands: + - pip check + requires: + - pip + +about: + home: https://github.com/neuralmagic/compressed-tensors + summary: Library for utilization of compressed safetensors of neural network models + license: Apache-2.0 + license_file: LICENSE + +extra: + recipe-maintainers: + - maresb From cec0396adbc10b28e0aaac6b057be79509cda7bd Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Tue, 7 Jan 2025 19:23:33 +0200 Subject: [PATCH 2/3] CFEP-25 --- recipes/compressed-tensors/meta.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes/compressed-tensors/meta.yaml b/recipes/compressed-tensors/meta.yaml index 1087ca63097d3..07a734bab4061 100644 --- a/recipes/compressed-tensors/meta.yaml +++ b/recipes/compressed-tensors/meta.yaml @@ -16,11 +16,11 @@ build: requirements: host: - - python + - python {{ python_min }} - setuptools - pip run: - - python + - python >={{ python_min }} - pytorch >=1.7.0 - transformers - pydantic >=2.0 @@ -31,6 +31,7 @@ test: commands: - pip check requires: + - python {{ python_min }} - pip about: From c9640bb5527cbeb79154763a0a92736c12b193fe Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Thu, 16 Jan 2025 14:22:22 +0100 Subject: [PATCH 3/3] Bump version number --- recipes/compressed-tensors/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/compressed-tensors/meta.yaml b/recipes/compressed-tensors/meta.yaml index 07a734bab4061..c365ed36668c5 100644 --- a/recipes/compressed-tensors/meta.yaml +++ b/recipes/compressed-tensors/meta.yaml @@ -1,5 +1,5 @@ {% set name = "compressed-tensors" %} -{% set version = "0.8.1" %} +{% set version = "0.9.0" %} package: name: {{ name|lower }} @@ -7,7 +7,7 @@ package: source: url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/compressed-tensors-{{ version }}.tar.gz - sha256: c8d04c0e6768c8286b0e8c38d63a7b89ae34d4b03f5de77cbe4f6f58222d4390 + sha256: 80f8b002309b5970493e578d58542a308111fbef26f96811fa2c5322b24e7f1f build: noarch: python