跳转至主要内容
英特尔标志 - 返回主页
我的工具

选择您的语言

  • Bahasa Indonesia
  • Deutsch
  • English
  • Español
  • Français
  • Português
  • Tiếng Việt
  • ไทย
  • 한국어
  • 日本語
  • 简体中文
  • 繁體中文
登录 以访问受限制的内容

使用 Intel.com 搜索

您可以使用几种方式轻松搜索整个 Intel.com 网站。

  • 品牌名称: 酷睿 i9
  • 文件号: 123456
  • Code Name: Emerald Rapids
  • 特殊操作符: “Ice Lake”、Ice AND Lake、Ice OR Lake、Ice*

快速链接

您也可以尝试使用以下快速链接查看最受欢迎搜索的结果。

  • 产品信息
  • 支持
  • 驱动程序和软件

最近搜索

登录 以访问受限制的内容

高级搜索

仅搜索

Sign in to access restricted content.

不建议本网站使用您正在使用的浏览器版本。
请考虑通过单击以下链接之一升级到最新版本的浏览器。

  • Safari
  • Chrome
  • Edge
  • Firefox

Intel® Neural Compressor

Speed Up AI Inference without Sacrificing Accuracy

Deploy More Efficient Deep Learning Models

Intel® Neural Compressor performs model optimization to reduce the model size and increase the speed of deep learning inference for deployment on CPUs, GPUs, or Intel® Gaudi® AI accelerators. This open source Python* library automates popular model optimization technologies, such as quantization, pruning, and knowledge distillation across multiple deep learning frameworks.

Using this library, you can:

  • Converge quickly on quantized models through automatic accuracy-driven tuning strategies.
  • Prune the least important parameters for large models.
  • Distill knowledge from a larger model to improve the accuracy of a smaller model for deployment.

Intel Neural Compressor is part of the end-to-end suite of Intel® AI and machine learning development tools and resources.

 

Download the AI Tools

Intel Neural Compressor is available in the AI Tools Selector, which provides accelerated machine learning and data analytics pipelines with optimized deep learning frameworks and high-performing Python* libraries.

Get the Tools Now
Download the Stand-Alone Version

A stand-alone download of Intel Neural Compressor is available. You can download binaries from Intel or choose your preferred repository.

Download

      

Help Intel Neural Compressor Evolve

This open source component has an active developer community. We welcome you to participate.

Open Source Version (GitHub*)

Features

Model Optimization Techniques

  • Quantize activations and weights to int8, FP8, or a mixture of FP32, FP16, FP8, bfloat16, and int8 to reduce model size and to speed inference while minimizing precision loss. Quantize during training, posttraining, or dynamically, based on the runtime data range.
  • Prune parameters that have minimal effect on accuracy to reduce the size of a model. Configure pruning patterns, criteria, and schedule.
  • Automatically tune quantization and pruning to meet accuracy goals.
  • Distill knowledge from a larger model (“teacher”) to a smaller model (“student”) to improve the accuracy of the compressed model.
  • Customize quantization with advanced techniques such as SmoothQuant, layer-wise quantization, and weight-only quantization (WOQ) for low-bit inference.

Automation

  • Achieve objectives with expected accuracy criteria using built-in strategies to automatically apply quantization techniques to operations.
  • Combine multiple model optimization techniques with one-shot optimization orchestration.

 

Interoperability

  • Optimize and export PyTorch* or TensorFlow* models.
  • Optimize and export Open Neural Network Exchange (ONNX*) Runtime models with Intel Neural Compressor 2.x. As of version 3.x, Intel Neural Compressor is upstreamed into open source ONNX for built-in cross-platform deployment.
  • Use familiar PyTorch, TensorFlow, or Hugging Face* Transformer style APIs to configure and autotune model compression.
  • TensorFlow int8 Quantization
  • PyTorch int8 Post-training Quantization
  • PyTorch int8 Quantization-aware Training
  • ONNX Runtime Int8 Post-Training Quantization
  • PyTorch Pruning

Case Studies

Palo Alto Networks Reduces Inference Latency by 6x

To deliver the required response speed for multiple cybersecurity models, Palo Alto Networks quantized their models to int8, taking advantage of advanced instruction sets and accelerators.

