Comfy-Org / Comfy-Org/ComfyUI

After the update, ComfyUI occupies more than 4GB of VRAM upon startup without performing any operations on 4090

Open
#6,778 1 comment 0 reactions 0 assignees View on GitHub
User Support
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Your question

My graphics card is an RTX 4090, and the operating system is Linux.

Device 0 [NVIDIA GeForce RTX 4090] PCIe GEN 1@16x RX: 50.00 KiB/s TX: 0.000 KiB/s Device 1 [NVIDIA GeForce RTX 4090] PCIe GEN 1@16x RX: 50.00 KiB/s TX: 50.00 KiB/s
GPU 210MHz MEM 405MHz TEMP 31°C FAN 30% POW 13 / 450 W GPU 210MHz MEM 405MHz TEMP 31°C FAN 30% POW 28 / 450 W
GPU[ 0%] MEM[ 0.349Gi/23.988Gi] GPU[ 0%] MEM[|||||| 4.185Gi/23.988Gi]

Device 2 [NVIDIA GeForce RTX 4090] PCIe GEN 1@16x RX: 100.0 KiB/s TX: 450.0 KiB/s Device 3 [NVIDIA GeForce RTX 4090] PCIe GEN 1@16x RX: 0.000 KiB/s TX: 50.00 KiB/s
GPU 210MHz MEM 405MHz TEMP 31°C FAN 30% POW 15 / 450 W GPU 210MHz MEM 405MHz TEMP 30°C FAN 30% POW 12 / 450 W
GPU[ 0%] MEM[ 0.349Gi/23.988Gi] GPU[ 0%] MEM[ 0.349Gi/23.988Gi]

### Logs

