

import logging
from dataclasses import dataclass, field
from typing import Optional

from seqaseq_trainer import arg_to_scheduler

from transformers import TrainingArguments


lowercase			:				Optional[Any]   =     logging.getLogger(__name__)







@dataclass
class 					__lowercase  (						_SCREAMING_SNAKE_CASE				):





							"""simple docstring"""

							UpperCAmelCase_						:		Optional[float]								=	field(
							    default=0.0		,       metadata={'''help''': '''The label smoothing epsilon to apply (if not zero).'''}				)
							UpperCAmelCase_						:		bool								=	field(default=_SCREAMING_SNAKE_CASE		,       metadata={'''help''': '''Whether to SortishSamler or not.'''}				)
							UpperCAmelCase_						:		bool								=	field(
							    default=_SCREAMING_SNAKE_CASE		,       metadata={'''help''': '''Whether to use generate to calculate generative metrics (ROUGE, BLEU).'''}				)
							UpperCAmelCase_						:		bool								=	field(default=_SCREAMING_SNAKE_CASE		,       metadata={'''help''': '''whether to use adafactor'''}				)
							UpperCAmelCase_						:		Optional[float]								=	field(
							    default=_SCREAMING_SNAKE_CASE		,       metadata={'''help''': '''Encoder layer dropout probability. Goes into model.config.'''}				)
							UpperCAmelCase_						:		Optional[float]								=	field(
							    default=_SCREAMING_SNAKE_CASE		,       metadata={'''help''': '''Decoder layer dropout probability. Goes into model.config.'''}				)
							UpperCAmelCase_						:		Optional[float]								=	field(default=_SCREAMING_SNAKE_CASE		,       metadata={'''help''': '''Dropout probability. Goes into model.config.'''}				)
							UpperCAmelCase_						:		Optional[float]								=	field(
							    default=_SCREAMING_SNAKE_CASE		,       metadata={'''help''': '''Attention dropout probability. Goes into model.config.'''}				)
							UpperCAmelCase_						:		Optional[str]								=	field(
							    default='''linear'''		,       metadata={'''help''': F'Which lr scheduler to use. Selected in {sorted(arg_to_scheduler.keys()				)}'}		,       )









from ..utils import DummyObject, requires_backends







class 					__lowercase  (						metaclass=_SCREAMING_SNAKE_CASE				):





							"""simple docstring"""

							UpperCAmelCase_						:		Optional[Any]								=	['''speech''']




							def __init__(					self    ,						*__UpperCAmelCase    ,						**__UpperCAmelCase						)		->       Dict:
														requires_backends(self    ,						['''speech''']						)







class 					__lowercase  (						metaclass=_SCREAMING_SNAKE_CASE				):





							"""simple docstring"""

							UpperCAmelCase_						:		int								=	['''speech''']




							def __init__(					self    ,						*__UpperCAmelCase    ,						**__UpperCAmelCase						)		->       Tuple:
														requires_backends(self    ,						['''speech''']						)






