Comments (10)
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.
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.
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.
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.
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.
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.
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.
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.
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.
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)
- how to generate json config file in the LoRA tab. HOT 1
- [branch: Controlnet_V2] ONNX IR model version conflict, how do i downgrade?
- [E] 3: getPluginCreator could not find plugin: InstanceNormalization_TRT version: 1 when building engine with latest TRT_VERSION="10.0.0b6"
- No config file found for You can generate it in the LoRA tab. HOT 3
- Advise to add promt token check in warning report
- [Feature Request] Add a Command Line Interface for the exporter process.
- AttributeError: 'tensorrt_bindings.tensorrt.ICudaEngine' object has no attribute 'get_profile_shape' HOT 2
- How to process a batch of images with ControlNet TensorRT in img2img ?
- Latest version of automatic1111 wont start with this extension installed. HOT 2
- AttributeError: 'NoneType' object has no attribute 'device_memory' HOT 12
- Error Code 3: API Usage Error (Parameter check failed
- Export LoRA to onnx depending on cyberrealistic_v31 can't fit to v1-5-pruned-emaonly_cnet_1846e6c3c239531e.trt
- TensorRT doesn't install on fresh A1111 install on Ubuntu, stuck at install after copy/paste de git link HOT 10
- TensorRT doesn't find Loras from subdirectories HOT 2
- TensorTR extension is building engine with wrong parameters
- may a name mistake in beta version (utilities.py)
- Engines not loading with text size larger than 75 HOT 1
- SD3 TensoRRT (sd3-clip-t5xxlfp8) works perfectly but cannot get SDXL ... HOT 1
- ONNX Export Error: Tensors on Different Devices (CPU and CUDA) HOT 1
- ValueError: __len__() should return >= 0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stable-diffusion-webui-tensorrt.