Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] IPA 工作流切换到普通文生图工作流再切到 IPA 工作流生图后异常报错导致 ComfyUI 重启 #1081

Open
tzwm opened this issue Aug 13, 2024 · 1 comment
Labels
Request-bug Something isn't working

Comments

@tzwm
Copy link

tzwm commented Aug 13, 2024

Your current environment information

Collecting environment information...
PyTorch version: 2.1.0+cu121
Is debug build: False
CUDA used to build PyTorch: 12.1
ROCM used to build PyTorch: N/A

OneFlow version: path: ['/root/miniconda3/lib/python3.10/site-packages/oneflow'], version: 0.9.1.dev20240701+cu121, git_commit: ec7b682, cmake_build_type: Release, rdma: True, mlir: True, enterprise: False
Nexfort version: none
OneDiff version: unknown version
OneDiffX version: none

OS: Ubuntu 22.04.1 LTS (x86_64)
GCC version: (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
Clang version: Could not collect
CMake version: version 3.27.7
Libc version: glibc-2.35

Python version: 3.10.8 (main, Nov 24 2022, 14:13:03) [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-5.15.0-78-generic-x86_64-with-glibc2.35
Is CUDA available: True
CUDA runtime version: 11.8.89
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 3090
Nvidia driver version: 550.54.14
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.6.0
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.6.0
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.6.0
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.6.0
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.6.0
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.6.0
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.6.0
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
Address sizes:                   52 bits physical, 57 bits virtual
Byte Order:                      Little Endian
CPU(s):                          256
On-line CPU(s) list:             0-255
Vendor ID:                       AuthenticAMD
Model name:                      AMD EPYC 9754 128-Core Processor
CPU family:                      25
Model:                           160
Thread(s) per core:              2
Core(s) per socket:              128
Socket(s):                       1
Stepping:                        2
Frequency boost:                 enabled
CPU max MHz:                     3100.3411
CPU min MHz:                     1500.0000
BogoMIPS:                        4499.91
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 invpcid_single hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local avx512_bf16 clzero irperf xsaveerptr rdpru wbnoinvd amd_ppin cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq la57 rdpid overflow_recov succor smca fsrm flush_l1d
Virtualization:                  AMD-V
L1d cache:                       4 MiB (128 instances)
L1i cache:                       4 MiB (128 instances)
L2 cache:                        128 MiB (128 instances)
L3 cache:                        256 MiB (16 instances)
NUMA node(s):                    1
NUMA node0 CPU(s):               0-255
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Mmio stale data:   Not affected
Vulnerability Retbleed:          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; Retpolines, IBPB conditional, IBRS_FW, STIBP always-on, RSB filling, PBRSB-eIBRS Not affected
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected

Versions of relevant libraries:
[pip3] diffusers==0.29.2
[pip3] numpy==1.26.4
[pip3] onnx==1.16.1
[pip3] onnx2torch==1.5.14
[pip3] onnxruntime==1.18.0
[pip3] onnxruntime-gpu==1.18.0
[pip3] open-clip-torch==2.23.0
[pip3] torch==2.1.0
[pip3] torchaudio==2.1.0+cu121
[pip3] torchsde==0.2.6
[pip3] torchvision==0.16.0+cu121
[pip3] transformers==4.42.3
[pip3] triton==2.1.0
[conda] numpy                     1.26.4                   pypi_0    pypi
[conda] onnx2torch                1.5.14                   pypi_0    pypi
[conda] open-clip-torch           2.23.0                   pypi_0    pypi
[conda] torch                     2.1.0                    pypi_0    pypi
[conda] torchaudio                2.1.0+cu121              pypi_0    pypi
[conda] torchsde                  0.2.6                    pypi_0    pypi
[conda] torchvision               0.16.0+cu121             pypi_0    pypi
[conda] triton                    2.1.0                    pypi_0    pypi

🐛 Describe the bug

复现步骤:

  1. 使用 onediff + IPA 工作流生图
  2. 使用 onediff 普通文生图工作流生图
  3. 使用 onediff + IPA 工作流生图
Loading 1 new model                                                                                                                      
 12%|█▎        | 3/24 [00:01<00:09,  2.20it/s]WARNING [2024-08-13 15:22:46] /root/onediff/src/onediff/infer_compiler/backends/oneflow/arg
s_tree_util.py:64 - Input structure key e84179 to 16bd5e has changed. Resetting the deployable module graph. This may slow down the proce
ss.                                                                                                                                      
Stack trace (most recent call last) in thread 5387:                                                                                      
   Object "/root/miniconda3/lib/python3.10/site-packages/oneflow/../oneflow.libs/liboneflow-528d7a4e.so", at 0x7f8b5b318f27, in          
   Object "/root/miniconda3/lib/python3.10/site-packages/oneflow/../oneflow.libs/liboneflow-528d7a4e.so", at 0x7f8b5b31879c, in          
   Object "/root/miniconda3/lib/python3.10/site-packages/oneflow/../oneflow.libs/liboneflow-528d7a4e.so", at 0x7f8b5b314018, in vm::Threa
dCtx::TryReceiveAndRun()                                                                                                                 
   Object "/root/miniconda3/lib/python3.10/site-packages/oneflow/../oneflow.libs/liboneflow-528d7a4e.so", at 0x7f8b5b2b68d4, in vm::EpStr
eamPolicyBase::Run(vm::Instruction*) const                                                                                               
   Object "/root/miniconda3/lib/python3.10/site-packages/oneflow/../oneflow.libs/liboneflow-528d7a4e.so", at 0x7f8b5b2b9bb7, in vm::Instr
uction::Compute()                                                                                                                        
   Object "/root/miniconda3/lib/python3.10/site-packages/oneflow/../oneflow.libs/liboneflow-528d7a4e.so", at 0x7f8b5b2c0f58, in vm::OpCal
lInstructionPolicy::Compute(vm::Instruction*)                                                                                            
   Object "/root/miniconda3/lib/python3.10/site-packages/oneflow/../oneflow.libs/liboneflow-528d7a4e.so", at 0x7f8b5b2c0c29, in          
   Object "/root/miniconda3/lib/python3.10/site-packages/oneflow/../oneflow.libs/liboneflow-528d7a4e.so", at 0x7f8b5b2bbd9a, in          
   Object "/root/miniconda3/lib/python3.10/site-packages/oneflow/../oneflow.libs/liboneflow-528d7a4e.so", at 0x7f8b52aadd3c, in          
                                                                                                                                         
Aborted (Signal sent by tkill() 4955 0)                                                                                                  
start_comfy.sh: line 17:  4955 Aborted  
@tzwm tzwm added the Request-bug Something isn't working label Aug 13, 2024
@niehen6174
Copy link

这里的报错应该是爆显存了,workflow的切换有显存泄漏。我也遇到了这个问题,目前还没找到解决办法。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Request-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants