:orphan:
PyTorch Gallery
===============
Examples about exporting PyTorch models to ONNX, model patching, and input observation.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples_torch/images/thumb/sphx_glr_plot_patch_model_thumb.png
:alt:
:doc:`/auto_examples_torch/plot_patch_model`
.. raw:: html
Applying patches to a model and displaying the diff
.. raw:: html
.. only:: html
.. image:: /auto_examples_torch/images/thumb/sphx_glr_plot_input_observer_tiny_llm_thumb.png
:alt:
:doc:`/auto_examples_torch/plot_input_observer_tiny_llm`
.. raw:: html
Export a LLM with InputObserver (with Tiny-LLM)
.. raw:: html
.. only:: html
.. image:: /auto_examples_torch/images/thumb/sphx_glr_plot_input_observer_transformers_thumb.png
:alt:
:doc:`/auto_examples_torch/plot_input_observer_transformers`
.. raw:: html
InputObserver with Transformers Cache
.. raw:: html
.. only:: html
.. image:: /auto_examples_torch/images/thumb/sphx_glr_plot_input_observer_thumb.png
:alt:
:doc:`/auto_examples_torch/plot_input_observer`
.. raw:: html
InputObserver: recording inputs for ONNX export
.. raw:: html
.. only:: html
.. image:: /auto_examples_torch/images/thumb/sphx_glr_plot_flattening_thumb.png
:alt:
:doc:`/auto_examples_torch/plot_flattening`
.. raw:: html
Registering a custom class as a pytree node
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/auto_examples_torch/plot_patch_model
/auto_examples_torch/plot_input_observer_tiny_llm
/auto_examples_torch/plot_input_observer_transformers
/auto_examples_torch/plot_input_observer
/auto_examples_torch/plot_flattening
.. only:: html
.. container:: sphx-glr-footer sphx-glr-footer-gallery
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download all examples in Python source code: auto_examples_torch_python.zip `
.. container:: sphx-glr-download sphx-glr-download-jupyter
:download:`Download all examples in Jupyter notebooks: auto_examples_torch_jupyter.zip `
.. only:: html
.. rst-class:: sphx-glr-signature
`Gallery generated by Sphinx-Gallery