Skip to content

Commit 8730aa3

Browse files
committed
documentation
1 parent 71b5f84 commit 8730aa3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

_doc/cmds/validate.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,19 @@ Let's export with ONNX this time and checks for discrepancies.
100100

101101
main("validate -m arnir0/Tiny-LLM --run -v 1 --export onnx-dynamo -o dump_models --patch --opt ir".split())
102102

103+
Run onnxruntime fusions
104+
+++++++++++++++++++++++
105+
106+
This option runs `transformers optimizations <https://onnxruntime.ai/docs/performance/transformers-optimization.html>`_
107+
implemented in :epkg:`onnxruntime`. The list of supported ``model_type`` can be found in the documentation
108+
of function :func:`onnx_diagnostic.torch_models.test_helper.run_ort_fusion`.
109+
110+
.. code-block::
111+
112+
python -m onnx_diagnostic validate -m arnir0/Tiny-LLM --run -v 1 --export onnx-dynamo -o dump_models --patch --opt ir --ortfusiontype ALL
113+
114+
.. runpython::
115+
116+
from onnx_diagnostic._command_lines_parser import main
117+
118+
main("validate -m arnir0/Tiny-LLM --run -v 1 --export onnx-dynamo -o dump_models --patch --opt ir --ortfusiontype ALL".split())

0 commit comments

Comments
 (0)