Skip to main content

Model Compression & Acceleration Module for sageLLM

Project description

sagellm-compression

Protocol Compliance (Mandatory)

CI PyPI version Python 3.10+ codecov

Inference acceleration tools for LLM: quantization, sparsity, speculative decoding, kernel fusion, and more.

Features

  • Quantization (INT8/INT4)
  • Sparsity (structured and unstructured pruning)
  • Speculative decoding
  • Kernel fusion
  • Chain-of-Thought acceleration

Installation

pip install isagellm-compression

Quick Start

from sagellm_compression import QuantizationConfig, apply_quantization

config = QuantizationConfig(method="int8", per_channel=True)
quantized_model = apply_quantization(model, config)

Development

git clone git@github.com:intellistream/sagellm-compression.git
cd sagellm-compression
./quickstart.sh

pip install -e ".[dev]"
pytest tests/ -v

Documentation

License

Private - IntelliStream Research Project

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

isagellm_compression-0.1.1.3-cp311-none-any.whl (3.0 kB view details)

Uploaded CPython 3.11

File details

Details for the file isagellm_compression-0.1.1.3-cp311-none-any.whl.

File metadata

File hashes

Hashes for isagellm_compression-0.1.1.3-cp311-none-any.whl
Algorithm Hash digest
SHA256 1714fddc1cb328ce9a848e7bb6dea7efc46f20c08c3977e1455403d0ebb7528c
MD5 c4a4b079a30ec62119add33be22f3646
BLAKE2b-256 5195a8dd1548e8deb3bd229f6d4018354d2baccea1f70ed7e2c1eac8e077ecc3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page