8000 Enable JAX persistent caching via `EconPizzaConfig` by shtopane · Pull Request #17 · gboehl/econpizza · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Enable JAX persistent caching via EconPizzaConfig #17

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

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

shtopane
Copy link
Contributor
  • Expose a configuration object to the end user with the option to enable persistent caching via JAX.
  • By default, the folder where the JAX files reside is called __jax_cache__ and is created in the user's working directory. This can be changed by the option jax_cache_folder.

Usage:

import econpizza as ep
ep.config.update("enable_jax_persistent_cache", True)

Optionally, change the name or destination of the caching folder:

import econpizza as ep
ep.config.update("jax_cache_folder", "example_folder")
ep.config.update("enable_jax_persistent_cache", True)

@gboehl
Copy link
Owner
gboehl commented Oct 11, 2024

Thank you!

@gboehl gboehl merged commit 958d700 into gboehl:master Oct 11, 2024
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants
0