hpcaitech / Open-Sora

Open-Sora: Democratizing Efficient Video Production for All
https://hpcaitech.github.io/Open-Sora/
Apache License 2.0
22.46k stars 2.2k forks source link

Can't launch open-sora using the docker way. #604

Closed sakurawald closed 4 months ago

sakurawald commented 4 months ago

I have follow the installation steps. The command docker build -t opensora . builds the container successfully. However, after issued docker run -ti --gpus all -v .:/workspace/Open-Sora opensora. I fall into another shell, open-sora don't start in localhost:6006

╭─░▒▓    ~/Workspace/github/Open-Sora-Docker  on   main ──────────────────────────────────────────────────── ✔  base   at 01:16:49  ▓▒░─╮
╰─ docker run -ti --gpus all -v .:/workspace/Open-Sora opensora                                                                                    ─╯

==========
== CUDA ==
==========

CUDA Version 12.1.0

Container image Copyright (c) 2016-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.

This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license

A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.

*************************
** DEPRECATION NOTICE! **
*************************
THIS IMAGE IS DEPRECATED and is scheduled for DELETION.
    https://gitlab.com/nvidia/container-images/cuda/blob/master/doc/support-policy.md

(pytorch) root@59039b0189e8:/workspace/Open-Sora#

What should I do? There is no other error messages.

My nvidia driver version

╰─ nvidia-smi                                                                                                                                      ─╯
Fri Jul 12 01:17:54 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 555.58.02              Driver Version: 555.58.02      CUDA Version: 12.5     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3080 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   61C    P0             35W /  115W |    1289MiB /  16384MiB |      8%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      1061      G   /usr/lib/Xorg                                 649MiB |
|    0   N/A  N/A      1324      G   /usr/bin/ksmserver                              3MiB |
|    0   N/A  N/A      1326      G   /usr/bin/kded6                                  3MiB |
|    0   N/A  N/A      1327      G   /usr/bin/kwin_x11                              18MiB |
|    0   N/A  N/A      1343      G   /usr/bin/plasmashell                           50MiB |
|    0   N/A  N/A      1399      G   /usr/lib/kactivitymanagerd                      3MiB |
|    0   N/A  N/A      1403      G   ...b/polkit-kde-authentication-agent-1          3MiB |
|    0   N/A  N/A      1404      G   /usr/lib/org_kde_powerdevil                     3MiB |
|    0   N/A  N/A      1405      G   /usr/lib/xdg-desktop-portal-kde                 3MiB |
|    0   N/A  N/A      2042      G   /usr/bin/kaccess                                3MiB |
|    0   N/A  N/A      2183      G   alacritty                                      10MiB |
|    0   N/A  N/A      2495      G   /usr/bin/krunner                               18MiB |
|    0   N/A  N/A      3020      G   /opt/google/chrome/chrome                       3MiB |
|    0   N/A  N/A      3066      G   ...seed-version=20240710-180217.653000        359MiB |
|    0   N/A  N/A      3270      G   ...bin/plasma-browser-integration-host          3MiB |
|    0   N/A  N/A      6297      G   ...ms/tor-browser/Browser/firefox.real         11MiB |
+-----------------------------------------------------------------------------------------+

My os version:

Linux archlinux 6.9.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 05 Jul 2024 22:11:24 +0000 x86_64 GNU/Linux
sakurawald commented 4 months ago

Inside the shell

(pytorch) root@59039b0189e8:/workspace/Open-Sora# ps
    PID TTY          TIME CMD
      1 pts/0    00:00:00 bash
     51 pts/0    00:00:00 ps
(pytorch) root@59039b0189e8:/workspace/Open-Sora# nvidia-smi
Thu Jul 11 17:19:50 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 555.58.02              Driver Version: 555.58.02      CUDA Version: 12.5     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3080 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   61C    P0             35W /  115W |    1160MiB /  16384MiB |      5%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
+-----------------------------------------------------------------------------------------+
(pytorch) root@59039b0189e8:/workspace/Open-Sora#