Skip to content

Commit 4c65175

Browse files
committed
doc
1 parent 371b55d commit 4c65175

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

_doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ def linkcode_resolve(domain, info):
138138
("py:class", "transformers.cache_utils.SlidingWindowCache"),
139139
("py:class", "transformers.configuration_utils.PretrainedConfig"),
140140
("py:class", "transformers.modeling_outputs.BaseModelOutput"),
141+
("py:class", "transformers.models.phi3.modeling_phi3.Phi3RotaryEmbedding"),
141142
("py:func", "torch.export._draft_export.draft_export"),
142143
("py:func", "torch._export.tools.report_exportability"),
143144
("py:func", "torch.utils._pytree.register_pytree_node"),

onnx_diagnostic/torch_export_patches/onnx_export_errors.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010
from .patches import patch_transformers as patch_transformers_list
1111

1212

13-
def get_function(name: str) -> Tuple["module", "function"]: # noqa: F821
14-
"""
15-
Returns the module and the function based on its name.
16-
"""
13+
def get_function(name: str) -> Tuple[type, Callable]:
14+
"""Returns the module and the function based on its name."""
1715
spl = name.split(".")
1816
module_name = ".".join(spl[:-1])
1917
fname = spl[-1]

onnx_diagnostic/torch_export_patches/patches/patch_transformers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ def patched__compute_dynamic_ntk_parameters(
546546
547547
Computes the inverse frequencies with NTK scaling.
548548
Credits to the Reddit users /u/bloc97 and /u/emozilla
549+
549550
Args:
550551
config ([`~transformers.PretrainedConfig`]):
551552
The model configuration.
@@ -557,6 +558,7 @@ def patched__compute_dynamic_ntk_parameters(
557558
rope_kwargs (`Dict`, *optional*):
558559
BC compatibility with the previous
559560
RoPE class instantiation, will be removed in v4.45.
561+
560562
Returns:
561563
Tuple of (`torch.Tensor`, `float`),
562564
containing the inverse frequencies for the RoPE embeddings and the

0 commit comments

Comments
 (0)