Skip to content
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

fix bias in if, ambiguous #3259

Merged
merged 1 commit into from
Mar 13, 2024
Merged

fix bias in if, ambiguous #3259

merged 1 commit into from
Mar 13, 2024

Conversation

hliuca
Copy link
Contributor

@hliuca hliuca commented Mar 7, 2024

Bool value of Tensor with more than one value is ambiguous.

vllm/utils.py Outdated
@@ -178,7 +178,7 @@ def get_ip() -> str:
except OSError:
# try ipv6
s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
s.connect(("dns.google", 80))
s.connect(("2001:4860:4860:0:0:0:0:8888", 80))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hliuca Why do we need this change?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @WoosukKwon. dns.google use DoT, and maybe we should avoid DoT here.

https://developers.google.com/speed/public-dns/docs/dns-over-tls

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chenxu2048 I see. Could you submit another PR about this? It seems to be not relevant to the PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WoosukKwon I agree with you. I'm not the authors of the PR and just commented on the "irrelevant" changing.

@hliuca Are you still working on this PR? Could you move this changing into another PR?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chenxu2048 I see. I thought you were the author. Sorry for that. 🤦

@WoosukKwon WoosukKwon merged commit ba8dc95 into vllm-project:main Mar 13, 2024
5 of 6 checks passed
@WoosukKwon
Copy link
Collaborator

@hliuca Thanks for the PR and updating it!

starmpcc pushed a commit to starmpcc/vllm that referenced this pull request Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants