Thanks @mrshenli using _transports=["uv"] solved the problem.
Similar to setting os.environ["CUDA_VISIBLE_DEVICES"] = "" I tried setting the option devices=["cpu"]  but as you noted it resulted in the following error:
ValueError: `set_devices` expect a list of CUDA devices, but got device type cpu.