Coder Social home page Coder Social logo

Comments (4)

Ma5onic avatar Ma5onic commented on June 13, 2024

Since the queue executes commands sequentially, wouldn't it be more efficient to load models on-demand? That way people with a GPU with <8GB RAM in their GPU can load the bot.

from g-diffuser-bot.

parlance-zz avatar parlance-zz commented on June 13, 2024

The beta2 branch already reduces this down to just 2 pipelines as the inpainting pipeline is a superset of the functionality built into img2img. Technically, it is also a superset of the functionality of the txt2img pipeline and I intend to reduce the number of pipes down to just 1, at least until diffusers can get their act together with memory usage.

I am leaving this issue open to track the progress. Thank you.

from g-diffuser-bot.

parlance-zz avatar parlance-zz commented on June 13, 2024

I should also mention:

The model load time is very significant and can easily quadruple the generation time if you need to reload the model for each command. The workaround in beta2 is a) reducing the number of required pipes, and b) you can use the CLI to do single generation commands one at a time, and this will only use whatever model you need to actually complete your command, very similar to how the old CompVis code worked.

Lastly, in beta2 you have the option of using a pre-specified sub-selection of pipes in the config file, allowing you to save memory if you choose to forego the functionality in unneeded pipes. This will be important when more models / pipes are added to diffusers.

from g-diffuser-bot.

parlance-zz avatar parlance-zz commented on June 13, 2024

This is now complete with the integration of haffried's grpc server in the dev branch.

from g-diffuser-bot.

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.