GithubHelp home page GithubHelp logo

Comments (6)

hwu36 avatar hwu36 commented on June 14, 2024

#1190

@alexsamardzic

from cutlass.

alexsamardzic avatar alexsamardzic commented on June 14, 2024

My PR is about F16/ S4, and will cover also BF16/S4, F16/ U4 and BF16/ U4 MM on Ampere; through an earlier work of @manishucsd, CUTLASS already supports these for S8 and U8 instead of S4 and U4, respectively, on Ampere. And that's about it regarding mixed data-types MM, thus what OP would need is not in the works yet, but may be an interesting follow-up.

from cutlass.

yyfcc17 avatar yyfcc17 commented on June 14, 2024

thanks for reply.

since LLM w8a8 is almost solved by PTQ methods, and w4a4 is too aggressive for PTQ methods, w4a8 PTQ is a good option for further optimization.

in my own experiments, the LLM's performance degradation is minor under w4a8 (per-channel * per-token) PTQ settings. and there is also a paper about it: https://arxiv.org/abs/2311.09550, the performance seems promising.

trt-llm already supported w4a8 PTQ & inference on hopper, but only for fp8.

is it possible to extend your PR to support w4a8 (int4 * int8) on Ampere? @alexsamardzic

from cutlass.

alexsamardzic avatar alexsamardzic commented on June 14, 2024

It would be better to open another PR. Namely, the combination of data-types that my PR intends to handle is rather tricky regarding loading data from shared memory to registers, that I believe should not be the case for S4/S8 MM. Also, there isn't much to share between the two - all of data conversion, reshuffling S4 data between threads, and finally the tests, should be different for S4/S8.

from cutlass.

alexsamardzic avatar alexsamardzic commented on June 14, 2024

I'm now working on this feature - #1413 is created, so this issue could be closed.

from cutlass.

yyfcc17 avatar yyfcc17 commented on June 14, 2024

@alexsamardzic that's great, thank you!

from cutlass.

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.