-
Notifications
You must be signed in to change notification settings - Fork 310
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
Support Negative Sampling in pylibcugraph and cuGraph-PyG #4660
Support Negative Sampling in pylibcugraph and cuGraph-PyG #4660
Conversation
…to pyg-linkpred
…to pyg-linkpred
… into pyg-linkpred
…ugraph into pyg-neg-sampling
… into pyg-linkpred
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.
Approving C API updates.
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.
I'm not familiar with this code and the PR is quite large, but I didn't see anything that jumped out as a problem. I did have one question/suggestion though which need not hold up approval.
# Ensures that a CUDA context is not created on import of rapids. | ||
# Allows pytorch to create the context instead | ||
os.environ["RAPIDS_NO_INITIALIZE"] = "1" |
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.
I'm assuming you tested this but I'm surprised this works since it comes after various cugraph imports above. Would it be safer to move up, in case something in cugraph is refactored to pull in a module that creates a CUDA context?
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.
You're right, this got pulled in from a similar file and ended up in the wrong place. I'll change it.
This PR includes the other PRs (in-memory sampling, link prediction) which is why there are a lot of changes. But if you've reviewed everything we could merge this in place of the other ones. |
/merge |
4dfd3b3
into
rapidsai:branch-24.10
Buffered in-memory sampling in cuGraph-PyG, link prediction in cuGraph-PyG, and negative sampling in cuGraph-PyG (rapidsai/cugraph#4660)
Adds support for negative sampling in
pylibcugraph
andcugraph-pyg
.Closes rapidsai/cugraph-gnn#39
Merge after #4641