lazyTextPredict
lazyTextPredict copied to clipboard
fix CUDA memory issue for multiple runs
Running the code more than once leads to CUDA out of memory issues. Fix that
Used this link from the huggingface discussion to solve the issue.
If the execution is stopped mid-training, then the GPU memory stays occupied. At that point, a manual memory clean in required (for eg. restart runtime in Google colab)