**Your question** How to release the model and optimizer memory manually? **What I have tried** - set zero_grad() method - set None method - del method - gc.collect() - torch.cuda.empty_cached() But the ways above are not worked, please help, thanks!