how use it on colab: FROM nvidia/cuda:12.1.0-cudnn8-devel-ubuntu22.04 ENV…
- User
how use it on colab: FROM nvidia/cuda:12.1.0-cudnn8-devel-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive
TZ=America/Los_AngelesARG USE_PERSISTENT_DATA
RUN apt-get update && apt-get install -y
git libgl1 libglib2.0-0
make build-essential libssl-dev zlib1g-dev
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev git git-lfs
ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx
&& rm -rf /var/lib/apt/lists/*
&& git lfs install
apt-get install nvidia-container-runtimeWORKDIR /code
User
RUN useradd -m -u 1000 user USER user ENV HOME=/home/user
PATH=/home/user/.local/bin:$PATHPyenv
RUN curl https://pyenv.run | bash ENV PATH=HOME/.pyenv/bin:$PATH
ARG PYTHON_VERSION=3.10.12
Python
RUN pyenv install PYTHON_VERSION && \ pyenv global PYTHON_VERSION && pyenv rehash && pip install --no-cache-dir --upgrade pip setuptools wheel && pip install --no-cache-dir datasets huggingface-hub "protobuf<4" "click<8.1"
- Assistant
- User
[START] Security scan [DONE] Security scan
ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2025-02-04 01:21:28.616 ** Platform: Linux ** Python version: 3.11.11 (main, Dec 4 2024, 08:55:07) [GCC 11.4.0] ** Python executable: /usr/bin/python3 ** ComfyUI Path: /content/ComfyUI ** ComfyUI Base Folder Path: /content/ComfyUI ** User directory: /content/ComfyUI/user ** ComfyUI-Manager config path: /content/ComfyUI/user/default/ComfyUI-Manager/config.ini ** Log path: /content/ComfyUI/user/comfyui.log
Prestartup times for custom nodes: 5.5 seconds: /content/ComfyUI/custom_nodes/ComfyUI-Manager.git
Checkpoint files will always be loaded safely. Traceback (most recent call last): File "/content/ComfyUI/main.py", line 136, in import execution File "/content/ComfyUI/execution.py", line 13, in import nodes File "/content/ComfyUI/nodes.py", line 22, in import comfy.diffusers_load File "/content/ComfyUI/comfy/diffusers_load.py", line 3, in import comfy.sd File "/content/ComfyUI/comfy/sd.py", line 6, in from comfy import model_management File "/content/ComfyUI/comfy/model_management.py", line 166, in total_vram = get_total_memory(get_torch_device()) / (1024 * 1024) ^^^^^^^^^^^^^^^^^^ File "/content/ComfyUI/comfy/model_management.py", line 129, in get_torch_device return torch.device(torch.cuda.current_device()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/torch/cuda/.py", line 971, in current_device _lazy_init() File "/usr/local/lib/python3.11/dist-packages/torch/cuda/.py", line 319, in _lazy_init torch._C._cuda_init() RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from
- Assistant
The error message indicates that the application you're trying to run, ComfyUI, is attempting to use the GPU but cannot find an NVIDIA driver. This is a common issue in Google Colab if the GPU isn't enabled correctly or if the environment isn't set up properly to utilize it.
- User
RuntimeError Traceback (most recent call last) in <cell line: 0>() 3 4 if not torch.cuda.is_available(): ----> 5 raise RuntimeError("CUDA is not available. Please ensure a GPU is enabled in your runtime.") 6 7 # Proceed with ComfyUI installation...
RuntimeError: CUDA is not available. Please ensure a GPU is enabled in your runtime.
- Assistant