LTX-2 icon indicating copy to clipboard operation
LTX-2 copied to clipboard

which text_encoder ?

Open trister-y opened this issue 6 months ago • 2 comments

which text_encoder ?

trister-y avatar May 13 '26 09:05 trister-y

ValueError: invalid tokenizer

ComfyUI Error Report

Error Details

  • Node ID: 320:317
  • Node Type: LTXAVTextEncoderLoader
  • Exception Type: ValueError
  • Exception Message: ValueError: invalid tokenizer

Stack Trace

  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\execution.py", line 535, 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 "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\execution.py", line 335, 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 "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\execution.py", line 309, in _async_map_node_over_list
    await process_inputs(input_dict, i)

  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\execution.py", line 297, in process_inputs
    result = f(**inputs)
             ^^^^^^^^^^^

  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy_api\internal\__init__.py", line 149, in wrapped_func
    return method(locked_class, **inputs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy_api\latest\_io.py", line 1833, in EXECUTE_NORMALIZED
    to_return = cls.execute(*args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy_extras\nodes_lt_audio.py", line 203, in execute
    clip = comfy.sd.load_clip(ckpt_paths=[clip_path1, clip_path2], embedding_directory=folder_paths.get_folder_paths("embeddings"), clip_type=clip_type, model_options=model_options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\sd.py", line 1243, in load_clip
    clip = load_text_encoder_state_dicts(clip_data, embedding_directory=embedding_directory, clip_type=clip_type, model_options=model_options, disable_dynamic=disable_dynamic)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\sd.py", line 1618, in load_text_encoder_state_dicts
    clip = CLIP(clip_target, embedding_directory=embedding_directory, parameters=parameters, tokenizer_data=tokenizer_data, state_dict=clip_data, model_options=model_options, disable_dynamic=disable_dynamic)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\sd.py", line 241, in __init__
    self.tokenizer = tokenizer(embedding_directory=embedding_directory, tokenizer_data=tokenizer_data)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\text_encoders\lt.py", line 81, in __init__
    super().__init__(embedding_directory=embedding_directory, tokenizer_data=tokenizer_data, name="gemma3_12b", tokenizer=Gemma3_12BTokenizer)

  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\sd1_clip.py", line 690, in __init__
    setattr(self, self.clip, tokenizer(embedding_directory=embedding_directory, tokenizer_data=tokenizer_data))
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\text_encoders\lt.py", line 76, in __init__
    super().__init__(tokenizer, pad_with_end=False, embedding_size=3840, embedding_key='gemma3_12b', tokenizer_class=SPieceTokenizer, has_end_token=False, pad_to_max_length=False, max_length=99999999, min_length=1024, pad_left=True, disable_weights=True, tokenizer_args={"add_bos": True, "add_eos": False, "special_tokens": special_tokens}, tokenizer_data=tokenizer_data)

  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\sd1_clip.py", line 490, in __init__
    self.tokenizer = tokenizer_class.from_pretrained(tokenizer_path, **tokenizer_args)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\text_encoders\spiece_tokenizer.py", line 7, in from_pretrained
    return SPieceTokenizer(path, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\text_encoders\spiece_tokenizer.py", line 21, in __init__
    raise ValueError("invalid tokenizer")

System Information

  • ComfyUI Version: 0.21.0
  • Arguments: C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\main.py --user-directory C:\Users\cjwzh\Documents\ComfyUI\user --input-directory C:\Users\cjwzh\Documents\ComfyUI\input --output-directory C:\Users\cjwzh\Documents\ComfyUI\output --front-end-root C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\web_custom_versions\desktop_app --base-directory C:\Users\cjwzh\Documents\ComfyUI --database-url sqlite:///C:/Users/cjwzh/Documents/ComfyUI/user/comfyui.db --extra-model-paths-config C:\Users\cjwzh\AppData\Roaming\ComfyUI\extra_models_config.yaml --log-stdout --listen 127.0.0.1 --port 8000 --enable-manager
  • OS: win32
  • Python Version: 3.12.11 (main, Aug 18 2025, 19:17:54) [MSC v.1944 64 bit (AMD64)]
  • Embedded Python: false
  • PyTorch Version: 2.10.0+cu130

Devices

  • Name: cuda:0 NVIDIA GeForce RTX 3060 : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 12884377600
    • VRAM Free: 11799625728
    • Torch VRAM Total: 0
    • Torch VRAM Free: 0

Logs

2026-05-13T16:59:04.990704 - setup plugin alembic.autogenerate.schemas
2026-05-13T16:59:04.991713 - setup plugin alembic.autogenerate.tables
2026-05-13T16:59:04.991713 - setup plugin alembic.autogenerate.types
2026-05-13T16:59:04.991713 - setup plugin alembic.autogenerate.constraints
2026-05-13T16:59:04.991713 - setup plugin alembic.autogenerate.defaults
2026-05-13T16:59:04.991713 - setup plugin alembic.autogenerate.comments
2026-05-13T16:59:05.907563 - Adding extra search path custom_nodes C:\Users\cjwzh\Documents\ComfyUI\custom_nodes
2026-05-13T16:59:05.907563 - Adding extra search path download_model_base C:\Users\cjwzh\Documents\ComfyUI\models
2026-05-13T16:59:05.907563 - Adding extra search path custom_nodes C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\custom_nodes
2026-05-13T16:59:05.907563 - Setting output directory to: C:\Users\cjwzh\Documents\ComfyUI\output
2026-05-13T16:59:05.907563 - Setting input directory to: C:\Users\cjwzh\Documents\ComfyUI\input
2026-05-13T16:59:05.907563 - Setting user directory to: C:\Users\cjwzh\Documents\ComfyUI\user
2026-05-13T16:59:06.480767 - [START] Security scan2026-05-13T16:59:06.480767 - 
2026-05-13T16:59:10.588150 - [DONE] Security scan2026-05-13T16:59:10.588150 - 
2026-05-13T16:59:10.590660 - ** ComfyUI startup time:2026-05-13T16:59:10.590660 -  2026-05-13T16:59:10.590660 - 2026-05-13 16:59:10.5902026-05-13T16:59:10.590660 - 
2026-05-13T16:59:10.590660 - ** Platform:2026-05-13T16:59:10.590660 -  2026-05-13T16:59:10.590660 - Windows2026-05-13T16:59:10.590660 - 
2026-05-13T16:59:10.590660 - ** Python version:2026-05-13T16:59:10.591670 -  2026-05-13T16:59:10.591670 - 3.12.11 (main, Aug 18 2025, 19:17:54) [MSC v.1944 64 bit (AMD64)]2026-05-13T16:59:10.591670 - 
2026-05-13T16:59:10.591670 - ** Python executable:2026-05-13T16:59:10.591670 -  2026-05-13T16:59:10.591670 - C:\Users\cjwzh\Documents\ComfyUI\.venv\Scripts\python.exe2026-05-13T16:59:10.591670 - 
2026-05-13T16:59:10.591670 - ** ComfyUI Path:2026-05-13T16:59:10.591670 -  2026-05-13T16:59:10.591670 - C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI2026-05-13T16:59:10.591670 - 
2026-05-13T16:59:10.591670 - ** ComfyUI Base Folder Path:2026-05-13T16:59:10.591670 -  2026-05-13T16:59:10.591670 - C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI2026-05-13T16:59:10.591670 - 
2026-05-13T16:59:10.591670 - ** User directory:2026-05-13T16:59:10.591670 -  2026-05-13T16:59:10.591670 - C:\Users\cjwzh\Documents\ComfyUI\user2026-05-13T16:59:10.591670 - 
2026-05-13T16:59:10.591670 - ** ComfyUI-Manager config path:2026-05-13T16:59:10.591670 -  2026-05-13T16:59:10.591670 - C:\Users\cjwzh\Documents\ComfyUI\user\__manager\config.ini2026-05-13T16:59:10.591670 - 
2026-05-13T16:59:10.591670 - ** Log path:2026-05-13T16:59:10.591670 -  2026-05-13T16:59:10.591670 - C:\Users\cjwzh\Documents\ComfyUI\user\comfyui.log2026-05-13T16:59:10.591670 - 
2026-05-13T16:59:12.227995 - [ComfyUI-Manager] Skipped fixing the 'comfyui-frontend-package' dependency because the ComfyUI is outdated.
2026-05-13T16:59:12.229002 - [PRE] ComfyUI-Manager
2026-05-13T16:59:19.777878 - Found comfy_kitchen backend eager: {'available': True, 'disabled': False, 'unavailable_reason': None, 'capabilities': ['apply_rope', 'apply_rope1', 'dequantize_mxfp8', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'scaled_mm_mxfp8', 'scaled_mm_nvfp4']}
2026-05-13T16:59:19.778884 - Found comfy_kitchen backend triton: {'available': False, 'disabled': True, 'unavailable_reason': "ImportError: No module named 'triton'", 'capabilities': []}
2026-05-13T16:59:19.778884 - Found comfy_kitchen backend cuda: {'available': True, 'disabled': False, 'unavailable_reason': None, 'capabilities': ['apply_rope', 'apply_rope1', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'scaled_mm_nvfp4']}
2026-05-13T16:59:19.827035 - Checkpoint files will always be loaded safely.
2026-05-13T16:59:20.049370 - Total VRAM 12288 MB, total RAM 14229 MB
2026-05-13T16:59:20.049370 - pytorch version: 2.10.0+cu130
2026-05-13T16:59:20.050381 - Set vram state to: NORMAL_VRAM
2026-05-13T16:59:20.051381 - Device: cuda:0 NVIDIA GeForce RTX 3060 : cudaMallocAsync
2026-05-13T16:59:20.086153 - Using async weight offloading with 2 streams
2026-05-13T16:59:20.086153 - Enabled pinned memory 5691.0
2026-05-13T16:59:20.137156 - working around nvidia conv3d memory bug.
2026-05-13T16:59:22.521260 - Using pytorch attention
2026-05-13T16:59:49.367116 - DynamicVRAM support detected and enabled
2026-05-13T16:59:49.367116 - Python version: 3.12.11 (main, Aug 18 2025, 19:17:54) [MSC v.1944 64 bit (AMD64)]
2026-05-13T16:59:49.367116 - ComfyUI version: 0.21.0
2026-05-13T16:59:49.368120 - comfy-aimdo version: 0.3.0
2026-05-13T16:59:49.370201 - comfy-kitchen version: 0.2.8
2026-05-13T16:59:49.373459 - [Prompt Server] web root: C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\web_custom_versions\desktop_app
2026-05-13T16:59:49.374468 - Asset seeder disabled
2026-05-13T16:59:49.374468 - [START] ComfyUI-Manager
2026-05-13T16:59:49.598111 - [ComfyUI-Manager] Using GitPython backend2026-05-13T16:59:49.598111 - 
2026-05-13T16:59:49.649894 - [ComfyUI-Manager] network_mode: public
2026-05-13T16:59:49.938117 - [ComfyUI-Manager] The matrix sharing feature has been disabled because the `matrix-nio` dependency is not installed.
	To use this feature, please run the following command:
	C:\Users\cjwzh\Documents\ComfyUI\.venv\Scripts\python.exe -m pip install matrix-nio

2026-05-13T16:59:58.629786 - [C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfy-mtb] | INFO -> loaded 103 nodes successfuly
2026-05-13T16:59:58.630800 - [C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfy-mtb] | INFO -> Some nodes (5) could not be loaded. This can be ignored, but go to http://127.0.0.1:8000/mtb if you want more information.
2026-05-13T16:59:58.673240 - Adding2026-05-13T16:59:58.673240 -  2026-05-13T16:59:58.673240 - C:\Users\cjwzh\Documents\ComfyUI\custom_nodes2026-05-13T16:59:58.673240 -  2026-05-13T16:59:58.673240 - to sys.path2026-05-13T16:59:58.673240 - 
2026-05-13T16:59:58.673240 - Adding2026-05-13T16:59:58.673240 -  2026-05-13T16:59:58.673240 - C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\custom_nodes2026-05-13T16:59:58.673240 -  2026-05-13T16:59:58.673240 - to sys.path2026-05-13T16:59:58.673240 - 
2026-05-13T16:59:58.695498 - Could not find efficiency nodes2026-05-13T16:59:58.695498 - 
2026-05-13T16:59:58.770895 - [comfyui_controlnet_aux] | INFO -> Using ckpts path: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts
2026-05-13T16:59:58.771902 - [comfyui_controlnet_aux] | INFO -> Using symlinks: False
2026-05-13T16:59:58.772907 - [comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider']
2026-05-13T16:59:59.588680 - C:\Users/cjwzh/Documents/ComfyUI/custom_nodes\comfyui_controlnet_aux\node_wrappers\dwpose.py:26: UserWarning: DWPose: Onnxruntime not found or doesn't come with acceleration providers, switch to OpenCV with CPU device. DWPose might run very slowly
  warnings.warn("DWPose: Onnxruntime not found or doesn't come with acceleration providers, switch to OpenCV with CPU device. DWPose might run very slowly")
2026-05-13T16:59:59.613270 - Loaded ControlNetPreprocessors nodes from2026-05-13T16:59:59.613270 -  2026-05-13T16:59:59.613270 - C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui_controlnet_aux2026-05-13T16:59:59.613270 - 
2026-05-13T16:59:59.614275 - Could not find AdvancedControlNet nodes2026-05-13T16:59:59.614275 - 
2026-05-13T16:59:59.616767 - Could not find AnimateDiff nodes2026-05-13T16:59:59.616767 - 
2026-05-13T16:59:59.618952 - Could not find IPAdapter nodes2026-05-13T16:59:59.618952 - 
2026-05-13T16:59:59.628695 - Could not find VideoHelperSuite nodes2026-05-13T16:59:59.628695 - 
2026-05-13T16:59:59.631062 - Could not load ImpactPack nodes2026-05-13T16:59:59.631062 -  2026-05-13T16:59:59.631062 - Could not find ImpactPack nodes2026-05-13T16:59:59.631062 - 
2026-05-13T16:59:59.674061 - [ComfyUI-HakuImg]-|16:59:59|-INFO: Check HakuImg requirements
2026-05-13T16:59:59.693722 - [ComfyUI-HakuImg]-|16:59:59|-INFO: Check HakuImg requirements done
2026-05-13T16:59:59.693722 - [ComfyUI-HakuImg]-|16:59:59|-INFO: Check HakuImg submodule module: PixelOE
2026-05-13T16:59:59.700028 - [ComfyUI-HakuImg]-|16:59:59|-INFO: Initializing HakuImg submodule module: PixelOE
2026-05-13T16:59:59.701028 - [ComfyUI-HakuImg]-|16:59:59|-WARNING: Init HakuImg submodule module failed. Retry to fix
2026-05-13T17:00:02.151720 - [ComfyUI-HakuImg]-|17:00:02|-ERROR: Init HakuImg submodule module failed, may cause HakuImg not to work
2026-05-13T17:00:02.154956 - [ComfyUI-HakuImg]-|17:00:02|-WARNING: Cannot import PiexlOE, PixelOE node will not init
2026-05-13T17:00:02.270537 - ### Loading: ComfyUI-Impact-Pack (V8.28.3)
2026-05-13T17:00:02.369977 - 
----------------------------------------------------------------------------
[Impact Pack] The SAM2 functionality is unavailable because the `facebook/sam2` dependency is not installed.

Installation command:
C:\Users\cjwzh\Documents\ComfyUI\.venv\Scripts\python.exe -m pip install git+https://github.com/facebookresearch/sam2
----------------------------------------------------------------------------

2026-05-13T17:00:02.389463 - 
----------------------------------------------------------------------------
[Impact Pack] The SAM2 functionality is unavailable because the `facebook/sam2` dependency is not installed.

Installation command:
C:\Users\cjwzh\Documents\ComfyUI\.venv\Scripts\python.exe -m pip install git+https://github.com/facebookresearch/sam2
----------------------------------------------------------------------------

2026-05-13T17:00:02.413256 - ### Loading: ComfyUI-Inspire-Pack (V1.23)
2026-05-13T17:00:02.414259 - [Impact Pack] Wildcard total size (0.00 MB) is within cache limit (50.00 MB). Using full cache mode.
2026-05-13T17:00:02.429490 - [Impact Pack] Wildcards loading done.
2026-05-13T17:00:03.435530 - [ASCII Effect] Found 436 fonts on system2026-05-13T17:00:03.435530 - 
2026-05-13T17:00:03.446614 - [C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui_controlnet_aux] | INFO -> Using ckpts path: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts
2026-05-13T17:00:03.447618 - [C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui_controlnet_aux] | INFO -> Using symlinks: False
2026-05-13T17:00:03.447618 - [C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider']
2026-05-13T17:00:03.879510 - # 😺dzNodes: LayerStyle -> Cannot 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 https://github.com/chflame163/ComfyUI_LayerStyle/issues/52026-05-13T17:00:03.879510 - 
2026-05-13T17:00:08.924865 - WAS Node Suite: OpenCV Python FFMPEG support is enabled2026-05-13T17:00:08.924865 - 
2026-05-13T17:00:08.924865 - WAS Node Suite Warning: `ffmpeg_bin_path` is not set in `C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\was-node-suite-comfyui\was_suite_config.json` config file. Will attempt to use system ffmpeg binaries if available.2026-05-13T17:00:08.924865 - 
2026-05-13T17:00:09.677377 - WAS Node Suite: Finished. Loaded 220 nodes successfully.2026-05-13T17:00:09.678381 - 
2026-05-13T17:00:09.678381 - 
	"Art is the lie that enables us to realize the truth." - Pablo Picasso
2026-05-13T17:00:09.678381 - 
2026-05-13T17:00:09.715951 - 
Import times for custom nodes:
2026-05-13T17:00:09.715951 -    0.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui-portrait-master-zh-cn
2026-05-13T17:00:09.715951 -    0.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\tiled_ksampler
2026-05-13T17:00:09.715951 -    0.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui-seamless-tiling
2026-05-13T17:00:09.715951 -    0.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui-loadfiles
2026-05-13T17:00:09.715951 -    0.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\ComfyUI_TiledKSampler
2026-05-13T17:00:09.715951 -    0.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui_ipadapter_plus
2026-05-13T17:00:09.715951 -    0.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\wavespeed
2026-05-13T17:00:09.715951 -    0.0 seconds: C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\custom_nodes\websocket_image_save.py
2026-05-13T17:00:09.715951 -    0.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyUI_essentials
2026-05-13T17:00:09.715951 -    0.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\pseudocomfy
2026-05-13T17:00:09.715951 -    0.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\derfuu_comfyui_moddednodes
2026-05-13T17:00:09.715951 -    0.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui-segment-anything-2
2026-05-13T17:00:09.715951 -    0.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\ComfyUI-Light-Tool
2026-05-13T17:00:09.715951 -    0.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui-extended
2026-05-13T17:00:09.715951 -    0.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui-advanced-controlnet
2026-05-13T17:00:09.715951 -    0.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui-kjnodes
2026-05-13T17:00:09.716955 -    0.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\ComfyUI-WtlNodes
2026-05-13T17:00:09.716955 -    0.1 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyUI-Inspire-pack
2026-05-13T17:00:09.716955 -    0.1 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui-impact-pack
2026-05-13T17:00:09.716955 -    0.3 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui_controlnet_aux
2026-05-13T17:00:09.716955 -    0.3 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui_soze
2026-05-13T17:00:09.716955 -    0.8 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui-videohelpersuite
2026-05-13T17:00:09.716955 -    1.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui-art-venture
2026-05-13T17:00:09.716955 -    2.3 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\was-node-suite-comfyui
2026-05-13T17:00:09.716955 -    2.6 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui-hakuimg
2026-05-13T17:00:09.716955 -    3.0 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfy-mtb
2026-05-13T17:00:09.716955 -    3.3 seconds: C:\Users\cjwzh\Documents\ComfyUI\custom_nodes\comfyui_layerstyle
2026-05-13T17:00:09.716955 - 
2026-05-13T17:00:09.738157 - Context impl SQLiteImpl.
2026-05-13T17:00:09.738157 - Will assume non-transactional DDL.
2026-05-13T17:00:09.900796 - Starting server

2026-05-13T17:00:09.901801 - To see the GUI go to: http://127.0.0.1:8000
2026-05-13T17:00:12.293403 - [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
2026-05-13T17:00:12.296455 - [DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/clipspace.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
2026-05-13T17:00:12.299469 - [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/imagePreview.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
2026-05-13T17:00:12.304905 - [DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/widgetInputs.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
2026-05-13T17:00:14.934745 - [ComfyUI-Manager] The ComfyRegistry cache update is still in progress, so an outdated cache is being used.
2026-05-13T17:00:15.043500 - FETCH DATA from: C:\Users\cjwzh\Documents\ComfyUI\user\__manager\cache\3351870820_custom-node-list.json2026-05-13T17:00:15.043500 - 2026-05-13T17:00:15.069749 -  [DONE]2026-05-13T17:00:15.069749 - 
2026-05-13T17:02:00.872952 - [ComfyUI-Manager] The ComfyRegistry cache update is still in progress, so an outdated cache is being used.
2026-05-13T17:02:00.966926 - FETCH DATA from: C:\Users\cjwzh\Documents\ComfyUI\user\__manager\cache\3351870820_custom-node-list.json2026-05-13T17:02:00.966926 - 2026-05-13T17:02:00.978427 -  [DONE]2026-05-13T17:02:00.978427 - 
2026-05-13T17:02:26.695453 - got prompt
2026-05-13T17:02:27.504509 - VAE load device: cuda:0, offload device: cpu, dtype: torch.float32
2026-05-13T17:02:28.287248 - Found quantization metadata version 1
2026-05-13T17:02:28.287248 - Detected mixed precision quantization
2026-05-13T17:02:28.288250 - Using mixed precision operations
2026-05-13T17:02:28.376044 - model weight dtype torch.bfloat16, manual cast: torch.bfloat16
2026-05-13T17:02:28.393344 - model_type FLUX
2026-05-13T17:02:29.447810 - VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16
2026-05-13T17:02:29.450828 - no CLIP/text encoder weights in checkpoint, the text encoder model will not be loaded.
2026-05-13T17:02:29.475323 - !!! Exception during processing !!! division by zero
2026-05-13T17:02:29.479578 - Traceback (most recent call last):
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\execution.py", line 535, 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 "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\execution.py", line 335, 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 "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\execution.py", line 309, in _async_map_node_over_list
    await process_inputs(input_dict, i)
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\execution.py", line 297, in process_inputs
    result = f(**inputs)
             ^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy_api\internal\__init__.py", line 149, in wrapped_func
    return method(locked_class, **inputs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy_api\latest\_io.py", line 1833, in EXECUTE_NORMALIZED
    to_return = cls.execute(*args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy_extras\nodes_lt.py", line 119, in execute
    pixels = comfy.utils.common_upscale(image.movedim(-1, 1), width, height, "bilinear", "center").movedim(1, -1)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\utils.py", line 1040, in common_upscale
    new_aspect = width / height
                 ~~~~~~^~~~~~~~
ZeroDivisionError: division by zero

2026-05-13T17:02:29.481578 - Prompt executed in 2.78 seconds
2026-05-13T17:04:22.146288 - Cannot connect to comfyregistry.
2026-05-13T17:04:22.167074 - FETCH DATA from: C:\Users\cjwzh\Documents\ComfyUI\user\__manager\cache\1514988643_custom-node-list.json2026-05-13T17:04:22.167599 - 2026-05-13T17:04:22.202426 -  [DONE]2026-05-13T17:04:22.202426 - 
2026-05-13T17:04:22.253607 - [ComfyUI-Manager] All startup tasks have been completed.
2026-05-13T17:09:11.331765 - got prompt
2026-05-13T17:09:11.535332 - Requested to load VideoVAE
2026-05-13T17:09:11.578209 - Model VideoVAE prepared for dynamic VRAM loading. 1384MB Staged. 0 patches attached.
2026-05-13T17:09:13.087411 - !!! Exception during processing !!! invalid tokenizer
2026-05-13T17:09:13.091485 - Traceback (most recent call last):
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\execution.py", line 535, 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 "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\execution.py", line 335, 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 "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\execution.py", line 309, in _async_map_node_over_list
    await process_inputs(input_dict, i)
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\execution.py", line 297, in process_inputs
    result = f(**inputs)
             ^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy_api\internal\__init__.py", line 149, in wrapped_func
    return method(locked_class, **inputs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy_api\latest\_io.py", line 1833, in EXECUTE_NORMALIZED
    to_return = cls.execute(*args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy_extras\nodes_lt_audio.py", line 203, in execute
    clip = comfy.sd.load_clip(ckpt_paths=[clip_path1, clip_path2], embedding_directory=folder_paths.get_folder_paths("embeddings"), clip_type=clip_type, model_options=model_options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\sd.py", line 1243, in load_clip
    clip = load_text_encoder_state_dicts(clip_data, embedding_directory=embedding_directory, clip_type=clip_type, model_options=model_options, disable_dynamic=disable_dynamic)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\sd.py", line 1618, in load_text_encoder_state_dicts
    clip = CLIP(clip_target, embedding_directory=embedding_directory, parameters=parameters, tokenizer_data=tokenizer_data, state_dict=clip_data, model_options=model_options, disable_dynamic=disable_dynamic)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\sd.py", line 241, in __init__
    self.tokenizer = tokenizer(embedding_directory=embedding_directory, tokenizer_data=tokenizer_data)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\text_encoders\lt.py", line 81, in __init__
    super().__init__(embedding_directory=embedding_directory, tokenizer_data=tokenizer_data, name="gemma3_12b", tokenizer=Gemma3_12BTokenizer)
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\sd1_clip.py", line 690, in __init__
    setattr(self, self.clip, tokenizer(embedding_directory=embedding_directory, tokenizer_data=tokenizer_data))
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\text_encoders\lt.py", line 76, in __init__
    super().__init__(tokenizer, pad_with_end=False, embedding_size=3840, embedding_key='gemma3_12b', tokenizer_class=SPieceTokenizer, has_end_token=False, pad_to_max_length=False, max_length=99999999, min_length=1024, pad_left=True, disable_weights=True, tokenizer_args={"add_bos": True, "add_eos": False, "special_tokens": special_tokens}, tokenizer_data=tokenizer_data)
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\sd1_clip.py", line 490, in __init__
    self.tokenizer = tokenizer_class.from_pretrained(tokenizer_path, **tokenizer_args)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\text_encoders\spiece_tokenizer.py", line 7, in from_pretrained
    return SPieceTokenizer(path, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\text_encoders\spiece_tokenizer.py", line 21, in __init__
    raise ValueError("invalid tokenizer")
ValueError: invalid tokenizer

2026-05-13T17:09:13.094520 - Prompt executed in 1.75 seconds
2026-05-13T17:18:42.295029 - got prompt
2026-05-13T17:18:42.576820 - Model VideoVAE prepared for dynamic VRAM loading. 1384MB Staged. 0 patches attached.
2026-05-13T17:18:42.947094 - !!! Exception during processing !!! invalid tokenizer
2026-05-13T17:18:42.949095 - Traceback (most recent call last):
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\execution.py", line 535, 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 "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\execution.py", line 335, 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 "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\execution.py", line 309, in _async_map_node_over_list
    await process_inputs(input_dict, i)
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\execution.py", line 297, in process_inputs
    result = f(**inputs)
             ^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy_api\internal\__init__.py", line 149, in wrapped_func
    return method(locked_class, **inputs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy_api\latest\_io.py", line 1833, in EXECUTE_NORMALIZED
    to_return = cls.execute(*args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy_extras\nodes_lt_audio.py", line 203, in execute
    clip = comfy.sd.load_clip(ckpt_paths=[clip_path1, clip_path2], embedding_directory=folder_paths.get_folder_paths("embeddings"), clip_type=clip_type, model_options=model_options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\sd.py", line 1243, in load_clip
    clip = load_text_encoder_state_dicts(clip_data, embedding_directory=embedding_directory, clip_type=clip_type, model_options=model_options, disable_dynamic=disable_dynamic)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\sd.py", line 1618, in load_text_encoder_state_dicts
    clip = CLIP(clip_target, embedding_directory=embedding_directory, parameters=parameters, tokenizer_data=tokenizer_data, state_dict=clip_data, model_options=model_options, disable_dynamic=disable_dynamic)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\sd.py", line 241, in __init__
    self.tokenizer = tokenizer(embedding_directory=embedding_directory, tokenizer_data=tokenizer_data)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\text_encoders\lt.py", line 81, in __init__
    super().__init__(embedding_directory=embedding_directory, tokenizer_data=tokenizer_data, name="gemma3_12b", tokenizer=Gemma3_12BTokenizer)
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\sd1_clip.py", line 690, in __init__
    setattr(self, self.clip, tokenizer(embedding_directory=embedding_directory, tokenizer_data=tokenizer_data))
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\text_encoders\lt.py", line 76, in __init__
    super().__init__(tokenizer, pad_with_end=False, embedding_size=3840, embedding_key='gemma3_12b', tokenizer_class=SPieceTokenizer, has_end_token=False, pad_to_max_length=False, max_length=99999999, min_length=1024, pad_left=True, disable_weights=True, tokenizer_args={"add_bos": True, "add_eos": False, "special_tokens": special_tokens}, tokenizer_data=tokenizer_data)
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\sd1_clip.py", line 490, in __init__
    self.tokenizer = tokenizer_class.from_pretrained(tokenizer_path, **tokenizer_args)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\text_encoders\spiece_tokenizer.py", line 7, in from_pretrained
    return SPieceTokenizer(path, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cjwzh\AppData\Local\Programs\ComfyUI\resources\ComfyUI\comfy\text_encoders\spiece_tokenizer.py", line 21, in __init__
    raise ValueError("invalid tokenizer")
ValueError: invalid tokenizer

2026-05-13T17:18:42.952096 - Prompt executed in 0.65 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)

trister-y avatar May 13 '26 09:05 trister-y

Answering the title, since this still comes up in search.

For LTX-2.5 the text encoder is gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot .safetensors (14.3 GiB) from the Lightricks/LTX-2.5 repo, or the bf16 build at 24.5 GiB. The repo is gated, so you need to accept the licence and download with a token.

The important part: it is not stock Gemma. It carries LTX's own projection layers (text_embedding_projection, audio_projector) that map prompt embeddings into the DiT's conditioning, so pointing a plain or quantized Gemma checkpoint at it won't work — which is the usual cause of a tokenizer/loader error like yours.

Also worth checking if you're on a current ComfyUI: the node in your traceback (LTXAVTextEncoderLoader) doesn't appear in comfy_extras/nodes_lt.py anymore — the shipped LTX-2.5 templates load the encoder through the core CLIPLoader with type "ltxv". So the path that produced this error may not be the current one.

Caveat: my numbers are 2.5-era and your report is from May, i.e. 2.3 — the file names differ between versions even though the projection point stands.

Leavitskiy avatar Aug 13 '26 14:08 Leavitskiy

For this repo the text encoder is Gemma; see the README. Closing.

michaellightricks avatar Aug 18 '26 12:08 michaellightricks