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

Add a distillation experiment #44

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open

Conversation

pierreablin
Copy link
Collaborator

This adds a distillation experiment, where the inner problem is training a nn on some samples; those samples are the outer variable, and the outer problem is validation on mnist.

Every algorithm needs to be changed to work with pytrees; I only did it for soba thus far.

@pierreablin
Copy link
Collaborator Author

We should rather use https://jax.readthedocs.io/en/latest/_autosummary/jax.flatten_util.ravel_pytree.html to flatten every pytree instead of rewriting all algorithms.

@pierreablin
Copy link
Collaborator Author

Note: this is a WIP!

@MatDag
Copy link
Collaborator

MatDag commented Jul 23, 2024

I just made the solvers work with PyTrees but I missed #44 (comment) 🫠

datasets/distillation.py Outdated Show resolved Hide resolved
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.

3 participants