pymc-devs / pymc

Bayesian Modeling and Probabilistic Programming in Python
https://docs.pymc.io/
Other
8.72k stars 2.02k forks source link

pymc just dies with no error message #7038

Open beew opened 11 months ago

beew commented 11 months ago

Describe the issue:

Working through some examples and done some tests. In some cases pymc just stops without any error message.

Reproduceable code example:

for examples running the example notebooks/pymc/examples/variational_inference/GLM-hierarchical-advi-minibatch.ipynb from https://github.com/pymc-devs/pymc-examples

The last step just ends without any error. There is a * on the jupyter notbook but top shows that python is not running

Multiprocess sampling (4 chains in 4 jobs)
NUTS: [mu_alpha, sigma_alpha, mu_beta, sigma_beta, alpha, beta, eps]

 0.00% [0/12000 00:00<? Sampling 4 chains, 0 divergences] 

Another example is from the testsuite

running

pytest -v tests/smc

The process just die at

test_smc.py::TestMHKernel::test_normal_model 

No hanging, no error messages.

PyMC version information:

Ubuntu 22.04, python 3.10.9, pymc 5.8.2.

welcome[bot] commented 11 months ago

Welcome Banner :tada: Welcome to PyMC! :tada: We're really excited to have your input into the project! :sparkling_heart:
If you haven't done so already, please make sure you check out our Contributing Guidelines and Code of Conduct.

ricardoV94 commented 11 months ago

Sampling with a single chain can help seeing the errors some times.

twiecki commented 11 months ago

Did you install using conda/mamba?

beew commented 11 months ago

Did you install using conda/mamba?

Installed with pip