When using MPS, the GPU memory is enough, but CUDA shows that out of memory

I execute the inference in the Machine P100 with 16000M GPU memory. When using the MPS and the process is 8, everything is ok. But when the inference process is 9 with an occupation of 6000M GPU memory, CUDA shows error, out of memory.
Many Thanks !!!