-
Notifications
You must be signed in to change notification settings - Fork 23
Bitbucket GPU examples #410
base: master
Are you sure you want to change the base?
Conversation
) | ||
# Wait for cloud training to finish | ||
leo read $LEO_OPTIONS --follow "$leo_id" | ||
sleep 45 # TODO: explain |
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.
/CC @dacbd
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.
Best to have a grace time to allow for the workdir to finish its last syncing to the cloud. In practice, I think it's probably best to have something here. For small tasks it's certinly not required.
<div> <span>--script="$(cat ./leo-script.sh)"</span></div> | ||
<div> <span>)</span></div> | ||
<div> <span>leo read $LEO_OPTIONS --follow "$leo_id"</span></div> | ||
<div> <span>sleep 45 # TODO: explain</span></div> |
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.
/CC @dacbd
Link Check ReportAll 9 links passed! |
</Tooltip> | ||
<Code filename="bitbucket-pipelines.yml" repo="https://bitbucket.org/iterative-ai/cml-cloud-case"> | ||
<div><span># Use LEO instead of CML to force GPU support on Bitbucket</span></div> | ||
<div><span># (<a href="/doc/ref/runner#bitbucket">https://cml.dev/doc/ref/runner#bitbucket</a>)</span></div> |
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.
link colours don't render well, maybe better to remove?
<div><span># (<a href="/doc/ref/runner#bitbucket">https://cml.dev/doc/ref/runner#bitbucket</a>)</span></div> |
([cml#1015](https://github.com/iterative/cml/issues/1015), | ||
[BCLOUD-21459](https://jira.atlassian.com/browse/BCLOUD-21459)). A work-around | ||
is to directly use | ||
[TPI](https://github.com/iterative/terraform-provider-iterative) (the library | ||
which CML `runner` uses internally). TPI includes a CLI-friendly helper called | ||
LEO (launch, execute, orchestrate), used below: |
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.
worth noting that this should be considered experimental until we decide what a Leo release looks like?
leo
work-around to https://github.com/iterative/cml/wiki/Backend-Supported-Features