Comfy-Org / Comfy-Org/ComfyUI

'DynamicCache' object has no attribute 'seen_tokens'

Open
#9,691 5 comments 1 reaction 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Custom Node Testing

- [ ] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)

### Expected Behavior

# ComfyUI Error Report
## Error Details
- **Node ID:** 377
- **Node Type:** LayerUtility: PhiPrompt
- **Exception Type:** AttributeError
- **Exception Message:** 'DynamicCache' object has no attribute 'seen_tokens'

## Stack Trace
```
File "F:\ComfyUI-aki-v1.3\execution.py", line 496, 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, hidden_inputs=hidden_inputs)

File "F:\ComfyUI-aki-v1.3\execution.py", line 315, 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, hidden_inputs=hidden_inputs)

File "F:\ComfyUI-aki-v1.3\execution.py", line 289, in _async_map_node_over_list
await process_inputs(input_dict, i)

File "F:\ComfyUI-aki-v1.3\execution.py", line 277, in process_inputs
result = f(**inputs)

File "F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_LayerStyle_Advance\py\phi_nodes.py", line 124, in phi_prompt
generate_ids = phi_model.model.generate(

File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)

File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\generation\utils.py", line 2539, in generate
result = self._sample(

File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\generation\utils.py", line 2860, in _sample
model_inputs = self.prepare_inputs_for_generation(input_ids, **model_kwargs)

File "F:\ComfyUI-aki-v1.3\.cache\huggingface\modules\transformers_modules\Phi-3.5-vision-instruct\modeling_phi3_v.py", line 1660, in prepare_inputs_for_generation
past_length = past_key_values.seen_tokens

```
## System Information
- **ComfyUI Version:** 0.3.56
- **Arguments:** F:\ComfyUI-aki-v1.3\main.py --auto-launch --preview-method auto --disable-cuda-malloc --fast
- **OS:** nt
- **Python Version:** 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
- **Embedded Python:** false
- **PyTorch Version:** 2.7.0+cu128
## Devices

- **Name:** cuda:0 NVIDIA GeForce RTX 5060 Ti : cudaMallocAsync
- **Type:** cuda
- **VRAM Total:** 17102864384
- **VRAM Free:** 15802040320
- **Torch VRAM Total:** 0
- **Torch VRAM Free:** 0

