Practical overview
When it fits
Use it to examine or reproduce the documented VGGNet-on-CIFAR-10 channel-pruning workflow.
Who it is for
- Researchers studying neural-network pruning and model compression.
- Practitioners exploring a VGGNet compression workflow on CIFAR-10.
Documented uses
- Train a convolutional network with channel-level sparsity.
- Prune selected channels and convert the result into a compact network.
- Fine-tune the compact model.
Requirements & limits
The repository is public and MIT-licensed.
- The included example targets VGGNet on CIFAR-10.
- The implementation is Lua code based on fb.resnet.torch.
- The README points to separate implementations for PyTorch and Chainer; these are not this repository’s implementation.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Train, prune and fine-tune the VGG CIFAR-10 example
Follow the repository’s documented sequence for producing and fine-tuning a compact VGG model.
Before you start
- The repository’s Lua/Torch code and the
thcommand used in its examples. - The VGGNet-on-CIFAR-10 example and output directories described in the README.
Steps
Create
vgg_cifar10/and itspruned/,converted/andfine_tune/subdirectories.Train with channel-level sparsity using
th main.lua -netType vgg -save vgg_cifar10/ -S 0.0001.Prune channels with
th prune/prune.lua -percent 0.7 -model vgg_cifar10/model_160.t7 -save vgg_cifar10/pruned/model_160_0.7.t7.Convert the pruned model with
th convert/vgg.lua -model vgg_cifar10/pruned/model_160_0.7.t7 -save vgg_cifar10/converted/model_160_0.7.t7.Fine-tune with
th main_fine_tune.lua -retrain vgg_cifar10/converted/model_160_0.7.t7 -save vgg_cifar10/fine_tune/.
Expected outcome
The documented sequence trains a sparse VGG model, creates a compact converted model and fine-tunes it.
Guide limitations
- The README’s example is for VGGNet on CIFAR-10; it does not document this workflow for other architectures or datasets.
- The repository notes a bug in the original paper’s VGG ImageNet results in Table 2.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 8 November 2026
- Original website title
- liuzhuang13/slimming · Official homepage title · retained in its source language

