Skip to content

Decrease GPU memory usage#14

Open
Barbany wants to merge 1 commit intowenbin-lin:mainfrom
Barbany:main
Open

Decrease GPU memory usage#14
Barbany wants to merge 1 commit intowenbin-lin:mainfrom
Barbany:main

Conversation

@Barbany
Copy link

@Barbany Barbany commented Nov 11, 2022

There were issues regarding the high memory usage. I couldn't run the demo myself due to CUDA out-of-memory errors.

The solution is to avoid computing gradients at the forward step. As it was before, the gradients accumulate at each iteration since they are not used. This results in linearly increasing memory usage to store unnecessary tensors.

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

Successfully merging this pull request may close these issues.

1 participant