Skip to content

Commit 74a4130

Browse files
committed
fix
1 parent 77a9893 commit 74a4130

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

_doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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"),

_unittests/ut_torch_models/test_tiny_llms.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import copy
22
import unittest
33
import 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+
)
510
from onnx_diagnostic.torch_models.llms import get_tiny_llm
611
from onnx_diagnostic.helpers import string_type
712
from 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"]

0 commit comments

Comments
 (0)