-
Notifications
You must be signed in to change notification settings - Fork 529
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: Show non common GPUs by default when querying specific clouds #3925
base: master
Are you sure you want to change the base?
FIX: Show non common GPUs by default when querying specific clouds #3925
Conversation
Thanks @wizenheimer. I think the desired behavior is to print only
|
Hey @romilbhardwaj, Current Change
Others (consistent with master)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the great work @wizenheimer! Tried it out and left some comments.
sky/cli.py
Outdated
# Handle k8 messages if present | ||
if k8s_messages: | ||
yield '\n' | ||
yield k8s_messages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to keep this under the if block above, else k8s_messages
are printed twice when sky show-gpus -a
is run.
sky/provision/__init__.py
Outdated
@@ -186,12 +186,12 @@ def get_cluster_info( | |||
def get_command_runners( | |||
provider_name: str, | |||
cluster_info: common.ClusterInfo, | |||
**crednetials: Dict[str, Any], | |||
**credentials: Dict[str, Any], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this in #3924 :) perhaps this branch needs to rebased/merged with latest?
sky/cli.py
Outdated
else: | ||
|
||
# Handle hints and messages | ||
if not show_all and cloud is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may need to do some special handling here. Refer to the master
branch output and output in this branch below.
- We want to retain the hint at the end, but exclude the
(including non-common ones)
bit. I.e., we should print a hint likeHint: use -a/--all to see all accelerators and pricing.
whensky show-gpus --cloud xyz
is run, and the current hintHint: use -a/--all to see all accelerators (including non-common ones) and pricing.
whensky show-gpus
is run. - There's some extra empty lines at the end of this branch's output.
Master:
(base) ➜ ~ sky show-gpus --cloud aws
COMMON_GPU AVAILABLE_QUANTITIES
A10G 1, 4, 8
A100 8
A100-80GB 8
H100 8
K80 1, 8, 16
L4 1, 4, 8
M60 1, 2, 4
T4 1, 4, 8
V100 1, 4, 8
V100-32GB 8
Hint: use -a/--all to see all accelerators (including non-common ones) and pricing.
This branch:
(base) ➜ ~ sky show-gpus --cloud aws
COMMON_GPU AVAILABLE_QUANTITIES
A10G 1, 4, 8
A100 8
A100-80GB 8
H100 8
K80 1, 8, 16
L4 1, 4, 8
M60 1, 2, 4
T4 1, 4, 8
V100 1, 4, 8
V100-32GB 8
OTHER_GPU AVAILABLE_QUANTITIES
Gaudi HL-205 8
L40S 1, 4, 8
Radeon Pro V520 1, 2, 4
T4g 1, 2
Thanks @romilbhardwaj, |
Issues Addressed
Changes Made
Tested (run the relevant ones):
bash format.sh
pytest tests/test_smoke.py
pytest tests/test_smoke.py::test_fill_in_the_name
conda deactivate; bash -i tests/backward_compatibility_tests.sh
Before
After