-
Notifications
You must be signed in to change notification settings - Fork 37
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 docker dev prod workflow guide #1094
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @carolineechen and the rest of your teammates on Graphite |
docs/guides/docker-dev.rst
Outdated
(0.16.0), and Accelerate (0.28.0). We will use both the container | ||
version of these packages, as well as local editable versions, of the | ||
diffusers and transformers packages to showcase both production ready |
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.
Delete "of the diffusers and transformers packages"
docs/guides/docker-dev.rst
Outdated
cluster.up_if_not() | ||
|
||
The function we’ll be using in our demo is ``is_transformers_available`` | ||
from ``diffusers.utils``. We’ll first show what using this function like |
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.
from ``diffusers.utils``. We’ll first show what using this function like | |
from ``diffusers.utils``. We’ll first show what using this function |
docs/guides/docker-dev.rst
Outdated
show the case if we had a local version of the repositories, that we | ||
modified locally, and wanted to test out the change on the cluster. |
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.
show the case if we had a local version of the repositories, that we | |
modified locally, and wanted to test out the change on the cluster. | |
show the case if we had local versions of the repositories that we'd | |
modified and wanted to test out our changes on the cluster. |
docs/guides/docker-dev.rst
Outdated
The core of the production workflow is that the Docker image consists of | ||
the exact packages and versions that you want. Regardless of whether or | ||
not one has local edits, these edits should **not** be used in the | ||
production workflow. |
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.
The core of the production workflow is that the Docker image consists of | |
the exact packages and versions that you want. Regardless of whether or | |
not one has local edits, these edits should **not** be used in the | |
production workflow. | |
The core of the production workflow is that the Docker image already contains | |
the exact packages and versions we want, probably published into the registry in CI/CD. | |
We don't want to perform any installs or code changes within the image throughout | |
execution so we preserve exact reprodicubility. |
docs/guides/docker-dev.rst
Outdated
**NOTE**: By default, Ray and Runhouse are installed on the ondemand | ||
cluster during setup time. This may be the most updated version of | ||
Runhouse, or the version you have cloned and installed locally. To make | ||
sure that your version is pinned for production use cases, please make | ||
sure that you have Runhouse and Ray included on the Docker container; | ||
the setup will skip the installations if it detects that they are | ||
already installed on the cluster. |
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.
**NOTE**: By default, Ray and Runhouse are installed on the ondemand | |
cluster during setup time. This may be the most updated version of | |
Runhouse, or the version you have cloned and installed locally. To make | |
sure that your version is pinned for production use cases, please make | |
sure that you have Runhouse and Ray included on the Docker container; | |
the setup will skip the installations if it detects that they are | |
already installed on the cluster. | |
**NOTE**: By default, Ray and Runhouse are installed on the ondemand | |
cluster during setup time (generally attempting to match the versions you | |
have locally), unless we detect that they're already present. To make | |
sure that no installs occur in production, please make | |
sure that you have Runhouse and Ray installed in your docker image. |
715ddc6
to
57c6fc9
Compare
No description provided.