Ë
    S^(h-0  ã                   óÖ  — d dl mZ ddlmZmZmZmZmZ g d¢g d¢dœZ	  e«       s e«       ‚	 g d¢ed<   g d	¢ed
<   g d¢ed<   g d¢ed<   g d¢ed<   g d¢ed<   g d¢ed<   	  e«       s e«       ‚	 g d¢ed<   g d¢ed<   	  e«       s e«       ‚	 g d¢ed<   g d¢ed<   e�raddl	m
Z
mZmZmZmZmZ ddlmZmZmZmZ 	  e«       s e«       ‚	 ddlmZmZmZmZ dd	lmZmZmZmZ ddlm Z m!Z!m"Z"m#Z# ddl$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZD ddlEmFZFmGZGmHZHmIZImJZJmKZKmLZLmMZM dd lmNZNmOZOmPZPmQZQmRZRmSZSmTZTmUZUmVZVmWZWmXZXmYZYmZZZm[Z[m\Z\ dd!l]m^Z^m_Z_m`Z`maZambZb 	  e«       s e«       ‚	 ddlcmdZdmeZemfZfmgZgmhZhmiZimjZjmkZkmlZlmmZmmnZnmoZompZpmqZqmrZr dd"lsmtZtmuZumvZvmwZwmxZxmyZymzZzm{Z{m|Z|m}Z}m~Z~ 	  e«       s e«       ‚	 dd#lm€Z€m�Z�m‚Z‚mƒZƒm„Z„m…Z…m†Z†m‡Z‡mˆZˆm‰Z‰mŠZŠm‹Z‹mŒZŒm�Z� dd$lŽm�Z�m�Z�m‘Z‘m’Z’ y%d d%l“Z“ ee” e•«       d&   ee–¬'«      e“�j.                  e”<   y%# e$ r Y �ŒÏw xY w# e$ r Y �Œ½w xY w# e$ r Y �Œ«w xY w# e$ r Y ŒÛw xY w# e$ r Y Œšw xY w# e$ r Y y%w xY w)(é    )ÚTYPE_CHECKINGé   )ÚOptionalDependencyNotAvailableÚ_LazyModuleÚis_flax_availableÚis_tf_availableÚis_torch_available)ÚBaseWatermarkingConfigÚCompileConfigÚGenerationConfigÚGenerationModeÚSynthIDTextWatermarkingConfigÚWatermarkingConfig)ÚAsyncTextIteratorStreamerÚBaseStreamerÚTextIteratorStreamerÚTextStreamer)Úconfiguration_utilsÚ	streamers)Ú
ConstraintÚConstraintListStateÚDisjunctiveConstraintÚPhrasalConstraintÚbeam_constraints)ÚBeamHypothesesÚ
BeamScorerÚBeamSearchScorerÚConstrainedBeamSearchScorerÚbeam_search)ÚAssistedCandidateGeneratorÚCandidateGeneratorÚEarlyExitCandidateGeneratorÚPromptLookupCandidateGeneratorÚcandidate_generator) Ú#AlternatingCodebooksLogitsProcessorÚ%ClassifierFreeGuidanceLogitsProcessorÚ#EncoderNoRepeatNGramLogitsProcessorÚ'EncoderRepetitionPenaltyLogitsProcessorÚEpsilonLogitsWarperÚEtaLogitsWarperÚExponentialDecayLengthPenaltyÚForcedBOSTokenLogitsProcessorÚForcedEOSTokenLogitsProcessorÚHammingDiversityLogitsProcessorÚInfNanRemoveLogitsProcessorÚLogitNormalizationÚLogitsProcessorÚLogitsProcessorListÚMinLengthLogitsProcessorÚ!MinNewTokensLengthLogitsProcessorÚMinPLogitsWarperÚNoBadWordsLogitsProcessorÚNoRepeatNGramLogitsProcessorÚ PrefixConstrainedLogitsProcessorÚ RepetitionPenaltyLogitsProcessorÚSequenceBiasLogitsProcessorÚSuppressTokensLogitsProcessorÚ$SuppressTokensAtBeginLogitsProcessorÚ#SynthIDTextWatermarkLogitsProcessorÚTemperatureLogitsWarperÚTopKLogitsWarperÚTopPLogitsWarperÚTypicalLogitsWarperÚ.UnbatchedClassifierFreeGuidanceLogitsProcessorÚWhisperTimeStampLogitsProcessorÚWatermarkLogitsProcessorÚlogits_process)ÚMaxLengthCriteriaÚMaxTimeCriteriaÚConfidenceCriteriaÚEosTokenCriteriaÚStoppingCriteriaÚStoppingCriteriaListÚvalidate_stopping_criteriaÚStopStringCriteriaÚstopping_criteria)ÚGenerationMixinÚ GreedySearchEncoderDecoderOutputÚGreedySearchDecoderOnlyOutputÚSampleEncoderDecoderOutputÚSampleDecoderOnlyOutputÚBeamSearchEncoderDecoderOutputÚBeamSearchDecoderOnlyOutputÚBeamSampleEncoderDecoderOutputÚBeamSampleDecoderOnlyOutputÚ%ContrastiveSearchEncoderDecoderOutputÚ"ContrastiveSearchDecoderOnlyOutputÚGenerateBeamDecoderOnlyOutputÚ GenerateBeamEncoderDecoderOutputÚGenerateDecoderOnlyOutputÚGenerateEncoderDecoderOutputÚutils)ÚWatermarkDetectorÚWatermarkDetectorOutputÚBayesianDetectorModelÚBayesianDetectorConfigÚSynthIDTextWatermarkDetectorÚwatermarking)ÚTFForcedBOSTokenLogitsProcessorÚTFForcedEOSTokenLogitsProcessorÚTFForceTokensLogitsProcessorÚTFLogitsProcessorÚTFLogitsProcessorListÚTFLogitsWarperÚTFMinLengthLogitsProcessorÚTFNoBadWordsLogitsProcessorÚTFNoRepeatNGramLogitsProcessorÚ"TFRepetitionPenaltyLogitsProcessorÚ&TFSuppressTokensAtBeginLogitsProcessorÚTFSuppressTokensLogitsProcessorÚTFTemperatureLogitsWarperÚTFTopKLogitsWarperÚTFTopPLogitsWarperÚtf_logits_process)ÚTFGenerationMixinÚTFGreedySearchDecoderOnlyOutputÚ"TFGreedySearchEncoderDecoderOutputÚTFSampleEncoderDecoderOutputÚTFSampleDecoderOnlyOutputÚ TFBeamSearchEncoderDecoderOutputÚTFBeamSearchDecoderOnlyOutputÚ TFBeamSampleEncoderDecoderOutputÚTFBeamSampleDecoderOnlyOutputÚ'TFContrastiveSearchEncoderDecoderOutputÚ$TFContrastiveSearchDecoderOnlyOutputÚtf_utils)Ú!FlaxForcedBOSTokenLogitsProcessorÚ!FlaxForcedEOSTokenLogitsProcessorÚFlaxForceTokensLogitsProcessorÚFlaxLogitsProcessorÚFlaxLogitsProcessorListÚFlaxLogitsWarperÚFlaxMinLengthLogitsProcessorÚ(FlaxSuppressTokensAtBeginLogitsProcessorÚ!FlaxSuppressTokensLogitsProcessorÚFlaxTemperatureLogitsWarperÚFlaxTopKLogitsWarperÚFlaxTopPLogitsWarperÚ#FlaxWhisperTimeStampLogitsProcessorÚ FlaxNoRepeatNGramLogitsProcessorÚflax_logits_process)ÚFlaxGenerationMixinÚFlaxGreedySearchOutputÚFlaxSampleOutputÚFlaxBeamSearchOutputÚ
flax_utilsé   ) r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r<   r;   r=   r>   r?   r@   rA   rB   rD   rC   )rH   rI   rF   rG   rJ   rK   rM   rL   )rW   rV   rU   rT   rY   rX   rZ   r[   r\   r]   rO   rQ   rP   rS   rR   )rb   ra   rc   r_   r`   )r}   r|   r{   rz   r   r~   ru   rv   rw   ry   rx   )r�   r‚   rƒ   r„   r…   r†   r‡   rŽ   rˆ   r‰   rŠ   r‹   rŒ   r�   )r“   r�   r‘   r’   NÚ__file__)Úmodule_spec)˜Útypingr   r^   r   r   r   r   r	   Ú_import_structurer   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r$   r    r!   r"   r#   rE   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r<   r;   r=   r>   r?   r@   rA   rB   rD   rC   rN   rH   rI   rF   rG   rJ   rK   rM   rL   rW   rV   rU   rT   rY   rX   rZ   r[   r\   r]   rO   rQ   rP   rS   rR   rd   rb   ra   rc   r_   r`   rt   re   rf   rg   rh   ri   rj   rk   rl   rm   rn   ro   rp   rq   rr   rs   r€   r}   r|   r{   rz   r   r~   ru   rv   rw   ry   rx   r�   r�   r‚   rƒ   r„   r…   r†   r‡   rŽ   rˆ   r‰   rŠ   r‹   rŒ   r�   r”   r“   r�   r‘   r’   ÚsysÚ__name__ÚglobalsÚ__spec__Úmodules© ó    ú^/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/transformers/generation/__init__.pyú<module>r¢      sË  ðõ !ç wÕ wòò gñ
Ð ð[ÙÔÙ,Ó.Ð.ð  ò
-ÐÐ(Ñ)ò(Ð�mÑ$ò0ÐÐ+Ñ,ò!+ÐÐ&Ñ'òD	.ÐÐ)Ñ*ò"Ð�gÑò")Ð�nÑ%ð#ÙÔÙ,Ó.Ð.ð ò
.ÐÐ)Ñ*ò"%Ð�jÑ!ðÙÔÙ,Ó.Ð.ð ò
0ÐÐ+Ñ,ò 'Ð�lÑ#ò ÷÷ ÷ gÓfðQ
Ù!Ô#Ù0Ó2Ð2ð $÷
 	pÓoßjÓj÷	
ó 	
÷!	
÷ !	
÷ !	
÷ !	
÷ !	
÷ !	
÷ !	
÷ !	
ó !	
÷D		
÷ 		
ó 		
÷	
÷ 	
÷ 	
÷ 	
ñ 	
÷"	
õ 	
ð#
ÙÔ Ù0Ó2Ð2ð !÷
	
÷ 	
÷ 	
÷ 	
ñ 	
÷"	
÷ 	
÷ 	
ñ 	
ðtÙ Ô"Ù0Ó2Ð2ð #÷
	
÷ 	
÷ 	
÷ 	
÷  	tÔsãá'¨±'³)¸JÑ2GÐIZÐhpÔq€C‡K‚K�Òøðs	 &ò 	Úð	ûðz &ò 	Úð	ûðJ &ò 	Úð	ûðP *ò Ùðûðf *ò ÙðûðJ *ò Ùðúsk   ŸH& Á H2 Á>H> Â;I
 Å7I ÇI  È&H/È.H/È2H;È:H;È>IÉIÉ
IÉIÉIÉIÉ I(É'I(