Similar issue has been report also in #2015.
While I love the new cholesky decomposed covariance matrix in MvNormal, setting it as a default is numerical quite unstable:
if cov is not None:
self.chol_cov = tt.slinalg.cholesky(tt.as_tensor_variable(cov))
elif tau is not None:
self.chol_tau = tt.slinalg.cholesky(tt.as_tensor_variable(tau))
else:
self.chol_cov = tt.as_tensor_variable(chol)
I have a few simulation parameterized on cov used to work fine, they now returns error during the calling of tt.slinalg.cholesky quite often.
Maybe we should use QR decomposition and reconstruct the cholesky factor? It should be more stable.