hahnyuan/PTQ4ViT

Are the quantized models differentiable

SwapnilDreams100 opened this issue · 2 comments

Hi,
Are the quantized models differentiable(i.e. can we get gradients using backprop using these) or is it not possible due to actual INT8 quantization? Pl reply ASAP

The quantized models are not differentiable. We use round_() in pytorch to quantize, and it blocks gradients from backpropagation.

Got it thanks