+
    QV-jså  ã                  óÎ  € ^ RI Ht ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	t	^ RI
t
^ RIt^ RIHtHt ^ RIHt ^ RIHt ^ RIHtHt ^ RIHtHtHt ^RIHt ^R	IHt ^R
IHt ^RIH t  ^RI!H"t"H#t# ^RI$H%t% ^RI&H't' ^RI(H)t)H*t*H+t+H,t,H-t-H.t.H/t/H0t0H1t1H2t2H3t3H4t4H5t5 ^RI6H7t7H8t8 ^RI9H:t: ]];R,          R3,          t<]-! 4       '       g	   ]'       d   ^ RI=t=^ RI>H?t?H@t@ ^RIAHBtB ^RICHDtD MRt@]5PŠ                  ! ]F4      tGR tHR tIR tJRQR R lltKR R ltLR R ltM ! R  R!]N4      tO ! R" R#]4      tP ! R$ R%4      tQ ! R& R']Q4      tR ! R( R)]Q4      tS ! R* R+]Q4      tT ! R, R-]4      tURRR/ R0 lltV]V! R.R.R.R.R.R17      tWR2R3.R4R5R6.R7R8.R9R3.R:R;.R<R;.R=R>.R?R@.RAR@.RBR;./
tX]-! 4       '       d   ^ RCIYHZtZH[t[H\t\H]t] ]+! ]V! R.R.R.R.RD7      4       ! RE RF]U]*4      4       t^],! ]^P¾                  4      ]^n_        ]^P¾                  PÀ                  eH   ]^P¾                  PÀ                  PÃ                  RGRHRIRJ7      PÅ                  RKRL4      ]^P¾                  n`         ! RM RN]^4      tc ! RO RP4      tdR# )Sé    )ÚannotationsN)ÚABCÚabstractmethod)ÚUserDict)Úcontextmanager)ÚabspathÚexists)ÚTYPE_CHECKINGÚAnyÚUnion)Úcustom_object_save)ÚPreTrainedFeatureExtractor)ÚGenerationConfig)ÚBaseImageProcessor)Ú
AutoConfigÚAutoTokenizer)ÚProcessorMixin)ÚPreTrainedTokenizer)ÚModelOutputÚPushToHubMixinÚadd_end_docstringsÚ	copy_funcÚis_torch_availableÚis_torch_cuda_availableÚis_torch_hpu_availableÚis_torch_mlu_availableÚis_torch_mps_availableÚis_torch_musa_availableÚis_torch_npu_availableÚis_torch_xpu_availableÚlogging)ÚChatÚis_valid_message)ÚBaseVideoProcessorÚGenericTensorztorch.Tensor)Ú
DataLoaderÚDataset)ÚPreTrainedModel)Ú
KeyDatasetc                óJ   € \        V 4      ^8w  d   \        R4      hV ^ ,          # )é   z5This collate_fn is meant to be used with batch_size=1)ÚlenÚ
ValueError)Úitemss   &Úl/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/transformers/pipelines/base.pyÚno_collate_fnr0   I   s"   € Ü
ˆ5ƒz�Q„ÜÐPÓQÐQØ��8€Oó    c           	     óà  a€ \        V 4      p\        V ^ ,          S,          \        P                  4      '       Ed   V ^ ,          S,          P                  pV ^ ,          S,          P
                  pV^8X  d/   \        P                  ! V  Uu. uF  qwS,          NK  	  up^ R7      # SR	9   d/   \        P                  ! V  Uu. uF  qwS,          NK  	  up^ R7      # V^8X  d6   SR8X  d/   \        P                  ! V  Uu. uF  qwS,          NK  	  up^ R7      # \        V3R lV  4       4      p\        V3R lV  4       4      p	V ^ ,          S,          P                  p
