Thanks for the example!
However according to this file 8 float_qparams_weight_only_qconfig is part of torch.quantization. With pytorch 1.7.1 CPU version  torch.quantization.float_qparams_weight_only_qconfig cannot be imported!
Is this configuration not published yet?