zjunlp/Relphormer

Entity Embedding Initialization

mqEpiphany opened this issue · 6 comments

Hello, I found the following error while performing entity embedding initialization, how can I change the code?
image

Hello, you can try to run the python file with single GPU

I only have one gpu

Is your CUDA available in the current python interpreter setting?
you can check by the code, torch.cuda.is_available()

Hi, I think this problem might be caused by the inaccurate use of the cuda device.
You can first check the pytorch_lightning package version and then make sure the correct use of cuda id.

Thanks for your help, I have solved this problem by modifying the code of transformers/tokenization utils base.py