Learn More

Sustainable AI with Intel®-Optimized Software and Hardware

HPE Services applied Intel AI software together with int8 post-training static quantization to reduce energy consumption by at least 68% across multiple experiments.

Learn More

delphai* Accelerates Natural Language Processing Models for Search Engines

By quantizing its models to int8, delphai* accelerated inference speed without sacrificing accuracy, enabling the use of less costly CPU-based cloud instances.

Learn More

Demonstrations

Microscaling (MX) Quantization

Quantize Microsoft* Floating Point (MSFP) data types to 8-, 6-, or 4-bit MX data types while balancing accuracy and memory consumption.

Learn More

The AutoRound Quantization Algorithm

Achieve near-lossless weight-only quantization (WOQ) compression for popular large language models (LLMs).

Learn More

Quantize LLMs with SmoothQuant

LLMs tend to have large-magnitude outliers in certain activation channels. Learn how the SmoothQuant technique addresses this and how to use it to quantize a Hugging Face* Transformer model to 8-bit.

Learn More

Quantize Large Language Models with Just a Few Lines of Code

Quantizing LLMs to int4 reduces model size up to 8x, speeding inference. Learn how to get started applying weight-only quantization (WOQ) and see the accuracy impact on popular LLMs.

Learn More

Distill and Quantize BERT Text Classification

Perform knowledge distillation of the BERT base model and quantize to int8 using the Stanford Sentiment Treebank 2 (SST-2) dataset. The resulting BERT-Mini model performs inference up to 16x faster.

Learn More

Quantization in PyTorch Using Fine-Grained FX

Convert an imperative model into a graph model, and perform dynamic quantization, quantization-aware training, or post training static quantization.

Learn More

Documentation & Code Samples

Documentation

  • Installation Guide (All Operating Systems)
  • Documentation & Tutorials
  • Tuning Strategies
  • API Documentation
  • Release Notes
  • System Requirements

 

View All Documentation

Code Samples

  • Get Started
  • Model Optimization: TensorFlow | PyTorch | ONNX Runtime
  • Meta* Llama 2 7B Weight-Only Quantization
  • ResNet*-18 Mixed Precision
  • Optimize VGG19 Model Inference on 4th Gen Intel Xeon Scalable Processors
     

More Samples

Training & Tutorials

Get Started with AI Model Optimization

Perform Dynamic Quantization on a Pretrained PyTorch Model

Quantize During Fine-Tuning with Hugging Face Optimum

Perform Structured Pruning on Transformer-Based Models

Specifications

Processor:

  • Intel Xeon processor
  • Intel Xeon CPU Max Series
  • Intel® Core™ Ultra processor
  • Intel Gaudi AI accelerator
  • Intel® Data Center GPU Max Series

Operating systems:

  • Linux*
  • Windows*

Language:

  • Python

Get Help

Your success is our success. Access this support resource when you need assistance.

  • AI Tools Support Forum
  • Deep Learning Frameworks Support Forum
     

For additional help, see the general Support.

Related Products

All AI Development Tools and Resources

  • Features
  • Documentation & Code Samples
  • Training
  • Specifications
  • Help
  • 公司信息
  • 英特尔资本
  • 企业责任部
  • 投资者关系
  • 联系我们
  • 新闻
  • 网站地图
  • 招贤纳士 (英文)
  • © 英特尔公司
  • 沪 ICP 备 18006294 号-1
  • 使用条款
  • *商标
  • Cookie
  • 隐私条款
  • 请勿分享我的个人信息 California Consumer Privacy Act (CCPA) Opt-Out Icon

英特尔技术可能需要支持的硬件、软件或服务激活。// 没有任何产品或组件能够做到绝对安全。// 您的成本和结果可能会有所不同。// 性能因用途、配置和其他因素而异。请访问 intel.cn/performanceindex 了解更多信息。// 请参阅我们的完整法律声明和免责声明。// 英特尔致力于尊重人权,并避免成为侵犯人权行为的同谋。请参阅英特尔的《全球人权原则》。英特尔产品和软件仅可用于不会导致或有助于任何国际公认的侵犯人权行为的应用。

英特尔页脚标志