V^8X  d5   W‰8X  d/   \        P                  ! V  Uu. uF  qwS,          NK  	  up^ R7      # \        P                  ! WH.\        VR,          4      ,           W*R7      p\        V 4       Fi  w  rÇVR8X  d1   VS,          ^ ,          W¼\        VS,          ^ ,          4      ) R13&   K<  VS,          ^ ,          W¼R\        VS,          ^ ,          4      13&   Kk  	  V# V  Uu. uF  qwS,          NK  	  up# u upi u upi u upi u upi u upi )
r   )ÚdimÚinput_featuresc              3  óV   <"  € T F  qS,          P                   ^,          x € K   	  R# 5i©r+   N©Úshape©Ú.0ÚitemÚkeys   & €r/   Ú	<genexpr>Ú_pad.<locals>.<genexpr>_   ó   øé € Ð>¹°˜c�Ÿ™¨×+Ò+»ùó   ƒ&)c              3  óV   <"  € T F  qS,          P                   ^,          x € K   	  R# 5ir6   r7   r9   s   & €r/   r=   r>   `   r?   r@   :é   NN)Ú
fill_valueÚdtypeÚleftN)Úpixel_valuesÚimage)r,   Ú
isinstanceÚtorchÚTensorr8   ÚndimÚcatÚmaxÚminrD   ÚfullÚlistÚ	enumerate)r.   r<   Úpadding_valueÚpadding_sideÚ
batch_sizer8   r3   r;   Ú
max_lengthÚ
min_lengthrD   ÚtensorÚis   &f&&         r/   Ú_padrY   O   s   ø€ Ü�U“€JÜ�%˜•(˜3•-¤§¡×.Ó.à�a•˜•×#Ñ#ˆØ�A�h�s�m× Ñ ˆØ�!Œ8ä—9’9±EÓ:±E¨D 3Ÿi˜i±EÑ:ÀÔBÐBØÐ+Ô+ô —9’9±EÓ:±E¨D 3Ÿi˜i±EÑ:ÀÔBÐBØ�AŒX˜#Ð!1Ô1ä—9’9±EÓ:±E¨D 3Ÿi˜i±EÑ:ÀÔBÐBÜÔ>¹Ó>Ó>ˆ
ÜÔ>¹Ó>Ó>ˆ
Ø�a•˜•×#Ñ#ˆà�!Œ8˜
Ô0ô —9’9±EÓ:±E¨D 3Ÿi˜i±EÑ:ÀÔBÐBä—Z’Z Ð 8¼4ÀÀbÅ	»?Õ JÐWdÔrˆFä  Ö'‰GˆAØ˜vÔ%Ø26°sµ)¸Aµ,�œ3˜t C�y¨�|Ó,Ð,Ñ.Ð.Ó/à15°cµ¸1µ�Ð-œC  S¥	¨!¥Ó-Ð-Ð-Ó.ñ	 (ð ˆá&+Ó,¡e˜d�S—	�	¡eÑ,Ð,ùò7 ;ùò ;ùò ;ùò ;ùò -s   ÂIÃ IÃ<I!Å;I&ÉI+c                óR  a aaaa€ R pR pS f   Sf   \        R4      hS e2   S P                  f   \        R4      hS P                  oS P                  pSe   \        SRR 4      o\        SRR 4      pVe   Ve   W#8w  d   \        RV RV 24      hRoVe   VoVe   VoVVVVV 3R lpV# )	NzBPipeline without tokenizer or feature_extractor cannot do batchingz“Pipeline with tokenizer without pad_token cannot do batching. You can try to set it with `pipe.tokenizer.pad_token_id = model.config.eos_token_id`.rR   rS   zAThe feature extractor, and tokenizer don't agree on padding side ú != Úrightc                ó†  <€ \        V ^ ,          P                  4       4      pV  FJ  p\        VP                  4       4      V8w  g   K#  \        R\        VP                  4       4       RV R24      h	  / pV FG  pVR8X  d   S
f   Se   SpM#S	pM VR9   d   SpMVR9   d   ^pMVR9   d   ^ pM^ p\        WVS4      W4&   KI  	  V# )r   zEThe elements of the batch contain different keys. Cannot batch them (r[   Ú)Ú	input_ids>   Úinput_valuesrF   r4   >   Úp_maskÚspecial_tokens_mask>   Úattention_maskÚtoken_type_ids)ÚsetÚkeysr-   rY   )r.   rf   r;   Úpaddedr<   Ú_padding_valueÚf_padding_valueÚfeature_extractorrS   Út_padding_valueÚ	tokenizers   &     €€€€€r/   ÚinnerÚpad_collate_fn.<locals>.inner”   sâ   ø€ Ü�5˜•8—=‘=“?Ó#ˆÛˆDÜ�4—9‘9“;Ó 4Ö'Ü Ø[Ô\_Ð`d×`iÑ`iÓ`kÓ\lÐ[mð nØ�v˜Qð óð ñ ð ˆÛˆCØ�kÔ!àÒ$Ð):Ò)FØ%4‘Nà%4‘NØÐJÔJØ!0‘ØÐ9Ô9Ø!"‘ØÐ<Ô<Ø!"‘ð "#�Ü˜u¨>¸<ÓHˆF‹Kñ! ð" ˆr1   )r-   Úpad_token_idrS   Úgetattr)rl   rj   Út_padding_sideÚf_padding_siderm   ri   rS   rk   s   ff   @@@r/   Úpad_collate_fnrs   u   sæ   ü€ à€Nà€NØÒÐ.Ò6ÜÐ]Ó^Ð^ØÒØ×!Ñ!Ò)ÜðMóð ð
 (×4Ñ4ˆOØ&×3Ñ3ˆNØÒ$ä!Ð"3°_ÀdÓKˆÜ Ð!2°NÀDÓIˆàÒ! nÒ&@À^ÔEeÜØOÐP^ÐO_Ð_cÐdrÐcsÐtó
ð 	
ð €LØÒ!Ø%ˆØÒ!Ø%ˆ÷ñ ð: €Lr1   c               ó$   € V ^8„  d   QhRRRRRR/# )rB   Úconfigr   Úmodel_classesztuple[type, ...] | NoneÚtaskú
str | None© )Úformats   "r/   Ú__annotate__r{   ´   s-   € ÷ ]ñ ]àð]ð +ð]ð ñ	]r1   c           	     óf  € \        4       '       g   \        R4      h\        V \        4      '       Ed#   W4R&   Ve   TMRpVP                  '       da   . pVP                   F<  p\
        P                  ! R4      p\        W‡R4      p	V	f   K+  VP                  V	4       K>  	  V\        V4      ,           p\        V4      ^ 8X  d   \        RV  24      h/ p
V F'  pVP                  4       p VP                  ! V 3/ VB p  M	  \        V \        4      '       dB   R
pV
P1                  4        F  w  ppVRV RV R2,          pK  	  \        RV  RV RV R24      hV #   \        \        \        \        3 d¿    RpRT9   dˆ   ^ RIpRpTP                  4       pTP"                  TR&    TP                  ! T 3/ TB p \$        P'                  R	4         KÏ    \(         d(    \*        P,                  ! 4       Y«P.                  &     EK+  i ; iT'       g"   \*        P,                  ! 4       Y«P.                  &    EK\  i ; i)aJ  
Load a model.

If `model` is instantiated, this function will just return it. Otherwise `model` is
actually a checkpoint name and this method will try to instantiate it using `model_classes`. Since we don't want to
instantiate the model twice, this model is returned for use by the pipeline.

Args:
    model (`str`, or [`PreTrainedModel`]):
        If `str`, a checkpoint name. The model to load.
    config ([`AutoConfig`]):
        The config associated with the model to help using the correct class
    model_classes (`tuple[type]`, *optional*):
        A tuple of model classes.
    task (`str`):
        The task defining which pipeline will be returned.
    model_kwargs:
        Additional dictionary of keyword arguments passed along to the model's `from_pretrained(...,
        **model_kwargs)` function.

Returns:
    The model.
zTPyTorch should be installed. Please follow the instructions at https://pytorch.org/.Ú_from_pipelineNÚtransformersz2Pipeline cannot infer suitable model classes from FrD   TzbFalling back to torch.float32 because loading with the original dtype failed on the target device.Ú zwhile loading with z, an error is thrown:
Ú
zCould not load model z$ with any of the following classes: z. See the original errors:

ry   )r   ÚRuntimeErrorrH   ÚstrÚarchitecturesÚ	importlibÚimport_modulerp   ÚappendÚtupler,   r-   ÚcopyÚfrom_pretrainedÚOSErrorÚ	TypeErrorrI   Úfloat32ÚloggerÚwarningÚ	ExceptionÚ	tracebackÚ
format_excÚ__name__r.   )Úmodelru   rv   rw   Úmodel_kwargsÚclass_tupleÚclassesÚarchitectureÚtransformers_moduleÚ_classÚall_tracebackÚmodel_classÚkwargsÚfallback_triedrI   Úfp32_kwargsÚerrorÚ
class_nameÚtraces   &&&&,              r/   Ú
load_modelr¢   ´   sH  € ô< ×ÒÜÐqÓrÐrä�%œ×ÓØ)-Ð%Ñ&Ø'4Ò'@‘mÀbˆØ××ÐØˆGØ &× 4Ô 4�Ü&/×&=Ò&=¸nÓ&MÐ#Ü Ð!4ÀDÓI�ØÔ%Ø—N‘N 6Ö*ñ	 !5ð
 &¬¨g«Õ6ˆKäˆ{Ó˜qÔ ÜÐQÐRWÐQXÐYÓZÐZàˆÛ&ˆKØ!×&Ñ&Ó(ˆFðØ#×3Ò3°EÑD¸VÑD�áñ 'ôH �eœS×!Ò!ØˆEØ%2×%8Ñ%8Ö%:Ñ!�
˜EØÐ.¨z¨lÐ:QÐRWÐQXÐXZÐ[Õ[’ñ &;äØ'¨ wÐ.RÐS^ÐR_Ð_}ð  Dð  ~Eð  EGð  Hóð ð €LøôK œZ¬´LÐAô ð "'�Ø˜fÔ$Û à%)�NØ"(§+¡+£-�KØ+0¯=©=�K Ñ(ð
!Ø +× ;Ò ;¸EÑ QÀ[Ñ Q˜ÜŸ™ð.ôó øÜ$ô !ä>G×>RÒ>RÓ>T˜×&:Ñ&:Ñ;Ü ð!ú÷ &Ü:C×:NÒ:NÓ:P�M×"6Ñ"6Ñ7Ûð7ús7   Ã'EÅA	H0Æ!(GÇ,G?Ç9H0Ç>G?Ç?
H0È
!H0È/H0c               ó$   € V ^8„  d   QhRRRRRR/# )rB   Útargeted_taskÚdictÚtask_optionsz
Any | NoneÚreturnztuple[str, str]ry   )rz   s   "r/   r{   r{     s"   € ÷ ñ °$ð Àjð ÐUdñ r1   c                ó¶   € V R,          pV'       d&   W9  d   \        RV 24      hW!,          R,          pV# RV9   d   V R,          R,          pV# \        R4      h)aŸ  
Select a default model to use for a given task.

Args:
    targeted_task (`Dict`):
       Dictionary representing the given task, that should contain default models

    task_options (`Any`, None)
       Any further value required by the task to get fully specified.

Returns

    Tuple:
        - `str` The model string representing the default model for this pipeline.
        - `str` The revision of the model.
Údefaultz9The task does not provide any default models for options r“   z.The task defaults can't be correctly selected.)r-   )r¤   r¦   ÚdefaultsÚdefault_modelss   &&  r/   Úget_default_model_and_revisionr¬     sp   € ð" ˜YÕ'€HßØÔ'ÜÐXÐYeÐXfÐgÓhÐhØ!Õ/°Õ8ˆð Ðð 
�HÔ	Ø& yÕ1°'Õ:ˆð Ðô ÐIÓJÐJr1   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	rB   r“   r(   Úassistant_modelzstr | PreTrainedModel | NoneÚassistant_tokenizerúPreTrainedTokenizer | Noner§   z9tuple[PreTrainedModel | None, PreTrainedTokenizer | None]ry   )rz   s   "r/   r{   r{   2  s0   € ÷ 1>ñ 1>Øð1>à1ð1>ð 4ð1>ð ?ñ	1>r1   c                ó’  aa	€ V P                  4       '       d   Vf   R# \        V\        4      '       da   \        P                  ! V4      p\        WR7      pVP                  V P                  V P                  R7      p\        P                  ! V4      pMTpTpV P                  P                  4       o	VP                  P                  4       oS	P                  SP                  8H  p\        ;QJ d     VV	3R lR	 4       F  '       d   K   RM	  RM! VV	3R lR	 4       4      pV'       d   V'       d   RpWE3# Vf   \        R4      hWE3# )
an  
Prepares the assistant model and the assistant tokenizer for a pipeline whose model that can call `generate`.

Args:
    model ([`PreTrainedModel`]):
        The main model that will be used by the pipeline to make predictions.
    assistant_model (`str` or [`PreTrainedModel`], *optional*):
        The assistant model that will be used by the pipeline to make predictions.
    assistant_tokenizer ([`PreTrainedTokenizer`], *optional*):
        The assistant tokenizer that will be used by the pipeline to encode data for the model.

Returns:
    Tuple: The loaded assistant model and (optionally) the loaded tokenizer.
N)ru   )ÚdevicerD   c              3  óV   <"  € T F  p\        SV4      \        SV4      8H  x € K   	  R # 5i©N)rp   )r:   ÚtokenÚassistant_text_configÚmodel_text_configs   & €€r/   r=   Ú'load_assistant_model.<locals>.<genexpr>W  s-   øé € ð áEˆEô 	Ð! 5Ó)¬WÐ5JÈEÓ-RÖRÛEùr@   FTzkThe assistant model has a different tokenizer than the main model. You should pass the assistant tokenizer.©NN)Úeos_token_idro   Úbos_token_id)Úcan_generaterH   r‚   r   r‰   r¢   Útor²   rD   r   ru   Úget_text_configÚ
vocab_sizeÚallr-   )
r“   r®   r¯   Úassistant_configÚloaded_assistant_modelÚloaded_assistant_tokenizerÚsame_vocab_sizeÚsame_special_tokensr¶   r·   s
   &&&     @@r/   Úload_assistant_modelrÆ   2  s4  ù€ ð& ×Ñ×Ò ?Ò#:ØÐô �/¤3×'Ò'Ü%×5Ò5°oÓFÐÜ!+¨OÔ!UÐØ!7×!:Ñ!:À%Ç,Á,ÐV[×VaÑVaÐ!:Ó!bÐÜ%2×%BÒ%BÀ?Ó%SÑ"à!0ÐØ%8Ð"ð Ÿ™×4Ñ4Ó6ÐØ2×9Ñ9×IÑIÓKÐØ'×2Ñ2Ð6K×6VÑ6VÑV€Oß›#õ áEóŸ#Ÿ#š#õ áEóó Ð÷ ×.Ø%)Ð"ð "Ð=Ð=ð 
$Ò	+Üðó
ð 	
ð
 "Ð=Ð=r1   c                  ó2   a € ] tR tRtRtR V 3R lltRtV ;t# )ÚPipelineExceptionif  zÊ
Raised by a [`Pipeline`] when handling __call__.

Args:
    task (`str`): The task of the pipeline.
    model (`str`): The model used by the pipeline.
    reason (`str`): The error message to display.
c               ó$   € V ^8„  d   QhRRRRRR/# )rB   rw   r‚   r“   Úreasonry   )rz   s   "r/   r{   ÚPipelineException.__annotate__p  s!   € ÷ ñ ˜Sð ¨ð °cñ r1   c                	ó>   <€ \         SV `  V4       Wn        W n        R # r´   )ÚsuperÚ__init__rw   r“   )Úselfrw   r“   rÊ   Ú	__class__s   &&&&€r/   rÎ   ÚPipelineException.__init__p  s   ø€ Ü‰Ñ˜Ô àŒ	ØŽ
r1   )r“   rw   )r’   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__rÎ   Ú__static_attributes__Ú__classcell__©rÐ   s   @r/   rÈ   rÈ   f  s   ø† ñ÷ö r1   rÈ   c                  ó*   € ] tR tRtRt]R 4       tRtR# )ÚArgumentHandleriw  zI
Base interface for handling arguments for each [`~pipelines.Pipeline`].
c                	ó   € \        4       hr´   ©ÚNotImplementedError)rÏ   Úargsrœ   s   &*,r/   Ú__call__ÚArgumentHandler.__call__|  ó   € ä!Ó#Ð#r1   ry   N)r’   rÒ   rÓ   rÔ   rÕ   r   rß   rÖ   ry   r1   r/   rÚ   rÚ   w  s   † ñð ñ$ó ô$r1   rÚ   c                  ó~   € ] tR tRtRt. ROtRR R llt]R 4       t]R R l4       t	R R	 lt
]RR
 R ll4       tRtR# )ÚPipelineDataFormati�  a~  
Base class for all the pipeline supported data format both for reading and writing. Supported data formats
currently includes:

- JSON
- CSV
- stdin/stdout (pipe)

`PipelineDataFormat` also includes some utilities to work with multi-columns like mapping from datasets columns to
pipelines keyword arguments through the `dataset_kwarg_1=dataset_column_1` format.

Args:
    output_path (`str`): Where to save the outgoing data.
    input_path (`str`): Where to look for the input data.
    column (`str`): The column to read.
    overwrite (`bool`, *optional*, defaults to `False`):
        Whether or not to overwrite the `output_path`.
