+
    QV-jN  ã                   óp   € ^ RI Ht ^RIHt ^RIHtHtHt ]! ]! RRR7      R4       ! R R	]4      4       tR
# )é    )ÚAny)Úadd_end_docstrings)ÚGenericTensorÚPipelineÚbuild_pipeline_init_argsTF)Úhas_tokenizerÚsupports_binary_outputa  
        tokenize_kwargs (`dict`, *optional*):
                Additional dictionary of keyword arguments passed along to the tokenizer.
        return_tensors (`bool`, *optional*):
            If `True`, returns a tensor according to the specified framework, otherwise returns a list.c                   ó~   a a€ ] tR t^t oRtRtRtRtRtRR lt	V3R lR lt
R tRR ltV3R	 lV 3R
 lltRtVtV ;t# )ÚFeatureExtractionPipelinea�  
Feature extraction pipeline uses no model head. This pipeline extracts the hidden states from the base
transformer, which can be used as features in downstream tasks.

Example:

```python
>>> from transformers import pipeline

>>> extractor = pipeline(model="google-bert/bert-base-uncased", task="feature-extraction")
>>> result = extractor("This is a simple test.", return_tensors=True)
>>> result.shape  # This is a tensor of shape [1, sequence_length, hidden_dimension] representing the input string.
torch.Size([1, 8, 768])
```

Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)

This feature extraction pipeline can currently be loaded from [`pipeline`] using the task identifier:
`"feature-extraction"`.

All models may be used for this pipeline. See a list of all models, including community-contributed models on
[huggingface.co/models](https://huggingface.co/models).
FTc                ód   € Vf   / pVe   RV9   d   \        R4      hWR&   Tp/ pVe   W6R&   V/ V3# )NÚ
truncationz\truncation parameter defined twice (given as keyword argument as well as in tokenize_kwargs)Úreturn_tensors)Ú
ValueError)Úselfr   Útokenize_kwargsr   ÚkwargsÚpreprocess_paramsÚpostprocess_paramss   &&&&,  Úz/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/transformers/pipelines/feature_extraction.pyÚ_sanitize_parametersÚ.FeatureExtractionPipeline._sanitize_parameters-   s^   € ØÒ"Ø ˆOàÒ!Ø˜Ô.Ü Øróð ð -7˜LÑ)à+ÐàÐØÒ%Ø3AÐ/Ñ0à  "Ð&8Ð8Ð8ó    c                ó6   <€ V ^8„  d   QhRS[ S[S[3,          /# )é   Úreturn)ÚdictÚstrr   )ÚformatÚ__classdict__s   "€r   Ú__annotate__Ú&FeatureExtractionPipeline.__annotate__@   s   ø€ ÷ ñ ±t¹CÁÐ<NÕ7Oñ r   c                ó0   € V P                   ! V3R R/VB pV# )r   Úpt)Ú	tokenizer)r   Úinputsr   Úmodel_inputss   &&, r   Ú
preprocessÚ$FeatureExtractionPipeline.preprocess@   s    € Ø—~’~ fÑU¸TÐUÀ_ÑUˆØÐr   c                ó*   € V P                   ! R/ VB pV# )N© )Úmodel)r   r&   Úmodel_outputss   && r   Ú_forwardÚ"FeatureExtractionPipeline._forwardD   s   € ØŸ
š
Ñ2 \Ñ2ˆØÐr   c                óR   € V'       d
   V^ ,          # V^ ,          P                  4       # )r   )Útolist)r   r,   r   s   &&&r   ÚpostprocessÚ%FeatureExtractionPipeline.postprocessH   s$   € çØ  Õ#Ð#Ø˜QÕ×&Ñ&Ó(Ð(r   c                ól   <€ V ^8„  d   QhRS[ S[S[ ,          ,          RS[RS[S[S[,          ,          /# )r   Úargsr   r   )r   Úlistr   )r   r   s   "€r   r    r!   N   s2   ø€ ÷ 
1ñ 
1™c¡D©¥I�oð 
1¹ð 
1ÁÁtÉCÅyÅñ 
1r   c                ó$   <€ \         SV `  ! V/ VB # )zã
Extract the features of the input(s) text.

Args:
    args (`str` or `list[str]`): One or several texts (or one list of texts) to get the features of.

Return:
    A nested list of `float`: The features computed by the model.
)ÚsuperÚ__call__)r   r4   r   Ú	__class__s   &*,€r   r8   Ú"FeatureExtractionPipeline.__call__N   s   ø€ ô ‰wÒ Ð0¨Ñ0Ð0r   r*   )NNN)F)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú_load_processorÚ_load_image_processorÚ_load_feature_extractorÚ_load_tokenizerr   r'   r-   r1   r8   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r9   r   s   @@r   r   r      sJ   ù‡ € ñð0 €OØ!ÐØ#ÐØ€Oô9÷&ð òô)÷
1÷ 
1ó 
1r   r   N)	Útypingr   Úutilsr   Úbaser   r   r   r   r*   r   r   Ú<module>rJ      sD   ðÝ å &ß CÑ Cñ Ù¨4ÈÔNðkóôI1 ó I1óòI1r   