



"""simple docstring"""






import math
from typing import Any, Callable, List, Optional, Tuple, Union

import numpy as np
import torch

from ...models import TaFilmDecoder
from ...schedulers import DDPMScheduler
from ...utils import is_onnx_available, logging, randn_tensor


if is_onnx_available():
	from ..onnx_utils import OnnxRuntimeModel

from ..pipeline_utils import AudioPipelineOutput, DiffusionPipeline
from .continous_encoder import SpectrogramContEncoder
from .notes_encoder import SpectrogramNotesEncoder


__snake_case							:     Optional[Any]   =					logging.get_logger(__name__)  # pylint: disable=invalid-name

__snake_case							:     str   =					256



class     A__     (						__SCREAMING_SNAKE_CASE							):




	'''simple docstring'''





	SCREAMING_SNAKE_CASE					   =			['melgan']

	def __init__(  self:	Any ,    _SCREAMING_SNAKE_CASE:	SpectrogramNotesEncoder ,    _SCREAMING_SNAKE_CASE:	SpectrogramContEncoder ,    _SCREAMING_SNAKE_CASE:	TaFilmDecoder ,    _SCREAMING_SNAKE_CASE:	DDPMScheduler ,    _SCREAMING_SNAKE_CASE:	OnnxRuntimeModel if is_onnx_available() else Any ,    )       -> None:

				"""simple docstring"""

				super().__init__()

				# From MELGAN
				__lowerCAmelCase   :						List[Any]				= math.log(1e-5)  # Matches MelGAN training.
				__lowerCAmelCase   :						Optional[Any]				= 4.0  # Largest value for most examples
				__lowerCAmelCase   :						Union[str, Any]				= 128

				self.register_modules(
				    notes_encoder=_SCREAMING_SNAKE_CASE ,    continuous_encoder=_SCREAMING_SNAKE_CASE ,    decoder=_SCREAMING_SNAKE_CASE ,    scheduler=_SCREAMING_SNAKE_CASE ,    melgan=_SCREAMING_SNAKE_CASE ,    )

	def 							_SCREAMING_SNAKE_CASE     (  self:	Optional[int] ,    _SCREAMING_SNAKE_CASE:	str ,    _SCREAMING_SNAKE_CASE:	Tuple=(-1.0, 1.0) ,    _SCREAMING_SNAKE_CASE:	Optional[Any]=False)       -> Optional[int]:

				"""simple docstring"""

				__lowerCAmelCase		,			__lowerCAmelCase   :						Tuple				= output_range
				if clip:
							__lowerCAmelCase   :						Optional[Any]				= torch.clip(_SCREAMING_SNAKE_CASE ,    self.min_value ,    self.max_value)
				# Scale to [0, 1].
				__lowerCAmelCase   :						str				= (features - self.min_value) / (self.max_value - self.min_value)
				# Scale to [min_out, max_out].
				return zero_one * (max_out - min_out) + min_out

	def 							_SCREAMING_SNAKE_CASE     (  self:	Optional[Any] ,    _SCREAMING_SNAKE_CASE:	Optional[int] ,    _SCREAMING_SNAKE_CASE:	str=(-1.0, 1.0) ,    _SCREAMING_SNAKE_CASE:	str=False)       -> List[Any]:

				"""simple docstring"""

				__lowerCAmelCase		,			__lowerCAmelCase   :						int				= input_range
				__lowerCAmelCase   :						List[Any]				= torch.clip(_SCREAMING_SNAKE_CASE ,    _SCREAMING_SNAKE_CASE ,    _SCREAMING_SNAKE_CASE) if clip else outputs
				# Scale to [0, 1].
				__lowerCAmelCase   :						Dict				= (outputs - min_out) / (max_out - min_out)
				# Scale to [self.min_value, self.max_value].
				return zero_one * (self.max_value - self.min_value) + self.min_value

	def 							_SCREAMING_SNAKE_CASE     (  self:	Optional[int] ,    _SCREAMING_SNAKE_CASE:	str ,    _SCREAMING_SNAKE_CASE:	Any ,    _SCREAMING_SNAKE_CASE:	Optional[Any])       -> Optional[int]:

				"""simple docstring"""

				__lowerCAmelCase   :						Dict				= input_tokens > 0
				__lowerCAmelCase		,			__lowerCAmelCase   :						int				= self.notes_encoder(
				    encoder_input_tokens=_SCREAMING_SNAKE_CASE ,    encoder_inputs_mask=_SCREAMING_SNAKE_CASE)

				__lowerCAmelCase		,			__lowerCAmelCase   :						str				= self.continuous_encoder(
				    encoder_inputs=_SCREAMING_SNAKE_CASE ,    encoder_inputs_mask=_SCREAMING_SNAKE_CASE)

				return [(tokens_encoded, tokens_mask), (continuous_encoded, continuous_mask)]

	def 							_SCREAMING_SNAKE_CASE     (  self:	Optional[int] ,    _SCREAMING_SNAKE_CASE:	str ,    _SCREAMING_SNAKE_CASE:	Tuple ,    _SCREAMING_SNAKE_CASE:	Tuple)       -> List[str]:

				"""simple docstring"""

				__lowerCAmelCase   :						Dict				= noise_time
				if not torch.is_tensor(_SCREAMING_SNAKE_CASE):
							__lowerCAmelCase   :						Tuple				= torch.tensor([timesteps] ,    dtype=torch.long ,    device=input_tokens.device)
				elif torch.is_tensor(_SCREAMING_SNAKE_CASE) and len(timesteps.shape) == 0:
							__lowerCAmelCase   :						List[Any]				= timesteps[None].to(input_tokens.device)

				# broadcast to batch dimension in a way that's compatible with ONNX/Core ML
				__lowerCAmelCase   :						Optional[int]				= timesteps * torch.ones(input_tokens.shape[0] ,    dtype=timesteps.dtype ,    device=timesteps.device)

				__lowerCAmelCase   :						int				= self.decoder(
				    encodings_and_masks=_SCREAMING_SNAKE_CASE ,    decoder_input_tokens=_SCREAMING_SNAKE_CASE ,    decoder_noise_time=_SCREAMING_SNAKE_CASE)
				return logits







	@torch.no_grad()
	def __call__(  self:	Union[str, Any] ,    _SCREAMING_SNAKE_CASE:	List[List[int]] ,    _SCREAMING_SNAKE_CASE:	Optional[torch.Generator] = None ,    _SCREAMING_SNAKE_CASE:	int = 100 ,    _SCREAMING_SNAKE_CASE:	bool = True ,    _SCREAMING_SNAKE_CASE:	str = "numpy" ,    _SCREAMING_SNAKE_CASE:	Optional[Callable[[int, int, torch.FloatTensor], None]] = None ,    _SCREAMING_SNAKE_CASE:	int = 1 ,    )       -> Union[AudioPipelineOutput, Tuple]:

				"""simple docstring"""

				if (callback_steps is None) or (
				    callback_steps is not None and (not isinstance(_SCREAMING_SNAKE_CASE ,    _SCREAMING_SNAKE_CASE) or callback_steps <= 0)
				):
							raise ValueError(
							    F"""`callback_steps` has to be a positive integer but is {callback_steps} of type"""
							    F""" {type(_SCREAMING_SNAKE_CASE)}.""")

				__lowerCAmelCase   :						List[str]				= np.zeros([1, TARGET_FEATURE_LENGTH, self.n_dims] ,    dtype=np.floataa)
				__lowerCAmelCase   :						str				= np.zeros([1, 0, self.n_dims] ,    np.floataa)
				__lowerCAmelCase   :						str				= torch.ones((1, TARGET_FEATURE_LENGTH) ,    dtype=_SCREAMING_SNAKE_CASE ,    device=self.device)

				for i, encoder_input_tokens in enumerate(_SCREAMING_SNAKE_CASE):
							if i == 0:
										__lowerCAmelCase   :						int				= torch.from_numpy(pred_mel[:1].copy()).to(
										    device=self.device ,    dtype=self.decoder.dtype)
										# The first chunk has no previous context.
										__lowerCAmelCase   :						Optional[int]				= torch.zeros((1, TARGET_FEATURE_LENGTH) ,    dtype=_SCREAMING_SNAKE_CASE ,    device=self.device)
							else:
										# The full song pipeline does not feed in a context feature, so the mask
										# will be all 0s after the feature converter. Because we know we're
										# feeding in a full context chunk from the previous prediction, set it
										# to all 1s.
										__lowerCAmelCase   :						List[Any]				= ones

							__lowerCAmelCase   :						Tuple				= self.scale_features(
							    _SCREAMING_SNAKE_CASE ,    output_range=[-1.0, 1.0] ,    clip=_SCREAMING_SNAKE_CASE)

							__lowerCAmelCase   :						Tuple				= self.encode(
							    input_tokens=torch.IntTensor([encoder_input_tokens]).to(device=self.device) ,    continuous_inputs=_SCREAMING_SNAKE_CASE ,    continuous_mask=_SCREAMING_SNAKE_CASE ,    )

							# Sample encoder_continuous_inputs shaped gaussian noise to begin loop
							__lowerCAmelCase   :						Union[str, Any]				= randn_tensor(
							    shape=encoder_continuous_inputs.shape ,    generator=_SCREAMING_SNAKE_CASE ,    device=self.device ,    dtype=self.decoder.dtype ,    )

							# set step values
							self.scheduler.set_timesteps(_SCREAMING_SNAKE_CASE)

							# Denoising diffusion loop
							for j, t in enumerate(self.progress_bar(self.scheduler.timesteps)):
										__lowerCAmelCase   :						Optional[Any]				= self.decode(
										    encodings_and_masks=_SCREAMING_SNAKE_CASE ,    input_tokens=_SCREAMING_SNAKE_CASE ,    noise_time=t / self.scheduler.config.num_train_timesteps ,    )

										# Compute previous output: x_t -> x_t-1
										__lowerCAmelCase   :						List[str]				= self.scheduler.step(_SCREAMING_SNAKE_CASE ,    _SCREAMING_SNAKE_CASE ,    _SCREAMING_SNAKE_CASE ,    generator=_SCREAMING_SNAKE_CASE).prev_sample

							__lowerCAmelCase   :						Optional[Any]				= self.scale_to_features(_SCREAMING_SNAKE_CASE ,    input_range=[-1.0, 1.0])
							__lowerCAmelCase   :						Optional[Any]				= mel[:1]
							__lowerCAmelCase   :						Tuple				= mel.cpu().float().numpy()

							__lowerCAmelCase   :						Union[str, Any]				= np.concatenate([full_pred_mel, pred_mel[:1]] ,    axis=1)

							# call the callback, if provided
							if callback is not None and i % callback_steps == 0:
										callback(_SCREAMING_SNAKE_CASE ,    _SCREAMING_SNAKE_CASE)

							logger.info("Generated segment" ,    _SCREAMING_SNAKE_CASE)

				if output_type == "numpy" and not is_onnx_available():
							raise ValueError(
							    "Cannot return output in 'np' format if ONNX is not available. Make sure to have ONNX installed or set 'output_type' to 'mel'.")
				elif output_type == "numpy" and self.melgan is None:
							raise ValueError(
							    "Cannot return output in 'np' format if melgan component is not defined. Make sure to define `self.melgan` or set 'output_type' to 'mel'.")

				if output_type == "numpy":
							__lowerCAmelCase   :						List[Any]				= self.melgan(input_features=full_pred_mel.astype(np.floataa))
				else:
							__lowerCAmelCase   :						Dict				= full_pred_mel

				if not return_dict:
							return (output,)

				return AudioPipelineOutput(audios=_SCREAMING_SNAKE_CASE)