c               ó(   € V ^8„  d   QhRRRRRRRR/# )rB   Úoutput_pathrx   Ú
input_pathÚcolumnÚ	overwriteÚboolry   )rz   s   "r/   r{   ÚPipelineDataFormat.__annotate__—  s8   € ÷ Jñ JàðJð ðJð ð	Jð
 ñJr1   c                	óZ  € Wn         W n        Ve   VP                  R4      MR.V n        \	        V P                  4      ^8„  V n        V P
                  '       dD   V P                   Uu. uF'  pRV9   d   \        VP                  R4      4      MWU3NK)  	  upV n        VeE   V'       g=   \        \        V P                   4      4      '       d   \        V P                    R24      hVe?   \        \        V P                  4      4      '       g   \        V P                   R24      hR # R # u upi )NÚ,r   Ú=z already exists on diskz doesn't exist on disk)
rå   ræ   Úsplitrç   r,   Úis_multi_columnsr‡   r	   r   rŠ   )rÏ   rå   ræ   rç   rè   Úcs   &&&&& r/   rÎ   ÚPipelineDataFormat.__init__—  sü   € ð 'ÔØ$ŒØ+1Ò+=�f—l‘l 3Ô'ÀBÀ4ˆŒÜ # D§K¡KÓ 0°1Ñ 4ˆÔà× × Ð ØPT×P[ÒP[Ó\ÑP[È1°#¸´(œ5 §¡¨£Ô.ÀÀÒFÑP[Ñ\ˆDŒKàÒ"¯9Ü”g˜d×.Ñ.Ó/×0Ò0Ü ×!1Ñ!1Ð 2Ð2IÐJÓKÐKàÒ!Üœ' $§/¡/Ó2×3Ò3Ü §¡Ð 1Ð1GÐHÓIÐIñ 4ñ "ùò ]s   Á'-D(c                	ó   € \        4       hr´   rÜ   ©rÏ   s   &r/   Ú__iter__ÚPipelineDataFormat.__iter__®  rá   r1   c               ó   € V ^8„  d   QhRR/# )rB   Údataúdict | list[dict]ry   )rz   s   "r/   r{   rê   ³  s   € ÷ $ñ $Ð*ñ $r1   c                ó   € \        4       h)z©
Save the provided data object with the representation for the current [`~pipelines.PipelineDataFormat`].

Args:
    data (`dict` or list of `dict`): The data to store.
rÜ   ©rÏ   r÷   s   &&r/   ÚsaveÚPipelineDataFormat.save²  s   € ô "Ó#Ð#r1   c               ó    € V ^8„  d   QhRRRR/# ©rB   r÷   rø   r§   r‚   ry   )rz   s   "r/   r{   rê   ¼  s   € ÷ ñ Ð 1ð °cñ r1   c                ó@  € \         P                  P                  V P                  4      w  r#\         P                  P                  P                  VR34      p\        VR4      ;_uu_ 4       p\        P                  ! W4       RRR4       V#   + '       g   i     T# ; i)zÆ
Save the provided data object as a pickle-formatted binary data on the disk.

Args:
    data (`dict` or list of `dict`): The data to store.

Returns:
    `str`: Path where the data has been saved.
Úpicklezwb+N)	ÚosÚpathÚsplitextrå   ÚextsepÚjoinÚopenr   Údump)rÏ   r÷   r  Ú_Úbinary_pathÚf_outputs   &&    r/   Úsave_binaryÚPipelineDataFormat.save_binary¼  sv   € ô —'‘'×"Ñ" 4×#3Ñ#3Ó4‰ˆÜ—g‘g—n‘n×)Ñ)¨4°Ð*:Ó;ˆä�+˜u×%Ô%¨Ü�KŠK˜Ô'÷ &ð Ð÷ &Ö%ð Ðús   Á+BÂB	c          
     ó,   € V ^8„  d   QhRRRRRRRRRR/# )	rB   rz   r‚   rå   rx   ræ   rç   r§   rã   ry   )rz   s   "r/   r{   rê   Ï  sA   € ÷  \ñ  \Øð \àð \ð ð \ð ð	 \ð 
ñ \r1   c                ó˜   € V R8X  d   \        WW4R7      # V R8X  d   \        WW4R7      # V R8X  d   \        WW4R7      # \        RV  R24      h)at  
Creates an instance of the right subclass of [`~pipelines.PipelineDataFormat`] depending on `format`.

Args:
    format (`str`):
        The format of the desired pipeline. Acceptable values are `"json"`, `"csv"` or `"pipe"`.
    output_path (`str`, *optional*):
        Where to save the outgoing data.
    input_path (`str`, *optional*):
        Where to look for the input data.
    column (`str`, *optional*):
        The column to read.
    overwrite (`bool`, *optional*, defaults to `False`):
        Whether or not to overwrite the `output_path`.

Returns:
    [`~pipelines.PipelineDataFormat`]: The proper data format.
Újson©rè   ÚcsvÚpipezUnknown reader z% (Available reader are json/csv/pipe))ÚJsonPipelineDataFormatÚCsvPipelineDataFormatÚPipedPipelineDataFormatÚKeyError)rz   rå   ræ   rç   rè   s   &&&&&r/   Úfrom_strÚPipelineDataFormat.from_strÎ  sW   € ð4 �VÔÜ)¨+À6Ô_Ð_Ø�uŒ_Ü(¨À&Ô^Ð^Ø�vÔÜ*¨;ÀFÔ`Ð`ä˜_¨V¨HÐ4YÐZÓ[Ð[r1   )rç   ræ   rï   rå   N)r  r  r  ©F)r’   rÒ   rÓ   rÔ   rÕ   ÚSUPPORTED_FORMATSrÎ   r   rô   rû   r  Ústaticmethodr  rÖ   ry   r1   r/   rã   rã   �  sX   † ñò& 0Ð÷Jð. ñ$ó ð$ð ô$ó ð$õð$ ö \ó ô \r1   rã   c                  óH   a € ] tR tRtRtR	R V 3R llltR tR R ltRtV ;t	# )
r  iò  aA  
Support for pipelines using CSV data format.

Args:
    output_path (`str`): Where to save the outgoing data.
    input_path (`str`): Where to look for the input data.
    column (`str`): The column to read.
    overwrite (`bool`, *optional*, defaults to `False`):
        Whether or not to overwrite the `output_path`.
c               ó$   € V ^8„  d   QhRRRRRR/# ©rB   rå   rx   ræ   rç   ry   )rz   s   "r/   r{   Ú"CsvPipelineDataFormat.__annotate__þ  s-   € ÷ Oñ OàðOð ðOð ñ	Or1   c                	ó*   <€ \         SV `  WW4R 7       R# )r  N)rÍ   rÎ   )rÏ   rå   ræ   rç   rè   rÐ   s   &&&&&€r/   rÎ   ÚCsvPipelineDataFormat.__init__þ  s   ø€ ô 	‰Ñ˜°&ÐÖNr1   c           
   #  	ó~  "  € \        V P                  R 4      ;_uu_ 4       p\        P                  ! V4      pV F[  pV P                  '       d,   V P
                   UUu/ uF  w  rEWCV,          bK  	  uppx € K@  W0P
                  ^ ,          ,          x € K]  	  RRR4       R# u uppi   + '       g   i     R# ; i5i)ÚrN)r  ræ   r  Ú
DictReaderrï   rç   )rÏ   ÚfÚreaderÚrowÚkrð   s   &     r/   rô   ÚCsvPipelineDataFormat.__iter__  s†   é € Ü�$—/‘/ 3×'Ô'¨1Ü—^’^ AÓ&ˆFÛ�Ø×(×(Ð(Ø15·²Ô=±©¨˜1 !�fš9±Ò=Ô=àŸk™k¨!�nÕ-Ô-ñ	 ÷ (Ñ'ùó >÷	 (×'Ð'üs.   ‚B=¡=B)ÁB#Á2'B)Â
B=Â#B)Â)B:	Â4	B=c               ó   € V ^8„  d   QhRR/# )rB   r÷   z
list[dict]ry   )rz   s   "r/   r{   r    s   € ÷ 'ñ '˜ñ 'r1   c           	     óH  € \        V P                  R4      ;_uu_ 4       p\        V4      ^ 8”  dW   \        P                  ! V\        V^ ,          P                  4       4      4      pVP                  4        VP                  V4       RRR4       R#   + '       g   i     R# ; i)z�
Save the provided data object with the representation for the current [`~pipelines.PipelineDataFormat`].

Args:
    data (`list[dict]`): The data to store.
ÚwN)	r  rå   r,   r  Ú
DictWriterrP   rf   ÚwriteheaderÚ	writerows)rÏ   r÷   r%  Úwriters   &&  r/   rû   ÚCsvPipelineDataFormat.save  sl   € ô �$×"Ñ" C×(Ô(¨AÜ�4‹y˜1Œ}ÜŸš¨¬4°°Qµ·±³Ó+?Ó@�Ø×"Ñ"Ô$Ø× Ñ  Ô&÷	 )×(×(Ò(ús   ŸA'BÂB!	ry   r  ©
r’   rÒ   rÓ   rÔ   rÕ   rÎ   rô   rû   rÖ   r×   rØ   s   @r/   r  r  ò  s#   ø† ñ	÷Oò Oò.÷'ó 'r1   r  c                  óH   a € ] tR tRtRtR	R V 3R llltR tR R ltRtV ;t	# )
r  i  aB  
Support for pipelines using JSON file format.

Args:
    output_path (`str`): Where to save the outgoing data.
    input_path (`str`): Where to look for the input data.
    column (`str`): The column to read.
    overwrite (`bool`, *optional*, defaults to `False`):
        Whether or not to overwrite the `output_path`.
c               ó$   € V ^8„  d   QhRRRRRR/# r  ry   )rz   s   "r/   r{   Ú#JsonPipelineDataFormat.__annotate__*  s(   € ÷ 
)ñ 
)àð
)ð ð
)ð ñ	
)r1   c                	óÂ   <€ \         SV `  WW4R 7       \        VR4      ;_uu_ 4       p\        P                  ! V4      V n        RRR4       R#   + '       g   i     R# ; i)r  r#  N)rÍ   rÎ   r  r  ÚloadÚ_entries)rÏ   rå   ræ   rç   rè   r%  rÐ   s   &&&&& €r/   rÎ   ÚJsonPipelineDataFormat.__init__*  sD   ø€ ô 	‰Ñ˜°&ÐÔNä�*˜c×"Ô" aÜ ŸIšI a›LˆDŒM÷ #×"×"Ò"ús   §AÁA	c              #  	óð   "  € V P                    F[  pV P                  '       d,   V P                   UUu/ uF  w  r#W!V,          bK  	  uppx € K@  WP                  ^ ,          ,          x € K]  	  R# u uppi 5i©r   N)r8  rï   rç   )rÏ   Úentryr(  rð   s   &   r/   rô   ÚJsonPipelineDataFormat.__iter__6  sT   é € Ø—]”]ˆEØ×$×$Ð$Ø/3¯{ª{Ô;©{¡t q�q �(’{©{Ò;Ô;àŸK™K¨�NÕ+Ô+ó	 #ùã;ùs   ‚1A6³A0Á/A6c               ó   € V ^8„  d   QhRR/# ©rB   r÷   r¥   ry   )rz   s   "r/   r{   r5  =  s   € ÷ ñ ˜ñ r1   c                ó¨   € \        V P                  R4      ;_uu_ 4       p\        P                  ! W4       RRR4       R#   + '       g   i     R# ; i)z\
Save the provided data object in a json file.

Args:
    data (`dict`): The data to store.
r,  N)r  rå   r  r  )rÏ   r÷   r%  s   && r/   rû   ÚJsonPipelineDataFormat.save=  s4   € ô �$×"Ñ" C×(Ô(¨AÜ�IŠI�dÔ÷ )×(×(Ò(ús   ŸA Á A	)r8  r  r2  rØ   s   @r/   r  r    s!   ø† ñ	÷
)ò 
)ò,÷ó r1   r  c                  óD   a € ] tR tRtRtR tR R ltR V 3R lltRtV ;t	# )	r  iH  aÙ  
Read data from piped input to the python process. For multi columns data, columns should separated by       

If columns are provided, then the output will be a dictionary with {column_x: value_x}

Args:
    output_path (`str`): Where to save the outgoing data.
    input_path (`str`): Where to look for the input data.
    column (`str`): The column to read.
    overwrite (`bool`, *optional*, defaults to `False`):
        Whether or not to overwrite the `output_path`.
c           	   #  	ó*  "  € \         P                   Fs  pR V9   df   VP                  R 4      pV P                  '       d4   \	        V P                  V4       UUUu/ uF
  w  w  r#qBVbK  	  upppx € K`  \        V4      x € Ko  Vx € Ku  	  R# u upppi 5i)Ú	N)ÚsysÚstdinrî   rç   Úzipr‡   )rÏ   Úlinerœ   r  Úls   &    r/   rô   Ú PipedPipelineDataFormat.__iter__V  sr   é € Ü—I”IˆDà�tŒ|Ø—z‘z $Ó'�Ø—;—;�;ä;>¸t¿{¹{ÈDÔ;QÕRÑ;Q©©¨&°a 1š9Ñ;QÓRÔRä ›+Ô%ð ”
