Giter Site home page Giter Site logo

Comments (10)

racerx2oo3 avatar racerx2oo3 commented on August 23, 2024 1

The extension supports SDXL, but it relies on functionality that hasn't been implemented in the release branch. If you need to work with SDXL you'll need to use a Automatic1111 build from the Dev branch at the moment. Note that the Dev branch is not intended for production work and may break other things that you are currently using.

from stable-diffusion-webui-tensorrt.

contentis avatar contentis commented on August 23, 2024 1

When you checkout this commit SDXL should work: AUTOMATIC1111/stable-diffusion-webui@5954432

Unfortunately we'll have to wait until the next stable release for out of the box support.

from stable-diffusion-webui-tensorrt.

zopieux avatar zopieux commented on August 23, 2024 1

Might want to try restarting your system, maybe something is lingering in GPU memory.

Yeah, not sure what changed exactly but it's now working just fine (dev branch). Thanks.

from stable-diffusion-webui-tensorrt.

RodgerE1 avatar RodgerE1 commented on August 23, 2024

Same here, 3060, 12gb

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument mat1 in method wrapper_CUDA_addmm)

from stable-diffusion-webui-tensorrt.

Akyariss avatar Akyariss commented on August 23, 2024

The extension supports SDXL, but it relies on functionality that hasn't been implemented in the release branch. If you need to work with SDXL you'll need to use a Automatic1111 build from the Dev branch at the moment. Note that the Dev branch is not intended for production work and may break other things that you are currently using.

I tried to use Automatic1111 Dev branch to verify that's the problem but the issue it's still there

from stable-diffusion-webui-tensorrt.

racerx2oo3 avatar racerx2oo3 commented on August 23, 2024

The extension supports SDXL, but it relies on functionality that hasn't been implemented in the release branch. If you need to work with SDXL you'll need to use a Automatic1111 build from the Dev branch at the moment. Note that the Dev branch is not intended for production work and may break other things that you are currently using.

I tried to use Automatic1111 Dev branch to verify that's the problem but the issue it's still there

Interesting, I was able to get it running just pulling a zipped version of the development branch and using that.

from stable-diffusion-webui-tensorrt.

zopieux avatar zopieux commented on August 23, 2024

When you checkout this commit SDXL should work: AUTOMATIC1111/stable-diffusion-webui@5954432

From @Akyariss first screenshot, they seem to have managed to precompute the unet ("engine") already, for some SDXL checkpoint. On my RTX 4090 with a comfy 24G, the unet building is what fails immediately, with & without that patch:

STATUS:root:Exporting to ONNX...
============= Diagnostic Run torch.onnx.export version 2.0.1+cu118 =============
verbose: False, log level: Level.ERROR
======================= 0 NONE 0 NOTE 0 WARNING 0 ERROR ========================
ERROR:root:CUDA out of memory. Tried to allocate 50.00 MiB (GPU 0; 23.65 GiB total capacity; 21.71 GiB already allocated; 66.00 MiB free; 22.15 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

from stable-diffusion-webui-tensorrt.

racerx2oo3 avatar racerx2oo3 commented on August 23, 2024

When you checkout this commit SDXL should work: AUTOMATIC1111/stable-diffusion-webui@5954432

From @Akyariss first screenshot, they seem to have managed to precompute the unet ("engine") already, for some SDXL checkpoint. On my RTX 4090 with a comfy 24G, the unet building is what fails immediately, with & without that patch:

STATUS:root:Exporting to ONNX...
============= Diagnostic Run torch.onnx.export version 2.0.1+cu118 =============
verbose: False, log level: Level.ERROR
======================= 0 NONE 0 NOTE 0 WARNING 0 ERROR ========================
ERROR:root:CUDA out of memory. Tried to allocate 50.00 MiB (GPU 0; 23.65 GiB total capacity; 21.71 GiB already allocated; 66.00 MiB free; 22.15 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

Might want to try restarting your system, maybe something is lingering in GPU memory.

On my RTX 4090 I get the following:

============= Diagnostic Run torch.onnx.export version 2.0.1+cu118 =============
verbose: False, log level: Level.ERROR
======================= 0 NONE 0 NOTE 0 WARNING 0 ERROR ========================

Building TensorRT engine for E:\stable-diffusion-webui-dev\stable-diffusion-webui-dev\models\Unet-onnx\sd_xl_base_1.0_be9edd61.onnx: E:\stable-diffusion-webui-dev\stable-diffusion-webui-dev\models\Unet-trt\sd_xl_base_1.0_be9edd61_cc89_sample=1x4x96x96+2x4x128x128+8x4x128x128-timesteps=1+2+8-encoder_hidden_states=1x77x2048+2x77x2048+8x154x2048-y=1x2816+2x2816+8x2816.trt

from stable-diffusion-webui-tensorrt.

camoody1 avatar camoody1 commented on August 23, 2024

When you checkout this commit SDXL should work: AUTOMATIC1111/stable-diffusion-webui@5954432

Unfortunately we'll have to wait until the next stable release for out of the box support.

Aww, man. It'll be months before another stable release. 😢

from stable-diffusion-webui-tensorrt.

Akyariss avatar Akyariss commented on August 23, 2024

When you checkout this commit SDXL should work: AUTOMATIC1111/stable-diffusion-webui@5954432

Unfortunately we'll have to wait until the next stable release for out of the box support.

Thank you, i can confirm that with this commit and the dev branch it works

went from 3it/s to 6it/s

from stable-diffusion-webui-tensorrt.

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.