Skip to content
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

[Doc] Fix Title of the Transformers GLUE example #39605

Merged
merged 5 commits into from
Sep 13, 2023

Conversation

woshiyyya
Copy link
Member

@woshiyyya woshiyyya commented Sep 12, 2023

Why are these changes needed?

Fix the title of the GLUE example, also added missing ray.data imports.

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: woshiyyya <[email protected]>
Signed-off-by: woshiyyya <[email protected]>
Signed-off-by: woshiyyya <[email protected]>
@@ -19,6 +19,7 @@
set_seed,
)

import ray.data
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the example not work without this?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ray Data has a lazy import defined here, but I've never really understood if this should be something done by all libraries, no libraries, or some libraries.

Copy link
Member Author

@woshiyyya woshiyyya Sep 12, 2023

Choose a reason for hiding this comment

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

I've tried that after we import ray.train, we can freely call any methods of ray.data. Probably because we imported ray data in ray train.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ray Data can be accessed after import ray directly. Examples here

Copy link
Member Author

Choose a reason for hiding this comment

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

oh that makes sense now. Ray train import ray, then ray.data is lazily imported.

@matthewdeng matthewdeng merged commit b00d029 into ray-project:master Sep 13, 2023
45 checks passed
angelinalg pushed a commit to angelinalg/ray that referenced this pull request Sep 14, 2023
GeneDer pushed a commit that referenced this pull request Sep 14, 2023
* [Doc] Fix Title of the Transformers GLUE example (#39605)

Signed-off-by: woshiyyya <[email protected]>

* [docs][train]Make Train example titles, heading more consistent (#39606)

Signed-off-by: angelinalg <[email protected]>
Co-authored-by: Yunxuan Xiao <[email protected]>
Co-authored-by: matthewdeng <[email protected]>

* [docs][clusters] Change title of RayService doc to Deploy Ray Serve Apps (#39641)

Signed-off-by: angelinalg <[email protected]>

---------

Signed-off-by: woshiyyya <[email protected]>
Signed-off-by: angelinalg <[email protected]>
Co-authored-by: Yunxuan Xiao <[email protected]>
Co-authored-by: Yunxuan Xiao <[email protected]>
Co-authored-by: matthewdeng <[email protected]>
simonsays1980 pushed a commit to simonsays1980/ray that referenced this pull request Sep 15, 2023
vymao pushed a commit to vymao/ray that referenced this pull request Oct 11, 2023
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.

None yet

3 participants