ó ùô Sùs   ‚=BÁ BÁB
Á*)Bc               ó   € V ^8„  d   QhRR/# r?  ry   )rz   s   "r/   r{   Ú$PipedPipelineDataFormat.__annotate__e  s   € ÷ ñ ˜ñ r1   c                ó   € \        V4       R# )z>
Print the data.

Args:
    data (`dict`): The data to store.
N)Úprintrú   s   &&r/   rû   ÚPipedPipelineDataFormat.savee  s   € ô 	ˆdŽr1   c               ó    € V ^8„  d   QhRRRR/# rþ   ry   )rz   s   "r/   r{   rL  n  s   € ÷ )ñ )Ð 1ð )°cñ )r1   c                	óT   <€ V P                   f   \        R4      h\        SV `  V4      # )Nz“When using piped input on pipeline outputting large object requires an output file path. Please provide such output path through --output argument.)rå   r  rÍ   r  )rÏ   r÷   rÐ   s   &&€r/   r  Ú#PipedPipelineDataFormat.save_binaryn  s4   ø€ Ø×ÑÒ#ÜðMóð ô
 ‰wÑ" 4Ó(Ð(r1   ry   )
r’   rÒ   rÓ   rÔ   rÕ   rô   rû   r  rÖ   r×   rØ   s   @r/   r  r  H  s   ø† ñòõ÷)ö )r1   r  c                  ó:   € ] tR tRtRt]R 4       t]R 4       tRtR# )Ú_ScikitCompatix  z9
Interface layer for the Scikit and Keras compatibility.
c                	ó   € \        4       hr´   rÜ   ©rÏ   ÚXs   &&r/   Ú	transformÚ_ScikitCompat.transform}  rá   r1   c                	ó   € \        4       hr´   rÜ   rV  s   &&r/   ÚpredictÚ_ScikitCompat.predict�  rá   r1   ry   N)	r’   rÒ   rÓ   rÔ   rÕ   r   rX  r[  rÖ   ry   r1   r/   rT  rT  x  s/   † ñð ñ$ó ð$ð ñ$ó ô$r1   rT  Tc               ó4   € V ^8„  d   QhRRRRRRRRRRRRRR	/# )
rB   Úhas_tokenizerré   Úhas_feature_extractorÚhas_image_processorÚhas_video_processorÚhas_processorÚsupports_binary_outputr§   r‚   ry   )rz   s   "r/   r{   r{   †  sN   € ÷ >ñ >Øð>àð>ð ð>ð ð	>ð
 ð>ð !ð>ð 	ñ>r1   c                óè   € R pV '       d
   VR,          pV'       d
   VR,          pV'       d
   VR,          pV'       d
   VR,          pV'       d
   VR,          pVR,          pV'       d
   VR,          pV# )zË
    Arguments:
        model ([`PreTrainedModel`]):
            The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
            [`PreTrainedModel`].zÆ
        tokenizer ([`PreTrainedTokenizer`]):
            The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
            [`PreTrainedTokenizer`].zà
        feature_extractor ([`SequenceFeatureExtractor`]):
            The feature extractor that will be used by the pipeline to encode data for the model. This object inherits from
            [`SequenceFeatureExtractor`].zÐ
        image_processor ([`BaseImageProcessor`]):
            The image processor that will be used by the pipeline to encode data for the model. This object inherits from
            [`BaseImageProcessor`].zÖ
        video_processor ([`BaseVideoProcessor`]):
            The video processor that will be used by the pipeline to encode video data for the model. This object
            inherits from [`BaseVideoProcessor`].a4  
        processor ([`ProcessorMixin`]):
            The processor that will be used by the pipeline to encode data for the model. This object inherits from
            [`ProcessorMixin`]. Processor is a composite object that might contain `tokenizer`, `feature_extractor`, and
            `image_processor`.a2  
        task (`str`, defaults to `""`):
            A task-identifier for the pipeline.
        num_workers (`int`, *optional*, defaults to 8):
            When the pipeline will use *DataLoader* (when passing a dataset, on GPU for a Pytorch model), the number of
            workers to be used.
        batch_size (`int`, *optional*, defaults to 1):
            When the pipeline will use *DataLoader* (when passing a dataset, on GPU for a Pytorch model), the size of
            the batch to use, for inference this is not always beneficial, please read [Batching with
            pipelines](https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching) .
        args_parser ([`~pipelines.ArgumentHandler`], *optional*):
            Reference to the object in charge of parsing supplied pipeline parameters.
        device (`int`, *optional*, defaults to -1):
            Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
            the associated CUDA device id. You can pass native `torch.device` or a `str` too
        dtype (`str` or `torch.dtype`, *optional*):
            Sent directly as `model_kwargs` (just a simpler shortcut) to use the available precision for this model
            (`torch.float16`, `torch.bfloat16`, ... or `"auto"`)zÝ
        binary_output (`bool`, *optional*, defaults to `False`):
            Flag indicating if the output the pipeline should happen in a serialized format (i.e., pickle) or as
            the raw output data e.g. text.ry   )r^  r_  r`  ra  rb  rc  Ú	docstrings   &&&&&& r/   Úbuild_pipeline_init_argsrf  †  sœ   € ð$€I÷
 Øð (õ 	(ˆ	÷ Øð -õ 	-ˆ	÷ Øð 'õ 	'ˆ	÷ Øð 5õ 	5ˆ	÷ Øð "õ 	"ˆ	ð
 ð Dõ D€I÷$ Øð .õ 	.ˆ	ð Ðr1   )r^  r_  r`  rb  rc  zdocument-question-answeringÚPeftModelForQuestionAnsweringzfeature-extractionÚPeftModelForFeatureExtractionÚ	PeftModelÚsummarizationÚPeftModelForSeq2SeqLMztable-question-answeringztext-classificationÚ"PeftModelForSequenceClassificationzsentiment-analysisztext-generationÚPeftModelForCausalLMztoken-classificationÚPeftModelForTokenClassificationÚnerzzero-shot-classification)ÚPipelineChunkIteratorÚPipelineDatasetÚPipelineIteratorÚPipelinePackIterator)r^  r_  r`  rb  c                  óF  € ] tR tRtRtRtRtRtRtRt	Rt
RtR'R R lltR tR R	 ltR
 tR t]R R l4       t]R R l4       t]R 4       tR tR tR R lt]R 4       t]R R l4       t]R R l4       t]R R l4       tR tR tR R lt R RR!R/R" lt!R# t"R$ t#R% t$R&t%R# )(ÚPipelineiå  aæ  
The Pipeline class is the class from which all pipelines inherit. Refer to this class for methods shared across
different pipelines.

Base class implementing pipelined operations. Pipeline workflow is defined as a sequence of the following
operations:

    Input -> Tokenization -> Model Inference -> Post-Processing (task dependent) -> Output

Pipeline supports running on CPU or GPU through the device argument (see below).

Some pipeline, like for instance [`FeatureExtractionPipeline`] (`'feature-extraction'`) output large tensor object
as nested-lists. In order to avoid dumping such large structure as textual data we provide the `binary_output`
constructor argument. If set to `True`, the output will be stored in the pickle format.
NFc               ó<   € V ^8„  d   QhRRRRRRRRR	R
RRRRRRRR/	# )rB   r“   r(   rl   r°   rj   z!PreTrainedFeatureExtractor | NoneÚimage_processorzBaseImageProcessor | NoneÚvideo_processorzBaseVideoProcessor | NoneÚ	processorzProcessorMixin | Nonerw   r‚   r²   zint | torch.device | NoneÚbinary_outputré   ry   )rz   s   "r/   r{   ÚPipeline.__annotate__  so   € ÷ b>ñ b>àðb>ð .ðb>ð =ð	b>ð
 3ðb>ð 3ðb>ð )ðb>ð ðb>ð *ðb>ð ñb>r1   c
                	ó¤  € V
