GithubHelp home page GithubHelp logo

inference bug about open-sora HOT 8 CLOSED

hpcaitech avatar hpcaitech commented on July 30, 2024
inference bug

from open-sora.

Comments (8)

lixirui142 avatar lixirui142 commented on July 30, 2024 1

I solved the problem by adding the local host to "/etc/hosts" manually.

Try this: https://blog.csdn.net/lin_xiao_yi/article/details/132490694

from open-sora.

FrankLeeeee avatar FrankLeeeee commented on July 30, 2024

Hi, could you reproduce this issue with the following steps?

  1. write a test.py
import torch

torch.distributed.init_process_group(backend="nccl")
print("test")                                                                                          
  1. invoke this script with the following commands
torchrun --standalone --nproc_per_node 1 test.py

from open-sora.

lanson07 avatar lanson07 commented on July 30, 2024

Hi, could you reproduce this issue with the following steps?

  1. write a test.py
import torch

torch.distributed.init_process_group(backend="nccl")
print("test")                                                                                          
  1. invoke this script with the following commands
torchrun --standalone --nproc_per_node 1 test.py

i just try above, it runs normally.

from open-sora.

FrankLeeeee avatar FrankLeeeee commented on July 30, 2024

I see, that's weird. While I try to debug this, you can replace colossalai.launch() with the following lines first.

import torch
import torch.distributed as dist

dist.init_process_group(backend="nccl")
rank = dist.get_rank()
torch.cuda.set_device(rank)

from open-sora.

min-star avatar min-star commented on July 30, 2024

I use the 4090 run the test.py,there still have the same error.
截图 2024-03-18 16-59-35

from open-sora.

maokangkun avatar maokangkun commented on July 30, 2024

same problem, I have this warning

[2024-03-18 17:04:07,488] torch.distributed.run: [WARNING] master_addr is only used for static rdzv_backend and when rdzv_endpoint is not specified.

I try to add one line to modify the master_addr in inference.py:

os.environ["MASTER_ADDR"] = "127.0.0.1"
colossalai.launch_from_torch({})

but it didn't work

from open-sora.

Duyz232 avatar Duyz232 commented on July 30, 2024

我也是遇到这种问题?不知如何解决

from open-sora.

Duyz232 avatar Duyz232 commented on July 30, 2024

I see, that's weird. While I try to debug this, you can replace colossalai.launch() with the following lines first.

import torch
import torch.distributed as dist

dist.init_process_group(backend="nccl")
rank = dist.get_rank()
torch.cuda.set_device(rank)

我已经在anconda环境安装了
torch,但是不知道为什么还是找不到torch

from open-sora.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.