GithubHelp home page GithubHelp logo

Comments (3)

mrwyattii avatar mrwyattii commented on June 22, 2024

I think this a great idea. We have something similar right now via the DeploymentType.AML pathway, however the Docker image we build there is intended for AzureML. We may be able to adapt the work we have done there to create a Docker image for easier deployment.

In the meantime, could you please share what errors you are running into with installing deepspeed-mii? is the error related to protobuf versioning? We may have a bug in our requirements or packaging that should be resolved.

from deepspeed-mii.

Thytu avatar Thytu commented on June 22, 2024

I think this a great idea. We have something similar right now via the DeploymentType.AML pathway, however the Docker image we build there is intended for AzureML. We may be able to adapt the work we have done there to create a Docker image for easier deployment.

Nice! If I can help in anyway I would be happy to! This would be useful for me to have a proper image to deploy πŸ™‚

In the meantime, could you please share what errors you are running into with installing deepspeed-mii? is the error related to protobuf versioning? We may have a bug in our requirements or packaging that should be resolved

Yes, here are the steps followed with there respective outputs:

- conda create -n mii

- conda activate mii

- conda install pip

- pip install deepspeed-mii

- python main.py:
File "/home/vdmatos/miniconda3/envs/mii-2/lib/python3.10/site-packages/mii/models/providers/diffusers.py", line 6, in diffusers_provider
    from diffusers import DiffusionPipeline
ModuleNotFoundError: No module named 'diffusers'

- pip install diffusers

- python main.py:
File "/home/vdmatos/miniconda3/envs/mii-2/lib/python3.10/site-packages/deepspeed/ops/transformer/inference/attention.py", line 22, in load_triton_flash_attn
    raise ImportError("Please install triton 2.0+ or `pip install deepspeed[sd]`")

- pip install deepspeed[sd]

- python main.py:
File "/home/vdmatos/miniconda3/envs/mii-2/lib/python3.10/site-packages/deepspeed/inference/engine.py", line 238, in _validate_args
    raise ValueError(f"model must be a torch.nn.Module, got {type(self.module)}")
ValueError: model must be a torch.nn.Module, got <class 'diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.StableDiffusionPipeline'>

(still by running this example)

Feel free to let me know if :

  • I did any mistake in my installation step
  • You want me to open a proper issue relating this error (rather than following it on this feature request)

from deepspeed-mii.

mrwyattii avatar mrwyattii commented on June 22, 2024

@Thytu there were some recent updates to MII and DeepSpeed with regards to Stable Diffusion. Your installation methods look fine, could you try running again with latest of each?

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.