Skip to content
Discussion options

You must be logged in to vote

You could use automatic mixed precision (AMP) to reduce memory usage allowing for a larger actual batchsize on the gpu. If that's still not enough consider implementing gradient accumulation to increase your effective batchsize (accumulating gradients over multiple batches and updating weights after a specific number of batches).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stijndebeer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant