Skip to content

Commit

Permalink
Add python version compatibility check for Unpack operator
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoImhof committed Feb 24, 2025
1 parent fa5d716 commit 060acbc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/adapters/models/mistral/modeling_mistral.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""PyTorch Mistral model."""
from typing import Callable, Optional, Tuple, Unpack
from typing import Callable, Optional, Tuple


try:
from typing import Unpack
except ImportError:
from typing_extensions import Unpack

import torch
import torch.utils.checkpoint
Expand Down

0 comments on commit 060acbc

Please sign in to comment.