+
    QV-jÔ  ã                   ó¼   € ^ RI t ^ RIHtHt ^ RIHt ^RIHt ^RIH	t	 ^RI
Ht ] P                  ! ]4      t]]! ]	P                  4       ! R R]	4      4       4       tR# )	é    N)Ú	dataclassÚfield)ÚPath)ÚGenerationConfig)ÚTrainingArguments)Úadd_start_docstringsc                   óº   a a€ ] tR t^t oRt]! RRR/R7      t]! RRR/R7      t]! RRR/R7      t]! RRR	/R7      t	]! RRR
/R7      t
V 3R ltV3R ltRtVtV ;t# )ÚSeq2SeqTrainingArgumentsaœ  
sortish_sampler (`bool`, *optional*, defaults to `False`):
    Whether to use a *sortish sampler* or not. Only possible if the underlying datasets are *Seq2SeqDataset*
    for now but will become generally available in the near future.

    It sorts the inputs according to lengths in order to minimize the padding size, with a bit of randomness
    for the training set.
predict_with_generate (`bool`, *optional*, defaults to `False`):
    Whether to use generate to calculate generative metrics (ROUGE, BLEU).
generation_max_length (`int`, *optional*):
    The `max_length` to use on each evaluation loop when `predict_with_generate=True`. Will default to the
    `max_length` value of the model configuration.
generation_num_beams (`int`, *optional*):
    The `num_beams` to use on each evaluation loop when `predict_with_generate=True`. Will default to the
    `num_beams` value of the model configuration.
generation_config (`str` or `Path` or [`~generation.GenerationConfig`], *optional*):
    Allows to load a [`~generation.GenerationConfig`] from the `from_pretrained` method. This can be either:

    - a string, the *model id* of a pretrained model configuration hosted inside a model repo on
      huggingface.co.
    - a path to a *directory* containing a configuration file saved using the
      [`~GenerationConfig.save_pretrained`] method, e.g., `./my_model_directory/`.
    - a [`~generation.GenerationConfig`] object.
FÚhelpz%Whether to use SortishSampler or not.)ÚdefaultÚmetadatazFWhether to use generate to calculate generative metrics (ROUGE, BLEU).Nz•The `max_length` to use on each evaluation loop when `predict_with_generate=True`. Will default to the `max_length` value of the model configuration.z“The `num_beams` to use on each evaluation loop when `predict_with_generate=True`. Will default to the `num_beams` value of the model configuration.z^Model id, file path or url pointing to a GenerationConfig json file, to use during prediction.c                óª   <€ \         SV `  4       pVP                  4        F/  w  r#\        V\        4      '       g   K  VP                  4       W&   K1  	  V# )zÀ
Serializes this instance while replace `Enum` by their values and `GenerationConfig` by dictionaries (for JSON
serialization support). It obfuscates the token values by removing their value.
)ÚsuperÚto_dictÚitemsÚ
isinstancer   )ÚselfÚdÚkÚvÚ	__class__s   &   €Ús/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/transformers/training_args_seq2seq.pyr   Ú Seq2SeqTrainingArguments.to_dictT   sE   ø€ ô ‰G‰OÓˆØ—G‘G–I‰DˆAÜ˜!Ô-×.Ô.Ø—y‘y“{�“ñ ð ˆó    c                ó    <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[R,          ;R&   S[R,          ;R&   S[S[,          S[,          R,          ;R&   # )é   Úsortish_samplerÚpredict_with_generateNÚgeneration_max_lengthÚgeneration_num_beamsÚgeneration_config)ÚboolÚintÚstrr   r   )ÚformatÚ__classdict__s   "€r   Ú__annotate__Ú%Seq2SeqTrainingArguments.__annotate__   sk   ø‡ ‚ ñ8 Ñlñ9 ñ:  ñ ñ; ñ@  �:ñ ñA ñR  �*ñ ñS ñd ™T•zÑ$4Õ4°tÕ;ñ òe r   © )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r   r    r!   r   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   r&   s   @@r   r
   r
      s™   ù‡ € ññ2 "¨%¸6ÐCjÐ:kÔl€OÙ"'Ø Ð)qÐ rô#Ðñ ).ØàðHð
ô)Ðñ (-ØàðGð
ô(Ðñ ?DØàÐtð
ô?Ðõ
÷s … r   r
   )ÚloggingÚdataclassesr   r   Úpathlibr   Úgeneration.configuration_utilsr   Útraining_argsr   Úutilsr   Ú	getLoggerr*   Úloggerr.   r
   r)   r   r   Ú<module>r;      s^   ðó ß (Ý å <Ý ,Ý 'ð 
×	Ò	˜8Ó	$€ð ÙÐ'×/Ñ/Ó0ôAÐ0ó Aó 1ó òAr   