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

adds a dask_on_ray tutorial #225

Merged
merged 2 commits into from
Sep 11, 2023
Merged

adds a dask_on_ray tutorial #225

merged 2 commits into from
Sep 11, 2023

Conversation

dougbrn
Copy link
Collaborator

@dougbrn dougbrn commented Sep 11, 2023

Adds a tutorial on using dask_on_ray with the Ensemble. No code changes are needed to TAPE itself to work with this.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@dougbrn dougbrn requested a review from hombit September 11, 2023 20:22
@@ -0,0 +1,115 @@
{
Copy link
Member

@nevencaplar nevencaplar Sep 11, 2023

Choose a reason for hiding this comment

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

At least for me, trying to recreate this workflow, this does not produce anything. Maybe Kostya can say if the same happens for him?


Reply via ReviewNB

Copy link
Contributor

Choose a reason for hiding this comment

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

I see 127.0.0.1:8265

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It also doesn't seem to produce anything in the readthedocs build

@@ -0,0 +1,115 @@
{
Copy link
Member

@nevencaplar nevencaplar Sep 11, 2023

Choose a reason for hiding this comment

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

I believe it would be valuable to add a sentence or two about use of the explicit optionsuse_map=False here


Reply via ReviewNB

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Would adding a comment inline be sufficient? We have a section on this in the docs here: https://tape.readthedocs.io/en/latest/tutorials/scaling_to_large_data.html#Data-Partitioning-and-Parallelization

Copy link
Member

@nevencaplar nevencaplar Sep 12, 2023

Choose a reason for hiding this comment

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

Comment inline and/or mentioning that it is elaborated more elsewhere

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Inline comment was added

@@ -0,0 +1,115 @@
{
Copy link
Contributor

@hombit hombit Sep 11, 2023

Choose a reason for hiding this comment

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

Since this tutorial is short, it allows us adding comparison between Dask and Ray. Something like this:

One cell

%%time
ens = Ensemble()
ens.from_dataset("s82_qso")
ens._source = ens._source.repartition(npartitions=10)
ens.batch(calc_sf2, use_map=False)

Next cell

%%time
ens = Ensemble(client=False)
ens.from_dataset("s82_qso")
ens._source = ens._source.repartition(npartitions=10)
ens.batch(calc_sf2, use_map=False)


Reply via ReviewNB

@hombit hombit self-requested a review September 11, 2023 21:44
Copy link
Contributor

@hombit hombit left a comment

Choose a reason for hiding this comment

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

It is great, thank you!

@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (c00341b) 92.57% compared to head (aca0477) 92.57%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #225   +/-   ##
=======================================
  Coverage   92.57%   92.57%           
=======================================
  Files          22       22           
  Lines        1132     1132           
=======================================
  Hits         1048     1048           
  Misses         84       84           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dougbrn dougbrn merged commit c573108 into main Sep 11, 2023
9 checks passed
@dougbrn dougbrn mentioned this pull request Sep 11, 2023
@dougbrn dougbrn deleted the ray_tutorial branch December 11, 2023 19:27
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.

3 participants