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

Save the kernel parameters after warmup #98

Open
Tracked by #1
rlouf opened this issue Mar 10, 2021 · 0 comments
Open
Tracked by #1

Save the kernel parameters after warmup #98

rlouf opened this issue Mar 10, 2021 · 0 comments

Comments

@rlouf
Copy link
Owner

rlouf commented Mar 10, 2021

mcx/mcx/inference/hmc.py

Lines 198 to 205 in 2a2b948

parameters = HMCParameters(
jnp.ones(initial_state.position.shape[0], dtype=jnp.int32)
* num_integration_steps,
step_size,
inverse_mass_matrix,
)
return last_chain_state, parameters, warmup_chain

We currently pass the parameters directly to the runtime; While the values of the parameters are passed in the Trace object, it would be convenient to update the Kernel's parameter values.

@rlouf rlouf mentioned this issue Jul 29, 2021
14 tasks
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

1 participant