Skip to content
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

RuntimeError: unique_by_key: failed to synchronize: cudaErrorIllegalAddress: an illegal memory access was encountered #391

Open
XJL0930 opened this issue Apr 20, 2023 · 1 comment

Comments

@XJL0930
Copy link

XJL0930 commented Apr 20, 2023

Has anyone else had this problem when run "python train_transe_FB15K237.py"?

@yierhoho
Copy link

yierhoho commented May 5, 2023

I have encountered the same problem. If the code reports an error in the first epoch, then you may not have set the batch_size properly. Try this in train_transe_FB15K237.py

dataloader for training

train_dataloader = TrainDataLoader(
in_path = "./benchmarks/FB15K237/",
nbatches = 10,
threads = 8,
sampling_mode = "normal",
bern_flag = 1,
filter_flag = 1,
neg_ent = 25,
neg_rel = 0,
batch_size=16)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants