Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PySNIP

Unofficial implementation of SNIP (ICLR 19) in PyTorch. SNIP is a single shot neural network prunning technique which prunes the network before training based on sensitivity of connections of the randomly initialized weights.

Usage

from snip_prunner import Prunner
from model import my_model
from loss_func import my_loss

prunner = Prunner(my_model, my_loss, train_dataloader)
prunned_model, masks = prunner.prun(compression_factor=0.9, num_batch_sampling=1)

"""
Now continue training prunned_model 
as you would do in normal setup
"""

Refer test_mnist.ipynb for experiments on MNIST

MNIST Results

Parameters / Batches 1 10
90% 97.74 97.70
75% 97.79 97.79
50% 97.74 97.67
10% 96.69 96.69
2% 93.01 93.69

ToDo

Run experiments using ResNet Model on CIFAR 10

Paper

SNIP

About

Single shot neural network pruning before training the model, based on connection sensitivity

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.