File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
_unittests/ut_torch_export_patches Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def test_pytree_flatten_mamba_cache(self):
2424 import torch .utils ._pytree as py_pytree
2525
2626 try :
27- from transformers .models .mamba .cache_mamba import MambaCache
27+ from transformers .models .mamba .modeling_mamba import MambaCache
2828 except ImportError :
2929 from transformers .cache_utils import MambaCache
3030
Original file line number Diff line number Diff line change 55import transformers .cache_utils
66
77try :
8- from transformers .models .mamba .cache_mamba import MambaCache
8+ from transformers .models .mamba .modeling_mamba import MambaCache
99except ImportError :
1010 from transformers .cache_utils import MambaCache
1111
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ def get_inputs(
9595
9696 if config is not None and config .__class__ .__name__ == "FalconMambaConfig" :
9797 try :
98- from transformers .models .mamba .cache_mamba import MambaCache
98+ from transformers .models .mamba .modeling_mamba import MambaCache
9999 except ImportError :
100100 from transformers .cache_utils import MambaCache
101101
Original file line number Diff line number Diff line change 1212)
1313
1414try :
15- from transformers .models .mamba .cache_mamba import MambaCache
15+ from transformers .models .mamba .modeling_mamba import MambaCache
1616except ImportError :
1717 from transformers .cache_utils import MambaCache
1818
Original file line number Diff line number Diff line change 99)
1010
1111try :
12- from transformers .models .mamba .cache_mamba import MambaCache
12+ from transformers .models .mamba .modeling_mamba import MambaCache
1313except ImportError :
1414 from transformers .cache_utils import MambaCache
1515from transformers .modeling_outputs import BaseModelOutput
You can’t perform that action at this time.
0 commit comments