P                  R R4      V
P                  RR4      V
P                  RR4      p  Wpn        Wn        W n        W0n        W@n        WPn        W`n        \        V P                  RR4      pVe   Ve   \        R4      hVf*   Ve$   \        \        VP                  4       4      4      pM^ pVR 8X  d/   V P                  P                  e   V P                  P                  p\        V\        P                  4      '       d[   VP                   R8X  d   \#        RR7      '       d"   VP                   R	8X  d   \%        4       '       g   \        V R
24      hW€n        EMý\        V\&        4      '       d\   RV9   d   \#        RR7      '       d   R	V9   d   \%        4       '       g   \        V R
24      h\        P                  ! V4      V n        EMŒV^ 8  d   \        P                  ! R4      V n        EMh\)        4       '       d!   \        P                  ! RV 24      V n        EM8\+        4       '       d!   \        P                  ! RV 24      V n        EM\-        4       '       d    \        P                  ! RV 24      V n        MÙ\/        4       '       d    \        P                  ! RV 24      V n        Mª\%        4       '       d    \        P                  ! RV 24      V n        M{\#        RR7      '       d    \        P                  ! RV 24      V n        MJ\1        4       '       d    \        P                  ! RV 24      V n        M\        P                  ! R4      V n        \        P2                  P5                  4       '       d@   \        P2                  P7                  4       '       d   V P                  P                  V n        \8        P;                  RV P                   24       W�n        V P                  P                  V P                  8w  d[   \        V P                  \>        4      '       d   V P                  ^ 8  g*   Vf&   V P                  PA                  V P                  4       V PB                  '       Ed‰   V P                  PE                  4       '       Edh   \G        V P                  V
P                  RR4      V
P                  RR4      4      w  V n$        V n%        \M        V P                  PN                  R4      '       d!   V P                  PN                  PP                  MRV n(        \        V R\S        4       4      p\M        V P                  R4      '       dŸ   V P                  PT                  ! R!RV/V
B w  rêWàn+        VPX                  ej   V PV                  PX                  VPX                  8X  dE   V PV                  PZ                  e-   V PV                  PZ                  ^8w  d   RV PV                  n,        M/\\        P^                  ! V P                  PV                  4      V n+        \        V P                  PN                  RR4      pVeQ   W9   dK   VPa                  V4      pRV9   d   VP                  R4      V n(        V PV                  Pb                  ! R!/ VB  V P                  eV   V P                  Pd                  e>   V PV                  Pd                  f&   V P                  Pd                  V PV                  n2        ^ V n3        V
P                  RR4      V n4        V
P                  RR4      V n5        V Pl                  ! R!/ V
B w  V n7        V n8        V n9        V P                  e�   \u        V P                  RJ V P                  RJ V P
                  RJ .4      '       dU   \        V P                  RR4      V n        \        V P                  RR4      V n        \        V P                  RR4      V n        V P
                  fF   V P                  e6   \        V P                  \v        4      '       d   V P                  V n        R# R# R# R# )"Úargs_parserNÚtorch_dtyperD   Úhf_device_mapz¨The model has been loaded with `accelerate` and therefore cannot be moved to a specific device. Please discard the `device` argument when creating your pipeline object.ÚxpuT)Úcheck_deviceÚhpuz6 is not available, you should use device="cpu" insteadÚcpuzmlu:zmusa:zcuda:znpu:zhpu:zxpu:zmps:zDevice set to use r®   r¯   ÚprefixÚ_default_generation_configÚ_prepare_generation_configÚgeneration_configÚtask_specific_paramsrT   Únum_workersrl   rj   rw  éÿÿÿÿry   )<Úpoprw   r“   rl   rj   rw  rx  ry  rp   r-   ÚnextÚiterÚvaluesr²   rH   rI   Útyper    r   r‚   r   r   r   r   r   ÚdistributedÚis_availableÚis_initializedr�   Údebugrz  Úintr½   Ú_pipeline_calls_generater¼   rÆ   r®   r¯   Úhasattrru   r„  r   r†  r‡  Úmax_new_tokensrU   rˆ   ÚdeepcopyÚgetÚupdatero   Ú
call_countÚ_batch_sizeÚ_num_workersÚ_sanitize_parametersÚ_preprocess_paramsÚ_forward_paramsÚ_postprocess_paramsrÀ   r   )rÏ   r“   rl   rj   rw  rx  ry  rw   r²   rz  rœ   r  r  Ú"default_pipeline_generation_configÚprepared_generation_configrˆ  Úthis_task_paramss   &&&&&&&&&&,      r/   rÎ   ÚPipeline.__init__  sc  € ð —*‘*˜]¨DÓ1°6·:±:¸mÈTÓ3RÐTZ×T^ÑT^Ð_fÐhlÓTmˆaˆ1ˆàŒ	ØŒ
Ø"ŒØ!2ÔØ.ÔØ.ÔØ"Œô   §
¡
¨O¸TÓBˆàÒ$¨Ò);ÜðTóð ð
 Š>ØÒ(äœd =×#7Ñ#7Ó#9Ó:Ó;‘à�à�RŒ<˜DŸJ™J×-Ñ-Ò9Ø—Z‘Z×&Ñ&ˆFÜ�fœeŸl™l×+Ò+Ø—‘˜uÔ$Ô-CÐQU×-VÓ-VØ—‘˜uÔ$Ô-C×-EÒ-Eä  F 8Ð+aÐ!bÓcÐcà ŽKÜ˜¤×$Ò$Ø˜”Ô(>ÈD×(QÓ(QØ˜”Ô(>×(@Ò(@ä  F 8Ð+aÐ!bÓcÐcäŸ,š, vÓ.ˆDŽKØ�aŒZÜŸ,š, uÓ-ˆDŽKÜ#×%Ò%ÜŸ,š,¨¨f¨X Ó7ˆDŽKÜ$×&Ò&ÜŸ,š,¨¨v¨hÐ'7Ó8ˆDŽKÜ$×&Ò&ÜŸ,š,¨¨v¨hÐ'7Ó8ˆD�KÜ#×%Ò%ÜŸ,š,¨¨f¨X Ó7ˆD�KÜ#×%Ò%ÜŸ,š,¨¨f¨X Ó7ˆD�KÜ#°×6Ó6ÜŸ,š,¨¨f¨X Ó7ˆD�KÜ#×%Ò%ÜŸ,š,¨¨f¨X Ó7ˆD�KäŸ,š, uÓ-ˆDŒKä×Ñ×)Ñ)×+Ò+´×0AÑ0A×0PÑ0P×0RÒ0RØŸ*™*×+Ñ+ˆDŒKÜ�‰Ð)¨$¯+©+¨Ð7Ô8à*Ôð �J‰J×Ñ §¡Ô,Ü §¡¬S×1Ò1°d·k±kÀA´oØÒ%à�J‰J�M‰M˜$Ÿ+™+Ô&ð ×(×(Ñ(¨T¯Z©Z×-DÑ-D×-FÓ-FÜ=QØ—
‘
˜FŸJ™JÐ'8¸$Ó?ÀÇÁÐLaÐcgÓAhó>Ñ:ˆDÔ  $Ô":ô 7>¸d¿j¹j×>OÑ>OÐQY×6ZÒ6Z˜$Ÿ*™*×+Ñ+×2Ò2Ð`dˆDŒKô 29¸Ð?[Ô]mÓ]oÓ1pÐ.Ü�t—z‘zÐ#?×@Ò@ð 6:·Z±Z×5ZÒ5Zñ 6Ø&Hð6ØLRñ6Ñ2Ð*ð *DÔ&ð
 7×EÑEÒQØ×.Ñ.×=Ñ=ÐAc×ArÑArÔrØ×.Ñ.×9Ñ9ÒEØ×.Ñ.×9Ñ9¸RÔ?à<@�D×*Ñ*Ô9øô
 *.¯ª°t·z±z×7SÑ7SÓ)T�Ô&ô $+¨4¯:©:×+<Ñ+<Ð>TÐVZÓ#[Ð Ø#Ò/°DÔ4PØ#7×#;Ñ#;¸DÓ#AÐ ØÐ/Ô/Ø"2×"6Ñ"6°xÓ"@�D”KØ×&Ñ&×-Ò-ÑAÐ0@ÒAð —‘Ò*Ø—N‘N×/Ñ/Ò;Ø×*Ñ*×7Ñ7Ò?à6:·n±n×6QÑ6Q�×&Ñ&Ô3àˆŒØ!Ÿ:™: l°DÓ9ˆÔØ"ŸJ™J }°dÓ;ˆÔØRV×RkÒRkÑRuÐntÑRuÑOˆÔ Ô!5°tÔ7Oð �>‰>Ò%¬#Ø�^‰^˜tÐ# T×%;Ñ%;¸tÐ%CÀT×EYÑEYÐ]aÐEaÐb÷+
