





'''simple docstring'''



import jax.numpy as jnp

from ...utils import logging
from ..ta.modeling_flax_ta import FlaxTaEncoderModel, FlaxTaForConditionalGeneration, FlaxTaModel
from .configuration_mta import MTaConfig


_SCREAMING_SNAKE_CASE					=    logging.get_logger(__name__)

_SCREAMING_SNAKE_CASE					=    '''T5Config'''




def    _lowerCAmelCase						(				lowerCamelCase_			:  jnp.array		,       lowerCamelCase_			:  int		,       lowerCamelCase_			:  int				):
			__lowercase										=							jnp.zeros_like(lowerCamelCase_				)
			__lowercase										=							shifted_input_ids.at[:, 1:].set(input_ids[:, :-1]				)
			__lowercase										=							shifted_input_ids.at[:, 0].set(lowerCamelCase_				)

			__lowercase										=							jnp.where(shifted_input_ids == -1_0_0		,       lowerCamelCase_		,       lowerCamelCase_				)
			return shifted_input_ids






class 							__lowercase       (      lowerCAmelCase__						):







	'''simple docstring'''

	a    :				Any											=       "mt5"
	a    :				Optional[Any]											=       MTaConfig






class 							__lowercase       (      lowerCAmelCase__						):







	'''simple docstring'''

	a    :				int											=       "mt5"
	a    :				int											=       MTaConfig






class 							__lowercase       (      lowerCAmelCase__						):







	'''simple docstring'''

	a    :				Union[str, Any]											=       "mt5"
	a    :				Tuple											=       MTaConfig












'''simple docstring'''



# flake8: noqa
# Lint as: python3
_SCREAMING_SNAKE_CASE					=    [
    '''VerificationMode''',
    '''Version''',
    '''disable_progress_bar''',
    '''enable_progress_bar''',
    '''is_progress_bar_enabled''',
    '''experimental''',
]

from .info_utils import VerificationMode
from .logging import disable_progress_bar, enable_progress_bar, is_progress_bar_enabled
from .version import Version
from .experimental import experimental





