Paulescu / hands-on-train-and-deploy-ml

Train and Deploy an ML REST API to predict crypto prices, in 10 steps
https://www.realworldml.net/subscribe
MIT License
759 stars 131 forks source link

Ensure code executes without memory limit dependency for cerebuim #1

Open OGsiji opened 1 year ago

OGsiji commented 1 year ago

This fixes the bug :

AssertionError: Memory must be at most 4 times the number of CPUs for CPU deployments.
make: *** [deploy] Error 1

Basically you can check your number of cpu here and ultimately calculate the memory size e.g if number of cpu = 2 --Your memory size should not be more than 2 *4 = 8.

Paulescu commented 1 year ago

Hi @OGsiji! Thanks a lot for the pull request. I am currently on holidays, and will be back to work on October 2nd. As soon as I am back, I will review and merge changes. Pau