ò +
ô % T§^¡^°[À$ÓGˆDŒNÜ%,¨T¯^©^Ð=PÐRVÓ%WˆDÔ"Ü#*¨4¯>©>Ð;LÈdÓ#SˆDÔ à×ÑÒ'¨D×,BÑ,BÒ,NÜ˜$×0Ñ0Ô2D×EÒEð (,×'=Ñ'=�Ö$ñ	 Fñ -OÑ'r1   c                	óœ  € R V P                   P                  P                  R\        V P                  4      P                  R4      R,          RV P                  P                  RV P                   P                  /pV P                   P                  4       '       d   V P                   P                  VR&   V P                  P                   RV 2# )r“   rD   Ú.r²   Úinput_modalitiesÚoutput_modalitiesz: rŠ  )r“   rÐ   r’   r‚   rD   rî   r²   r�  r¨  r¼   r©  )rÏ   Úpipe_informations   & r/   Ú__repr__ÚPipeline.__repr__¯  s£   € à�T—Z‘Z×)Ñ)×2Ñ2Ø”S˜Ÿ™“_×*Ñ*¨3Ó/°Õ3Ø�d—k‘k×&Ñ&Ø §
¡
× ;Ñ ;ð	
Ðð �:‰:×"Ñ"×$Ò$Ø48·J±J×4PÑ4PÐÐ0Ñ1Ø—.‘.×)Ñ)Ð*¨"Ð-=Ð,>Ð?Ð?r1   c               ó    € V ^8„  d   QhRRRR/# )rB   Úsave_directoryzstr | os.PathLikerœ   r   ry   )rz   s   "r/   r{   r{  º  s   € ÷ ,Kñ ,KÐ.?ð ,KÈ3ñ ,Kr1   c                ó2  € \         P                  P                  V4      '       d   \        P	                  RV R24       R# \         P
                  ! VRR7       \        V R4      '       Ed   V P                  P                  4       p/ pVP                  4        F¶  w  rVVR,          V P                  8w  d   K  VP                  4       pVR,          P                  pVP                  R4      R,          pV RVR,          P                   2VR&   \        ;QJ d    . R	 VR
,           4       F  NK  	  5M! R	 VR
,           4       4      VR
&   WdV&   K¸  	  W@P                  P                   n        \%        W4       V P                  P&                  ! V3/ VB  V P(                  e   V P(                  P&                  ! V3/ VB  V P*                  e   V P*                  P&                  ! V3/ VB  V P,                  e    V P,                  P&                  ! V3/ VB  R# R# )aI  
Save the pipeline's model and tokenizer.

Args:
    save_directory (`str` or `os.PathLike`):
        A path to the directory where to saved. It will be created if it doesn't exist.
    kwargs (`dict[str, Any]`, *optional*):
        Additional key word arguments passed along to the [`~utils.PushToHubMixin.push_to_hub`] method.
zProvided path (z#) should be a directory, not a fileNT)Úexist_okÚ_registered_implÚimplr§  c              3  ó8   "  € T F  qP                   x € K  	  R # 5ir´   )r’   )r:   rð   s   & r/   r=   Ú+Pipeline.save_pretrained.<locals>.<genexpr>Ö  s   é € Ð"B±z°!§:¦:³zùs   ‚ÚptrŠ  )r  r  Úisfiler�   rŸ   Úmakedirsr–  r±  rˆ   r.   rÐ   rÒ   rî   r’   r‡   r“   ru   Úcustom_pipelinesr   Úsave_pretrainedrl   rj   rw  )	rÏ   r®  rœ   Úpipeline_infor¸  rw   ÚinfoÚmodule_nameÚlast_modules	   &&,      r/   r¹  ÚPipeline.save_pretrainedº  s±  € ô �7‰7�>‰>˜.×)Ò)Ü�L‰L˜?¨>Ð*:Ð:]Ð^Ô_ÙÜ
�Š�N¨TÕ2ä�4Ð+×,Ó,à ×1Ñ1×6Ñ6Ó8ˆMØ!ÐØ+×1Ñ1Ö3‘
�Ø˜•< 4§>¡>Ô1Ùà—y‘y“{�Ø" 6�l×5Ñ5�Ø)×/Ñ/°Ó4°RÕ8�à"- ¨a°°Vµ×0EÑ0EÐ/FÐG��V‘ß"œUÑ"B°t¸D¶zÓ"BŸU™UÑ"B°t¸D¶zÓ"BÓB��T‘
à)- Ó&ñ 4ð 2B�J‰J×ÑÔ.ä˜tÔ4à�
‰
×"Ò" >Ñ<°VÒ<à�>‰>Ò%Ø�N‰N×*Ò*¨>ÑD¸VÒDà×!Ñ!Ò-Ø×"Ñ"×2Ò2°>ÑLÀVÒLà×ÑÒ+Ø× Ñ ×0Ò0°ÑJÀ6ÔJñ ,r1   c                ó   € V ! V4      # ©z^
Scikit / Keras interface to transformers' pipelines. This method will forward to __call__().
ry   rV  s   &&r/   rX  ÚPipeline.transformè  ó   € ñ �A‹wˆr1   c                ó   € V ! V4      # rÀ  ry   rV  s   &&r/   r[  ÚPipeline.predictî  rÂ  r1   c               ó   € V ^8„  d   QhRR/# ©rB   r§   ztorch.dtype | Nonery   )rz   s   "r/   r{   r{  õ  s   € ÷ 2ñ 2Ð)ñ 2r1   c                ó0   € \        V P                  RR4      # )z?
Dtype of the model (if it's Pytorch model), `None` otherwise.
rD   N)rp   r“   ró   s   &r/   rD   ÚPipeline.dtypeô  s   € ô
 �t—z‘z 7¨DÓ1Ð1r1   c               ó   € V ^8„  d   QhRR/# rÆ  ry   )rz   s   "r/   r{   r{  ü  s   € ÷ 2ñ 2Ð/ñ 2r1   c                óZ   € \         P                  R4       \        V P                  RR4      # )zE
Torch dtype of the model (if it's Pytorch model), `None` otherwise.
z;`torch_dtype` attribute is deprecated. Use `dtype` instead!rD   N)r�   Úwarning_oncerp   r“   ró   s   &r/   r~  ÚPipeline.torch_dtypeû  s&   € ô
 	×ÑÐYÔZÜ�t—z‘z 7¨DÓ1Ð1r1   c              #  óŽ  "  € V P                   P                  R8X  dA   \        P                  P                  V P                   4      ;_uu_ 4        Rx € RRR4       R# V P                   P                  R8X  dA   \        P                  P                  V P                   4      ;_uu_ 4        Rx € RRR4       R# V P                   P                  R8X  dA   \        P
                  P                  V P                   4      ;_uu_ 4        Rx € RRR4       R# V P                   P                  R8X  dA   \        P                  P                  V P                   4      ;_uu_ 4        Rx € RRR4       R# Rx € R#   + '       g   i     R# ; i  + '       g   i     R# ; i  + '       g   i     R# ; i  + '       g   i     R# ; i5i)aO  
Context Manager allowing tensor allocation on the user-specified device.

Returns:
    Context manager

Examples:

```python
# Explicitly ask for tensor allocation on CUDA device :0
pipe = pipeline(..., device=0)
with pipe.device_placement():
    # Every tensor allocation will be done on the request device
    output = pipe(...)
```ÚcudaNÚmluÚmusar€  )r²   r�  rI   rÎ  rÏ  rÐ  r€  ró   s   &r/   Údevice_placementÚPipeline.device_placement  s  é € ð" �;‰;×Ñ˜vÔ%Ü—‘×"Ñ" 4§;¡;×/Õ/Û÷ 0Ñ/à�[‰[×Ñ Ô&Ü—‘×!Ñ! $§+¡+×.Õ.Û÷ /Ñ.à�[‰[×Ñ Ô'Ü—‘×"Ñ" 4§;¡;×/Õ/Û÷ 0Ñ/à�[‰[×Ñ Ô&Ü—‘×!Ñ! $§+¡+×.Õ.Û÷ /Ñ.õ ÷ 0×/Ð/ú÷ /×.Ð.ú÷ 0×/Ð/ú÷ /×.Ð.üsi   ‚AGÁE5ÁAGÂ*F	Â/AGÄFÄ
AGÅ F1Å%GÅ5F	Æ 	GÆ	F	Æ	GÆF.	Æ(	GÆ1G	Æ<	Gc                ó8   € V P                  WP                  4      # )a6  
Ensure PyTorch tensors are on the specified device.

Args:
    inputs (keyword arguments that should be `torch.Tensor`, the rest is ignored):
        The tensors to place on `self.device`.
    Recursive on lists **only**.

Return:
    `dict[str, torch.Tensor]`: The same as `inputs` but on the proper device.
)Ú_ensure_tensor_on_devicer²   )rÏ   Úinputss   &,r/   Úensure_tensor_on_deviceÚ Pipeline.ensure_tensor_on_device#  s   € ð ×,Ñ,¨V·[±[ÓAÐAr1   c                	ó„  a a€ \        V\        4      '       d?   \        VP                  4        UUu/ uF  w  r4VS P                  VS4      bK  	  upp4      # \        V\        4      '       d6   VP                  4        UUu/ uF  w  r4VS P                  VS4      bK  	  upp# \        V\
        4      '       d?   \        VP                  4        UUu/ uF  w  r4VS P                  VS4      bK  	  upp4      # \        V\        4      '       d#   V Uu. uF  pS P                  VS4      NK  	  up# \        V\        4      '       d5   \        ;QJ d    . VV 3R  lV 4       F  NK  	  5# ! VV 3R  lV 4       4      # \        V\        P                  4      '       d   VP                  S4      # V# u uppi u uppi u uppi u upi )c              3  óH   <"  € T F  pSP                  VS4      x € K  	  R # 5ir´   )rÔ  )r:   r;   r²   rÏ   s   & €€r/   r=   Ú4Pipeline._ensure_tensor_on_device.<locals>.<genexpr>=  s#   øé € ÐXÑQWÈ˜×6Ñ6°t¸V×DÐDÓQWùs   ƒ")rH   r   r.   rÔ  r¥   r   rP   r‡   rI   rJ   r½   )rÏ   rÕ  r²   ÚnamerW   r;   s   f&f   r/   rÔ  Ú!Pipeline._ensure_tensor_on_device1  sq  ù€ Ü�fœk×*Ò*ÜØY_×YeÑYeÔYgÔhÑYgÉÈ��t×4Ñ4°V¸VÓDÒDÑYgÒhóð ô ˜¤×%Ò%Ø\b×\hÑ\hÔ\jÔkÑ\jÉLÈD�D˜$×7Ñ7¸ÀÓGÒGÑ\jÒkÐkÜ˜¤×)Ò)ÜÐek×eqÑeqÔesÔtÑesÑUaÐUY˜T 4×#@Ñ#@ÀÈÓ#PÒPÑesÒtÓuÐuÜ˜¤×%Ò%ÙLRÓSÉFÀD�D×1Ñ1°$¸Ö?ÉFÑSÐSÜ˜¤×&Ò&ß”5ÕXÑQWÓX—5ÐX�5ÕXÑQWÓXÓXÐXÜ˜¤§¡×-Ò-Ø—9‘9˜VÓ$Ð$àˆMùó iùó lùãtùâSs   ±F+
Â F1ÃF7
ÄF=c               ó   € V ^8„  d   QhRR/# )rB   Úsupported_modelszlist[str] | dictry   )rz   s   "r/   r{   r{  C  s   € ÷ ñ Ð1Añ r1   c           	     ó„  € \        V\        4      '       Eg6   . pV P                  \        9   d'   VP	                  \        V P                  ,          4       RpVP                  4        FF  p\        V\        4      '       d   VP	                  \        V4      4       K5  VP                  V4       KH  	  \        VR4      '       d‰   VP                  P                  P                  4        F`  p\        V\        4      '       d-   TP	                  V Uu. uF  qUP                  NK  	  up4       KE  VP                  VP                  4       Kb  	  TpV P                  P                  P                  V9  dJ   \        P                  RV P                  P                  P                   RV P                   RV R24       R# R# u upi )zÏ
Check if the model class is in supported by the pipeline.

Args:
    supported_models (`list[str]` or `dict`):
        The list of models supported by the pipeline, or a dictionary with model class values.
NÚ_model_mappingzThe model 'z' is not supported for z. Supported models are r§  )rH   rP   rw   ÚSUPPORTED_PEFT_TASKSÚextendrŽ  r‡   r†   r–  rà  Ú_extra_contentr’   r“   rÐ   r�   rŸ   )rÏ   rÞ  Úsupported_models_namesÚ
model_namer“   Úms   &&    r/   Úcheck_model_typeÚPipeline.check_model_typeC  se  € ô Ð*¬D×1Ó1Ø%'Ð"Ø�y‰yÔ0Ô0Ø&×-Ñ-Ô.BÀ4Ç9Á9Õ.MÔNàˆJØ.×5Ñ5Ö7�
ä˜j¬%×0Ò0Ø*×1Ñ1´$°zÓ2BÖCà*×1Ñ1°*Ö=ñ 8ô Ð'Ð)9×:Ò:Ø-×<Ñ<×KÑK×RÑRÖT�EÜ! %¬×/Ò/Ø.×5Ñ5É5Ó6QÉ5Àa·z´zÉ5Ñ6QÖRà.×5Ñ5°e·n±nÖEñ	 Uð
  6ÐØ�:‰:×Ñ×(Ñ(Ð0@Ô@Ü�L‰LØ˜dŸj™j×2Ñ2×;Ñ;Ð<Ð<SÐTX×T]ÑT]ÐS^ð _Ø$Ð% Qð(öñ Aùò	 7Rs   ÄF=
c                ó   € \        R4      h)a  
_sanitize_parameters will be called with any excessive named arguments from either `__init__` or `__call__`
methods. It should return 3 dictionaries of the resolved parameters used by the various `preprocess`,
`forward` and `postprocess` methods. Do not fill dictionaries if the caller didn't specify a kwargs. This
lets you keep defaults in function signatures, which is more "natural".

It is not meant to be called directly, it will be automatically called and the final parameters resolved by
`__init__` and `__call__`
z$_sanitize_parameters not implementedrÜ   )rÏ   Úpipeline_parameterss   &,r/   rž  ÚPipeline._sanitize_parametersd  s   € ô "Ð"HÓIÐIr1   c               ó$   € V ^8„  d   QhRRRRRR/# )rB   Úinput_r   Úpreprocess_parametersr¥   r§   údict[str, GenericTensor]ry   )rz   s   "r/   r{   r{  r  s'   € ÷ @ñ @ ð @¸tð @ÐH`ñ @r1   c                ó   € \        R4      h)z×
Preprocess will take the `input_` of a specific pipeline and return a dictionary of everything necessary for
`_forward` to run properly. It should contain at least one tensor, but might have arbitrary other items.
zpreprocess not implementedrÜ   )rÏ   rí  rî  s   &&,r/   Ú
preprocessÚPipeline.preprocessq  s   € ô "Ð">Ó?Ð?r1   c               ó$   € V ^8„  d   QhRRRRRR/# )rB   Úinput_tensorsrï  Úforward_parametersr¥   r§   r   ry   )rz   s   "r/   r{   r{  z  s$   € ÷ 
>ñ 
>Ð&>ð 
>ÐVZð 
>Ð_jñ 
>r1   c                ó   € \        R4      h)aL  
_forward will receive the prepared dictionary from `preprocess` and run it on the model. This method might
involve the GPU or the CPU and should be agnostic to it. Isolating this function is the reason for `preprocess`
and `postprocess` to exist, so that the hot path, this method generally can run as fast as possible.

