-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] M1 Mac has an issue with hostname -I
not being a valid command
#5597
Comments
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? |
Hi Logan, I'll talk to the friend really quick and get back to you, but iirc |
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. |
Hello. I got the same error on Apple M3, MacOS Solomona 14.5 (23F79)
So when I run |
Hi @RuslanProgrammer - can you please share the output of running just |
|
Thanks @RuslanProgrammer and @AbhinavMir - we've confirmed on an Intel Mac that the We will need to find either another way to list the IPs on Macs, I'll have to look into this. |
Not a particular issue I was facing, but a very offline friend who was using deepspeed initializes got an error where
HostName -I
isn't available on the M1 chip or OSX in general.A workaround I can think of is using
ifconfig | grep 'inet ' | awk '{print $2}' | paste -sd ' '
instead ofhostname -I
- and this code fails in./deepspeed/launcher/runner.py: ssh_check_cmd += f" {first_host} hostname -I"
so probably a check for OS type usinguname
and then running a specific bit of code. Currently I just added a new binary to replace hostname that runs the original hostname but also parses-I
to run ifconfig but it probably isn't the best idea.I am not an AI developer but just my 2 cents!
The text was updated successfully, but these errors were encountered: