Torch tensor mismatch errors when trying to use fastercache with CogVid 1.5(using 1.5_test branch), have messed around w/settings a bunch, still no luck. Is this expected/still in dev right now? Thanks and lmk if any additional info needed:
# ComfyUI Error Report
## Error Details
- **Node Type:** CogVideoSampler
- **Exception Type:** RuntimeError
- **Exception Message:** The size of tensor a (16) must match the size of tensor b (8) at non-singleton dimension 1
## Stack Trace
File "/workspace/ComfyUI/execution.py", line 323, 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 "/workspace/ComfyUI/execution.py", line 198, 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 "/workspace/ComfyUI/execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "/workspace/ComfyUI/execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/ComfyUI/custom_nodes/ComfyUI-CogVideoXWrapper/nodes.py", line 903, in process
latents = pipeline["pipe"](
^^^^^^^^^^^^^^^^^
File "/opt/environments/python/comfyui/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/workspace/ComfyUI/custom_nodes/ComfyUI-CogVideoXWrapper/pipeline_cogvideox.py", line 884, in __call__
noise_pred = self.transformer(
^^^^^^^^^^^^^^^^^
File "/opt/environments/python/comfyui/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/environments/python/comfyui/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/ComfyUI/custom_nodes/ComfyUI-CogVideoXWrapper/custom_cogvideox_transformer_3d.py", line 651, in forward
new_hf_uc = self.delta_hf + hf_c
~~~~~~~~~~~~~~^~~~~~
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.
{"last_node_id":44,"last_link_id":22,"nodes":[{"id":33,"type":"VHS_VideoCombine","pos":{"0":1977,"1":112},"size":[775.9083862304688,310],"flags":{},"order":12,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":15},{"name":"audio","type":"AUDIO","link":null,"shape":7},{"name":"meta_batch","type":"VHS_BatchManager","link":null,"shape":7},{"name":"vae","type":"VAE","link":null,"shape":7}],"outputs":[{"name":"Filenames","type":"VHS_FILENAMES","links":null}],"properties":{"Node name for S&R":"VHS_VideoCombine"},"widgets_values":{"frame_rate":16,"loop_count":0,"filename_prefix":"CogVideoX5B","format":"video/h264-mp4","pix_fmt":"yuv420p10le","crf":19,"save_metadata":true,"pingpong":false,"save_output":true,"videopreview":{"hidden":false,"paused":false,"params":{"filename":"CogVideoX5B_00006.mp4","subfolder":"","type":"output","format":"video/h264-mp4","frame_rate":16},"muted":false}}},{"id":36,"type":"CogVideoPABConfig","pos":{"0":100,"1":342},"size":{"0":315,"1":346},"flags":{},"order":0,"mode":4,"inputs":[],"outputs":[{"name":"pab_config","type":"PAB_CONFIG","links":[]}],"properties":{"Node name for S&R":"CogVideoPABConfig"},"widgets_values":[true,850,100,2,true,850,100,4,true,850,100,6,50]},{"id":38,"type":"CogVideoXTorchCompileSettings","pos":{"0":351,"1":727},"size":{"0":365.4000244140625,"1":154},"flags":{},"order":1,"mode":4,"inputs":[],"outputs":[{"name":"torch_compile_args","type":"COMPILEARGS","links":[],"slot_index":0}],"properties":{"Node name for S&R":"CogVideoXTorchCompileSettings"},"widgets_values":["inductor",false,"max-autotune",false,1024]},{"id":11,"type":"CogVideoDecode","pos":{"0":1618,"1":25},"size":{"0":315,"1":218},"flags":{},"order":11,"mode":0,"inputs":[{"name":"pipeline","type":"COGVIDEOPIPE","link":11},{"name":"samples","type":"LATENT","link":12},{"name":"vae_override","type":"VAE","link":null,"shape":7}],"outputs":[{"name":"images","type":"IMAGE","links":[15]}],"properties":{"Node name for S&R":"CogVideoDecode"},"widgets_values":[false,384,680,0.3,0.3,false]},{"id":30,"type":"CogVideoTextEncode","pos":{"0":515,"1":130},"size":{"0":400,"1":200},"flags":{},"order":8,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":13}],"outputs":[{"name":"conditioning","type":"CONDITIONING","links":[21]},{"name":"clip","type":"CLIP","links":null}],"properties":{"Node name for S&R":"CogVideoTextEncode"},"widgets_values":["In the haunting backdrop of a warIn the haunting backdrop of a war-torn city, where ruins and crumbled walls tell a story of devastation, a poignant close-up frames a young girl. Her face is smudged with ash, a silent testament to the chaos around her. Her eyes glistening with a mix of sorrow and resilience, capturing the raw emotion of a world that has lost its innocence to the ravages of conflict.\n",0.7000000000000001,false]},{"id":31,"type":"CogVideoTextEncode","pos":{"0":503,"1":397},"size":{"0":400,"1":200},"flags":{},"order":9,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":14}],"outputs":[{"name":"conditioning","type":"CONDITIONING","links":[18]},{"name":"clip","type":"CLIP","links":null}],"properties":{"Node name for S&R":"CogVideoTextEncode"},"widgets_values":["unrealistic, saturated, high contrast, big nose, painting, drawing, sketch, cartoon, anime, manga, render, CG, 3d, watermark, signature, label, (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation",1,false]},{"id":42,"type":"MochiFasterCache","pos":{"0":1202.302001953125,"1":-312.0066833496094},"size":{"0":315,"1":130},"flags":{},"order":2,"mode":0,"inputs":[],"outputs":[{"name":"fastercache","type":"FASTERCACHEARGS","links":null}],"properties":{"Node name for S&R":"MochiFasterCache"},"widgets_values":[10,22,28,"main_device"]},{"id":39,"type":"CogVideoXFasterCache","pos":{"0":722,"1":-211},"size":{"0":315,"1":130},"flags":{},"order":3,"mode":0,"inputs":[],"outputs":[{"name":"fastercache","type":"FASTERCACHEARGS","links":[20],"slot_index":0}],"properties":{"Node name for S&R":"CogVideoXFasterCache"},"widgets_values":[15,30,40,"main_device"]},{"id":20,"type":"CLIPLoader","pos":{"0":100,"1":130},"size":{"0":315,"1":82},"flags":{},"order":4,"mode":0,"inputs":[],"outputs":[{"name":"CLIP","type":"CLIP","links":[13,14]}],"properties":{"Node name for S&R":"CLIPLoader"},"widgets_values":["t5-sd3.5/text_encoders/t5xxl_fp16.safetensors","sd3"]},{"id":43,"type":"DownloadAndLoadCogVideoGGUFModel","pos":{"0":492,"1":734},"size":{"0":378,"1":222},"flags":{},"order":5,"mode":0,"inputs":[{"name":"pab_config","type":"PAB_CONFIG","link":null,"shape":7},{"name":"block_edit","type":"TRANSFORMERBLOCKS","link":null,"shape":7}],"outputs":[{"name":"cogvideo_pipe","type":"COGVIDEOPIPE","links":null}],"properties":{"Node name for S&R":"DownloadAndLoadCogVideoGGUFModel"},"widgets_values":["CogVideoX_5b_GGUF_Q4_0.safetensors","bf16",false,"main_device",false,"disabled","sdpa"]},{"id":34,"type":"CogVideoSampler","pos":{"0":1195,"1":-6},"size":{"0":405.5999755859375,"1":410},"flags":{},"order":10,"mode":0,"inputs":[{"name":"pipeline","type":"COGVIDEOPIPE","link":22},{"name":"positive","type":"CONDITIONING","link":21},{"name":"negative","type":"CONDITIONING","link":18},{"name":"samples","type":"LATENT","link":null,"shape":7},{"name":"image_cond_latents","type":"LATENT","link":null,"shape":7},{"name":"context_options","type":"COGCONTEXT","link":null,"shape":7},{"name":"controlnet","type":"COGVIDECONTROLNET","link":null,"shape":7},{"name":"tora_trajectory","type":"TORAFEATURES","link":null,"shape":7},{"name":"fastercache","type":"FASTERCACHEARGS","link":20,"shape":7}],"outputs":[{"name":"cogvideo_pipe","type":"COGVIDEOPIPE","links":[11]},{"name":"samples","type":"LATENT","links":[12]}],"properties":{"Node name for S&R":"CogVideoSampler"},"widgets_values":[768,1360,49,50,6,596820750311227,"randomize","DPM++",1]},{"id":1,"type":"DownloadAndLoadCogVideoModel","pos":{"0":923,"1":654},"size":{"0":330,"1":262},"flags":{},"order":6,"mode":0,"inputs":[{"name":"pab_config","type":"PAB_CONFIG","link":null,"shape":7},{"name":"block_edit","type":"TRANSFORMERBLOCKS","link":null,"shape":7},{"name":"lora","type":"COGLORA","link":null,"shape":7},{"name":"compile_args","type":"COMPILEARGS","link":null,"shape":7}],"outputs":[{"name":"cogvideo_pipe","type":"COGVIDEOPIPE","links":[22],"slot_index":0}],"properties":{"Node name for S&R":"DownloadAndLoadCogVideoModel"},"widgets_values":["kijai/CogVideoX-5b-1.5-T2V","bf16","disabled","disabled",false,"sdpa","main_device"]},{"id":44,"type":"CogVideoXFasterCache","pos":{"0":1603.6949462890625,"1":482.98773193359375},"size":{"0":315,"1":130},"flags":{},"order":7,"mode":0,"inputs":[],"outputs":[{"name":"fastercache","type":"FASTERCACHEARGS","links":null}],"properties":{"Node name for S&R":"CogVideoXFasterCache"},"widgets_values":[15,30,40,"main_device"]}],"links":[[11,34,0,11,0,"COGVIDEOPIPE"],[12,34,1,11,1,"LATENT"],[13,20,0,30,0,"CLIP"],[14,20,0,31,0,"CLIP"],[15,11,0,33,0,"IMAGE"],[18,31,0,34,2,"CONDITIONING"],[20,39,0,34,8,"FASTERCACHEARGS"],[21,30,0,34,1,"CONDITIONING"],[22,1,0,34,0,"COGVIDEOPIPE"]],"groups":[],"config":{},"extra":{"ds":{"scale":0.683013455365071,"offset":[-46.363774621319045,193.84279323205348]}},"version":0.4}
## Additional Context
(Please add any additional context or steps to reproduce the error here)
Torch tensor mismatch errors when trying to use fastercache with CogVid 1.5(using 1.5_test branch), have messed around w/settings a bunch, still no luck. Is this expected/still in dev right now? Thanks and lmk if any additional info needed:
System Information
ComfyUI Version: v0.2.7
Arguments: main.py --disable-auto-launch --fast --verbose --port 18188
OS: posix
Python Version: 3.11.10 (main, Sep 7 2024, 18:35:41) [GCC 11.4.0]
Embedded Python: false
PyTorch Version: 2.5.1+cu124
Devices
Name: cuda:0 NVIDIA H100 80GB HBM3 : cudaMallocAsync
Logs
Attached Workflow
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.