LTX 2.5 CLIP Text Encode (Negative Prompt) ERROR
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 22/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Quiet
- Domain
- machine-learning
Research direction
The traceback ends in comfy/sd1_clip.py: forward at line 266 unpacks four values from self.process_tokens(tokens, device), but the call got one. The model is named Gemma4TEModel_, so start with that text encoder's process_tokens return value and the encode_token_weights path at line 743. The payload does not say which change fixes it, and the failure is in ComfyUI core rather than this repo, so the first step is to reproduce it with the negative prompt. Done means the negative-prompt encode returns without the unpack error.
Written by the indexing model from the issue text.
Description
[INFO] got prompt
[INFO] Model Gemma4TEModel_ prepared for dynamic VRAM loading. 12407MB Staged. 0 patches attached. Force pre-loaded 293 weights: 1535 KB.
[ERROR] !!! Exception during processing !!! not enough values to unpack (expected 4, got 1)
[ERROR] Traceback (most recent call last):
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\execution.py", line 545, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\execution.py", line 344, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\execution.py", line 318, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\execution.py", line 306, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\nodes.py", line 77, in encode
return (clip.encode_from_tokens_scheduled(tokens), )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 336, in encode_from_tokens_scheduled
pooled_dict = self.encode_from_tokens(tokens, return_pooled=return_pooled, return_dict=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 405, in encode_from_tokens
o = self.cond_stage_model.encode_token_weights(tokens)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\comfy\sd1_clip.py", line 743, in encode_token_weights
out = getattr(self, self.clip).encode_token_weights(token_weight_pairs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\comfy\sd1_clip.py", line 45, in encode_token_weights
o = self.encode(to_encode)
^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\comfy\sd1_clip.py", line 306, in encode
return self(tokens)
^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1778, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1789, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\comfy\sd1_clip.py", line 266, in forward
embeds, attention_mask, num_tokens, embeds_info = self.process_tokens(tokens, device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 4, got 1)
[INFO] Prompt executed in 0.46 seconds
[INFO] Checkpoint files will always be loaded safely.
[INFO] Total VRAM 16311 MB, total RAM 65376 MB
[INFO] pytorch version: 2.13.0+cu130
[INFO] Set vram state to: NORMAL_VRAM
[INFO] Device: cuda:0 NVIDIA GeForce RTX 5060 Ti : cudaMallocAsync
[INFO] Using async weight offloading with 2 streams
[INFO] Enabled pinned memory 26150.0
[INFO] Using pytorch attention
[INFO] aimdo: src-win/cuda-detour.c:38:INFO:aimdo_setup_hooks: installing 6 hooks
[INFO] aimdo: src/control.c:262:INFO:comfy-aimdo NVML pressure enabled
[INFO] aimdo: src-win/shmem-detect.c:80:INFO:comfy-aimdo WDDM adapter match: NVIDIA GeForce RTX 5060 Ti runtime_luid=00000000:00017161 dxgi_luid=00000000:00017161
[INFO] aimdo: src/control.c:277:INFO:comfy-aimdo inited for GPU: NVIDIA GeForce RTX 5060 Ti (VRAM: 16310 MB)
[INFO] DynamicVRAM support detected and enabled
[INFO] Python version: 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]
[INFO] ComfyUI version: 0.31.1
[INFO] comfy-aimdo version: 0.4.13
[INFO] comfy-kitchen version: 0.2.28
[INFO] comfyui-frontend-package version: 1.48.7
[INFO] comfyui-workflow-templates version: 0.11.37
[INFO] comfyui-embedded-docs version: 0.5.9
[INFO] comfy-kitchen version: 0.2.28
[INFO] comfy-aimdo version: 0.4.13
[INFO] [Prompt Server] web root: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\python_embeded\Lib\site-packages\comfyui_frontend_package\static
[INFO] Asset seeder disabled
R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\python_embeded\Lib\site-packages\kornia\feature\lightglue.py:30: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
[INFO] No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
[INFO] ComfyUI-GGUF: Allowing full torch compile
[INFO] ### Loading: ComfyUI-Manager (V3.41)
[INFO] [ComfyUI-Manager] network_mode: public
[INFO] [ComfyUI-Manager] ComfyUI per-queue preview override detected (PR #11261). Manager's preview method feature is disabled. Use ComfyUI's --preview-method CLI option or 'Settings > Execution > Live preview method'.
[INFO] ### ComfyUI Revision: 283 [fe4195f7] *DETACHED | Released on '2026-08-08'
[INFO] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[INFO] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[INFO] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
[INFO] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
[INFO] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
[WARNING] WanVideoWrapper WARNING: FantasyPortrait nodes not available: No module named 'onnx'
[rgthree-comfy] Loaded 48 fantastic nodes. 🎉
[rgthree-comfy] ComfyUI's new Node 2.0 rendering may be incompatible with some rgthree-comfy nodes and features, breaking some rendering as well as losing the ability to access a node's properties (a vital part of many nodes). It also appears to run MUCH more slowly spiking CPU usage and causing jankiness and unresponsiveness, especially with large workflows. Personally I am not planning to use the new Nodes 2.0 and, unfortunately, am not able to invest the time to investigate and overhaul rgthree-comfy where needed. If you have issues when Nodes 2.0 is enabled, I'd urge you to switch it off as well and join me in hoping ComfyUI is not planning to deprecate the existing, stable canvas rendering all together.
[INFO]
Import times for custom nodes:
[INFO] 0.0 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
[INFO] 0.0 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MiniMax-H3-Turbo
[INFO] 0.0 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-custom-scripts
[INFO] 0.0 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-INT8-Fast
[INFO] 0.0 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
[INFO] 0.0 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-SolAttn_triton
[INFO] 0.0 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GGUF
[INFO] 0.0 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-kjnodes
[INFO] 0.1 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-videohelpersuite
[INFO] 0.1 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
[INFO] 0.2 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LTXVideo
[INFO] 1.2 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-WanVideoWrapper
[INFO]
[INFO] Context impl SQLiteImpl.
[INFO] Will assume non-transactional DDL.
[INFO] Using RAM pressure cache.
[INFO] Starting server
[INFO] To see the GUI go to: http://127.0.0.1:8188
- Dominant language
- Python
- Stars
- 4.2k
- Forks
- 508
- Avg merge
- 7h 14m
- Merged PRs (30d)
- 3
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Lightricks/ComfyUI-LTXVideo
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Lightricks/ComfyUI-LTXVideo#569 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Lightricks/ComfyUI-LTXVideo#541 · 3 comments · 3 reactions ·
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Lightricks/ComfyUI-LTXVideo#525 · 6 comments · 3 reactions ·
-
001Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
Lightricks/ComfyUI-LTXVideo#589 ·
-
001Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
Lightricks/ComfyUI-LTXVideo#588 ·
All issues in Lightricks/ComfyUI-LTXVideo
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 78/100
splunk/security_content#4418 ·
Maintainers usually reply within 1 day
-
[Bug / Enhancement]: Improve teleop_robot CLI with configurable timeout, robust input validation, and clean ROS shutdownPossibly taken @muskan-creates352 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 3 days
-
bug(pipelines): shortcode stripping deletes text between a {{< >}} shortcode and the next {{% %}}Possibly taken @Ashborne-lab claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
kubeflow/docs-agent#293 ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Imbad0202/academic-research-skills#1093 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pierreaubert/gpui-toolkit#114 ·
Maintainers usually reply within 1 day