Python package for differentiable re-basin
Project description
Re-basin via implicit Sinkhorn differentiation
Implementation of paper Re-basin via implicit Sinkhorn differentiation (Accepted at CVPR 2023).
Installation
pip install sinkhorn-rebasin
Running the examples
Basics | |
Models alignment | |
Linear mode connectivity |
Models alignment
cd examples
python main_alignment_{mlp|cnn|resnet}.py
Example | Layer from $\theta_A$ | Layer from $\pi_{\mathcal{P}}(\theta_A)$ | Layer from $\theta_B$ |
---|---|---|---|
MLP | |||
VGG | |||
ResNet18 |
Linear mode connectivity
cd examples
python main_lmc_{mlp|cnn|resnet}.py
Dataset | Model | Accuracy LMC | Cross Entropy Loss LMC |
---|---|---|---|
Mnist | MLP | ||
Mnist | VGG | ||
Imagenette-320 | ResNet18 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file sinkhorn_rebasin-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: sinkhorn_rebasin-0.0.2-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bffd8d6c15487a289745bfe89727a52fbc0c6f21ab07a4aebe89074897695983 |
|
MD5 | 3f27860c2986473ea5563da5a3f1af75 |
|
BLAKE2b-256 | 0541fdb4cb7162cf3bed3d046697018f4526bf12fe51c25f1a6ff3091e315fcb |