## Logs
```
2025-09-03T10:07:57.030263 - 2025-09-03T10:07:57.030263 - F:\ComfyUI-aki-v1.32025-09-03T10:07:57.030263 -
2025-09-03T10:07:57.030263 - ** User directory:2025-09-03T10:07:57.030263 - 2025-09-03T10:07:57.030263 - F:\ComfyUI-aki-v1.3\user2025-09-03T10:07:57.030263 -
2025-09-03T10:07:57.030263 - ** ComfyUI-Manager config path:2025-09-03T10:07:57.030263 - 2025-09-03T10:07:57.030263 - F:\ComfyUI-aki-v1.3\user\default\ComfyUI-Manager\config.ini2025-09-03T10:07:57.030263 -
2025-09-03T10:07:57.030263 - ** Log path:2025-09-03T10:07:57.030263 - 2025-09-03T10:07:57.030767 - F:\ComfyUI-aki-v1.3\user\comfyui.log2025-09-03T10:07:57.030767 -
2025-09-03T10:07:59.949320 -
Prestartup times for custom nodes:
2025-09-03T10:07:59.949320 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\rgthree-comfy
2025-09-03T10:07:59.949320 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Easy-Use
2025-09-03T10:07:59.949320 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Marigold
2025-09-03T10:07:59.949320 - 5.7 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Manager
2025-09-03T10:07:59.949320 -
2025-09-03T10:08:01.775326 - Checkpoint files will always be loaded safely.
2025-09-03T10:08:01.855604 - Total VRAM 16311 MB, total RAM 48488 MB
2025-09-03T10:08:01.855604 - pytorch version: 2.7.0+cu128
2025-09-03T10:08:01.856107 - Enabled fp16 accumulation.
2025-09-03T10:08:01.856107 - Set vram state to: NORMAL_VRAM
2025-09-03T10:08:01.856107 - Device: cuda:0 NVIDIA GeForce RTX 5060 Ti : cudaMallocAsync
2025-09-03T10:08:02.752347 - Using pytorch attention
2025-09-03T10:08:03.683593 - Python version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
2025-09-03T10:08:03.683593 - ComfyUI version: 0.3.56
2025-09-03T10:08:03.882508 - ComfyUI frontend version: 1.25.11
2025-09-03T10:08:03.884498 - [Prompt Server] web root: F:\ComfyUI-aki-v1.3\python\lib\site-packages\comfyui_frontend_package\static
2025-09-03T10:08:04.657418 - Adding2025-09-03T10:08:04.657418 - 2025-09-03T10:08:04.657927 - F:\ComfyUI-aki-v1.3\custom_nodes2025-09-03T10:08:04.657927 - 2025-09-03T10:08:04.657927 - to sys.path2025-09-03T10:08:04.657927 -
2025-09-03T10:08:04.877800 -
Efficiency Nodes: Attempting to add Control Net options to the 'HiRes-Fix Script' Node (comfyui_controlnet_aux add-on)...Success!2025-09-03T10:08:04.877800 -
2025-09-03T10:08:04.878797 - Loaded Efficiency nodes from2025-09-03T10:08:04.878797 - 2025-09-03T10:08:04.878797 - F:\ComfyUI-aki-v1.3\custom_nodes\efficiency-nodes-comfyui2025-09-03T10:08:04.878797 -
2025-09-03T10:08:04.881819 - Loaded ControlNetPreprocessors nodes from2025-09-03T10:08:04.881819 - 2025-09-03T10:08:04.881819 - F:\ComfyUI-aki-v1.3\custom_nodes\comfyui_controlnet_aux2025-09-03T10:08:04.881819 -
2025-09-03T10:08:04.891796 - Loaded AdvancedControlNet nodes from2025-09-03T10:08:04.891796 - 2025-09-03T10:08:04.891796 - F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Advanced-ControlNet2025-09-03T10:08:04.891796 -
2025-09-03T10:08:04.892793 - Could not find AnimateDiff nodes2025-09-03T10:08:04.892793 -
2025-09-03T10:08:04.906754 - Loaded IPAdapter nodes from2025-09-03T10:08:04.906754 - 2025-09-03T10:08:04.906754 - F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_IPAdapter_plus2025-09-03T10:08:04.906754 -
2025-09-03T10:08:04.910246 - Could not find VideoHelperSuite nodes2025-09-03T10:08:04.910246 -
2025-09-03T10:08:04.912240 - ### Loading: ComfyUI-Impact-Pack (V8.22.2)
2025-09-03T10:08:05.002067 - ### Loading: ComfyUI-Impact-Pack (V8.22.2)
2025-09-03T10:08:05.015023 - Loaded ImpactPack nodes from2025-09-03T10:08:05.015023 - 2025-09-03T10:08:05.015023 - F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Impact-Pack2025-09-03T10:08:05.015023 -
2025-09-03T10:08:05.015023 - [Impact Pack] Wildcards loading done.
2025-09-03T10:08:05.015770 - [Impact Pack] Wildcards loading done.
2025-09-03T10:08:05.040576 - [Crystools INFO] Crystools version: 1.27.3
2025-09-03T10:08:05.047572 - [Crystools INFO] Platform release: 10
2025-09-03T10:08:05.047572 - [Crystools INFO] JETSON: Not detected.
2025-09-03T10:08:05.048055 - [Crystools INFO] CPU: Intel(R) Core(TM) Ultra 7 265K - Arch: AMD64 - OS: Windows 10
2025-09-03T10:08:05.056530 - [Crystools INFO] pynvml (NVIDIA) initialized.
2025-09-03T10:08:05.056530 - [Crystools INFO] GPU/s:
2025-09-03T10:08:05.069029 - [Crystools INFO] 0) NVIDIA GeForce RTX 5060 Ti
2025-09-03T10:08:05.069029 - [Crystools INFO] NVIDIA Driver: 580.97
2025-09-03T10:08:05.489831 - Exception in thread 2025-09-03T10:08:05.490825 - Thread-11 (_readerthread)2025-09-03T10:08:05.490825 - :
2025-09-03T10:08:05.490825 - Traceback (most recent call last):
2025-09-03T10:08:05.490825 - File "F:\ComfyUI-aki-v1.3\python\lib\threading.py", line 1016, in _bootstrap_inner
2025-09-03T10:08:05.490825 - 2025-09-03T10:08:05.490825 - self.run()2025-09-03T10:08:05.490825 -
2025-09-03T10:08:05.490825 - File "", line 99, in run
2025-09-03T10:08:05.490825 - File "", line 94, in _run_old_run_func
2025-09-03T10:08:05.491822 - File "", line 1649, in reraise
2025-09-03T10:08:05.491822 - File "", line 92, in _run_old_run_func
2025-09-03T10:08:05.491822 - File "F:\ComfyUI-aki-v1.3\python\lib\threading.py", line 953, in run
2025-09-03T10:08:05.491822 - 2025-09-03T10:08:05.491822 - self._target(*self._args, **self._kwargs)2025-09-03T10:08:05.491822 -
2025-09-03T10:08:05.491822 - File "F:\ComfyUI-aki-v1.3\python\lib\subprocess.py", line 1515, in _readerthread
2025-09-03T10:08:05.491822 - 2025-09-03T10:08:05.492819 - buffer.append(fh.read())2025-09-03T10:08:05.492819 -
2025-09-03T10:08:05.492819 - File "F:\ComfyUI-aki-v1.3\python\lib\codecs.py", line 322, in decode
2025-09-03T10:08:05.492819 - 2025-09-03T10:08:05.492819 - (result, consumed) = self._buffer_decode(data, self.errors, final)2025-09-03T10:08:05.492819 -
2025-09-03T10:08:05.492819 - UnicodeDecodeError2025-09-03T10:08:05.492819 - : 2025-09-03T10:08:05.492819 - 'utf-8' codec can't decode byte 0xb2 in position 6: invalid start byte2025-09-03T10:08:05.492819 -
2025-09-03T10:08:06.325135 - [ComfyUI-Easy-Use] server: v1.3.3 Loaded2025-09-03T10:08:06.325135 -
2025-09-03T10:08:06.325135 - [ComfyUI-Easy-Use] web root: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Easy-Use\web_version/v2 Loaded2025-09-03T10:08:06.325135 -
2025-09-03T10:08:06.336601 - ComfyUI-GGUF: Partial torch compile only, consider updating pytorch
2025-09-03T10:08:06.343123 - Traceback (most recent call last):
File "F:\ComfyUI-aki-v1.3\nodes.py", line 2129, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-GGUF-FantasyTalking\__init__.py", line 7, in
from .nodes import NODE_CLASS_MAPPINGS
File "F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-GGUF-FantasyTalking\nodes.py", line 669
Prompt executed in 88.52 seconds"""
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 149-150: truncated \UXXXXXXXX escape

2025-09-03T10:08:06.343123 - Cannot import F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-GGUF-FantasyTalking module for custom nodes: (unicode error) 'unicodeescape' codec can't decode bytes in position 149-150: truncated \UXXXXXXXX escape (nodes.py, line 669)
2025-09-03T10:08:06.344116 - ### Loading: ComfyUI-Impact-Pack (V8.22.2)
2025-09-03T10:08:06.354082 - [Impact Pack] Wildcards loading done.
2025-09-03T10:08:06.357072 - ### Loading: ComfyUI-Inspire-Pack (V1.21)
2025-09-03T10:08:06.464377 - Note: NumExpr detected 20 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
2025-09-03T10:08:06.464377 - NumExpr defaulting to 8 threads.
2025-09-03T10:08:06.640487 - ### Loading: ComfyUI-Manager (V3.36)
2025-09-03T10:08:06.641484 - [ComfyUI-Manager] network_mode: public
2025-09-03T10:08:06.641484 - [ComfyUI-Manager] Since --preview-method is set, ComfyUI-Manager's preview method feature will be ignored.
2025-09-03T10:08:06.757225 - ### ComfyUI Version: v0.3.56-8-ge2d1e5da | Released on '2025-09-01'
2025-09-03T10:08:07.098778 - Total VRAM 16311 MB, total RAM 48488 MB
2025-09-03T10:08:07.098778 - pytorch version: 2.7.0+cu128
2025-09-03T10:08:07.098778 - Enabled fp16 accumulation.
2025-09-03T10:08:07.098778 - Set vram state to: NORMAL_VRAM
2025-09-03T10:08:07.098778 - Device: cuda:0 NVIDIA GeForce RTX 5060 Ti : cudaMallocAsync
2025-09-03T10:08:07.392270 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
2025-09-03T10:08:07.394264 -
=============================comfyui-my-nodes基础节点已载入成功=============================2025-09-03T10:08:07.394264 -
2025-09-03T10:08:07.397253 - Failed to auto update `Quality of Life Suit` 2025-09-03T10:08:07.397253 -
2025-09-03T10:08:07.398250 - QualityOfLifeSuit_Omar92_DIR: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-QualityOfLifeSuit_Omar922025-09-03T10:08:07.398250 -
2025-09-03T10:08:07.483864 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
2025-09-03T10:08:07.517750 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
2025-09-03T10:08:07.645899 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
2025-09-03T10:08:08.012215 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
2025-09-03T10:08:08.428892 - Warning: Could not load sageattention: No module named 'sageattention'
2025-09-03T10:08:08.428892 - sageattention package is not installed, sageattention will not be available
2025-09-03T10:08:08.497241 - (pysssss:WD14Tagger) [DEBUG] Available ORT providers: TensorrtExecutionProvider, CUDAExecutionProvider, CPUExecutionProvider2025-09-03T10:08:08.497241 -
2025-09-03T10:08:08.497241 - (pysssss:WD14Tagger) [DEBUG] Using ORT providers: CUDAExecutionProvider, CPUExecutionProvider2025-09-03T10:08:08.497241 -
2025-09-03T10:08:08.519676 - Workspace manager - Openning file hash dict2025-09-03T10:08:08.519676 -
2025-09-03T10:08:08.520668 - 🦄🦄Loading: Workspace Manager (V2.1.0)2025-09-03T10:08:08.520668 -
2025-09-03T10:08:08.539605 - ------------------------------------------2025-09-03T10:08:08.539605 -
2025-09-03T10:08:08.539605 - Comfyroll Studio v1.76 :  175 Nodes Loaded2025-09-03T10:08:08.539605 -
2025-09-03T10:08:08.539605 - ------------------------------------------2025-09-03T10:08:08.539605 -
2025-09-03T10:08:08.539605 - ** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md2025-09-03T10:08:08.539605 -
2025-09-03T10:08:08.539605 - ** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki2025-09-03T10:08:08.539605 -
2025-09-03T10:08:08.539605 - ------------------------------------------2025-09-03T10:08:08.539605 -
2025-09-03T10:08:08.544588 - [F:\ComfyUI-aki-v1_x_3\custom_nodes\comfyui_controlnet_aux] | INFO -> Using ckpts path: F:\ComfyUI-aki-v1.3\custom_nodes\comfyui_controlnet_aux\ckpts
2025-09-03T10:08:08.544588 - [F:\ComfyUI-aki-v1_x_3\custom_nodes\comfyui_controlnet_aux] | INFO -> Using symlinks: False
2025-09-03T10:08:08.544588 - [F:\ComfyUI-aki-v1_x_3\custom_nodes\comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider']
2025-09-03T10:08:10.471635 - 
### [START] ComfyUI AlekPet Nodes v1.0.84 ###2025-09-03T10:08:10.471635 -
2025-09-03T10:08:10.471635 - Node -> ArgosTranslateNode: ArgosTranslateCLIPTextEncodeNode, ArgosTranslateTextNode [Loading]2025-09-03T10:08:10.471635 -
2025-09-03T10:08:10.471635 - Node -> ChatGLMNode: ChatGLM4TranslateCLIPTextEncodeNode, ChatGLM4TranslateTextNode, ChatGLM4InstructNode, ChatGLM4InstructMediaNode [Loading]2025-09-03T10:08:10.471635 -
2025-09-03T10:08:10.471635 - Node -> DeepTranslatorNode: DeepTranslatorCLIPTextEncodeNode, DeepTranslatorTextNode [Loading]2025-09-03T10:08:10.471635 -
2025-09-03T10:08:10.471635 - Node -> ExtrasNode: PreviewTextNode, HexToHueNode, ColorsCorrectNode [Loading]2025-09-03T10:08:10.471635 -
2025-09-03T10:08:10.471635 - Node -> GoogleTranslateNode: GoogleTranslateCLIPTextEncodeNode, GoogleTranslateTextNode [Loading]2025-09-03T10:08:10.471635 -
2025-09-03T10:08:10.471635 - Node -> IDENode: IDENode [Loading]2025-09-03T10:08:10.471635 -
2025-09-03T10:08:10.471635 - Node -> PainterNode: PainterNode [Loading]2025-09-03T10:08:10.471635 -
2025-09-03T10:08:10.471635 - Node -> PoseNode: PoseNode [Loading]2025-09-03T10:08:10.471635 -
2025-09-03T10:08:10.471635 - ### [END] ComfyUI AlekPet Nodes ###2025-09-03T10:08:10.471635 -
2025-09-03T10:08:10.483101 - FizzleDorf Custom Nodes: Loaded2025-09-03T10:08:10.483101 -
2025-09-03T10:08:11.727031 -
Efficiency Nodes: Attempting to add Control Net options to the 'HiRes-Fix Script' Node (comfyui_controlnet_aux add-on)...Success!2025-09-03T10:08:11.727031 -
2025-09-03T10:08:11.729560 - Patching UNetModel.forward2025-09-03T10:08:11.729560 -
2025-09-03T10:08:11.729560 - UNetModel.forward has been successfully patched.2025-09-03T10:08:11.729560 -
2025-09-03T10:08:11.736058 - [Power Noise Suite]: 🦚🦚🦚 Squaaack! 🦚🦚🦚2025-09-03T10:08:11.736058 -
2025-09-03T10:08:11.736058 - [Power Noise Suite]: Tamed 11 wild nodes.2025-09-03T10:08:11.736058 -
2025-09-03T10:08:11.750051 - Please 'pip install xformers'2025-09-03T10:08:11.750051 -
2025-09-03T10:08:11.751048 - Nvidia APEX normalization not installed, using PyTorch LayerNorm2025-09-03T10:08:11.751048 -
2025-09-03T10:08:12.166239 -
2025-09-03T10:08:12.166239 - [rgthree-comfy] Loaded 48 epic nodes. 🎉2025-09-03T10:08:12.166239 -
2025-09-03T10:08:12.166239 -
2025-09-03T10:08:12.172219 - Traceback (most recent call last):
File "F:\ComfyUI-aki-v1.3\nodes.py", line 2129, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 879, in exec_module
File "", line 1016, in get_code
File "", line 1073, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'F:\\ComfyUI-aki-v1.3\\custom_nodes\\transformers\\__init__.py'

2025-09-03T10:08:12.172219 - Cannot import F:\ComfyUI-aki-v1.3\custom_nodes\transformers module for custom nodes: [Errno 2] No such file or directory: 'F:\\ComfyUI-aki-v1.3\\custom_nodes\\transformers\\__init__.py'
2025-09-03T10:08:13.426627 - FETCH ComfyRegistry Data: 5/962025-09-03T10:08:13.426627 -
2025-09-03T10:08:13.672200 - WAS Node Suite: OpenCV Python FFMPEG support is enabled2025-09-03T10:08:13.672200 -
2025-09-03T10:08:13.672200 - WAS Node Suite Warning: `ffmpeg_bin_path` is not set in `F:\ComfyUI-aki-v1.3\custom_nodes\was-node-suite-comfyui\was_suite_config.json` config file. Will attempt to use system ffmpeg binaries if available.2025-09-03T10:08:13.672200 -
2025-09-03T10:08:15.058839 - WAS Node Suite: Finished. Loaded 220 nodes successfully.2025-09-03T10:08:15.058839 -
2025-09-03T10:08:15.058839 -
"Your time is now. Start where you are and never stop." - Roy T. Bennett
2025-09-03T10:08:15.058839 -
2025-09-03T10:08:15.062328 -
Import times for custom nodes:
2025-09-03T10:08:15.062328 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\websocket_image_save.py
2025-09-03T10:08:15.062328 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-BRIA_AI-RMBG
2025-09-03T10:08:15.062328 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_TiledKSampler
2025-09-03T10:08:15.062328 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\stability-ComfyUI-nodes
2025-09-03T10:08:15.062328 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\style_aligned_comfy
2025-09-03T10:08:15.062328 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ControlNet-LLLite-ComfyUI
2025-09-03T10:08:15.062328 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\comfyui-unload-model
2025-09-03T10:08:15.062328 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\wanblockswap
2025-09-03T10:08:15.062328 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\cg-use-everywhere
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\FreeU_Advanced
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_experiments
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-WD14-Tagger
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-GGUF
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_ZenID
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_IPAdapter_plus
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\PowerNoiseSuite
2025-09-03T10:08:15.063324 - 0.0 seconds (IMPORT FAILED): F:\ComfyUI-aki-v1.3\custom_nodes\transformers
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\AIGODLIKE-ComfyUI-Translation
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\images-grid-comfy-plugin
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-QualityOfLifeSuit_Omar92
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-AutoCropFaces
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_FizzNodes
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Chibi-Nodes
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\comfyui_essentials
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Custom-Scripts
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\efficiency-nodes-comfyui
2025-09-03T10:08:15.063324 - 0.0 seconds (IMPORT FAILED): F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-GGUF-FantasyTalking
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_UltimateSDUpscale
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\Derfuu_ComfyUI_ModdedNodes
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Frame-Interpolation
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_Mira
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\comfyui-kjnodes
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Advanced-ControlNet
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Impact-Pack
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\comfyui_controlnet_aux
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_Comfyroll_CustomNodes
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\comfyui-workspace-manager
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-AnimateDiff-Evolved
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\comfyui-videohelpersuite
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Inspire-Pack
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Marigold
2025-09-03T10:08:15.063324 - 0.0 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Crystools
2025-09-03T10:08:15.063324 - 0.1 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\PuLID_ComfyUI
2025-09-03T10:08:15.063324 - 0.1 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_LayerStyle
2025-09-03T10:08:15.063324 - 0.1 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_InstantID
2025-09-03T10:08:15.063324 - 0.2 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\comfyui-logicutils
2025-09-03T10:08:15.063324 - 0.3 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\comfyui-my-nodes
2025-09-03T10:08:15.063324 - 0.4 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\rgthree-comfy
2025-09-03T10:08:15.063324 - 0.4 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\comfyui-art-venture
2025-09-03T10:08:15.063324 - 0.4 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\comfyui_sunxAI_facetools
2025-09-03T10:08:15.063324 - 0.4 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Manager
2025-09-03T10:08:15.063324 - 0.6 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_LayerStyle_Advance
2025-09-03T10:08:15.063324 - 1.1 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-WanVideoWrapper
2025-09-03T10:08:15.063324 - 1.2 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Easy-Use
2025-09-03T10:08:15.063324 - 1.9 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_Custom_Nodes_AlekPet
2025-09-03T10:08:15.063324 - 2.9 seconds: F:\ComfyUI-aki-v1.3\custom_nodes\was-node-suite-comfyui
2025-09-03T10:08:15.063324 -
2025-09-03T10:08:15.480224 - Context impl SQLiteImpl.
2025-09-03T10:08:15.480224 - Will assume non-transactional DDL.
2025-09-03T10:08:15.481218 - No target revision found.
2025-09-03T10:08:15.503166 - Starting server

2025-09-03T10:08:15.504162 - To see the GUI go to: http://127.0.0.1:8188
2025-09-03T10:08:17.145834 - QualityOfLifeSuit_Omar92::NSP ready2025-09-03T10:08:17.145834 -
2025-09-03T10:08:18.742482 - got prompt
2025-09-03T10:08:18.744476 - Failed to validate prompt for output 384:
2025-09-03T10:08:18.744476 - * AutoCropFaces 397:
2025-09-03T10:08:18.744476 - - Value 2.5 bigger than max of 1: shift_factor
2025-09-03T10:08:18.744476 - Output will be ignored
2025-09-03T10:08:18.745472 - Failed to validate prompt for output 225:
2025-09-03T10:08:18.745472 - Output will be ignored
2025-09-03T10:08:18.745472 - Failed to validate prompt for output 398:
2025-09-03T10:08:18.745472 - Output will be ignored
2025-09-03T10:08:18.745472 - Failed to validate prompt for output 395:
2025-09-03T10:08:18.745472 - Output will be ignored
2025-09-03T10:08:18.745472 - Failed to validate prompt for output 205:
2025-09-03T10:08:18.745472 - Output will be ignored
2025-09-03T10:08:18.745472 - Failed to validate prompt for output 389:
2025-09-03T10:08:18.745472 - Output will be ignored
2025-09-03T10:08:19.756670 - `torch_dtype` is deprecated! Use `dtype` instead!
2025-09-03T10:08:19.842745 - learnable separator enabled for hd transform, hd_transform_order = sub_glb
2025-09-03T10:08:20.023303 - FETCH ComfyRegistry Data: 10/962025-09-03T10:08:20.023303 -
2025-09-03T10:08:23.442360 - !!! Exception during processing !!! 'DynamicCache' object has no attribute 'seen_tokens'
2025-09-03T10:08:23.443864 - Traceback (most recent call last):
File "F:\ComfyUI-aki-v1.3\execution.py", line 496, 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, hidden_inputs=hidden_inputs)
File "F:\ComfyUI-aki-v1.3\execution.py", line 315, 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, hidden_inputs=hidden_inputs)
File "F:\ComfyUI-aki-v1.3\execution.py", line 289, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "F:\ComfyUI-aki-v1.3\execution.py", line 277, in process_inputs
result = f(**inputs)
File "F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_LayerStyle_Advance\py\phi_nodes.py", line 124, in phi_prompt
generate_ids = phi_model.model.generate(
File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\generation\utils.py", line 2539, in generate
result = self._sample(
File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\generation\utils.py", line 2860, in _sample
model_inputs = self.prepare_inputs_for_generation(input_ids, **model_kwargs)
File "F:\ComfyUI-aki-v1.3\.cache\huggingface\modules\transformers_modules\Phi-3.5-vision-instruct\modeling_phi3_v.py", line 1660, in prepare_inputs_for_generation
past_length = past_key_values.seen_tokens
AttributeError: 'DynamicCache' object has no attribute 'seen_tokens'

2025-09-03T10:08:23.443864 - Prompt executed in 4.70 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)
How should I go about solving this?

### Actual Behavior

Image

### Steps to Reproduce

The workflow is running but has encountered the aforementioned error. It has been confirmed that the nodes and the model are up-to-date.

### Debug Logs

```powershell
got prompt
Failed to validate prompt for output 384:
* AutoCropFaces 397:
- Value 2.5 bigger than max of 1: shift_factor
Output will be ignored
Failed to validate prompt for output 225:
Output will be ignored
Failed to validate prompt for output 398:
Output will be ignored
Failed to validate prompt for output 395:
Output will be ignored
Failed to validate prompt for output 205:
Output will be ignored
Failed to validate prompt for output 389:
Output will be ignored
learnable separator enabled for hd transform, hd_transform_order = sub_glb
!!! Exception during processing !!! 'DynamicCache' object has no attribute 'seen_tokens'
Traceback (most recent call last):
File "F:\ComfyUI-aki-v1.3\execution.py", line 496, 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, hidden_inputs=hidden_inputs)
File "F:\ComfyUI-aki-v1.3\execution.py", line 315, 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, hidden_inputs=hidden_inputs)
File "F:\ComfyUI-aki-v1.3\execution.py", line 289, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "F:\ComfyUI-aki-v1.3\execution.py", line 277, in process_inputs
result = f(**inputs)
File "F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_LayerStyle_Advance\py\phi_nodes.py", line 124, in phi_prompt
generate_ids = phi_model.model.generate(
File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\generation\utils.py", line 2539, in generate
result = self._sample(
File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\generation\utils.py", line 2860, in _sample
model_inputs = self.prepare_inputs_for_generation(input_ids, **model_kwargs)
File "F:\ComfyUI-aki-v1.3\.cache\huggingface\modules\transformers_modules\Phi-3.5-vision-instruct\modeling_phi3_v.py", line 1660, in prepare_inputs_for_generation
past_length = past_key_values.seen_tokens
AttributeError: 'DynamicCache' object has no attribute 'seen_tokens'

Prompt executed in 3.65 seconds
```

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.