Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyTorch Pruning

Introduction

PyTorch pruning example for ResNet. ResNet18 pre-trained on CIFAR-10 dataset maintains the same prediction accuracy with 50x compression after pruning.

Usages

Build Docker Image

$ docker build -f docker/pytorch.Dockerfile --no-cache --tag=pytorch:1.13.0 .

Run Docker Container

$ docker run -it --rm --gpus device=0 -v $(pwd):/mnt pytorch:1.13.0

Run Pre-Training

$ python pretrain.py

Run Pruning

$ python prune.py

References

About

PyTorch Pruning Example

Topics

Resources

Stars

53 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages