AngelSlim模型压缩工具 是 AI Skill Hub 本期精选AI工具之一。已获得 1.2k 颗 GitHub Star,综合评分 7.8 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
专业的AI模型压缩工具包,支持多种模型格式压缩优化。具有易用性强、功能全面等特点,适合AI开发者、模型优化工程师和边缘计算部署人员使用。
AngelSlim模型压缩工具 是一款基于 Python 开发的开源工具,专注于 模型压缩、深度学习、部署优化 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
专业的AI模型压缩工具包,支持多种模型格式压缩优化。具有易用性强、功能全面等特点,适合AI开发者、模型优化工程师和边缘计算部署人员使用。
AngelSlim模型压缩工具 是一款基于 Python 开发的开源工具,专注于 模型压缩、深度学习、部署优化 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install angelslim
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install angelslim
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/Tencent/AngelSlim
cd AngelSlim
pip install -e .
# 验证安装
python -c "import angelslim; print('安装成功')"
# 命令行使用
angelslim --help
# 基本用法
angelslim input_file -o output_file
# Python 代码中调用
import angelslim
# 示例
result = angelslim.process("input")
print(result)
# angelslim 配置文件示例(config.yml) app: name: "angelslim" debug: false log_level: "INFO" # 运行时指定配置文件 angelslim --config config.yml # 或通过环境变量配置 export ANGELSLIM_API_KEY="your-key" export ANGELSLIM_OUTPUT_DIR="./output"
English | 简体中文
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="./docs/source/assets/logos/angelslim_logo_light.png"> <img alt="AngelSlim" src="./docs/source/assets/logos/angelslim_logo.png" width=55%> </picture> </p>
<p align="center"> ✒️ <a href="https://arxiv.org/abs/2602.21233">TechnicalReport</a>   |    📖 <a href="https://angelslim.readthedocs.io/">Documentation</a>   |   🤗 <a href="https://huggingface.co/AngelSlim">Hugging Face</a>   |   🤖 <a href="https://modelscope.cn/organization/AngelSlim">ModelScope</a> <br> </p>
<p align="center"> 💬 <a href="./docs/source/assets/angel_slim_wechat.png">WeChat</a> |   🫨 <a href="https://discord.com/invite/dHVNeuNdFt">Discord</a> <br> </p>
| Scenario | Model | Compression Strategy | ||
|---|---|---|---|---|
| Quantization | Speculative Decoding | Other Techniques | ||
| Large Language Models (LLMs) |
|
|||
| Vision Language Models (VLMs) |
|
|||
| Diffusion Models | - |
|
||
| Speech Models (TTS/ASR) |
|
|||
We recommend using pip to install the latest stable version of AngelSlim:
pip install angelslim
Alternatively, you can clone the repository and install from source in editable mode:
cd AngelSlim && python setup.py install
For more detailed installation instructions and platform-specific guidance, please refer to the Installation Documentation.
To test offline inference with a quantized model loaded via transformers.
<details> <summary>Run script details</summary>
python scripts/deploy/offline.py $MODEL_PATH "Hello, my name is"
Where MODEL_PATH is the path to the quantized model output.
</details>
After specifying the quantized model path MODEL_PATH, you can deploy an OpenAI-compatible API service using vLLM and SGLang inference frameworks.
<details> <summary>Run script details</summary>
Use the following script to launch a vLLM server, recommended version vllm>=0.8.5.post1. For MOE INT8 quantized models, vllm>=0.9.0 is required.
bash scripts/deploy/run_vllm.sh --model-path $MODEL_PATH --port 8080 -d 0,1,2,3 -t 4 -p 1 -g 0.8 --max-model-len 4096
Where -d is the visible devices, -t is tensor parallel size, -p is pipeline parallel size, and -g is the GPU memory utilization.
Use the following script to launch a SGLang server, recommended version sglang>=0.4.6.post1.
bash scripts/deploy/run_sglang.sh --model-path $MODEL_PATH --port 8080 -d 0,1,2,3 -t 4 -g 0.8
</details>
Invoke requests via OpenAI's API format.
<details> <summary>Run script details</summary>
bash scripts/deploy/openai.sh -m $MODEL_PATH -p "Hello, my name is" --port 8080 --max-tokens 4096 --temperature 0.7 --top-p 0.8 --top-k 20 --repetition-penalty 1.05 --system-prompt "You are a helpful assistant." where -p is the input prompt.
</details>
Evaluate the performance of quantized model using lm-evaluation-harness, recommended versionlm-eval>=0.4.8.
<details> <summary>Run script details</summary>
bash scripts/deploy/lm_eval.sh -d 0,1 -t 2 -g 0.8 -r $RESULT_PATH -b "auto" --tasks ceval-valid,mmlu,gsm8k,humaneval -n 0 $MODEL_PATH where RESULT_PATH is the directory for saving test results, -b is batch size, --tasks specifies the evaluation tasks, and -n is the number of few-shot examples.
</details>
For more detaileds, please refer to the Deployment Documentation.
After installing AngelSlim, you can quickly start Eagle3 training with the following scripts:
```shell
模型压缩领域实用工具,涵盖多种AI模型类型,Star数不错,社区活跃度较好,持续维护更新。
该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。
经综合评估,AngelSlim模型压缩工具 在AI工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | AngelSlim |
| 原始描述 | 开源AI工具:Model compression toolkit engineered for enhanced usability, comprehensiveness, 。⭐1.2k · Python |
| Topics | 模型压缩深度学习部署优化开源工具 |
| GitHub | https://github.com/Tencent/AngelSlim |
| License | NOASSERTION |
| 语言 | Python |
收录时间:2026-05-21 · 更新时间:2026-05-22 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。