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 Distribution

isagellm_compression-0.4.0.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

isagellm_compression-0.4.0.3-py2.py3-none-any.whl (3.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file isagellm_compression-0.4.0.3.tar.gz.

File metadata

  • Download URL: isagellm_compression-0.4.0.3.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for isagellm_compression-0.4.0.3.tar.gz
Algorithm Hash digest
SHA256 2afe83b593271e7891b685c8ff5dae3bd6c15f7f8f02d59cfe5ed30f1f43317c
MD5 e3f1d4cc64920d05bce57f0c1d249d77
BLAKE2b-256 c9633f2f3f04a5ba2bc66b3ed2e796af319245f2a1c37508a74387a9309db595

See more details on using hashes here.

File details

Details for the file isagellm_compression-0.4.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for isagellm_compression-0.4.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4983ceb475ce60db638e79cbb4da524f92102e9cadf17e7abdca60b56a50663b
MD5 237d58d11014b4a9df4b9a4785bd9aaf
BLAKE2b-256 c18bb0d07204677fd82dfb4d76b5930a4219111440dd024c541800ef64b5aeee

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