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

Sampling book SMC not running with latest Jax #743

Closed
jucor opened this issue Sep 30, 2024 · 2 comments
Closed

Sampling book SMC not running with latest Jax #743

jucor opened this issue Sep 30, 2024 · 2 comments

Comments

@jucor
Copy link

jucor commented Sep 30, 2024

Describe the issue as clearly as possible:

The sampling book Tuning inner kernel parameters of SMC does not run with the latest version of Jax, because it is not aware of the refactor of #657 .

Would it be possible to update it? (I'm trying to work my way through it, will update if I figure it out)

Steps/code to reproduce the bug:

Run the adaptation in https://blackjax-devs.github.io/sampling-book/algorithms/TemperedSMCWithOptimizedInnerKernel.html

Expected result:

For the notebook to run :)

Error message:

Starts with Cannot import inner_kernel_tuning, then when fixing the import we need to use the new callable methods that are implemented in issue #657



### Blackjax/JAX/jaxlib/Python version information:

```python
>>> import blackjax; blackjax.__version__
'1.2.3'
>>> import sys; sys.version
'3.12.4 | packaged by conda-forge | (main, Jun 17 2024, 10:13:44) [Clang 16.0.6 ]'
>>> import jax; jax.__version__
'0.4.31'
>>> import jaxlib; jaxlib.__version__
'0.4.31'

Context for the issue:

This makes it hard to jump into blackjax via the SMC examples.

@junpenglao
Copy link
Member

The sampling book is run against Blackjax main branch HEAD. I will cut a release to fix this.

@junpenglao
Copy link
Member

Should be fixed by https://github.com/blackjax-devs/blackjax/releases/tag/1.2.4 now - try reinstalling from pip and rerun the notebook.

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