```powershell
Here's my log:
ProxyChains-3.1 (http://proxychains.sf.net)
[START] Security scan
[DONE] Security scan
## ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2025-02-11 08:44:41.683500
** Platform: Linux
** Python version: 3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 20:50:58) [GCC 12.3.0]
** Python executable: /ihoment/zhangjunyan/anaconda3/bin/python
** ComfyUI Path: /ihoment/zhangjunyan/ComfyUI
** Log path: /ihoment/zhangjunyan/ComfyUI/comfyui.log

Prestartup times for custom nodes:
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/rgthree-comfy
1.5 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-Manager

Set cuda device to: 1
Checkpoint files will always be loaded safely.
Total VRAM 24210 MB, total RAM 257552 MB
pytorch version: 2.5.0
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
Using pytorch attention
ComfyUI version: 0.3.14
[Prompt Server] web root: /ihoment/zhangjunyan/ComfyUI/web
/ihoment/zhangjunyan/anaconda3/lib/python3.12/site-packages/kornia/feature/lightglue.py:44: FutureWarning: `torch.cuda.amp.custom_fwd(args...)` is deprecated. Please use `torch.amp.custom_fwd(args..., device_type='cuda')` instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
### Loading: ComfyUI-Manager (V2.50.3)
### ComfyUI Revision: 3121 [4027466c] | Released on '2025-02-10'
|S-chain|-<>-104.225.237.236:49498-|DNS-request| raw.githubusercontent.com
|DNS-request| raw.githubusercontent.com
|DNS-request| raw.githubusercontent.com
|DNS-request| raw.githubusercontent.com
|S-chain|-<>-104.225.237.236:49498-|S-chain|-<>-104.225.237.236:49498-|S-chain|-<>-104.225.237.236:49498-|S-chain|-<>-104.225.237.236:49498-<><>-185.199.108.133:443-<><>-4.2.2.2:53-<><>-4.2.2.2:53-<><>-4.2.2.2:53-<><>-4.2.2.2:53-<><>-OK
<><>-OK
<><>-OK
<><>-OK
<><>-OK
|DNS-response| raw.githubusercontent.com is 185.199.109.133
|S-chain|-<>-104.225.237.236:49498-|DNS-response| raw.githubusercontent.com is 185.199.108.133
|DNS-response| raw.githubusercontent.com is 185.199.111.133
|DNS-response| raw.githubusercontent.com is 185.199.108.133
<><>-185.199.109.133:443-<><>-OK
|S-chain|-<>-104.225.237.236:49498-<><>-185.199.108.133:443-|DNS-request| huggingface.co
|S-chain|-<>-104.225.237.236:49498-<><>-OK
|S-chain|-<>-104.225.237.236:49498-<><>-4.2.2.2:53-<><>-185.199.111.133:443-<><>-OK
<><>-OK
|S-chain|-<>-104.225.237.236:49498-|DNS-response| huggingface.co is 18.164.174.23
|S-chain|-<>-104.225.237.236:49498-<><>-185.199.108.133:443-<><>-18.164.174.23:443-<><>-OK
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
<><>-OK
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
/ihoment/zhangjunyan/anaconda3/lib/python3.12/site-packages/huggingface_hub/file_download.py:1142: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
warnings.warn(

[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
Loading pipeline components...: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████| 5/5 [00:00<00:00, 316.57it/s]
Loading pipeline components...: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████| 5/5 [00:00<00:00, 5006.33it/s]
Workspace manager - Openning file hash dict
🦄🦄Loading: Workspace Manager (V2.1.0)
/ihoment/zhangjunyan/anaconda3/lib/python3.12/site-packages/timm/models/layers/__init__.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.layers", FutureWarning)

here: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-tbox
Using ckpts path: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-tbox/../../models/annotator
Using symlinks: False
Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider']
/ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-tbox/nodes/preprocessor/dwpose_node.py:28: 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")

/ihoment/zhangjunyan/anaconda3/lib/python3.12/site-packages/timm/models/registry.py:4: FutureWarning: Importing from timm.models.registry is deprecated, please import via timm.models
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", FutureWarning)

[rgthree-comfy] Loaded 42 magnificent nodes. 🎉

### Loading: ComfyUI-Impact-Pack (V7.5)
### ComfyUI-Impact-Pack: Reinstall dependencies (several dependencies are missing.)

[bold yellow]WARN: The `COMFYUI_PATH` environment variable is not set. Assuming `/ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/../../` as the ComfyUI path.[/bold yellow]

[bold yellow]WARN: The `COMFYUI_MODEL_PATH` environment variable is not set. Assuming `/ihoment/zhangjunyan/ComfyUI/models` as the ComfyUI path.[/bold yellow]
### ComfyUI-Impact-Pack: Check dependencies
### ComfyUI-Impact-Pack: Updating subpack
[Impact Pack] EXECUTE: ['/ihoment/zhangjunyan/anaconda3/bin/python', 'install.py'] in '/ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/impact_subpack'
req_path: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/impact_subpack/requirements.txt
req_path: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/impact_subpack/requirements.txt
req_path: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/requirements.txt
### ComfyUI-Impact-Pack: Check basic models
### ComfyUI-Impact-Pack: (IMPORT FAILED) Subpack

The module at the `custom_nodes/ComfyUI-Impact-Pack/impact_subpack` path appears to be incomplete.
Recommended to delete the path and restart ComfyUI.
If the issue persists, please report it to https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues.

---------------------------------
Traceback (most recent call last):
File "/ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/__init__.py", line 476, in
import impact.subpack_nodes
ModuleNotFoundError: No module named 'impact.subpack_nodes'
---------------------------------

[Impact Pack] Wildcards loading done.
Efficiency Nodes: Attempting to add Control Net options to the 'HiRes-Fix Script' Node (comfyui_controlnet_aux add-on)...Success!
Efficiency Nodes Warning: Failed to import python package 'simpleeval'; related nodes disabled.

Total VRAM 24210 MB, total RAM 257552 MB
pytorch version: 2.5.0
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
|DNS-request| pypi.org
|S-chain|-<>-104.225.237.236:49498-<><>-4.2.2.2:53-<><>-OK
|DNS-response| pypi.org is 151.101.64.223
|S-chain|-<>-104.225.237.236:49498-<><>-151.101.64.223:443-<><>-OK
/ihoment/zhangjunyan/anaconda3/lib/python3.12/site-packages/albumentations/__init__.py:13: UserWarning: A new version of Albumentations is available: 2.0.3 (you have 1.4.15). Upgrade using: pip install -U albumentations. To disable automatic update checks, set the environment variable NO_ALBUMENTATIONS_UPDATE to 1.
check_for_updates()

Import times for custom nodes:
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/websocket_image_save.py
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-BRIA_AI-RMBG
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-BiRefNet-Hugo
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/comfyui_controlnet_aux
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-OpenPose
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-Custom-Scripts
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-Frame-Interpolation
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/x-flux-comfyui
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/comfyui-workspace-manager
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-KJNodes
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-BiRefNet-ZHO
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-IPAdapter-Flux
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/rgthree-comfy
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-GGUF
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/efficiency-nodes-comfyui
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-FluxTrainer
0.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-tbox
0.1 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-Manager
0.1 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-LTXVideo
0.1 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-VideoHelperSuite
0.1 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/BEN2_ComfyUI
0.3 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-Gemini
3.2 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-Inspyrenet-Rembg
6.0 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ESD_AIGC_Comfyui_Nodes
6.4 seconds: /ihoment/zhangjunyan/ComfyUI/custom_nodes/ComfyUI-Impact-Pack

Starting server

To see the GUI go to: http://0.0.0.0:8088
```

### 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.