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

How to speed up the loop in build_with_representer_proxy_batch #1

Open
pipilurj opened this issue Nov 1, 2021 · 1 comment
Open

Comments

@pipilurj
Copy link

pipilurj commented Nov 1, 2021

Hi, thank you very much for providing the code! I've installed jax with CUDA, so now solving the kernel_fn is faster. However, the build_with_representer_proxy_batch is still quite slow, I assume it is due to the solve_bilevel_opt_representer_proxy, which requires calculating the implicit gradient, or is it because of something else? Is there a way to make the computation faster? Thank you!

@zalanborsos
Copy link
Owner

For speeding up build_with_representer_proxy_batch, one could set max_outer_it and max_inner_it to smaller values. However, the representer proxy is only practical for small coresets (< 500) due to its complexity; for larger coresets, I would recommend the Nystrom proxy (build_with_nystrom_proxy and setting nr_presampled_transforms=1 if no data augmentation is used).

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