ATMC icon indicating copy to clipboard operation
ATMC copied to clipboard

Do you have saved models available?

Open admk opened this issue 5 years ago • 2 comments

Could you provide us with saved models?

Thanks!

admk avatar Nov 05 '20 08:11 admk

Our pretrained ATMC 8bit models are available at https://drive.google.com/drive/folders/1HDGkz8BKQGn6SFRPzaTt13hFOC8JbtUD?usp=sharing

The files are names as quant_closest_<dataset>_atmc_<cr>.pth. For example, the file quant_closest_svhn_atmc_0.005.pth is the ATMC 8-bit model on SVHN dataset with 0.005 compression ratio (0.5% non-zero model parameters).

You can evaluated them using {dataset}/inference_model.py. For example, use the following command to evaluate robustness against PGD attacks with eps=4 (controlled by attack_eps parameter) and iter=7 (controlled by attack_iter parameter) on SVHN dataset. (Set loaddir and data_root as proper file paths on your own machine.)

python svhn/inference_model.py --gpu 0 --loaddir /ckpt/root/path/svhn/atmc_8 --model_name svhn_atmc_0.1.pth --prefix_name quant_closest_ --data_root /data/root/path/svhn --attack_algo pgd --attack_eps 4 --attack_iter 7 --prune_algo l0proj --prune_ratio 0.1 --quantize_algo kmeans_nnz_fixed_0_center --quantize_bits 8 --exp_logger svhn_atmc_8.txt --abc_special --abc_initialize

htwang14 avatar Nov 05 '20 23:11 htwang14

Sorry my question wasn't specific enough, do you have CIFAR-10 & MNIST models? Thank you!

admk avatar Nov 06 '20 02:11 admk