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

Investigate the use of optree for structured parameter sets #470

Open
dfm opened this issue Jun 6, 2023 · 0 comments
Open

Investigate the use of optree for structured parameter sets #470

dfm opened this issue Jun 6, 2023 · 0 comments

Comments

@dfm
Copy link
Owner

dfm commented Jun 6, 2023

I recently discovered the optree library designed for efficient operations on nested Python data structures (à la JAX Pytrees). It's possible to build a model wrapper that is significantly more flexible than the current named parameters and the performance seems good. This could be fun to play around with! Here's a demo: https://gist.github.com/dfm/9b902c659d728e11e3b48a37aa6990ad

/cc @zachjweiner

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