cnn-quantization icon indicating copy to clipboard operation
cnn-quantization copied to clipboard

Q4Q4 post-train Resnet-50 cannot get accuracy 73.3.

Open haichaoyu opened this issue 5 years ago • 2 comments

Hello,

Thanks for the great codebase. I tried Experiment W4A4 + ACIQ + Bit Alloc(A) + Bit Alloc(W) + Bias correction by python inference/inference_sim.py -a resnet50 -b 512 -pcq_w -pcq_a -sh --qtype int4 -qw int4 -c laplace -baa -baw -bcw but only get accuracy 71.6. Is there any particular setting that should be followed? Thanks.

My environment: Pytorch 1.3 Torchvision 0.4.2

haichaoyu avatar Feb 26 '20 07:02 haichaoyu

Hi @ynahshan, any advice? Thanks.

haichaoyu avatar Nov 08 '20 20:11 haichaoyu

I got the same results here. Reproducing using explicit commands: 4A4W naive: 63.68% 4A4W ACIQ + Bias Correction + BitAlloc (weights + acts): 71.72%

nfrumkin avatar Jun 28 '22 15:06 nfrumkin