Limiting the number of cores/threads used in PyMC5.6+

You can try MKL_NUM_THREADS instead