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

🔄 贡献指南

请遵循以下工作流程:

  1. 创建 Issue - 描述问题/需求

    gh issue create --title "[Bug] 描述" --label "bug,sagellm-compression"
    
  2. 开发修复 - 在本地 fix/#123-xxx 分支解决

    git checkout -b fix/#123-xxx origin/main-dev
    # 开发、测试...
    pytest -v
    ruff format . && ruff check . --fix
    
  3. 发起 PR - 提交到 main-dev 分支

    gh pr create --base main-dev --title "Fix: 描述" --body "Closes #123"
    
  4. 合并 - 审批后合并到 main-dev

更多详情见 .github/copilot-instructions.md

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.5.tar.gz (4.7 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.5-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: isagellm_compression-0.4.0.5.tar.gz
  • Upload date:
  • Size: 4.7 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.5.tar.gz
Algorithm Hash digest
SHA256 2671e22568d3ce82c2a69c9de083b6ab1232419c996f443e746a6c981915ffbf
MD5 09578db6db989542d428870f33295c41
BLAKE2b-256 839057d7e9744f01cb975d361183827a105e0f35668c3e2ecc2d472f57d7e051

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for isagellm_compression-0.4.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6a38bd54ba3f4a03dd1eae0619b7635388e324ce1a18cdbeaf351b485748eb0c
MD5 ebf7ea8f850eada919f09e7c9e903630
BLAKE2b-256 e1f1e5a9dd22a761a4fa4f36d502e9f79f3127a83a3376a7fa31ddf167589a03

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