Skip to content

[serve] Update documentation for new DeploymentHandle API#39319

Merged
edoakes merged 37 commits intoray-project:masterfrom
edoakes:handle-docs
Sep 8, 2023
Merged

[serve] Update documentation for new DeploymentHandle API#39319
edoakes merged 37 commits intoray-project:masterfrom
edoakes:handle-docs

Conversation

@edoakes
Copy link
Copy Markdown
Collaborator

@edoakes edoakes commented Sep 6, 2023

Why are these changes needed?

Updates the documentation for the first stage of rolling out the new DeploymentHandle API:

  • The new types have been added to the API reference with docstrings.
  • The docstrings for the existing handle types have been updated to prod people to use the new API.
  • I've added a note to the model composition guide and the API ref describing the changes.
  • The model composition guide has been updated to describe the new DeploymentHandle (including streaming support) vs. the old ones.
  • All examples using handles are updated to opt into the new API via handle.options(use_new_handle_api=True).

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@edoakes edoakes requested review from a team and akshay-anyscale September 6, 2023 20:43
@edoakes edoakes self-assigned this Sep 6, 2023
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Copy link
Copy Markdown
Contributor

@angelinalg angelinalg left a comment

Choose a reason for hiding this comment

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

Just some nits. Thanks for all of this great docs work.

In case you're wondering about my suggestions to replace via. Using via is discouraged in technical writing because it is often ambiguous and sometime too formal sounding. I didn't make suggestions for some occurrences of via because I wasn't sure what the better word woudl be. Some options are: through, with, using, in. Hope that helps.

@edoakes
Copy link
Copy Markdown
Collaborator Author

edoakes commented Sep 7, 2023

Just some nits. Thanks for all of this great docs work.

In case you're wondering about my suggestions to replace via. Using via is discouraged in technical writing because it is often ambiguous and sometime too formal sounding. I didn't make suggestions for some occurrences of via because I wasn't sure what the better word woudl be. Some options are: through, with, using, in. Hope that helps.

Thanks for the added context this is helpful :)

Copy link
Copy Markdown
Contributor

@zcin zcin left a comment

Choose a reason for hiding this comment

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

Some non-blockers, great job!

edoakes and others added 12 commits September 8, 2023 09:47
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Copy link
Copy Markdown
Contributor

@zcin zcin left a comment

Choose a reason for hiding this comment

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

Small note about the deployment handle explainer link, otherwise LGTM!

@edoakes edoakes merged commit d842d77 into ray-project:master Sep 8, 2023
edoakes added a commit to edoakes/ray that referenced this pull request Sep 8, 2023
…ect#39319)

Updates the documentation for the first stage of rolling out the new `DeploymentHandle` API:

- The new types have been added to the API reference with docstrings.
- The docstrings for the existing handle types have been updated to prod people to use the new API.
- I've added a `note` to the model composition guide and the API ref describing the changes.
- The model composition guide has been updated to describe the new `DeploymentHandle` (including streaming support) vs. the old ones.
- All examples using handles are updated to opt into the new API via `handle.options(use_new_handle_api=True)`.

Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
GeneDer added a commit that referenced this pull request Sep 9, 2023
…39486)

Updates the documentation for the first stage of rolling out the new `DeploymentHandle` API:

- The new types have been added to the API reference with docstrings.
- The docstrings for the existing handle types have been updated to prod people to use the new API.
- I've added a `note` to the model composition guide and the API ref describing the changes.
- The model composition guide has been updated to describe the new `DeploymentHandle` (including streaming support) vs. the old ones.
- All examples using handles are updated to opt into the new API via `handle.options(use_new_handle_api=True)`.

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Gene Der Su <e870252314@gmail.com>
Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com>
Co-authored-by: Gene Der Su <e870252314@gmail.com>
jimthompson5802 pushed a commit to jimthompson5802/ray that referenced this pull request Sep 12, 2023
…ect#39319)

Updates the documentation for the first stage of rolling out the new `DeploymentHandle` API:

- The new types have been added to the API reference with docstrings.
- The docstrings for the existing handle types have been updated to prod people to use the new API.
- I've added a `note` to the model composition guide and the API ref describing the changes.
- The model composition guide has been updated to describe the new `DeploymentHandle` (including streaming support) vs. the old ones.
- All examples using handles are updated to opt into the new API via `handle.options(use_new_handle_api=True)`.

Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com>
Signed-off-by: Jim Thompson <jimthompson5802@gmail.com>
vymao pushed a commit to vymao/ray that referenced this pull request Oct 11, 2023
…ect#39319)

Updates the documentation for the first stage of rolling out the new `DeploymentHandle` API:

- The new types have been added to the API reference with docstrings.
- The docstrings for the existing handle types have been updated to prod people to use the new API.
- I've added a `note` to the model composition guide and the API ref describing the changes.
- The model composition guide has been updated to describe the new `DeploymentHandle` (including streaming support) vs. the old ones.
- All examples using handles are updated to opt into the new API via `handle.options(use_new_handle_api=True)`.

Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com>
Signed-off-by: Victor <vctr.y.m@example.com>
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.

5 participants