Coder Social home page Coder Social logo

[REQUEST] build prebuilt wheels about deepspeed HOT 5 OPEN

AlongWY avatar AlongWY commented on May 18, 2024
[REQUEST] build prebuilt wheels

from deepspeed.

Comments (5)

loadams avatar loadams commented on May 18, 2024

Hi @AlongWY - part of the issue is the wide range of wheels we would need to publish supporting different torch and cuda/rocm/etc versions. We have provided dockerfiles in the past, but the same issue of what matrix to test and support is quite difficult. That's not to say we won't add this in the future, but that choosing what to provide wheels for is difficult as everyone will want their combinations to be supported.

from deepspeed.

AlongWY avatar AlongWY commented on May 18, 2024

Yes, so i compiled with almost all ops, only evoformer anf sparse attention can't compile. And i compiled with the matrix like this, maybe it's a good start to auto build wheels.

matrx:

python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
torch-version: ["1.12.1", "1.13.1", "2.0.1", "2.1.2", "2.2.1"]
cuda-version: ["11.8.0", "12.1.1"]

build options

TORCH_CUDA_ARCH_LIST="6.1;7.0;7.5;8.0;8.6;8.9;9.0"
DS_BUILD_OPS=1
DS_BUILD_SPARSE_ATTN=0 // not support torch 2.0
DS_BUILD_EVOFORMER_ATTN=0 // need real cuda device? may be a bug?

from deepspeed.

loadams avatar loadams commented on May 18, 2024

@AlongWY - for the evoformer attention op, you would need to install cutlass and deepspeed-kernels.

But I'm curious what the advantage of a pre-built wheel with the ops installed is, since if the user grabs the wrong one, or has other environment issues, they will hit them regardless of if they use a wheel with pre-built ops or use the wheel off PyPI and the ops are JIT compiled?

from deepspeed.

AlongWY avatar AlongWY commented on May 18, 2024

I installed cutlass and deepspeed-kernels but can't compile, it use the torch.cuda.get_device_properties(0) to detect the real device so it not work.

Advantages of Pre-Built Wheel:

  1. Convenience: No additional compilation steps required for the user.
  2. Performance: Saves the time and resources needed for JIT compilation.
  3. Plug-and-Play: Especially beneficial for users lacking the environment or resources for compilation.

Advantages of JIT-Compiled Wheel:

  1. Flexibility: Adapts to different users' specific environments.
  2. Compatibility: Reduces issues due to system mismatches.
  3. Customization: Tailored for specific system environments, enhancing operational efficiency.

from deepspeed.

loadams avatar loadams commented on May 18, 2024

@AlongWY I mostly agree, though pre-built wheels are not helpful to the users if they do not have the underlying hardware to run on, and they are more likely to think they can run with certain features then get errors later if they cannot. Though we've also observed little difference in speed with pre-built wheels vs JIT compilation as well.

However, this does require additional testing and building support, since even the matrix listed above is 50 different wheels. At least for now, it is unlikely that we will have the bandwidth to support this.

from deepspeed.

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.