Skip to content

Commit 17ad15a

Browse files
committed
refine
1 parent 640fa94 commit 17ad15a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

prototype_source/pt2e_quant_xpu_inductor.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ quantize the model.
103103

104104
The default quantization configuration in ``XPUInductorQuantizer`` uses signed 8-bits for both activations and weights. The tensors are per-tensor quantized, whereas the weights are signed 8-bit per-channel quantized.
105105

106-
In addition to the default quantization configuration using asymmetric quantized activation, signed 8-bits symmetric quantized activation is also supported, which has the potential to provide better performance.
106+
Optionally, in addition to the default quantization configuration using asymmetric quantized activation, signed 8-bits symmetric quantized activation is also supported, which has the potential to provide better performance.
107107

108108
::
109109

@@ -153,10 +153,7 @@ In addition to the default quantization configuration using asymmetric quantized
153153
)
154154
return quantization_config
155155

156-
Then, set the quantization configuration to the quantizer.
157-
158-
::
159-
156+
# Then, set the quantization configuration to the quantizer.
160157
quantizer = XPUInductorQuantizer()
161158
quantizer.set_global(get_xpu_inductor_symm_quantization_config())
162159

0 commit comments

Comments
 (0)