It is not meant to be called directly, `forward` is preferred. It is basically the same but contains additional
code surrounding `_forward` making sure tensors and models are on the same device, disabling the training part
of the code (leading to faster inference).
z_forward not implementedrÜ   )rÏ   rô  rõ  s   &&,r/   Ú_forwardÚPipeline._forwardy  s   € ô "Ð"<Ó=Ð=r1   c               ó$   € V ^8„  d   QhRRRRRR/# )rB   Úmodel_outputsr   Úpostprocess_parametersr¥   r§   r   ry   )rz   s   "r/   r{   r{  ‡  s(   € ÷ Añ A¨ð AÐPTð AÐY\ñ Ar1   c                ó   € \        R4      h)zã
Postprocess will receive the raw outputs of the `_forward` method, generally tensors, and reformat them into
something more friendly. Generally it will output a list or a dict or results (containing just strings and
numbers).
zpostprocess not implementedrÜ   )rÏ   rú  rû  s   &&,r/   ÚpostprocessÚPipeline.postprocess†  s   € ô "Ð"?Ó@Ð@r1   c                	ó"   € \         P                  # r´   )rI   Úno_gradró   s   &r/   Úget_inference_contextÚPipeline.get_inference_context�  s   € Ü�}‰}Ðr1   c           
     	ó’  € V P                  4       ;_uu_ 4        V P                  4       pV! 4       ;_uu_ 4        V P                  WP                  R 7      pV P                  ! V3/ VB pV P                  V\
        P                  ! R4      R 7      pRRR4       RRR4       X#   + '       g   i     L; i  + '       g   i     X# ; i))r²   rƒ  N)rÑ  r  rÔ  r²   r÷  rI   )rÏ   Úmodel_inputsÚforward_paramsÚinference_contextrú  s   &&,  r/   ÚforwardÚPipeline.forward’  s£   € Ø×"Ñ"×$Õ$Ø $× :Ñ :Ó <ÐÙ"×$Õ$Ø#×<Ñ<¸\×R]ÑR]Ð<Ó^�Ø $§¢¨lÑ M¸nÑ M�Ø $× =Ñ =¸mÔTY×T`ÒT`ÐafÓTgÐ =Ó h�÷ %÷ %ð Ð÷	 %×$ú÷ %Ö$ð Ðús#   ™ B5¹AB"	ÂB5Â"B2Â-B5Â5C	c               ó    € V ^8„  d   QhRRRR/# ©rB   r‰  r”  rT   ry   )rz   s   "r/   r{   r{  ›  s   € ÷ ñ Ø#&ðØ47ñr1   c                	óp  € \        V\        P                  P                  4      '       d   \	        WP
                  V4      pM4V^8”  d   \        P                  R4       ^p\        WP
                  V4      pR\        P                  9  d)   \        P                  R4       R\        P                  R&   V P                  e   V P                  MV P                  pV^8X  d   \        M\        V P                   V4      p	\#        WrW9R7      p
\        W P$                  WSR7      p\        W°P&                  V4      pV# )r+   z–For iterable dataset using num_workers>1 is likely to result in errors since everything is iterable, setting `num_workers=1` to guarantee correctness.ÚTOKENIZERS_PARALLELISMúNDisabling tokenizer parallelism, we're using DataLoader multithreading alreadyÚfalse©r‰  rT   Ú
collate_fn©Úloader_batch_size)rH   ÚcollectionsÚabcÚSizedrq  rñ  r�   rŽ   rr  r  Úenvironr»  rj   rw  r0   rs   rl   r&   r  rý  ©rÏ   rÕ  r‰  rT   Úpreprocess_paramsr  Úpostprocess_paramsÚdatasetrj   r  Ú
dataloaderÚmodel_iteratorÚfinal_iterators   &&&&&&&      r/   Úget_iteratorÚPipeline.get_iterator›  sò   € ô �fœkŸo™o×3Ñ3×4Ò4Ü% f¯o©oÐ?PÓQ‰Gà˜QŒÜ—‘ð1ôð
  �Ü& v¯©Ð@QÓRˆGØ#¬2¯:©:Ô5Ü�K‰KÐhÔiØ3:ŒB�J‰JÐ/Ñ0à6:×6LÑ6LÒ6X˜D×2Ò2Ð^b×^rÑ^rÐØ&0°A¤o•]¼>È$Ï.É.ÐZkÓ;lˆ
Ü ÈZÔoˆ
Ü)¨*·l±lÀNÔqˆÜ)¨.×:JÑ:JÐL^Ó_ˆØÐr1   r‰  rT   c               	ó   € V'       d   \         P                  R V 24       \        \        \        P
                  3p\        4       '       d   . VO\        N5p\        W4      '       dÇ   \        V\        P
                  4      '       d   \        V4      p\        V^ ,          4      '       d   \        V4      pMw\        V^ ,          \        \        34      '       dU   \        ;QJ d    R V 4       F  '       d   K   RM	  RM! R V 4       4      '       d   V Uu. uF  p\        V4      NK  	  ppVf   V P                  f   ^ pMV P                  pVf   V P                  f   ^pMV P                  pV P                  ! R/ VB w  r‰p
/ V P                  CVCp/ V P                   CV	Cp	/ V P"                  CV
Cp
V ;P$                  ^,          un        V P$                  ^
8”  d1   V P&                  P(                  R8X  d   \         P+                  R4       \,        RJ;'       d    \        V\,        4      p\        V\        P
                  4      p\        V\        4      pT;'       g    T;'       g    TpT;'       g    T;'       g    TpV'       d;   V'       d!   V P/                  WW8Wš4      p\        V4      pV# V P1                  WWš4      # V'       d   V P/                  WW8Wš4      # V'       d   V P3                  WWš4      # \        V \4        4      '       d(   \7        \9        V P/                  V.W#W‰V
4      4      4      # V P;                  WWš4      # u upi )zIgnoring args : c              3  óX   "  € T F   q;'       d    \        V^ ,          4      x € K"  	  R# 5ir;  )r#   )r:   Úchats   & r/   r=   Ú$Pipeline.__call__.<locals>.<genexpr>Á  s)   é € Ð=tÑmsÐei×>`Ð>`ÔGWÐX\Ð]^ÕX_ÓG`Ô>`Ómsùs   ‚*�*FTNrÎ  zlYou seem to be using the pipelines sequentially on GPU. In order to maximize efficiency please use a datasetry   )r�   rŽ   rP   r‡   ÚtypesÚGeneratorTyper   r)   rH   r#   r"   rÀ   r�  rœ  rž  rŸ  r   r¡  r›  r²   r�  rË  r'   r  Ú	run_multiÚiterateÚChunkPipelinerŒ  r�  Ú
run_single)rÏ   rÕ  r‰  rT   rÞ   rœ   Úcontainer_typesr"  r  r  r  Ú
is_datasetÚis_generatorÚis_listÚis_iterableÚcan_use_iteratorr  Úoutputss   &&$$*,            r/   rß   ÚPipeline.__call__´  sâ  € ßÜ�N‰NÐ-¨d¨VÐ4Ô5ô  ¤¬×(;Ñ(;Ð<ˆÜ×ÒØ< Ð<´Ñ<ˆOÜ�f×.Ò.Ü˜&¤%×"5Ñ"5×6Ò6Ü˜f›�Ü  q¥	×*Ò*Ü˜f›‘Ü˜F 1�I¬¬e }×5Ò5¿#»#Ñ=tÑmsÓ=t¿#¿#º#Ñ=tÑmsÓ=t×:tÒ:tÙ17Ó8±¨œ$˜tž*±�Ð8àÒØ× Ñ Ò(Ø‘à"×/Ñ/�ØÒØ×ÑÒ'Ø‘
à!×-Ñ-�
à@D×@YÒ@YÑ@cÐ\bÑ@cÑ=ÐÐ+=ð M˜t×6Ñ6ÐLÐ:KÐLÐØC˜D×0Ñ0ÐC°NÐCˆØO × 8Ñ 8ÐOÐ<NÐOÐà�Š˜1Õ�Ø�?‰?˜RÔ D§K¡K×$4Ñ$4¸Ô$>Ü×Ñðôô
  DÐ(×HÐH¬Z¸ÄÓ-Hˆ
Ü! &¬%×*=Ñ*=Ó>ˆÜ˜V¤TÓ*ˆà ×;Ð; L×;Ð;°GˆØ%×@Ð@¨×@Ð@¸ÐçßØ!%×!2Ñ!2Ø¨Èó"�ô ˜~Ó.�Ø�à—~‘~ fÀÓdÐdßØ×$Ñ$Ø ZÀNóð ÷ Ø—<‘< ¸>Ó^Ð^Ü˜œm×,Ò,ÜÜØ×%Ñ%Ø˜ +Ð;LÐ^póóóð ð —?‘? 6¸nÓaÐaùòu 9s   ÄMc           	     	óN   € V Uu. uF  qPP                  WRW44      NK  	  up# u upi r´   ©r)  )rÏ   rÕ  r  r  r  r;   s   &&&&& r/   r&  ÚPipeline.run_multiþ  s&   € ÙioÓpÑioÐae—‘ ¸Ö\ÑioÑpÐpùÒps   …"c                	óx   € V P                   ! V3/ VB pV P                  ! V3/ VB pV P                  ! V3/ VB pV# r´   )rñ  r  rý  )rÏ   rÕ  r  r  r  r  rú  r0  s   &&&&&   r/   r)  ÚPipeline.run_single  sD   € Ø—’ vÑCÐ1BÑCˆØŸš \ÑD°^ÑDˆØ×"Ò" =ÑGÐ4FÑGˆØˆr1   c              #  	óH   "  € V F  pV P                  WRW44      x € K  	  R # 5ir´   r3  )rÏ   rÕ  r  r  r  rí  s   &&&&& r/   r'  ÚPipeline.iterate  s"   é € ó ˆFØ—/‘/ &¸^Ó`Ô`ó ùs   ‚ ")rœ  r   r�  r¡  rŸ  r®   r¯   rz  r›  r²   rj   r‡  rw  r“   r„  ry  rw   rl   rx  )NNNNNr   NF)&r’   rÒ   rÓ   rÔ   rÕ   Ú_load_processorÚ_load_image_processorÚ_load_video_processorÚ_load_feature_extractorÚ_load_tokenizerr•  Údefault_input_namesrÎ   r«  r¹  rX  r[  ÚpropertyrD   r~  r   rÑ  rÖ  rÔ  rç  r   rž  rñ  r÷  rý  r  r  r  rß   r&  r)  r'  rÖ   ry   r1   r/   ru  ru  å  s.  † ñð* €OØ ÐØ ÐØ"ÐØ€Oð  %ÐàÐ÷b>òH	@õ,Kò\òð ô2ó ð2ð ô2ó ð2ð ñó ðò>Bòõ$ðB ñ
Jó ð
Jð ô@ó ð@ð ô
>ó ð
>ð ôAó ðAòòõð2Hb°$ð HbÀ4ô HbòTqòöar1   ru  r  Úpipelinezpipeline file)ÚobjectÚobject_classÚobject_filesz.from_pretrainedr   c                  ó(   € ] tR tRtR tR R ltRtR# )r(  i  c                	ó¬   € . pV P                   ! V3/ VB  F'  pV P                  ! V3/ VB pVP                  V4       K)  	  V P                  ! V3/ VB pV# r´   )rñ  r  r†   rý  )	rÏ   rÕ  r  r  r  Úall_outputsr  rú  r0  s	   &&&&&    r/   r)  ÚChunkPipeline.run_single  s_   € ØˆØ ŸOšO¨FÑHÐ6GÔHˆLØ ŸLšL¨ÑH¸ÑHˆMØ×Ñ˜}Ö-ñ Ið ×"Ò" ;ÑEÐ2DÑEˆØˆr1   c               ó    € V ^8„  d   QhRRRR/# r
  ry   )rz   s   "r/   r{   ÚChunkPipeline.__annotate__  s   € ÷ ñ Ø#&ðØ47ñr1   c                	óî  € R \         P                  9  d)   \        P                  R4       R\         P                  R &   V^8”  d   \        P	                  R4       ^p\        WP                  V4      pV P                  e   V P                  MV P                  pV^8X  d   \        M\        V P                  V4      p	\        WrW9R7      p
