




from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


a													=			{
    "configuration_jukebox": [
        "JUKEBOX_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "JukeboxConfig",
        "JukeboxPriorConfig",
        "JukeboxVQVAEConfig",
    ],
    "tokenization_jukebox": ["JukeboxTokenizer"],
}

try:
				if not is_torch_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				a													=			[
				    "JUKEBOX_PRETRAINED_MODEL_ARCHIVE_LIST",
				    "JukeboxModel",
				    "JukeboxPreTrainedModel",
				    "JukeboxVQVAE",
				    "JukeboxPrior",
				]

if TYPE_CHECKING:
				from .configuration_jukebox import (
				    JUKEBOX_PRETRAINED_CONFIG_ARCHIVE_MAP,
				    JukeboxConfig,
				    JukeboxPriorConfig,
				    JukeboxVQVAEConfig,
				)
				from .tokenization_jukebox import JukeboxTokenizer

				try:
								if not is_torch_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .modeling_jukebox import (
								    JUKEBOX_PRETRAINED_MODEL_ARCHIVE_LIST,
								    JukeboxModel,
								    JukeboxPreTrainedModel,
								    JukeboxPrior,
								    JukeboxVQVAE,
								)

else:
				import sys

				a													=			_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)





import jax.numpy as jnp

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


a													=			logging.get_logger(__name__)

a													=			"T5Config"




def        _SCREAMING_SNAKE_CASE      (		snake_case			,     snake_case			,     snake_case       )						->				jnp.ndarray:
						_UpperCAmelCase      =			jnp.zeros_like(snake_case       )
						_UpperCAmelCase      =			shifted_input_ids.at[:, 1:].set(input_ids[:, :-1]       )
						_UpperCAmelCase      =			shifted_input_ids.at[:, 0].set(snake_case       )

						_UpperCAmelCase      =			jnp.where(shifted_input_ids == -1_0_0			,     snake_case			,     snake_case       )
						return shifted_input_ids




class       _A				(		__lowercase     ):
		__a					    =       """mt5"""
		__a					    =       MTaConfig




class       _A				(		__lowercase     ):
		__a					    =       """mt5"""
		__a					    =       MTaConfig




class       _A				(		__lowercase     ):
		__a					    =       """mt5"""
		__a					    =       MTaConfig