Skip to content

Commit c57226b

Browse files
authored
Fix links for torchao tutorials (#2503)
Summary: att Test Plan: see generated docs in PR Reviewers: Subscribers: Tasks: Tags:
1 parent a6fb32f commit c57226b

File tree

4 files changed

+35
-9
lines changed

4 files changed

+35
-9
lines changed

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ for an overall introduction to the library and recent highlight and updates.
5555
tutorials_source/pt2e_quant_qat
5656
tutorials_source/pt2e_quant_x86_inductor
5757
tutorials_source/pt2e_quant_xpu_inductor
58+
tutorials_source/pt2e_quant_openvino_inductor
5859
tutorials_source/pt2e_quantizer
59-
tutorials_source/openvino_quantizer

docs/source/quick_start.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,16 +191,16 @@ Please follow these tutorials to get started on PyTorch 2 Export Quantization:
191191

192192
Modeling Users:
193193

194-
- `PyTorch 2 Export Post Training Quantization <https://docs.pytorch.org/ao/stable/tutorial_source/pt2e_quant_ptq.html>`_
195-
- `PyTorch 2 Export Quantization Aware Training <ttps://docs.pytorch.org/ao/stable/tutorial_source/pt2e_quant_qat.html>`_
196-
- `PyTorch 2 Export Post Training Quantization with X86 Backend through Inductor <https://docs.pytorch.org/ao/stable/tutorial_source/pt2e_quant_x86_inductor.html>`_
197-
- `PyTorch 2 Export Post Training Quantization with XPU Backend through Inductor <https://docs.pytorch.org/ao/stable/tutorial_source/pt2e_quant_xpu_inductor.html>`_
198-
- `PyTorch 2 Export Quantization for OpenVINO torch.compile Backend <https://docs.pytorch.org/ao/stable/tutorial_source/pt2e_quant_openvino.html>`_
194+
- `PyTorch 2 Export Post Training Quantization <tutorials_source/pt2e_quant_ptq.html>`__
195+
- `PyTorch 2 Export Quantization Aware Training <tutorials_source/pt2e_quant_qat.html>`__
196+
- `PyTorch 2 Export Post Training Quantization with X86 Backend through Inductor <tutorials_source/pt2e_quant_x86_inductor.html>`__
197+
- `PyTorch 2 Export Post Training Quantization with XPU Backend through Inductor <tutorials_source/pt2e_quant_xpu_inductor.html>`__
198+
- `PyTorch 2 Export Quantization for OpenVINO torch.compile Backend <tutorials_source/pt2e_quant_openvino_inductor.html>`__
199199

200200

201201
Backend Developers (please check out all Modeling Users docs as well):
202202

203-
- `How to Write a Quantizer for PyTorch 2 Export Quantization <https://docs.pytorch.org/ao/stable/tutorial_source/pt2e_quantizer.html>`_
203+
- `How to Write a Quantizer for PyTorch 2 Export Quantization <tutorials_source/pt2e_quantizer.html>`_
204204

205205

206206
Next Steps

docs/source/tutorials_source/pt2e_quant_xpu_inductor.rst

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,34 @@ The quantization flow has three steps:
3030

3131
The high-level architecture of this flow could look like this:
3232

33-
.. image:: ../_static/img/pt2e_quant_xpu_inductor.png
34-
:align: center
33+
::
34+
35+
float_model(Python) Example Input
36+
\ /
37+
\ /
38+
—--------------------------------------------------------
39+
| export |
40+
—--------------------------------------------------------
41+
|
42+
FX Graph in ATen
43+
| X86InductorQuantizer
44+
| /
45+
—--------------------------------------------------------
46+
| prepare_pt2e |
47+
| | |
48+
| Calibrate/Train |
49+
| | |
50+
| convert_pt2e |
51+
—--------------------------------------------------------
52+
|
53+
Quantized Model
54+
|
55+
—--------------------------------------------------------
56+
| Lower into Inductor |
57+
—--------------------------------------------------------
58+
|
59+
OneDNN kernels Triton Kernels
60+
3561

3662
Post Training Quantization
3763
----------------------------

0 commit comments

Comments
 (0)