1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288
| loading stable diffusion model: OutOfMemoryError Traceback (most recent call last): File "/usr/local/python3.10.6/lib/python3.10/threading.py", line 973, in _bootstrap self._bootstrap_inner() File "/usr/local/python3.10.6/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/local/python3.10.6/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/initialize.py", line 147, in load_model shared.sd_model File "/home/leazhi/Downloads/stable-diffusion-webui/modules/shared_items.py", line 110, in sd_model return modules.sd_models.model_data.get_sd_model() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_models.py", line 499, in get_sd_model load_model() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_models.py", line 626, in load_model load_model_weights(sd_model, checkpoint_info, state_dict, timer) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_models.py", line 353, in load_model_weights model.load_state_dict(state_dict, strict=False) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_disable_initialization.py", line 223, in <lambda> module_load_state_dict = self.replace(torch.nn.Module, 'load_state_dict', lambda *args, **kwargs: load_state_dict(module_load_state_dict, *args, **kwargs)) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_disable_initialization.py", line 221, in load_state_dict original(module, state_dict, strict=strict) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2027, in load_state_dict load(self, state_dict) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2015, in load load(child, child_state_dict, child_prefix) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2015, in load load(child, child_state_dict, child_prefix) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2015, in load load(child, child_state_dict, child_prefix) [Previous line repeated 4 more times] File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2009, in load module._load_from_state_dict( File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_disable_initialization.py", line 226, in <lambda> conv2d_load_from_state_dict = self.replace(torch.nn.Conv2d, '_load_from_state_dict', lambda *args, **kwargs: load_from_state_dict(conv2d_load_from_state_dict, *args, **kwargs)) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_disable_initialization.py", line 191, in load_from_state_dict module._parameters[name] = torch.nn.parameter.Parameter(torch.zeros_like(param, device=device, dtype=dtype), requires_grad=param.requires_grad) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/_meta_registrations.py", line 1780, in zeros_like return aten.empty_like.default( File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/_ops.py", line 287, in __call__ return self._op(*args, **kwargs or {}) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/_refs/__init__.py", line 4254, in empty_like return torch.empty_strided( torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 3.94 GiB total capacity; 3.44 GiB already allocated; 52.00 MiB free; 3.50 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
Stable diffusion model failed to load Applying attention optimization: Doggettx... Loading weights [b1aee72366] from /home/leazhi/Downloads/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors done. Exception in thread Thread-2 (load_model): Traceback (most recent call last): File "/usr/local/python3.10.6/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/local/python3.10.6/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/initialize.py", line 153, in load_model devices.first_time_calculation() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/devices.py", line 152, in first_time_calculation conv2d(x) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "/home/leazhi/Downloads/stable-diffusion-webui/extensions-builtin/Lora/networks.py", line 444, in network_Conv2d_forward return originals.Conv2d_forward(self, input) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 463, in forward return self._conv_forward(input, self.weight, self.bias) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 459, in _conv_forward return F.conv2d(input, weight, bias, self.stride, RuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED Creating model from config: /home/leazhi/Downloads/stable-diffusion-webui/configs/v1-inference.yaml loading stable diffusion model: OutOfMemoryError Traceback (most recent call last): File "/usr/local/python3.10.6/lib/python3.10/threading.py", line 973, in _bootstrap self._bootstrap_inner() File "/usr/local/python3.10.6/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run result = context.run(func, *args) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/utils.py", line 707, in wrapper response = f(*args, **kwargs) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/ui_extra_networks.py", line 392, in pages_html return refresh() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/ui_extra_networks.py", line 398, in refresh pg.refresh() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/ui_extra_networks_textual_inversion.py", line 13, in refresh sd_hijack.model_hijack.embedding_db.load_textual_inversion_embeddings(force_reload=True) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/textual_inversion/textual_inversion.py", line 255, in load_textual_inversion_embeddings self.expected_shape = self.get_expected_shape() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/textual_inversion/textual_inversion.py", line 154, in get_expected_shape vec = shared.sd_model.cond_stage_model.encode_embedding_init_text(",", 1) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/shared_items.py", line 110, in sd_model return modules.sd_models.model_data.get_sd_model() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_models.py", line 499, in get_sd_model load_model() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_models.py", line 626, in load_model load_model_weights(sd_model, checkpoint_info, state_dict, timer) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_models.py", line 353, in load_model_weights model.load_state_dict(state_dict, strict=False) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_disable_initialization.py", line 223, in <lambda> module_load_state_dict = self.replace(torch.nn.Module, 'load_state_dict', lambda *args, **kwargs: load_state_dict(module_load_state_dict, *args, **kwargs)) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_disable_initialization.py", line 221, in load_state_dict original(module, state_dict, strict=strict) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2027, in load_state_dict load(self, state_dict) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2015, in load load(child, child_state_dict, child_prefix) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2015, in load load(child, child_state_dict, child_prefix) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2015, in load load(child, child_state_dict, child_prefix) [Previous line repeated 4 more times] File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2009, in load module._load_from_state_dict( File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_disable_initialization.py", line 226, in <lambda> conv2d_load_from_state_dict = self.replace(torch.nn.Conv2d, '_load_from_state_dict', lambda *args, **kwargs: load_from_state_dict(conv2d_load_from_state_dict, *args, **kwargs)) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_disable_initialization.py", line 191, in load_from_state_dict module._parameters[name] = torch.nn.parameter.Parameter(torch.zeros_like(param, device=device, dtype=dtype), requires_grad=param.requires_grad) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/_meta_registrations.py", line 1780, in zeros_like return aten.empty_like.default( File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/_ops.py", line 287, in __call__ return self._op(*args, **kwargs or {}) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/_refs/__init__.py", line 4254, in empty_like return torch.empty_strided( torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 3.94 GiB total capacity; 3.44 GiB already allocated; 38.00 MiB free; 3.50 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
Stable diffusion model failed to load Loading weights [b1aee72366] from /home/leazhi/Downloads/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors Traceback (most recent call last): File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/routes.py", line 488, in run_predict output = await app.get_blocks().process_api( File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1431, in process_api result = await self.call_function( File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1103, in call_function prediction = await anyio.to_thread.run_sync( File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run result = context.run(func, *args) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/utils.py", line 707, in wrapper response = f(*args, **kwargs) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/ui_extra_networks.py", line 392, in pages_html return refresh() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/ui_extra_networks.py", line 398, in refresh pg.refresh() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/ui_extra_networks_textual_inversion.py", line 13, in refresh sd_hijack.model_hijack.embedding_db.load_textual_inversion_embeddings(force_reload=True) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/textual_inversion/textual_inversion.py", line 255, in load_textual_inversion_embeddings self.expected_shape = self.get_expected_shape() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/textual_inversion/textual_inversion.py", line 154, in get_expected_shape vec = shared.sd_model.cond_stage_model.encode_embedding_init_text(",", 1) AttributeError: 'NoneType' object has no attribute 'cond_stage_model' Creating model from config: /home/leazhi/Downloads/stable-diffusion-webui/configs/v1-inference.yaml loading stable diffusion model: OutOfMemoryError Traceback (most recent call last): File "/usr/local/python3.10.6/lib/python3.10/threading.py", line 973, in _bootstrap self._bootstrap_inner() File "/usr/local/python3.10.6/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run result = context.run(func, *args) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/utils.py", line 707, in wrapper response = f(*args, **kwargs) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/ui_extra_networks.py", line 392, in pages_html return refresh() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/ui_extra_networks.py", line 398, in refresh pg.refresh() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/ui_extra_networks_textual_inversion.py", line 13, in refresh sd_hijack.model_hijack.embedding_db.load_textual_inversion_embeddings(force_reload=True) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/textual_inversion/textual_inversion.py", line 255, in load_textual_inversion_embeddings self.expected_shape = self.get_expected_shape() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/textual_inversion/textual_inversion.py", line 154, in get_expected_shape vec = shared.sd_model.cond_stage_model.encode_embedding_init_text(",", 1) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/shared_items.py", line 110, in sd_model return modules.sd_models.model_data.get_sd_model() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_models.py", line 499, in get_sd_model load_model() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_models.py", line 626, in load_model load_model_weights(sd_model, checkpoint_info, state_dict, timer) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_models.py", line 353, in load_model_weights model.load_state_dict(state_dict, strict=False) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_disable_initialization.py", line 223, in <lambda> module_load_state_dict = self.replace(torch.nn.Module, 'load_state_dict', lambda *args, **kwargs: load_state_dict(module_load_state_dict, *args, **kwargs)) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_disable_initialization.py", line 221, in load_state_dict original(module, state_dict, strict=strict) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2027, in load_state_dict load(self, state_dict) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2015, in load load(child, child_state_dict, child_prefix) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2015, in load load(child, child_state_dict, child_prefix) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2015, in load load(child, child_state_dict, child_prefix) [Previous line repeated 4 more times] File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2009, in load module._load_from_state_dict( File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_disable_initialization.py", line 226, in <lambda> conv2d_load_from_state_dict = self.replace(torch.nn.Conv2d, '_load_from_state_dict', lambda *args, **kwargs: load_from_state_dict(conv2d_load_from_state_dict, *args, **kwargs)) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_disable_initialization.py", line 191, in load_from_state_dict module._parameters[name] = torch.nn.parameter.Parameter(torch.zeros_like(param, device=device, dtype=dtype), requires_grad=param.requires_grad) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/_meta_registrations.py", line 1780, in zeros_like return aten.empty_like.default( File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/_ops.py", line 287, in __call__ return self._op(*args, **kwargs or {}) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/_refs/__init__.py", line 4254, in empty_like return torch.empty_strided( torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 3.94 GiB total capacity; 3.44 GiB already allocated; 38.00 MiB free; 3.50 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
Stable diffusion model failed to load Loading weights [b1aee72366] from /home/leazhi/Downloads/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors Traceback (most recent call last): File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/routes.py", line 488, in run_predict output = await app.get_blocks().process_api( File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1431, in process_api result = await self.call_function( File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1103, in call_function prediction = await anyio.to_thread.run_sync( File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run result = context.run(func, *args) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/utils.py", line 707, in wrapper response = f(*args, **kwargs) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/ui_extra_networks.py", line 392, in pages_html return refresh() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/ui_extra_networks.py", line 398, in refresh pg.refresh() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/ui_extra_networks_textual_inversion.py", line 13, in refresh sd_hijack.model_hijack.embedding_db.load_textual_inversion_embeddings(force_reload=True) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/textual_inversion/textual_inversion.py", line 255, in load_textual_inversion_embeddings self.expected_shape = self.get_expected_shape() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/textual_inversion/textual_inversion.py", line 154, in get_expected_shape vec = shared.sd_model.cond_stage_model.encode_embedding_init_text(",", 1) AttributeError: 'NoneType' object has no attribute 'cond_stage_model' Creating model from config: /home/leazhi/Downloads/stable-diffusion-webui/configs/v1-inference.yaml loading stable diffusion model: OutOfMemoryError Traceback (most recent call last): File "/usr/local/python3.10.6/lib/python3.10/threading.py", line 973, in _bootstrap self._bootstrap_inner() File "/usr/local/python3.10.6/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run result = context.run(func, *args) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/utils.py", line 707, in wrapper response = f(*args, **kwargs) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/ui.py", line 1298, in <lambda> update_image_cfg_scale_visibility = lambda: gr.update(visible=shared.sd_model and shared.sd_model.cond_stage_key == "edit") File "/home/leazhi/Downloads/stable-diffusion-webui/modules/shared_items.py", line 110, in sd_model return modules.sd_models.model_data.get_sd_model() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_models.py", line 499, in get_sd_model load_model() File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_models.py", line 626, in load_model load_model_weights(sd_model, checkpoint_info, state_dict, timer) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_models.py", line 353, in load_model_weights model.load_state_dict(state_dict, strict=False) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_disable_initialization.py", line 223, in <lambda> module_load_state_dict = self.replace(torch.nn.Module, 'load_state_dict', lambda *args, **kwargs: load_state_dict(module_load_state_dict, *args, **kwargs)) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_disable_initialization.py", line 221, in load_state_dict original(module, state_dict, strict=strict) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2027, in load_state_dict load(self, state_dict) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2015, in load load(child, child_state_dict, child_prefix) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2015, in load load(child, child_state_dict, child_prefix) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2015, in load load(child, child_state_dict, child_prefix) [Previous line repeated 4 more times] File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2009, in load module._load_from_state_dict( File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_disable_initialization.py", line 226, in <lambda> conv2d_load_from_state_dict = self.replace(torch.nn.Conv2d, '_load_from_state_dict', lambda *args, **kwargs: load_from_state_dict(conv2d_load_from_state_dict, *args, **kwargs)) File "/home/leazhi/Downloads/stable-diffusion-webui/modules/sd_disable_initialization.py", line 191, in load_from_state_dict module._parameters[name] = torch.nn.parameter.Parameter(torch.zeros_like(param, device=device, dtype=dtype), requires_grad=param.requires_grad) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/_meta_registrations.py", line 1780, in zeros_like return aten.empty_like.default( File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/_ops.py", line 287, in __call__ return self._op(*args, **kwargs or {}) File "/home/leazhi/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/_refs/__init__.py", line 4254, in empty_like return torch.empty_strided( torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 3.94 GiB total capacity; 3.44 GiB already allocated; 38.00 MiB free; 3.50 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
Stable diffusion model failed to load
|