GithubHelp home page GithubHelp logo

Comments (3)

mrwyattii avatar mrwyattii commented on July 21, 2024

Hi @Aaron-mindverse it's not clear why your provider is hanging with multi-GPU. If you copy and paste the code (or provide a link to a branch with the modifications) I can test it on my side. But I would first recommend taking a look at our BloomPipeline and load_hf_llm:

class BloomPipeline(object):

Use this as a template for creating your OPTProvider and it should work with multi-GPU. Thanks!

from deepspeed-mii.

Aaron-mindverse avatar Aaron-mindverse commented on July 21, 2024

Hi @Aaron-mindverse it's not clear why your provider is hanging with multi-GPU. If you copy and paste the code (or provide a link to a branch with the modifications) I can test it on my side. But I would first recommend taking a look at our BloomPipeline and load_hf_llm:

class BloomPipeline(object):

Use this as a template for creating your OPTProvider and it should work with multi-GPU. Thanks!

Thank you so much, this worked for me, although I had to modify a lot of DeepSpeed code specifically tailored for the Bloom model, such as 'get_transformer_name'

https://github.com/microsoft/DeepSpeed/blob/21c28029648df4c98acd6331a8fdc0d29f297fa7/deepspeed/module_inject/replace_module.py#L124

from deepspeed-mii.

mrwyattii avatar mrwyattii commented on July 21, 2024

@Aaron-mindverse I don't think you should need to modify DS to get the OPT models running. In general, the OPT models will work with the HuggingFace provider. Could you share the modified code and I can help debug why you're running into Bloom-specific code paths on the DeepSpeed side?

from deepspeed-mii.

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.