Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compressed-tensors #28778

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions recipes/compressed-tensors/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{% 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 {{ python_min }}
- setuptools
- pip
run:
- python >={{ python_min }}
- pytorch >=1.7.0
- transformers
- pydantic >=2.0

test:
imports:
- compressed_tensors
commands:
- pip check
requires:
- python {{ python_min }}
- 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
Loading