\        W P                  WSR7      p\        W°P                   V4      pV# )r  r  r  z“For ChunkPipeline using num_workers>0 is likely to result in errors since everything is iterable, setting `num_workers=1` to guarantee correctness.r  r  )r  r  r�   r»  rŽ   rp  rñ  rj   rw  r0   rs   rl   r&   rs  r  rr  rý  r  s   &&&&&&&      r/   r  ÚChunkPipeline.get_iterator  sÍ   € ð $¬2¯:©:Ô5Ü�K‰KÐhÔiØ3:ŒB�J‰JÐ/Ñ0Ø˜Œ?Ü�N‰NðEôð ˆKÜ'¨·±ÐARÓSˆð 7;×6LÑ6LÒ6X˜D×2Ò2Ð^b×^rÑ^rÐØ&0°A¤o•]¼>È$Ï.É.ÐZkÓ;lˆ
Ü ÈZÔoˆ
Ü-¨j¿,¹,ÈÔuˆÜ)¨.×:JÑ:JÐL^Ó_ˆØÐr1   ry   N)r’   rÒ   rÓ   rÔ   r)  r  rÖ   ry   r1   r/   r(  r(    s   † ò÷ñ r1   r(  c                  óP   € ] tR tRtR R ltR R ltR R ltRR	 R
 lltR tRt	R# )ÚPipelineRegistryi5  c               ó$   € V ^8„  d   QhRRRRRR/# )rB   Úsupported_taskszdict[str, Any]Útask_aliaseszdict[str, str]r§   ÚNonery   )rz   s   "r/   r{   ÚPipelineRegistry.__annotate__6  s"   € ÷ )ñ )¨ð )Ànð )ÐY]ñ )r1   c                	ó   € Wn         W n        R # r´   ©rO  rP  )rÏ   rO  rP  s   &&&r/   rÎ   ÚPipelineRegistry.__init__6  s   € Ø.ÔØ(Ör1   c               ó   € V ^8„  d   QhRR/# )rB   r§   z	list[str]ry   )rz   s   "r/   r{   rR  :  s   € ÷ ñ  Yñ r1   c                	ó¼   € \        V P                  P                  4       4      \        V P                  P                  4       4      ,           pVP	                  4        V# r´   )rP   rO  rf   rP  Úsort)rÏ   Úsupported_tasks   & r/   Úget_supported_tasksÚ$PipelineRegistry.get_supported_tasks:  sF   € Ü˜d×2Ñ2×7Ñ7Ó9Ó:¼TÀ$×BSÑBS×BXÑBXÓBZÓ=[Õ[ˆØ×ÑÔØÐr1   c               ó    € V ^8„  d   QhRRRR/# )rB   rw   r‚   r§   ztuple[str, dict, Any]ry   )rz   s   "r/   r{   rR  ?  s   € ÷ añ a˜sð aÐ'<ñ ar1   c                	óÔ   € WP                   9   d   V P                   V,          pWP                  9   d   V P                  V,          pWR 3# \        RV RV P                  4        24      h)NzUnknown task z, available tasks are )rP  rO  r  rZ  )rÏ   rw   r¤   s   && r/   Ú
check_taskÚPipelineRegistry.check_task?  sh   € Ø×$Ñ$Ô$Ø×$Ñ$ TÕ*ˆDØ×'Ñ'Ô'Ø ×0Ñ0°Õ6ˆMØ¨Ð,Ð,ä˜ t fÐ,BÀ4×C[ÑC[ÓC]ÐB^Ð_Ó`Ð`r1   Nc               ó0   € V ^8„  d   QhRRRRRRRRRR	R
R/# )rB   rw   r‚   Úpipeline_classr�  Úpt_modelztype | tuple[type] | Noner©   zdict | Nonerx   r§   rQ  ry   )rz   s   "r/   r{   rR  H  sF   € ÷ <ñ <àð<ð ð<ð ,ð	<ð
 ð<ð ð<ð 
ñ<r1   c                	ó
  € WP                   9   d   \        P                  V R V R24       Vf   RpM\        V\        4      '       g   V3pRVRV/pVe   RV9  d   RV/pWFR&   Ve   WVR&   W`P                   V&   W/Vn        R# )	z6 is already registered. Overwriting pipeline for task z...Nr²  rµ  r“   r©   r�  ry   )rO  r�   rŽ   rH   r‡   r±  )rÏ   rw   ra  rb  r©   r�  Ú	task_impls   &&&&&& r/   Úregister_pipelineÚ"PipelineRegistry.register_pipelineH  s¡   € ð ×'Ñ'Ô'Ü�N‰N˜d˜VÐ#YÐZ^ÐY_Ð_bÐcÔdàÒØ‰HÜ˜H¤e×,Ò,Ø �{ˆHà˜^¨T°8Ð<ˆ	àÒØ˜gÔ%Ø" GÐ,�Ø#*�iÑ àÒØ $�fÑà%.×Ñ˜TÑ"Ø+/Ð*;ˆÖ'r1   c                	ó   € V P                   # r´   )rO  ró   s   &r/   Úto_dictÚPipelineRegistry.to_dicte  s   € Ø×#Ñ#Ð#r1   rT  )NNN)
r’   rÒ   rÓ   rÔ   rÎ   rZ  r^  re  rh  rÖ   ry   r1   r/   rM  rM  5  s   † õ)õõ
a÷<ö:$r1   rM  r¹   )FFFFFT)eÚ
__future__r   r  rˆ   r  r„   r  r  r   rE  r�   r$  r  r   r   r   Ú
contextlibr   Úos.pathr   r	   Útypingr
   r   r   Údynamic_module_utilsr   Úfeature_extraction_utilsr   Ú
generationr   Úimage_processing_utilsr   Úmodels.autor   r   Úprocessing_utilsr   Útokenization_pythonr   Úutilsr   r   r   r   r   r   r   r   r   r   r   r    r!   Úutils.chat_template_utilsr"   r#   Úvideo_processing_utilsr$   rP   r%   rI   Útorch.utils.datar&   r'   Úmodeling_utilsr(   Úpt_utilsr)   Ú
get_loggerr’   r�   r0   rY   rs   r¢   r¬   rÆ   r�   rÈ   rÚ   rã   r  r  r  rT  rf  ÚPIPELINE_INIT_ARGSrá  Útransformers.pipelines.pt_utilsrp  rq  rr  rs  ru  Úpush_to_hubrÕ   rz   Úreplacer(  rM  ry   r1   r/   Ú<module>r€     s‡  ðõ #ã Û Û 
Û Û Û 	Û Û 
Û Û ß #Ý  Ý %ß #ß ,Ñ ,å 5Ý AÝ )Ý 7ß 3Ý -Ý 5÷÷ ÷ õ ÷ ?Ý 7ð �d˜?Õ+¨^Ð;Õ<€á×ÒŸ=Ûß4å0Þ$à€Gð 
×	Ò	˜HÓ	%€òò#-òL<÷~]õ@õ<1>ôh˜	ô ô"$�cô $÷n\ñ n\ôb)'Ð.ô )'ôX'Ð/ô 'ôT-)Ð0ô -)ô`$�Cô $÷>ñB .ØØØØØôÐ ð "Ð$CÐ#DØÐ:¸KÐHØÐ-Ð.ØÐ!@Ð AØÐ@ÐAØÐ?Ð@ØÐ.Ð/ØÐ>Ð?Ø	Ð-Ð.ØÐ!EÐ FðÐ ñ ×Ò÷ó ñ ÙØ°$ÈDÐ`dôóô
aaˆ}˜nó aaóð
aañH ! ×!5Ñ!5Ó6€Ô Ø×Ñ×ÑÒ+Ø#+×#7Ñ#7×#?Ñ#?×#FÑ#FØ J¸_ð $Gó $ç�gÐ  "Ó%ð ×ÑÔ ô
�Hô ÷@1$ó 1$r1   