How to increase the memory of Docker on Windows PC

edited November 2021 in AI Model migration

Kneron Toolchain is running on docker environment. And some processes cost many resources on your PC. If the memory of docker is not enough, you will encounter some error or exception during the process.


For WSL2, please refer the folling link to set memory limit.

https://ryanharrison.co.uk/2021/05/13/wsl2-better-managing-system-resources.html#:~:text=1%20Setting%20a%20WSL2%20Memory%20Limit.%20By%20default,the%20WSL2%20Virtual%20Disk.%20...%204%20Docker.%20


And here is the steps of memory setting with "Docker Toolbox":

  • Open the VirtualBox
  • Check the system status
  • shutdown virtualbox


  • set the size of memory


  • set the thread number of cpu

To run with Kneron Toolchain, it's recommended to increase RAM over 4GB, and the actually required size depends on your model size and image number of quantization.

Tagged:
Sign In or Register to comment.