-
Notifications
You must be signed in to change notification settings - Fork 425
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
Add sky tpunode
#120
Add sky tpunode
#120
Conversation
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.
Just change back to AWS. Otherwise, LGTM
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.
Looks great, thanks! I suggested some refactoring, but it can be deprioritized in favor of agility for now
@click.option('--cluster', | ||
'-c', | ||
default=None, | ||
type=str, | ||
help=_CLUSTER_FLAG_HELP) | ||
@click.option('--port-forward', | ||
'-p', | ||
multiple=True, | ||
default=[], | ||
type=int, | ||
required=False, | ||
help=('Port to be forwarded. To forward multiple ports, ' | ||
'use this option multiple times.')) | ||
@click.option('--screen', | ||
default=False, | ||
is_flag=True, | ||
help='If true, attach using screen.') | ||
def tpunode(cluster: str, port_forward: Optional[List[int]], screen): |
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.
Possible future refactor, not necessary:
There seems to be considerable overlap between gpunode
, cpunode
and tpunode
(similar click.options, docs, args and body). Maybe there's some opportunity for refactoring here
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.
Great suggestion. Made a note in #122.
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.
+1
I tested this and filed #129. |
TPU nodes in addition to GPU/CPU nodes! Verified that
sky tpunode
exhibits same functionality as cpunode/gpunode and that the TPU is actually attached to the created cluster usingcapture_tpu_profile --tpu=$TPU_NAME --monitoring_level=2
.