-
Notifications
You must be signed in to change notification settings - Fork 908
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
Prevent PyDataFrame
serialization
#17364
Draft
pentschev
wants to merge
51
commits into
rapidsai:branch-25.02
Choose a base branch
from
pentschev:prevent-pydataframe-serialization
base: branch-25.02
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Prevent PyDataFrame
serialization
#17364
pentschev
wants to merge
51
commits into
rapidsai:branch-25.02
from
pentschev:prevent-pydataframe-serialization
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…to cudf-polars-dask-simple
…cudf-polars-dask-simple
Co-authored-by: Lawrence Mitchell <wence@gmx.li>
…cudf-polars-dask-simple
This is a prototype implementation of rapidsai/build-infra#139 The work that this builds on: * rapidsai/gha-tools#118, which adds a shell wrapper that automatically creates spans for the commands that it wraps. It also uses the `opentelemetry-instrument` command to set up monkeypatching for supported Python libraries, if the command is python-based * https://github.com/rapidsai/shared-workflows/tree/add-telemetry, which installs the gha-tools work from above and sets necessary environment variables. This is only done for the conda-cpp-build.yaml shared workflow at the time of submitting this PR. The goal of this PR is to observe telemetry data sent from a GitHub Actions build triggered by this PR as a proof of concept. Once it all works, the remaining work is: * merge rapidsai/gha-tools#118 * Move the opentelemetry-related install stuff in https://github.com/rapidsai/shared-workflows/compare/add-telemetry?expand=1#diff-ca6188672785b5d214aaac2bf77ce0528a48481b2a16b35aeb78ea877b2567bcR118-R125 into https://github.com/rapidsai/ci-imgs, and rebuild ci-imgs * expand coverage to other shared workflows * Incorporate the changes from this PR to other jobs and to other repos Authors: - Mike Sarahan (https://github.com/msarahan) Approvers: - Bradley Dice (https://github.com/bdice) URL: rapidsai#16924
Updates cmake to 3.28.6 in the JNI Dockerfile used to build the cudf jar. This helps avoid a bug in older cmake where FindCUDAToolkit can fail to find cufile libraries. Authors: - Jason Lowe (https://github.com/jlowe) Approvers: - Nghia Truong (https://github.com/ttnghia) - Gera Shegalov (https://github.com/gerashegalov) URL: rapidsai#17342
Apart of rapidsai#15162 Authors: - Matthew Murray (https://github.com/Matt711) Approvers: - Lawrence Mitchell (https://github.com/wence-) URL: rapidsai#17246
pentschev
added
feature request
New feature or request
2 - In Progress
Currently a work in progress
non-breaking
Non-breaking change
cudf.polars
Issues specific to cudf.polars
labels
Nov 19, 2024
github-actions
bot
added
Java
Affects Java cuDF API.
pylibcudf
Issues specific to the pylibcudf package
labels
Nov 19, 2024
rjzamora
reviewed
Nov 19, 2024
Comment on lines
-732
to
+739
pdf = pl.DataFrame._from_pydf(df) | ||
df = DataFrame.from_polars(df) | ||
if projection is not None: | ||
pdf = pdf.select(projection) | ||
df = DataFrame.from_polars(pdf) | ||
df = df.select(projection) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were previously applying the column projection before converting from CPU to GPU. Now we are immediately moving everything to GPU, and then applying the column projection. I think we want this to be something like:
if projection is not None:
df = df.select(projection)
df = DataFrame.from_polars(df)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
2 - In Progress
Currently a work in progress
cudf.polars
Issues specific to cudf.polars
feature request
New feature or request
Java
Affects Java cuDF API.
non-breaking
Non-breaking change
pylibcudf
Issues specific to the pylibcudf package
Python
Affects Python cuDF API.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Prevent
PyDataFrame
serialization and enable Distributed scheduler if available.This includes changes from #17262 and thus requires it to be merged first, also depends on changes from #17352 .
Checklist