Hi Michael,
Thanks for sharing threading with me.
I added these print statements inside my_model.
print(threading.get_ident())
print(threading.get_native_id())
unfortunately, the numbers are the same.
Multiprocess sampling (2 chains in 2 jobs)
CompoundStep >Slice: [m] >Slice: [c]
4643362304
667510
4643362304
667510
I was thinking about generating a random number and creating a folder corresponding to that random number. Then each process would run in its designated folder. (I just need to make sure that random numbers are unique).