Error occurred when executing CLIPTextEncode
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
### Expected Behavior
expected to see an image output. here is the default setup:
### Actual Behavior
giving this error:
```
Error occurred when executing CLIPTextEncode:
CUDA error: operation not supported CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
File "/stable-diffusion/execution.py", line 317, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "/stable-diffusion/execution.py", line 192, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "/stable-diffusion/execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "/stable-diffusion/execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) File "/stable-diffusion/nodes.py", line 65, in encode output = clip.encode_from_tokens(tokens, return_pooled=True, return_dict=True) File "/stable-diffusion/comfy/sd.py", line 125, in encode_from_tokens self.load_model()
File "/stable-diffusion/comfy/sd.py", line 157, in load_model model_management.load_model_gpu(self.patcher)
File "/stable-diffusion/comfy/model_management.py", line 554, in load_model_gpu return load_models_gpu([model]) File "/stable-diffusion/comfy/model_management.py", line 540, in load_models_gpu cur_loaded_model = loaded_model.model_load(lowvram_model_memory, force_patch_weights=force_patch_weights)
File "/stable-diffusion/comfy/model_management.py", line 326, in model_load raise e
File "/stable-diffusion/comfy/model_management.py", line 322, in model_load self.real_model = self.model.patch_model(device_to=patch_model_to, lowvram_model_memory=lowvram_model_memory, load_weights=load_weights, force_patch_weights=force_patch_weights)
File "/stable-diffusion/comfy/model_patcher.py", line 407, in patch_model self.load(device_to, lowvram_model_memory=lowvram_model_memory, force_patch_weights=force_patch_weights, full_load=full_load) File "/stable-diffusion/comfy/model_patcher.py", line 379, in load x[2].to(device_to)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1173, in to return self._apply(convert) File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 804, in _apply param_applied = fn(param) File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1159, in convert return t.to(
```
### Steps to Reproduce
install via docker using: https://github.com/AbdBarho/stable-diffusion-webui-docker
### Debug Logs
```powershell
Prompt executed in 0.15 seconds
got prompt
Requested to load SD1ClipModel
Loading 1 new model
!!! Exception during processing !!! CUDA error: operation not supported
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
Traceback (most recent call last):
File "/stable-diffusion/execution.py", line 317, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "/stable-diffusion/execution.py", line 192, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "/stable-diffusion/execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "/stable-diffusion/execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
File "/stable-diffusion/nodes.py", line 65, in encode
output = clip.encode_from_tokens(tokens, return_pooled=True, return_dict=True)
File "/stable-diffusion/comfy/sd.py", line 125, in encode_from_tokens
self.load_model()
File "/stable-diffusion/comfy/sd.py", line 157, in load_model
model_management.load_model_gpu(self.patcher)
File "/stable-diffusion/comfy/model_management.py", line 554, in load_model_gpu
return load_models_gpu([model])
File "/stable-diffusion/comfy/model_management.py", line 540, in load_models_gpu
cur_loaded_model = loaded_model.model_load(lowvram_model_memory, force_patch_weights=force_patch_weights)
File "/stable-diffusion/comfy/model_management.py", line 326, in model_load
raise e
File "/stable-diffusion/comfy/model_management.py", line 322, in model_load
self.real_model = self.model.patch_model(device_to=patch_model_to, lowvram_model_memory=lowvram_model_memory, load_weights=load_weights, force_patch_weights=force_patch_weights)
File "/stable-diffusion/comfy/model_patcher.py", line 407, in patch_model
self.load(device_to, lowvram_model_memory=lowvram_model_memory, force_patch_weights=force_patch_weights, full_load=full_load)
File "/stable-diffusion/comfy/model_patcher.py", line 379, in load
x[2].to(device_to)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1173, in to
return self._apply(convert)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 804, in _apply
param_applied = fn(param)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1159, in convert
return t.to(
RuntimeError: CUDA error: operation not supported
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
```
### Other
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.