OpenKE icon indicating copy to clipboard operation
OpenKE copied to clipboard

Improvement can be made on optimizing GPU memory occupation

Open OUTHIM opened this issue 3 years ago • 1 comments

Some variables can be deleted to optimize GPU memory use. For example, in the implementation of TransR, since the parameters pretrained on TransE are set to TransR, the tensors occupied by TransE can be released by deleting the TransE model and cleaning CUDA cache. According to my test, this can save significant GPU memory space when it comes to large datasets.

OUTHIM avatar Jul 25 '22 10:07 OUTHIM

Some variables can be deleted to optimize GPU memory use. For example, in the implementation of TransR, since the parameters pretrained on TransE are set to TransR, the tensors occupied by TransE can be released by deleting the TransE model and cleaning CUDA cache. According to my test, this can save significant GPU memory space when it comes to large datasets.

Hey, I think we can communicate with openKE, the author doesn't reply for a long time, my qq is 1575797665

YijianLiu avatar Oct 08 '22 02:10 YijianLiu