msmodelslim

Quantize and optimize Huawei Ascend NPU models for MindIE or vLLM-Ascend deployment.

156|53|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/ascend-ai-coding/awesome-ascend-skills --skill msmodelslim
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: msmodelslim
Source: https://github.com/ascend-ai-coding/awesome-ascend-skills/tree/main/msmodelslim
Command: npx skills add https://github.com/ascend-ai-coding/awesome-ascend-skills --skill msmodelslim

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires torch, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Huawei Ascend NPU models require efficient quantization and deployment workflows. msModelSlim provides end-to-end tools to compress, calibrate, and deploy LLMs, MoE, and multimodal models on Ascend hardware, reducing memory and latency while preserving accuracy.

Core Features & Use Cases

  • Quantization types: W4A8, W8A8, W8A8C8, W8A8S, W16A16S for various trade-offs.
  • Supports MindIE and vLLM-Ascend deployment pipelines.
  • Calibration data preparation, precision auto-tuning, and sensitive layer analysis.
  • Custom model integration via adapters, templates, and config management.
  • Deployment readiness: export quantized models to vLLM-Ascend or MindIE.

Quick Start

Install msModelSlim and run a quantization for your model with the built-in config or a custom config file.

Frequently Asked Questions about msmodelslim

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I quantize large language models for Ascend NPU deployment?

To quantize large language models for Ascend NPU deployment, you use the msModelSlim toolchain to compress models via W4A8 or W8A8 schemes, prepare calibration data, and export to MindIE or vLLM-Ascend.

What quantization formats are supported for multimodal models on Ascend hardware?

Supported quantization formats for multimodal models on Ascend hardware include W4A8, W8A8, W8A8C8, W8A8S, and W16A16S, allowing you to balance memory usage, latency, and accuracy.

Do I need PyTorch and CANN environment setup to run model calibration on Ascend?

Yes, you need a compatible Python and CANN environment along with the PyTorch dependency to run model calibration, precision auto-tuning, and sensitive layer analysis on Ascend hardware.

Can I integrate custom model architectures into the Ascend quantization workflow?

You can integrate custom model architectures into the Ascend quantization workflow by using provided adapters, configuration templates, and config management to handle model-specific compression.

How does sparse quantization and KV-Cache quantization work for MoE models?

Sparse quantization and KV-Cache quantization for MoE models work by applying optional configuration templates during calibration to reduce memory and latency while preserving accuracy on Ascend NPUs.

What is the best way to deploy quantized models using vLLM-Ascend or MindIE?

The best way to deploy quantized models using vLLM-Ascend or MindIE is to run calibration and precision auto-tuning, then use built-in deployment scripts to export the optimized model directly.