"""simple docstring"""






import unittest

from transformers import AlbertTokenizer, AlbertTokenizerFast
from transformers.testing_utils import get_tests_dir, require_sentencepiece, require_tokenizers, slow

from ...test_tokenization_common import TokenizerTesterMixin


__snake_case							:     Any   =					get_tests_dir('fixtures/spiece.model')



@require_sentencepiece
@require_tokenizers
class     A__     (						__SCREAMING_SNAKE_CASE						,	unittest.TestCase							):




	'''simple docstring'''





	SCREAMING_SNAKE_CASE					   =			AlbertTokenizer
	SCREAMING_SNAKE_CASE					   =			AlbertTokenizerFast
	SCREAMING_SNAKE_CASE					   =			True
	SCREAMING_SNAKE_CASE					   =			True
	SCREAMING_SNAKE_CASE					   =			True

	def 							_SCREAMING_SNAKE_CASE     (  self:	Dict)       -> Optional[int]:

				"""simple docstring"""

				super().setUp()

				# We have a SentencePiece fixture for testing
				__lowerCAmelCase   :						List[Any]				= AlbertTokenizer(_SCREAMING_SNAKE_CASE)
				tokenizer.save_pretrained(self.tmpdirname)

	def 							_SCREAMING_SNAKE_CASE     (  self:	Union[str, Any] ,    _SCREAMING_SNAKE_CASE:	Optional[int])       -> str:

				"""simple docstring"""

				__lowerCAmelCase   :						int				= "this is a test"
				__lowerCAmelCase   :						Any				= "this is a test"
				return input_text, output_text

	def 							_SCREAMING_SNAKE_CASE     (  self:	List[Any])       -> List[Any]:

				"""simple docstring"""

				__lowerCAmelCase   :						Tuple				= "<pad>"
				__lowerCAmelCase   :						List[str]				= 0

				self.assertEqual(self.get_tokenizer()._convert_token_to_id(_SCREAMING_SNAKE_CASE) ,    _SCREAMING_SNAKE_CASE)
				self.assertEqual(self.get_tokenizer()._convert_id_to_token(_SCREAMING_SNAKE_CASE) ,    _SCREAMING_SNAKE_CASE)

	def 							_SCREAMING_SNAKE_CASE     (  self:	str)       -> List[Any]:

				"""simple docstring"""

				__lowerCAmelCase   :						Dict				= list(self.get_tokenizer().get_vocab().keys())

				self.assertEqual(vocab_keys[0] ,    "<pad>")
				self.assertEqual(vocab_keys[1] ,    "<unk>")
				self.assertEqual(vocab_keys[-1] ,    "▁eloquent")
				self.assertEqual(len(_SCREAMING_SNAKE_CASE) ,    3_0000)

	def 							_SCREAMING_SNAKE_CASE     (  self:	Optional[Any])       -> str:

				"""simple docstring"""

				self.assertEqual(self.get_tokenizer().vocab_size ,    3_0000)

	def 							_SCREAMING_SNAKE_CASE     (  self:	Union[str, Any])       -> List[Any]:

				"""simple docstring"""

				if not self.test_rust_tokenizer:
							return

				__lowerCAmelCase   :						List[str]				= self.get_tokenizer()
				__lowerCAmelCase   :						Dict				= self.get_rust_tokenizer()

				__lowerCAmelCase   :						Optional[int]				= "I was born in 92000, and this is falsé."

				__lowerCAmelCase   :						Tuple				= tokenizer.tokenize(_SCREAMING_SNAKE_CASE)
				__lowerCAmelCase   :						List[str]				= rust_tokenizer.tokenize(_SCREAMING_SNAKE_CASE)
				self.assertListEqual(_SCREAMING_SNAKE_CASE ,    _SCREAMING_SNAKE_CASE)

				__lowerCAmelCase   :						List[Any]				= tokenizer.encode(_SCREAMING_SNAKE_CASE ,    add_special_tokens=_SCREAMING_SNAKE_CASE)
				__lowerCAmelCase   :						Any				= rust_tokenizer.encode(_SCREAMING_SNAKE_CASE ,    add_special_tokens=_SCREAMING_SNAKE_CASE)
				self.assertListEqual(_SCREAMING_SNAKE_CASE ,    _SCREAMING_SNAKE_CASE)

				__lowerCAmelCase   :						List[str]				= self.get_rust_tokenizer()
				__lowerCAmelCase   :						str				= tokenizer.encode(_SCREAMING_SNAKE_CASE)
				__lowerCAmelCase   :						Dict				= rust_tokenizer.encode(_SCREAMING_SNAKE_CASE)
				self.assertListEqual(_SCREAMING_SNAKE_CASE ,    _SCREAMING_SNAKE_CASE)

	def 							_SCREAMING_SNAKE_CASE     (  self:	List[str])       -> int:

				"""simple docstring"""

				__lowerCAmelCase   :						Optional[int]				= AlbertTokenizer(_SCREAMING_SNAKE_CASE ,    keep_accents=_SCREAMING_SNAKE_CASE)

				__lowerCAmelCase   :						List[str]				= tokenizer.tokenize("This is a test")
				self.assertListEqual(_SCREAMING_SNAKE_CASE ,    ["▁this", "▁is", "▁a", "▁test"])

				self.assertListEqual(tokenizer.convert_tokens_to_ids(_SCREAMING_SNAKE_CASE) ,    [48, 25, 21, 1289])

				__lowerCAmelCase   :						Union[str, Any]				= tokenizer.tokenize("I was born in 92000, and this is falsé.")
				self.assertListEqual(
				    _SCREAMING_SNAKE_CASE ,    ["▁i", "▁was", "▁born", "▁in", "▁9", "2000", ",", "▁and", "▁this", "▁is", "▁fal", "s", "é", "."])
				__lowerCAmelCase   :						Dict				= tokenizer.convert_tokens_to_ids(_SCREAMING_SNAKE_CASE)
				self.assertListEqual(_SCREAMING_SNAKE_CASE ,    [31, 23, 386, 19, 561, 3050, 15, 17, 48, 25, 8256, 18, 1, 9])

				__lowerCAmelCase   :						Any				= tokenizer.convert_ids_to_tokens(_SCREAMING_SNAKE_CASE)
				self.assertListEqual(
				    _SCREAMING_SNAKE_CASE ,    ["▁i", "▁was", "▁born", "▁in", "▁9", "2000", ",", "▁and", "▁this", "▁is", "▁fal", "s", "<unk>", "."] ,    )

	def 							_SCREAMING_SNAKE_CASE     (  self:	Tuple)       -> str:

				"""simple docstring"""

				__lowerCAmelCase   :						int				= AlbertTokenizer(_SCREAMING_SNAKE_CASE)

				__lowerCAmelCase   :						Dict				= tokenizer.encode("sequence builders")
				__lowerCAmelCase   :						List[Any]				= tokenizer.encode("multi-sequence build")

				__lowerCAmelCase   :						Union[str, Any]				= tokenizer.build_inputs_with_special_tokens(_SCREAMING_SNAKE_CASE)
				__lowerCAmelCase   :						List[str]				= tokenizer.build_inputs_with_special_tokens(_SCREAMING_SNAKE_CASE ,    _SCREAMING_SNAKE_CASE)

				assert encoded_sentence == [tokenizer.cls_token_id] + text + [tokenizer.sep_token_id]
				assert encoded_pair == [tokenizer.cls_token_id] + text + [tokenizer.sep_token_id] + text_a + [
				    tokenizer.sep_token_id
				]







	@slow
	def 							_SCREAMING_SNAKE_CASE     (  self:	int)       -> List[str]:

				"""simple docstring"""

				__lowerCAmelCase   :						Tuple				= {"attention_mask": [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], "input_ids": [[2, 2_1970, 13, 5, 6092, 167, 28, 7103, 2153, 673, 8, 7028, 1_2051, 18, 17, 7103, 2153, 673, 8, 3515, 1_8684, 8, 4461, 6, 1927, 297, 8, 1_2060, 2607, 18, 13, 5, 4461, 15, 1_0538, 38, 8, 135, 15, 822, 58, 15, 993, 1_0363, 15, 1460, 8005, 4461, 15, 993, 255, 2328, 9, 9, 9, 6, 26, 1112, 816, 3260, 13, 5, 103, 2377, 6, 17, 1112, 816, 2782, 13, 5, 103, 1_0641, 6, 29, 84, 2512, 2430, 782, 1_8684, 2761, 19, 808, 2430, 2556, 17, 855, 1480, 9477, 4091, 128, 1_1712, 15, 7103, 2153, 673, 17, 2_4883, 9990, 9, 3], [2, 1_1502, 25, 1006, 20, 782, 8, 1_1809, 855, 1732, 1_9393, 1_8667, 37, 367, 2_1018, 69, 1854, 34, 1_1860, 1_9124, 27, 156, 225, 17, 193, 4141, 19, 65, 9124, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [2, 14, 2231, 886, 2385, 1_7659, 84, 14, 1_6792, 1952, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], "token_type_ids": [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]}  # noqa: E501
				# fmt: on

				self.tokenizer_integration_test_util(
				    expected_encoding=_SCREAMING_SNAKE_CASE ,    model_name="albert-base-v2" ,    revision="6b6560eaf5ff2e250b00c50f380c5389a9c2d82e" ,    )