-
Notifications
You must be signed in to change notification settings - Fork 399
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
GNN training on MAG240M hangs---slow loading of np.memmap #131
Comments
My guess is that you have multiple PyG versions installed. Try to run:
|
Thank you! This works for me. Now that it hangs like this:
I know it is supposed to be slow, but how much time it is supposed to take in this stage? Thanks, Xuhao |
Can you try to replace this line with |
You can also try running the following to see if numpy's memmap mode is fast enough in your enviroment. Sometimes, we found this is slow. import time
import torch
from ogb.lsc import MAG240MDataset
dataset = MAG240MDataset(ROOT_DIR)
x = dataset.paper_feat
idx1 = torch.randint(0, dataset.paper_feat.shape[0], (200, )).long().numpy()
idx2 = torch.randint(0, dataset.paper_feat.shape[0], (200, )).long().numpy()
t = time.perf_counter()
x[idx1]
print(time.perf_counter() - t)
t = time.perf_counter()
x[idx2]
print(time.perf_counter() - t) |
Got it! It runs now! Thanks! |
Hello,
I got this error when I was trying to run /ogb/examples/lsc/mag240m
I have installed PyTorch 1.8.0, pytorch_lightning-1.2.5 and also installed PyG: pip install git+https://github.com/rusty1s/pytorch_geometric.git
What am I missing here?
Thank you!
Xuhao Chen
http://people.csail.mit.edu/xchen/
The text was updated successfully, but these errors were encountered: