Sampling in parallel when a model reads outputs from the file

Hi @michaelosthege, thanks for your previous reply. I met the similar question so I check this thread.

Can you elaborate how to get the chain id in the Pymc and pass this id number to my own likelihood function? My likelihood function has multiple input and output files labeled with the numbers, so now I only need to pass the chain number to the likelihood, so I can run pymc sampling in parallel. Otherwise, I can only run it sequentially, which is slow.

Best,
Yurui