You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libibverbs not available, ibv_fork_init skipped
Collecting environment information...
PyTorch version: 2.1.2+cu121
Is debug build: False
CUDA used to build PyTorch: 12.1
ROCM used to build PyTorch: N/A
Python version: 3.10.13 (main, Feb 21 2024, 09:16:04) [GCC 10.2.1 20210110] (64-bit runtime)
Python platform: Linux-5.10.0-31-cloud-amd64-x86_64-with-glibc2.31
Is CUDA available: True
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: NVIDIA A100-SXM4-40GB
Nvidia driver version: 550.54.15
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
CPU:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 46 bits physical, 48 bits virtual
CPU(s): 12
On-line CPU(s) list: 0-11
Thread(s) per core: 2
Core(s) per socket: 6
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 85
Model name: Intel(R) Xeon(R) CPU @ 2.20GHz
Stepping: 7
CPU MHz: 2200.222
BogoMIPS: 4400.44
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 192 KiB
L1i cache: 192 KiB
L2 cache: 6 MiB
L3 cache: 38.5 MiB
NUMA node0 CPU(s): 0-11
Vulnerability Gather data sampling: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Mitigation; Enhanced IBRS
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Enhanced / Automatic IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arat avx512_vnni md_clear arch_capabilities
When running the simplest text2image workflow that uses dreamShaper_v2turbo + controlnet-union-sdxl, I get this error in the KSampler node:
Transform failed of <class 'comfy.cldm.cldm.ControlNet'>: Transform failed of <class 'comfy.cldm.cldm.ControlNet.__init__.<locals>.ControlAddEmbedding'>: An exception occurred during class transformation:
Traceback (most recent call last):
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/builtin_transform.py", line 62, in proxy_class
out = transform_mgr.transform_cls(cls)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/manager.py", line 84, in transform_cls
mock_cls = self._transform_entity(mock_full_cls_name)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/manager.py", line 61, in _transform_entity
result = self.mocker.mock_entity(entity)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/import_tools/importer.py", line 95, in mock_entity
return self.load_entity_with_mock(entity)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/import_tools/importer.py", line 133, in load_entity_with_mock
mock_pkg = getattr(mock_pkg, name)
AttributeError: 'function' object has no attribute '<locals>'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/builtin_transform.py", line 41, in wrapper
result = dispatcher(first_param, *args, **kwargs)
File "/home/guy/.local/share/uv/python/cpython-3.10.15-linux-x86_64-gnu/lib/python3.10/functools.py", line 889, in wrapper
return dispatch(args[0].__class__)(*args, **kw)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/builtin_transform.py", line 199, in _
new_md_cls = proxy_class(type(mod))
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/builtin_transform.py", line 66, in proxy_class
raise RuntimeError(
RuntimeError: An exception occurred during class transformation:
Traceback (most recent call last):
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/builtin_transform.py", line 62, in proxy_class
out = transform_mgr.transform_cls(cls)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/manager.py", line 84, in transform_cls
mock_cls = self._transform_entity(mock_full_cls_name)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/manager.py", line 61, in _transform_entity
result = self.mocker.mock_entity(entity)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/import_tools/importer.py", line 95, in mock_entity
return self.load_entity_with_mock(entity)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/import_tools/importer.py", line 133, in load_entity_with_mock
mock_pkg = getattr(mock_pkg, name)
AttributeError: 'function' object has no attribute '<locals>'
Exception: 'function' object has no attribute '<locals>'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/builtin_transform.py", line 41, in wrapper
result = dispatcher(first_param, *args, **kwargs)
File "/home/guy/.local/share/uv/python/cpython-3.10.15-linux-x86_64-gnu/lib/python3.10/functools.py", line 889, in wrapper
return dispatch(args[0].__class__)(*args, **kw)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/builtin_transform.py", line 243, in _
of_mod = of_mod_cls()
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/builtin_transform.py", line 214, in init
self._modules[n] = torch2oflow(m)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/builtin_transform.py", line 43, in wrapper
raise NotImplementedError(f"Transform failed of {type(first_param)}: {e}")
NotImplementedError: Transform failed of <class 'comfy.cldm.cldm.ControlNet.__init__.<locals>.ControlAddEmbedding'>: An exception occurred during class transformation:
Traceback (most recent call last):
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/builtin_transform.py", line 62, in proxy_class
out = transform_mgr.transform_cls(cls)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/manager.py", line 84, in transform_cls
mock_cls = self._transform_entity(mock_full_cls_name)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/manager.py", line 61, in _transform_entity
result = self.mocker.mock_entity(entity)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/import_tools/importer.py", line 95, in mock_entity
return self.load_entity_with_mock(entity)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/import_tools/importer.py", line 133, in load_entity_with_mock
mock_pkg = getattr(mock_pkg, name)
AttributeError: 'function' object has no attribute '<locals>'
Exception: 'function' object has no attribute '<locals>'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/deployable_module.py", line 42, in wrapper
return func(self, *args, **kwargs)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/online_quantization_utils.py", line 65, in wrapper
output = func(self, *args, **kwargs)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/graph_management_utils.py", line 61, in wrapper
model_structure_key = generate_model_structure_key(deployable_module=self)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/utils/hash_utils.py", line 18, in generate_model_structure_key
model = deployable_module._deployable_module_model.oneflow_module
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/dual_module.py", line 30, in oneflow_module
self._oneflow_module = torch2oflow(self._torch_module)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/builtin_transform.py", line 43, in wrapper
raise NotImplementedError(f"Transform failed of {type(first_param)}: {e}")
NotImplementedError: Transform failed of <class 'comfy.cldm.cldm.ControlNet'>: Transform failed of <class 'comfy.cldm.cldm.ControlNet.__init__.<locals>.ControlAddEmbedding'>: An exception occurred during class transformation:
Traceback (most recent call last):
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/builtin_transform.py", line 62, in proxy_class
out = transform_mgr.transform_cls(cls)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/manager.py", line 84, in transform_cls
mock_cls = self._transform_entity(mock_full_cls_name)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/manager.py", line 61, in _transform_entity
result = self.mocker.mock_entity(entity)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/import_tools/importer.py", line 95, in mock_entity
return self.load_entity_with_mock(entity)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/import_tools/importer.py", line 133, in load_entity_with_mock
mock_pkg = getattr(mock_pkg, name)
AttributeError: 'function' object has no attribute '<locals>'
Exception: 'function' object has no attribute '<locals>'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/builtin_transform.py", line 62, in proxy_class
out = transform_mgr.transform_cls(cls)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/manager.py", line 84, in transform_cls
mock_cls = self._transform_entity(mock_full_cls_name)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/transform/manager.py", line 61, in _transform_entity
result = self.mocker.mock_entity(entity)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/import_tools/importer.py", line 95, in mock_entity
return self.load_entity_with_mock(entity)
File "/home/guy/ft_comfy_serving/.venv/lib/python3.10/site-packages/onediff/infer_compiler/backends/oneflow/import_tools/importer.py", line 133, in load_entity_with_mock
mock_pkg = getattr(mock_pkg, name)
AttributeError: 'function' object has no attribute '<locals>'
Exception: 'function' object has no attribute '<locals>'
This is the workflow I'm using:
I'd appreciate any tips on how to make this work :)
The text was updated successfully, but these errors were encountered:
Your current environment information
libibverbs not available, ibv_fork_init skipped
Collecting environment information...
PyTorch version: 2.1.2+cu121
Is debug build: False
CUDA used to build PyTorch: 12.1
ROCM used to build PyTorch: N/A
OneFlow version: path: ['/home/guy/ft_comfy_resize_serving/.venv/lib/python3.10/site-packages/oneflow'], version: 0.9.1.dev20240724+cu122, git_commit: f230775, cmake_build_type: Release, rdma: True, mlir: True, enterprise: False
Nexfort version: none
OneDiff version: 1.1.1.dev66+ga6b8b05c
OneDiffX version: none
OS: Debian GNU/Linux 11 (bullseye) (x86_64)
GCC version: (Debian 10.2.1-6) 10.2.1 20210110
Clang version: 11.0.1-2
CMake version: Could not collect
Libc version: glibc-2.31
Python version: 3.10.13 (main, Feb 21 2024, 09:16:04) [GCC 10.2.1 20210110] (64-bit runtime)
Python platform: Linux-5.10.0-31-cloud-amd64-x86_64-with-glibc2.31
Is CUDA available: True
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: NVIDIA A100-SXM4-40GB
Nvidia driver version: 550.54.15
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
CPU:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 46 bits physical, 48 bits virtual
CPU(s): 12
On-line CPU(s) list: 0-11
Thread(s) per core: 2
Core(s) per socket: 6
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 85
Model name: Intel(R) Xeon(R) CPU @ 2.20GHz
Stepping: 7
CPU MHz: 2200.222
BogoMIPS: 4400.44
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 192 KiB
L1i cache: 192 KiB
L2 cache: 6 MiB
L3 cache: 38.5 MiB
NUMA node0 CPU(s): 0-11
Vulnerability Gather data sampling: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Mitigation; Enhanced IBRS
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Enhanced / Automatic IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arat avx512_vnni md_clear arch_capabilities
Versions of relevant libraries:
[pip3] diffusers==0.28.2
[pip3] ltx-pytorchnvcodec==0.1.2
[pip3] mypy==1.6.1
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.26.1
[pip3] onnx==1.16.2
[pip3] onnx2torch==1.5.15
[pip3] onnxruntime==1.16.1
[pip3] onnxruntime-gpu==1.19.2
[pip3] open-clip-torch==2.24.0
[pip3] pytorch-lightning==2.1.4
[pip3] taming-transformers==0.0.1
[pip3] torch==2.1.2
[pip3] torchaudio==2.1.2
[pip3] torchmetrics==1.3.0.post0
[pip3] torchsde==0.2.6
[pip3] torchvision==0.16.2
[pip3] transformers==4.40.2
[pip3] triton==2.1.0
[conda] Could not collect
🐛 Describe the bug
When running the simplest text2image workflow that uses dreamShaper_v2turbo + controlnet-union-sdxl, I get this error in the
KSampler
node:This is the workflow I'm using:
I'd appreciate any tips on how to make this work :)
The text was updated successfully, but these errors were encountered: