File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
_unittests/ut_torch_models Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ def linkcode_resolve(domain, info):
136136 ("py:class" , "transformers.cache_utils.EncoderDecoderCache" ),
137137 ("py:class" , "transformers.cache_utils.MambaCache" ),
138138 ("py:class" , "transformers.cache_utils.SlidingWindowCache" ),
139+ ("py:class" , "transformers.cache_utils.StaticCache" ),
139140 ("py:class" , "transformers.configuration_utils.PretrainedConfig" ),
140141 ("py:class" , "transformers.modeling_outputs.BaseModelOutput" ),
141142 ("py:class" , "transformers.models.phi3.modeling_phi3.Phi3RotaryEmbedding" ),
Original file line number Diff line number Diff line change 11import copy
22import unittest
33import torch
4- from onnx_diagnostic .ext_test_case import ExtTestCase , ignore_warnings , requires_transformers
4+ from onnx_diagnostic .ext_test_case import (
5+ ExtTestCase ,
6+ ignore_warnings ,
7+ requires_transformers ,
8+ requires_torch ,
9+ )
510from onnx_diagnostic .torch_models .llms import get_tiny_llm
611from onnx_diagnostic .helpers import string_type
712from onnx_diagnostic .torch_export_patches import torch_export_patches
@@ -16,6 +21,7 @@ def test_tiny_llm_run_dynamic(self):
1621 model (** inputs )
1722
1823 @ignore_warnings (UserWarning )
24+ @requires_torch ("2.8" )
1925 def test_tiny_llm_export_dynamic (self ):
2026 data = get_tiny_llm ()
2127 model , inputs = data ["model" ], data ["inputs" ]
You can’t perform that action at this time.
0 commit comments