Giter Site home page Giter Site logo

moec_model's People

Contributors

xy980523 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

kpup1710

moec_model's Issues

No module named 'unilm.data.bert_mlm_loader'

Description:
I am trying to run some code and I am running into the following error:

ModuleNotFoundError: No module named 'unilm.data.bert_mlm_loader'

I checked the unilm/data/ directory and there is no bert_mlm_loader file present. Can someone please help me with this issue?

Expected behavior:
The script should run without any errors.

Actual behavior:
I encounter the error ModuleNotFoundError: No module named 'unilm.data.bert_mlm_loader'

Code hangs at generate_moe..py dist.init_process_group() during inference

I am running inference using the script provided in the readme.md file, and the code seems to be getting stuck at the dist.init_process_group() function.

I am using a single A100 GPU to run the code.

Here is the relevant code snippet:

import torch.distributed as dist
import random
port = random.randint(10000, 20000)
distributed_backend = 'nccl'
distributed_init_method = "tcp://localhost:{port}".format(port=port)

dist.init_process_group(
    backend=distributed_backend,
    init_method=distributed_init_method,
    world_size=1,
    rank=0,
)

I have verified that the port variable is being set correctly, and I am not seeing any error messages. However, the code just seems to hang at this point and never progresses.

Can you suggest any potential causes for this issue, or any steps I can take to debug the problem? Any help would be greatly appreciated.

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.