Coder Social home page Coder Social logo

Comments (4)

Jzz24 avatar Jzz24 commented on August 29, 2024 1

目前ppq仅支持离线量化(ptq)。但集成了一些“量化训练"算法比如lsq,brecq,advanced optimize等方法,区别于qat,上述算法仅仅在标定集上进行blockwise的微调,不会整个模型进行梯度反传训练,其优化效果也是不错的,帮助我们解决了不少模型掉点。
暂未支持qat的原因:

  1. 数据隐私,无法获取整个数据集进行qat训练;面对批量的快速部署需求,采用ptq部署效率更高;
  2. 当前硬件推理库大都仅支持8比特量化,ptq可满足绝大部分需求;
  3. 面对"难量化"的模型掉点,更重要的是定位量化误差的来源(后端图融合?算子联合定点?激活值或者weight异常值等),否则无脑qat的话,效果可能不尽如人意。ppq花了很多时间在图融合,联合定点的量化模拟,希望对你有帮助。

from ppq.

hshen14 avatar hshen14 commented on August 29, 2024

You may also have some interests to this one: https://github.com/intel/neural-compressor/tree/master/examples. Just FYI.

from ppq.

WZMIAOMIAO avatar WZMIAOMIAO commented on August 29, 2024

You may also have some interests to this one: https://github.com/intel/neural-compressor/tree/master/examples. Just FYI.

thanks...

from ppq.

WZMIAOMIAO avatar WZMIAOMIAO commented on August 29, 2024

目前ppq仅支持离线量化(ptq)。但集成了一些“量化训练"算法比如lsq,brecq,advanced optimize等方法,区别于qat,上述算法仅仅在标定集上进行blockwise的微调,不会整个模型进行梯度反传训练,其优化效果也是不错的,帮助我们解决了不少模型掉点。 暂未支持qat的原因:

  1. 数据隐私,无法获取整个数据集进行qat训练;面对批量的快速部署需求,采用ptq部署效率更高;
  2. 当前硬件推理库大都仅支持8比特量化,ptq可满足绝大部分需求;
  3. 面对"难量化"的模型掉点,更重要的是定位量化误差的来源(后端图融合?算子联合定点?激活值或者weight异常值等),否则无脑qat的话,效果可能不尽如人意。ppq花了很多时间在图融合,联合定点的量化模拟,希望对你有帮助。

非常感谢您的回复,我后面仔细学习了解下该项目。

from ppq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.