Code Monkey home page Code Monkey logo

Comments (4)

bdambrosio avatar bdambrosio commented on June 26, 2024

I'll take a shot at some of these. If nothing else I'll learn a lot.
Are you ok with api-level python tests?
I'm esp. interested in multi-GPU, but I'll start w some simpler ones.
Also, any hope of ever getting this to run on T4's (kaggle...). I'd be willing to dive pretty deep, and have the skills, but don't know enough about that level of cuda to know if it's even remotely possible.

from autoawq.

casper-hansen avatar casper-hansen commented on June 26, 2024

I would love some help here for implementing the tests. T4 has compute capability 7.5, so it is not compatible with the AWQ CUDA kernel for running the quantized layers as they require 8.0 (Ampere architecture or later).

EDIT: To add support for earlier GPUs, you would have to implement a completely new CUDA kernel because the current one utilizes tensor cores that are 10x faster than CUDA cores. GPUs that are less than 8.0 in compute capability do not have tensor cores (I believe), so it cannot install or run the current CUDA kernel.

from autoawq.

bdambrosio avatar bdambrosio commented on June 26, 2024

Ok, will work on tests.

Switching to CUDA core from Tensor cores doesn't sound totally out of the realm, esp since I'm just interested in inference only for that task, but I won't even think about it for a while.
tnx

from autoawq.

wanzhenchn avatar wanzhenchn commented on June 26, 2024

I would love some help here for implementing the tests. T4 has compute capability 7.5, so it is not compatible with the AWQ CUDA kernel for running the quantized layers as they require 8.0 (Ampere architecture or later).

EDIT: To add support for earlier GPUs, you would have to implement a completely new CUDA kernel because the current one utilizes tensor cores that are 10x faster than CUDA cores. GPUs that are less than 8.0 in compute capability do not have tensor cores (I believe), so it cannot install or run the current CUDA kernel.

@casper-hansen, @bdambrosio
Actually, the T4 GPU also has Tensor Cores (Hardware-Specific), However, its compute capability is 7.5 showed in GPU List.

The real reason that AWQ requires GPU sm_80 or higher lies in the fact that the gemm_cuda_gen.cu kernel uses the '.m16n8k16' feature, which requires GPU architecture sm_80 or higher.

from autoawq.

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.