embedding manual control location CPU vs GPU #6726
Answered
by
carmocca
johngrabner
asked this question in
DDP / multi-GPU / multi-node
-
I would like to create an embedding that does not fit in the GPU memory Select the subset for a batch, send it to the GPU at the start of mini-batch. GPU_tensor = embedding(idx) Then at the end of training update the CPU embedding from the GPU embedding. I am using and probably will need accumulate_grad_batches Any idea for how to do this ? |
Beta Was this translation helpful? Give feedback.
Answered by
carmocca
Apr 20, 2021
Replies: 1 comment
-
Duplicate of #6725 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
carmocca
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Duplicate of #6725