GithubHelp home page GithubHelp logo

Comments (7)

AbhinavMir avatar AbhinavMir commented on July 22, 2024 1

Hi Logan, I'll talk to the friend really quick and get back to you, but iirc hostname was available, but not the -I flag.

from deepspeed.

RuslanProgrammer avatar RuslanProgrammer commented on July 22, 2024 1
$ hostname -I
hostname: illegal option -- I
usage: hostname [-f] [-s | -d] [name-of-host]

from deepspeed.

loadams avatar loadams commented on July 22, 2024 1

Thanks @RuslanProgrammer and @AbhinavMir - we've confirmed on an Intel Mac that the -I option is also not available there, so this appears to be an issue with OSX rather than the M series Macs.

We will need to find either another way to list the IPs on Macs, I'll have to look into this.

from deepspeed.

loadams avatar loadams commented on July 22, 2024

Hi @AbhinavMir - can you share the specific error? I know others have been able to run on M1 Macs in the past, so is it possible that the inetutils package wasn't installed which contains hostname?

from deepspeed.

loadams avatar loadams commented on July 22, 2024

Hi @AbhinavMir - closing this PR as stale for now, if you're able to get a little more info, please comment and we can investigate and re-open.

from deepspeed.

RuslanProgrammer avatar RuslanProgrammer commented on July 22, 2024

Hello. I got the same error on Apple M3, MacOS Solomona 14.5 (23F79)

[2024-07-01 11:07:31,491] [INFO] [logging.py:96:log_dist] [Rank -1] DeepSpeed info: version=0.14.4, git-hash=unknown, git-branch=unknown
[2024-07-01 11:07:31,491] [INFO] [comm.py:637:init_distributed] cdb=None
[2024-07-01 11:07:31,492] [INFO] [comm.py:652:init_distributed] Not using the DeepSpeed or dist launchers, attempting to detect MPI environment...
[...70358] shmem: mmap: an error occurred while determining whether or not /var/folders/75/... could be created.
hostname: illegal option -- I
usage: hostname [-f] [-s | -d] [name-of-host]
Traceback (most recent call last):
  File "/Users/.../class.py", line 139, in <module>
    model_engine, optimizer,__, __ = deepspeed.initialize(
  File "/Users/.../.venv/lib/python3.9/site-packages/deepspeed/__init__.py", line 143, in initialize
    dist.init_distributed(dist_backend=dist_backend,
  File "/Users/.../.venv/lib/python3.9/site-packages/deepspeed/comm/comm.py", line 658, in init_distributed
    mpi_discovery(distributed_port=distributed_port, verbose=verbose)
  File "/Users/.../.venv/lib/python3.9/site-packages/deepspeed/comm/comm.py", line 686, in mpi_discovery
    result = subprocess.check_output(hostname_cmd, shell=True)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['hostname -I']' returned non-zero exit status 1.

So when I run hostname -I in the terminal, I get the same error. Moreover inetutils 2.5 is already installed.

from deepspeed.

loadams avatar loadams commented on July 22, 2024

Hi @RuslanProgrammer - can you please share the output of running just hostname -I in the terminal?

from deepspeed.

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.