Skip to content

BUG: ADVI calculation is ~4x slower after 5.9.1 #7042

Closed
pymc-devs/pytensor
#532
@erik-werner

Description

@erik-werner

Describe the issue:

When I run the notebook pymc_examples/case_studies/factor_analysis.ipynb the ADVI calculation trace_vi = pm.fit(n=50000, method="fullrank_advi", obj_n_mc=1).sample() (just before the "Results" section) is very slow on recent versions of PyMC. For versions 5.9.1 and later this step takes ~4 min, compared to ~1 min for 5.9.0.

Reproduceable code example:

Let me know if you want me to try to make a self-contained MRE, or if the notebook reference is enough.

PyMC version information:

conda create -y -n pymc_5.9.1 "pymc==5.9.1" using Miniforge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions