Unable to Import Pymc, error: No module names ‘pytensor.graph.replace’

I think you can/should now use the Interval transform (details here). Let me know if that doesn’t get you what you need.