Unable to parameterize lag parameter

Exactly. It’s the same as if you set u = np.random.randint(...), it’s just a constant as far as PyMC is aware