pytorch_geometric icon indicating copy to clipboard operation
pytorch_geometric copied to clipboard

Fix `.llm` import trigger of `.distributed` depr warning

Open puririshi98 opened this issue 4 months ago • 5 comments

puririshi98 avatar Oct 27 '25 20:10 puririshi98

I don't think that will prevent the warning since you still depend on torch_geometric.distributed.

im confused, where do you see the warning on your end. I tested importing pyg and dont see any warnings

Python 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch_geometric
>>> 

puririshi98 avatar Oct 28 '25 17:10 puririshi98

you don't see them since DeprecationWarnings are not shown by default. It is visible in pytest though.

rusty1s avatar Oct 28 '25 17:10 rusty1s

you don't see them since DeprecationWarnings are not shown by default. It is visible in pytest though.

is there a quick way to turn that on for interactive debugging?

puririshi98 avatar Oct 28 '25 17:10 puririshi98

just call the warning as warn("foo"), without the stacklevel and category.

rusty1s avatar Oct 28 '25 17:10 rusty1s

just call the warning as warn("foo"), without the stacklevel and category.

okay since we still use local graph/feature store i put the warnings where most would see them for initializing loaders because if your doing that you would probably benefit from using cugraph instead. hopefully this works for you. lmk if you recommend another way

puririshi98 avatar Oct 28 '25 21:10 puririshi98