Repository navigation
[Data/AIR] Move TensorExtension to ray.air for use in other packages - #25517
Conversation
|
Can we move this to |
|
Sure I can make the change. My initial understanding was that these extensions are useful for general data related things, not specifically for ML use cases. |
|
How do we deal with conditional import/dependency here? Is pyarrow and pandas a core dep for Ray AIR? In the context of Serve, should we depend on all Ray AIR dependencies as well? |
|
@simon-mo As long as consumers of the tensor extension type dynamically import it as-needed, those consumers (Datasets, AIR, Serve) can still have Pandas/Arrow as an optional dependency. |
TensorExtension to ray.util for use in other packagesTensorExtension to ray.util for use in other packages
|
I just merged a PR moving air.utils to air.util, could you make that change here too? |
|
Updated @ericl |
ericl
left a comment
There was a problem hiding this comment.
Can you grep the docs and other code for references to this? Those + tests should be fixed.
It might be better to just not move it actually, what's the original motivation? It's fine to have a dependency on dataset package.
Serve & standalone predictors will be using this too. We don't want a dataset dependency for those right? cc @simon-mo. With the final package structure any common ml utils will be in |
TensorExtension to ray.util for use in other packagesTensorExtension to ray.air for use in other packages
|
AIR ingest doc code and Datasets tests are failing, it looks like there's still one or more spots where we need to change |
…ges (ray-project#25517) Moves Tensor extensions to ray.air to facilitate their use in other Ray libraries (AIR, Serve).
Implements conversion utilities and a default predict implementation for Predictor. Depends on #25517
Implements conversion utilities and a default predict implementation for Predictor. Depends on ray-project#25517
Moves Tensor extensions to
ray.airto facilitate their use in other Ray libraries (AIR, Serve).Why are these changes needed?
Related issue number
Checks
scripts/format.shto lint the changes in this PR.