UnboundLocalError: cannot access local variable 'self_attn_func' where it is not associated with a value
ComfyUI Error Report
Error Details
- Node ID: 1874
- Node Type: LTXQ8Patch
- Exception Type: UnboundLocalError
- Exception Message: cannot access local variable 'self_attn_func' where it is not associated with a value
Stack Trace
File "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\execution.py", line 347, 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 "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\execution.py", line 222, 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 "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\execution.py", line 194, in _map_node_over_list
process_inputs(input_dict, i)
File "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\execution.py", line 183, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LTXVideo\q8_nodes.py", line 52, in patch
patcher(transformer, use_fp8_attention)
File "A:\COMFYUI_3\ComfyUI_windows_portable\python_embeded\Lib\site-packages\q8_kernels\integration\patch_transformer.py", line 24, in patch_comfyui_native_transformer
attn_forward = cross_attn_forward(use_fp8_attention)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "A:\COMFYUI_3\ComfyUI_windows_portable\python_embeded\Lib\site-packages\q8_kernels\integration\comfyui_native.py", line 71, in cross_attn_forward
self_attn, cross_attn, is_out_tuple = get_attention_func(use_fp8_attention)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "A:\COMFYUI_3\ComfyUI_windows_portable\python_embeded\Lib\site-packages\q8_kernels\integration\utils.py", line 104, in get_attention_func
(self_attn_func, self_attn_memory_layout),
^^^^^^^^^^^^^^
System Information
- ComfyUI Version: 0.3.32
- Arguments: ComfyUI\main.py --windows-standalone-build --use-sage-attention --fast
- OS: nt
- Python Version: 3.12.8 (tags/v3.12.8:2dc476b, Dec 3 2024, 19:30:04) [MSC v.1942 64 bit (AMD64)]
- Embedded Python: true
- PyTorch Version: 2.7.0+cu128
Devices
- Name: cuda:0 NVIDIA GeForce RTX 3090 : cudaMallocAsync
- Type: cuda
- VRAM Total: 25769279488
- VRAM Free: 11382960000
- Torch VRAM Total: 13052674048
- Torch VRAM Free: 10104704
Logs
2025-05-12T10:00:35.373574 - Adding extra search path checkpoints A:\FORGE-WEBUI\webui_forge_cu121_torch231\webui\models\Stable-diffusion
2025-05-12T10:00:35.373574 - Adding extra search path configs A:\FORGE-WEBUI\webui_forge_cu121_torch231\webui\models\Stable-diffusion
2025-05-12T10:00:35.373574 - Adding extra search path vae A:\FORGE-WEBUI\webui_forge_cu121_torch231\webui\models\VAE
2025-05-12T10:00:35.373574 - Adding extra search path loras A:\FORGE-WEBUI\webui_forge_cu121_torch231\webui\models\Lora
2025-05-12T10:00:35.373574 - Adding extra search path loras A:\FORGE-WEBUI\webui_forge_cu121_torch231\webui\models\LyCORIS
2025-05-12T10:00:35.373574 - Adding extra search path upscale_models A:\FORGE-WEBUI\webui_forge_cu121_torch231\webui\models\ESRGAN
2025-05-12T10:00:35.373574 - Adding extra search path upscale_models A:\FORGE-WEBUI\webui_forge_cu121_torch231\webui\models\RealESRGAN
2025-05-12T10:00:35.373574 - Adding extra search path upscale_models A:\FORGE-WEBUI\webui_forge_cu121_torch231\webui\models\SwinIR
2025-05-12T10:00:35.373574 - Adding extra search path embeddings A:\FORGE-WEBUI\webui_forge_cu121_torch231\webui\embeddings
2025-05-12T10:00:35.373574 - Adding extra search path hypernetworks A:\FORGE-WEBUI\webui_forge_cu121_torch231\webui\models\hypernetworks
2025-05-12T10:00:35.373574 - Adding extra search path controlnet A:\FORGE-WEBUI\webui_forge_cu121_torch231\webui\models\ControlNet
2025-05-12T10:00:36.001339 - [START] Security scan2025-05-12T10:00:36.001339 -
2025-05-12T10:00:36.657960 - [DONE] Security scan2025-05-12T10:00:36.657960 -
2025-05-12T10:00:36.747735 - ## ComfyUI-Manager: installing dependencies done.2025-05-12T10:00:36.747735 -
2025-05-12T10:00:36.748733 - ** ComfyUI startup time:2025-05-12T10:00:36.748733 - 2025-05-12T10:00:36.748733 - 2025-05-12 10:00:36.7482025-05-12T10:00:36.748733 -
2025-05-12T10:00:36.748733 - ** Platform:2025-05-12T10:00:36.748733 - 2025-05-12T10:00:36.748733 - Windows2025-05-12T10:00:36.748733 -
2025-05-12T10:00:36.748733 - ** Python version:2025-05-12T10:00:36.748733 - 2025-05-12T10:00:36.748733 - 3.12.8 (tags/v3.12.8:2dc476b, Dec 3 2024, 19:30:04) [MSC v.1942 64 bit (AMD64)]2025-05-12T10:00:36.748733 -
2025-05-12T10:00:36.748733 - ** Python executable:2025-05-12T10:00:36.748733 - 2025-05-12T10:00:36.748733 - A:\COMFYUI_3\ComfyUI_windows_portable\python_embeded\python.exe2025-05-12T10:00:36.748733 -
2025-05-12T10:00:36.748733 - ** ComfyUI Path:2025-05-12T10:00:36.748733 - 2025-05-12T10:00:36.748733 - A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI2025-05-12T10:00:36.748733 -
2025-05-12T10:00:36.748733 - ** ComfyUI Base Folder Path:2025-05-12T10:00:36.748733 - 2025-05-12T10:00:36.748733 - A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI2025-05-12T10:00:36.748733 -
2025-05-12T10:00:36.748733 - ** User directory:2025-05-12T10:00:36.748733 - 2025-05-12T10:00:36.748733 - A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\user2025-05-12T10:00:36.748733 -
2025-05-12T10:00:36.748733 - ** ComfyUI-Manager config path:2025-05-12T10:00:36.748733 - 2025-05-12T10:00:36.748733 - A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\user\default\ComfyUI-Manager\config.ini2025-05-12T10:00:36.748733 -
2025-05-12T10:00:36.748733 - ** Log path:2025-05-12T10:00:36.748733 - 2025-05-12T10:00:36.748733 - A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\user\comfyui.log2025-05-12T10:00:36.748733 -
2025-05-12T10:00:37.721642 -
Prestartup times for custom nodes:
2025-05-12T10:00:37.721642 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
2025-05-12T10:00:37.721642 - 2.3 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
2025-05-12T10:00:37.721642 -
2025-05-12T10:00:38.758841 - Checkpoint files will always be loaded safely.
2025-05-12T10:00:38.911338 - Total VRAM 24576 MB, total RAM 65303 MB
2025-05-12T10:00:38.911338 - pytorch version: 2.7.0+cu128
2025-05-12T10:00:38.912335 - Enabled fp16 accumulation.
2025-05-12T10:00:38.912335 - Set vram state to: NORMAL_VRAM
2025-05-12T10:00:38.912335 - Device: cuda:0 NVIDIA GeForce RTX 3090 : cudaMallocAsync
2025-05-12T10:00:39.872017 - Using sage attention
2025-05-12T10:00:48.353909 - Python version: 3.12.8 (tags/v3.12.8:2dc476b, Dec 3 2024, 19:30:04) [MSC v.1942 64 bit (AMD64)]
2025-05-12T10:00:48.353909 - ComfyUI version: 0.3.32
2025-05-12T10:00:48.400201 - ComfyUI frontend version: 1.18.9
2025-05-12T10:00:48.401507 - [Prompt Server] web root: A:\COMFYUI_3\ComfyUI_windows_portable\python_embeded\Lib\site-packages\comfyui_frontend_package\static
2025-05-12T10:00:51.769545 - ComfyUI-GGUF: Partial torch compile only, consider updating pytorch
2025-05-12T10:00:51.791487 - ### Loading: ComfyUI-Impact-Pack (V8.8.1)2025-05-12T10:00:51.791487 -
2025-05-12T10:00:52.070890 - ### Loading: ComfyUI-Inspire-Pack (V1.16)
2025-05-12T10:00:52.071886 - [Impact Pack] Wildcards loading done.2025-05-12T10:00:52.071886 -
2025-05-12T10:00:52.119008 - Total VRAM 24576 MB, total RAM 65303 MB
2025-05-12T10:00:52.119008 - pytorch version: 2.7.0+cu128
2025-05-12T10:00:52.120005 - Enabled fp16 accumulation.
2025-05-12T10:00:52.120005 - Set vram state to: NORMAL_VRAM
2025-05-12T10:00:52.120497 - Device: cuda:0 NVIDIA GeForce RTX 3090 : cudaMallocAsync
2025-05-12T10:00:54.451423 - ### Loading: ComfyUI-Manager (V3.31.13)
2025-05-12T10:00:54.452420 - [ComfyUI-Manager] network_mode: public
2025-05-12T10:00:54.589028 - ### ComfyUI Version: v0.3.32-2-g271c9c5b | Released on '2025-05-06'
2025-05-12T10:00:55.065015 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
2025-05-12T10:00:55.067008 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
2025-05-12T10:00:55.221564 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
2025-05-12T10:00:55.248474 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
2025-05-12T10:00:55.343994 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
2025-05-12T10:00:55.823906 -
[0;33m[ReActor][0m - [38;5;173mSTATUS[0m - [0;32mRunning v0.6.0-a1 in ComfyUI[0m2025-05-12T10:00:55.824903 -
2025-05-12T10:00:55.920430 - Torch version: 2.7.0+cu1282025-05-12T10:00:55.920430 -
2025-05-12T10:00:56.111519 - here: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-tbox2025-05-12T10:00:56.111787 -
2025-05-12T10:00:56.116801 - Using ckpts path: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-tbox\..\..\models\annotator2025-05-12T10:00:56.116801 -
2025-05-12T10:00:56.116801 - Using symlinks: False2025-05-12T10:00:56.116801 -
2025-05-12T10:00:56.116801 - Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider']2025-05-12T10:00:56.116801 -
2025-05-12T10:00:56.870172 - [36;20m[A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux] | INFO -> Using ckpts path: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts[0m
2025-05-12T10:00:56.871171 - [36;20m[A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux] | INFO -> Using symlinks: False[0m
2025-05-12T10:00:56.871171 - [36;20m[A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider'][0m
2025-05-12T10:00:56.938499 - # šŗdzNodes: LayerStyle -> [1;33mCannot import name 'guidedFilter' from 'cv2.ximgproc'
A few nodes cannot works properly, while most nodes are not affected. Please REINSTALL package 'opencv-contrib-python'.
For detail refer to [4mhttps://github.com/chflame163/ComfyUI_LayerStyle/issues/5[0m[m2025-05-12T10:00:56.938499 -
2025-05-12T10:00:58.236260 -
2025-05-12T10:00:58.236260 - [92m[rgthree-comfy] Loaded 42 magnificent nodes. š[00m2025-05-12T10:00:58.237400 -
2025-05-12T10:00:58.237400 -
2025-05-12T10:00:58.243035 -
Import times for custom nodes:
2025-05-12T10:00:58.243035 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
2025-05-12T10:00:58.243035 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_ttp_toolset
2025-05-12T10:00:58.243035 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-TeaCacheHunyuanVideo
2025-05-12T10:00:58.243035 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-mxtoolkit
2025-05-12T10:00:58.243035 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-HunyuanVideoMultiLora
2025-05-12T10:00:58.243035 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\cg-use-everywhere
2025-05-12T10:00:58.243035 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_JPS-Nodes
2025-05-12T10:00:58.243035 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GGUF
2025-05-12T10:00:58.244033 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-inpaint-cropandstitch
2025-05-12T10:00:58.244033 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\teacache
2025-05-12T10:00:58.244033 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_essentials
2025-05-12T10:00:58.244033 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-image-saver
2025-05-12T10:00:58.244033 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
2025-05-12T10:00:58.244033 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-various
2025-05-12T10:00:58.244033 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-HunyuanLoom
2025-05-12T10:00:58.244033 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-custom-scripts
2025-05-12T10:00:58.244033 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy-image-saver
2025-05-12T10:00:58.244033 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-frame-interpolation
2025-05-12T10:00:58.245029 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\gguf
2025-05-12T10:00:58.245029 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
2025-05-12T10:00:58.245029 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-KJNodes
2025-05-12T10:00:58.245029 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-NeuralMedia
2025-05-12T10:00:58.245029 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-inspire-pack
2025-05-12T10:00:58.245029 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-videohelpersuite
2025-05-12T10:00:58.245029 - 0.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-WanVideoWrapper
2025-05-12T10:00:58.245029 - 0.1 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux
2025-05-12T10:00:58.245029 - 0.1 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_LayerStyle
2025-05-12T10:00:58.246026 - 0.3 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-impact-pack
2025-05-12T10:00:58.246026 - 0.3 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-FramePackWrapper
2025-05-12T10:00:58.246026 - 0.4 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Detail-Daemon
2025-05-12T10:00:58.246026 - 0.5 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-kynode
2025-05-12T10:00:58.246026 - 0.6 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
2025-05-12T10:00:58.246026 - 0.6 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-tbox
2025-05-12T10:00:58.246026 - 1.0 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-ReActor
2025-05-12T10:00:58.246877 - 1.2 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\flow2-wan-video
2025-05-12T10:00:58.246877 - 1.4 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-florence2
2025-05-12T10:00:58.246877 - 1.8 seconds: A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LTXVideo
2025-05-12T10:00:58.246877 -
2025-05-12T10:00:58.258840 - Starting server
2025-05-12T10:00:58.258840 - To see the GUI go to: http://127.0.0.1:8188
2025-05-12T10:00:59.794030 - [Inspire Pack] IPAdapterPlus is not installed.
2025-05-12T10:01:00.452744 - Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
File "asyncio\events.py", line 88, in _run
File "asyncio\proactor_events.py", line 165, in _call_connection_lost
ConnectionResetError: [WinError 10054] Se ha forzado la interrupción de una conexión existente por el host remoto
2025-05-12T10:01:00.453740 - Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
File "asyncio\events.py", line 88, in _run
File "asyncio\proactor_events.py", line 165, in _call_connection_lost
ConnectionResetError: [WinError 10054] Se ha forzado la interrupción de una conexión existente por el host remoto
2025-05-12T10:01:27.249562 - Cannot connect to comfyregistry.2025-05-12T10:01:27.249562 -
2025-05-12T10:01:27.261428 - FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2025-05-12T10:01:27.261428 - 2025-05-12T10:01:27.284571 - [DONE]2025-05-12T10:01:27.284571 -
2025-05-12T10:01:27.312477 - [ComfyUI-Manager] All startup tasks have been completed.
2025-05-12T10:11:42.760525 - got prompt
2025-05-12T10:11:42.842861 - model weight dtype torch.float8_e4m3fn, manual cast: torch.bfloat16
2025-05-12T10:11:42.849232 - model_type FLUX
2025-05-12T10:11:45.267237 - VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16
2025-05-12T10:11:45.267237 - no CLIP/text encoder weights in checkpoint, the text encoder model will not be loaded.
2025-05-12T10:11:48.831515 - !!! Exception during processing !!! cannot access local variable 'self_attn_func' where it is not associated with a value
2025-05-12T10:11:48.842172 - Traceback (most recent call last):
File "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\execution.py", line 347, 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 "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\execution.py", line 222, 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 "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\execution.py", line 194, in _map_node_over_list
process_inputs(input_dict, i)
File "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\execution.py", line 183, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LTXVideo\q8_nodes.py", line 52, in patch
patcher(transformer, use_fp8_attention)
File "A:\COMFYUI_3\ComfyUI_windows_portable\python_embeded\Lib\site-packages\q8_kernels\integration\patch_transformer.py", line 24, in patch_comfyui_native_transformer
attn_forward = cross_attn_forward(use_fp8_attention)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "A:\COMFYUI_3\ComfyUI_windows_portable\python_embeded\Lib\site-packages\q8_kernels\integration\comfyui_native.py", line 71, in cross_attn_forward
self_attn, cross_attn, is_out_tuple = get_attention_func(use_fp8_attention)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "A:\COMFYUI_3\ComfyUI_windows_portable\python_embeded\Lib\site-packages\q8_kernels\integration\utils.py", line 104, in get_attention_func
(self_attn_func, self_attn_memory_layout),
^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'self_attn_func' where it is not associated with a value
2025-05-12T10:11:48.842531 - Prompt executed in 6.07 seconds
2025-05-12T10:12:05.143391 - got prompt
2025-05-12T10:12:05.170263 - !!! Exception during processing !!! cannot access local variable 'self_attn_func' where it is not associated with a value
2025-05-12T10:12:05.171260 - Traceback (most recent call last):
File "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\execution.py", line 347, 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 "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\execution.py", line 222, 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 "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\execution.py", line 194, in _map_node_over_list
process_inputs(input_dict, i)
File "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\execution.py", line 183, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LTXVideo\q8_nodes.py", line 52, in patch
patcher(transformer, use_fp8_attention)
File "A:\COMFYUI_3\ComfyUI_windows_portable\python_embeded\Lib\site-packages\q8_kernels\integration\patch_transformer.py", line 24, in patch_comfyui_native_transformer
attn_forward = cross_attn_forward(use_fp8_attention)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "A:\COMFYUI_3\ComfyUI_windows_portable\python_embeded\Lib\site-packages\q8_kernels\integration\comfyui_native.py", line 71, in cross_attn_forward
self_attn, cross_attn, is_out_tuple = get_attention_func(use_fp8_attention)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "A:\COMFYUI_3\ComfyUI_windows_portable\python_embeded\Lib\site-packages\q8_kernels\integration\utils.py", line 104, in get_attention_func
(self_attn_func, self_attn_memory_layout),
^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'self_attn_func' where it is not associated with a value
2025-05-12T10:12:05.173253 - Prompt executed in 0.02 seconds
2025-05-12T10:14:49.562638 - got prompt
2025-05-12T10:14:49.586558 - !!! Exception during processing !!! cannot access local variable 'self_attn_func' where it is not associated with a value
2025-05-12T10:14:49.586558 - Traceback (most recent call last):
File "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\execution.py", line 347, 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 "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\execution.py", line 222, 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 "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\execution.py", line 194, in _map_node_over_list
process_inputs(input_dict, i)
File "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\execution.py", line 183, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "A:\COMFYUI_3\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LTXVideo\q8_nodes.py", line 52, in patch
patcher(transformer, use_fp8_attention)
File "A:\COMFYUI_3\ComfyUI_windows_portable\python_embeded\Lib\site-packages\q8_kernels\integration\patch_transformer.py", line 24, in patch_comfyui_native_transformer
attn_forward = cross_attn_forward(use_fp8_attention)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "A:\COMFYUI_3\ComfyUI_windows_portable\python_embeded\Lib\site-packages\q8_kernels\integration\comfyui_native.py", line 71, in cross_attn_forward
self_attn, cross_attn, is_out_tuple = get_attention_func(use_fp8_attention)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "A:\COMFYUI_3\ComfyUI_windows_portable\python_embeded\Lib\site-packages\q8_kernels\integration\utils.py", line 104, in get_attention_func
(self_attn_func, self_attn_memory_layout),
^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'self_attn_func' where it is not associated with a value
2025-05-12T10:14:49.587555 - Prompt executed in 0.02 seconds
Attached Workflow
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.
Workflow too large. Please manually upload the workflow from local file system.
Additional Context
(Please add any additional context or steps to reproduce the error here)
I AM USING RTX 3090. Got this error following install instructions and using the fp8 model...
Same issue here
If you are using comfyui do not use the model they are listing as it causes issues. Use this model and delete the patcher node
https://huggingface.co/Kijai/LTXV/tree/main
If you are using comfyui do not use the model they are listing as it causes issues. Use this model and delete the patcher node
https://huggingface.co/Kijai/LTXV/tree/main
Tried but kept hanging after maybe 5 min.. anyone get this going w a 30xx series?
I'm having the same issue with my 3090 when trying out the fp8 distilled 13b model. Probably related to the q8 kernels
Nerdy Rodent compiled it, it didnt get it to work anyway....
https://github.com/nerdyrodent/LTX-Video-Q8-Kernels-3090
For now, I just bypassed this Q8Patch node, it works, though not sure if this is the best solution. In another issue, someone suggested to use a KJs model, you can search for that issue.
If you're on a GPU not identified as "hopper", "ada", or "blackwell" ā like Ampere (e.g. RTX 30xx cards like your 3080 Ti) ā none of the conditionals assign self_attn_func, and use_default is never set to True, so it crashes. I think the use_default should be set to True by default not false on line 37 of utils.py. Then the rest of the logic works for ada/hopper/blackwell it gets the specific settings and others get the default.
Changing use_default=True didn't help i'm guessing the default setup doesn't work either so its probably just never been fully tested on anything but hopper/ada/blackwell which means theres other problems with the default setting as well.