Skip to content

Commit

Permalink
Fixing in python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
erfanzar committed Oct 4, 2023
1 parent f9c59cd commit d5f2cad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/python/EasyDel/modules/mistral/modelling_mistral_flax.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import functools
import typing

import flax.core
from jax import jit, random, grad, numpy as jnp, Array
Expand Down Expand Up @@ -648,7 +649,7 @@ def __call__(
output_hidden_states: bool = False,
return_dict: bool = True,

) -> Tuple[Array, ...] | FlaxBaseModelOutput:
) -> typing.Union[Tuple[Array, ...], FlaxBaseModelOutput]:
if input_embeds is None:
input_embeds = self.embed_tokens(input_ids.astype("i4"))

Expand Down

0 comments on commit d5f2cad

Please sign in to comment.