Skip to content

[Data][Docs] Revise Transforming data - #36162

Merged
amogkam merged 48 commits into
ray-project:masterfrom
bveeramani:transforming-data
Jun 8, 2023
Merged

amogkam merged 48 commits into
ray-project:masterfrom
bveeramani:transforming-data

Conversation

@bveeramani

@bveeramani bveeramani commented Jun 7, 2023 •

Copy link
Copy Markdown
Member

Why are these changes needed?

Transforming data is verbose. It also contains information that's irrelevant for most users (for example, the fact repartition is an all-to-all operation). This PR revises the guide for brevity and discoverability.

Related issue number

Checks

bveeramani and others added 30 commits November 21, 2022 21:00
Signed-off-by: Balaji Veeramani <[email protected]>
This reverts commit de05655.

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: Balaji Veeramani <[email protected]>

@ericl ericl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we still need to cover batch_size and the notion of partitioning somehow. These are the two knobs that users most often get wrong and are both critical for performance, so it is hard to avoid these topics.

@ericl

ericl commented Jun 7, 2023

Copy link
Copy Markdown
Contributor

Looks pretty good! One comment on ensuring we address performance tuning.

@amogkam amogkam left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm, thanks!

but +1 on not dropping the batch size configuration and repartitioning sections. In the repartitioning section, we should explicitly warn against using this unless necessary. And instead recommend to configure the parallelism as part of the read api.

Comment thread doc/source/data/transforming-data.rst Resolved
Comment thread doc/source/data/transforming-data.rst Resolved
@bveeramani bveeramani mentioned this pull request Jun 7, 2023
9 tasks
@bveeramani

Copy link
Copy Markdown
Member Author

In the repartitioning section, we should explicitly warn against using this unless necessary. And instead recommend to configure the parallelism as part of the read api.

@amogkam Wait, why do we prefer parallelism over repartition?

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: Balaji Veeramani <[email protected]>
@amogkam

amogkam commented Jun 8, 2023

Copy link
Copy Markdown
Contributor

@ericl can say more, but my understanding is that it essentially pushes the parallelism into the read operation. Instead of require an another repartition after.

@ericl

ericl commented Jun 8, 2023

Copy link
Copy Markdown
Contributor

Hmm I don't think we should recommend users set parallelism manually ever. The heuristic is pretty much always better than what users choose themselves.

However parallelism has one issue now where it cannot increase parallelism past the number of files. In this case, repartitioning is the only way you can actually increase the effective parallelism.

This is a bit unfortunate and I think we can fix this by auto repartitioning in these cases, but for now we probably still need to document repartitioning.

Signed-off-by: Balaji Veeramani <[email protected]>

@amogkam amogkam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice lgtm!

@bveeramani

bveeramani commented Jun 8, 2023 •

Copy link
Copy Markdown
Member Author

Failing doctest test is unrelated

______________________________ [doctest] faq.rst _______________________________
--
  | 082    gets propagated to all training workers.
  | 083
  | 084 .. testcode::
  | 085
  | 086     import ray
  | 087
  | 088     # Add this at the top of your Ray application.
  | 089     runtime_env = {"env_vars": {"NCCL_SOCKET_IFNAME": "ens5"}}
  | 090     ray.init(runtime_env=runtime_env, ignore_reinit_error=True)
  | 091
  | UNEXPECTED EXCEPTION: AttributeError("'NoneType' object has no attribute 'address_info'")
  | Traceback (most recent call last):
  | File "/opt/miniconda/lib/python3.7/site-packages/pytest_sphinx.py", line 457, in _DocTestRunner__run
  | test.globs,
  | File "<doctest faq.rst[0]>", line 5, in <module>
  | File "/ray/python/ray/_private/client_mode_hook.py", line 103, in wrapper
  | return func(*args, **kwargs)
  | File "/ray/python/ray/_private/worker.py", line 1529, in init
  | return RayContext(dict(_global_node.address_info, node_id=node_id.hex()))
  | AttributeError: 'NoneType' object has no attribute 'address_info'
  | faq.rst:91: UnexpectedException

@amogkam
amogkam merged commit 9e964df into ray-project:master Jun 8, 2023
@bveeramani
bveeramani deleted the transforming-data branch June 8, 2023 18:55
amogkam pushed a commit to amogkam/ray that referenced this pull request Jun 8, 2023
Transforming data is verbose. It also contains information that's irrelevant for most users (for example, the fact repartition is an all-to-all operation). This PR revises the guide for brevity and discoverability.

---------

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: amogkam <[email protected]>
amogkam added a commit that referenced this pull request Jun 9, 2023
#35749
#35751
#35753
#35755
#35757
#36018
#36105
#36121
#36144
#36145
#36162
#36124

---------

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: amogkam <[email protected]>
Signed-off-by: Amog Kamsetty <[email protected]>
Co-authored-by: Balaji Veeramani <[email protected]>
Co-authored-by: angelinalg <[email protected]>
Co-authored-by: Hao Chen <[email protected]>
amogkam added a commit to amogkam/ray that referenced this pull request Jun 9, 2023
amogkam added a commit that referenced this pull request Jun 9, 2023
* [Data] [Docs] Ray Data doc changes for 2.5 (#36224)

#35749
#35751
#35753
#35755
#35757
#36018
#36105
#36121
#36144
#36145
#36162
#36124

---------

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: amogkam <[email protected]>
Signed-off-by: Amog Kamsetty <[email protected]>
Co-authored-by: Balaji Veeramani <[email protected]>
Co-authored-by: angelinalg <[email protected]>
Co-authored-by: Hao Chen <[email protected]>
maxpumperla added a commit that referenced this pull request Jun 10, 2023
* [Data] [Docs] Ray Data doc changes for 2.5 (#36224)

#35749
#35751
#35753
#35755
#35757
#36018
#36105
#36121
#36144
#36145
#36162
#36124

---------

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: amogkam <[email protected]>
Signed-off-by: Amog Kamsetty <[email protected]>
Co-authored-by: Balaji Veeramani <[email protected]>
Co-authored-by: angelinalg <[email protected]>
Co-authored-by: Hao Chen <[email protected]>

* [docs] relax kapa loading scheme (#36201)

Signed-off-by: Max Pumperla <[email protected]>

* Revert "[Data] [Docs] Ray Data doc changes for 2.5 (#36224)"

This reverts commit 48a6c26.

---------

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: amogkam <[email protected]>
Signed-off-by: Amog Kamsetty <[email protected]>
Signed-off-by: Max Pumperla <[email protected]>
Co-authored-by: Amog Kamsetty <[email protected]>
Co-authored-by: Balaji Veeramani <[email protected]>
Co-authored-by: Hao Chen <[email protected]>
Co-authored-by: Max Pumperla <[email protected]>
arvind-chandra pushed a commit to lmco/ray that referenced this pull request Aug 31, 2023
Transforming data is verbose. It also contains information that's irrelevant for most users (for example, the fact repartition is an all-to-all operation). This PR revises the guide for brevity and discoverability.

---------

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: e428265 <[email protected]>
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.

4 participants