Nonparametric Inference under B-bits Quantization