Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't pickle local object with multi-processing #102

Closed
darinadaly opened this issue Jun 9, 2020 · 1 comment
Closed

Can't pickle local object with multi-processing #102

darinadaly opened this issue Jun 9, 2020 · 1 comment

Comments

@darinadaly
Copy link

I was able to run the cell with chains=1 but not 4.

with model:
    trace = xo.sample(
        tune=3500,
        draws=3000,
        start=map_soln,
        chains=1,
        initial_accept=0.8,
        target_accept=0.95,
    )

With chains=4, I got AttributeError: Can't pickle local object 'build_model.<locals>.model_lc'
How can I work around this without having to wait a long time with chains=1?

@dfm
Copy link
Member

dfm commented Jun 9, 2020

If you're on Mac, this is the relevant issue: pymc-devs/pymc#3844

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants