Skip to content

Commit cf197c7

Browse files
committed
doc
1 parent 8b9d673 commit cf197c7

File tree

6 files changed

+9
-3
lines changed

6 files changed

+9
-3
lines changed

_doc/api/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ API of onnx_diagnostic
88
:caption: submodules
99

1010
torch_export_patches/index
11+
torch_models/index
1112

1213
.. toctree::
1314
:maxdepth: 1

_doc/api/torch_models/llms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
onnx_diagnostic.torch_models.llms
33
=================================
44

5-
.. automodule:: onnx_diagnostic.torch.models.llms
5+
.. automodule:: onnx_diagnostic.torch_models.llms
66
:members:
77
:no-undoc-members:

_doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
("py:class", "torch.utils._pytree.Context"),
114114
("py:class", "torch.utils._pytree.KeyEntry"),
115115
("py:class", "torch.utils._pytree.TreeSpec"),
116+
("py:class", "transformers.LlamaConfig"),
116117
("py:class", "transformers.cache_utils.Cache"),
117118
("py:class", "transformers.cache_utils.DynamicCache"),
118119
("py:class", "transformers.cache_utils.MambaCache"),

_doc/examples/plot_export_tiny_llm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""
2+
.. _l-plot-tiny-llm-export:
3+
24
Export LLM with dynamic shapes
35
==============================
46

_unittests/ut_xrun_doc/test_documentation_examples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ def add_test_methods(cls):
7373
if (
7474
not reason
7575
and name in {"plot_export_tiny_llm.py"}
76-
and not has_transformers("4.50")
76+
and not has_transformers("4.51")
7777
):
78-
reason = "transformers<4.50"
78+
reason = "transformers<4.51"
7979

8080
if reason:
8181

onnx_diagnostic/torch_models/llms.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ def get_tiny_llm(
1818
:param dynamic_rope: use dynamic rope (see :class:`transformers.LlamaConfig`)
1919
:param kwargs: to overwrite the configuration, example ``num_hidden_layers=1``
2020
:return: dictionary
21+
22+
See :ref:`l-plot-tiny-llm-export` for an example.
2123
"""
2224
config = {
2325
"architectures": ["LlamaForCausalLM"],

0 commit comments

Comments
 (0)