PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
https://paddlepaddle.github.io/PaddleOCR/
Apache License 2.0
44.2k stars 7.82k forks source link

Out of GPU memory on training KIE destillation #8052

Closed rubensanchezrivero closed 2 years ago

rubensanchezrivero commented 2 years ago

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem

Out of memory error on GPU 0. Cannot allocate 7.473707GB memory on GPU 0, 5.299316GB memory has been allocated and available memory is only 717.000000MB.

Please check whether there is any other process using GPU 0.

If yes, please stop them, or start PaddlePaddle on another GPU. If no, please decrease the batch size of your model. (at ..\paddle\fluid\memory\allocation\cuda_allocator.cc:87) . (at ..\paddle\fluid\imperative\tracer.cc:307)

Im trying to train KIE with knowledge destillation, but it throws me out of memory i have 6gb of vram on my 3060, i am using cuda 10.2 with cudnn 8.4, my paddle version is 2.3.2. I also drop the batches size to 1 as you can see in the config, is there any way i can do to train this model i would really appreciate any info. thanks in advance.

an1018 commented 2 years ago

KIE is a high-memory task that requires more memory, you can try train this model on another machine with more memory

rubensanchezrivero commented 2 years ago

ok then