+
    œ°³jm  ã                   ól   € R t ^ RIHt ^RIHt ^RIHt ]! RR7      ] ! R R]4      4       4       tR.tR# )	a[  
TAPAS configuration. Based on the BERT configuration with added parameters.

Hyperparameters are taken from run_task_main.py and hparam_utils.py of the original implementation. URLS:

- https://github.com/google-research/tapas/blob/master/tapas/run_task_main.py
- https://github.com/google-research/tapas/blob/master/tapas/utils/hparam_utils.py

)Ústrict)ÚPreTrainedConfig)Úauto_docstringzgoogle/tapas-base-finetuned-sqa)Ú
checkpointc                   óî   a a€ ] tR t^t oRtRtRtRt^t^t	Rt
RtRtRtRtRtR	tR
t^ tRtRtRt^ tRtRtRtRtRtRtRtRtRtRt Rt!Rt"^@t#^ t$Rt%Rt&Rt'Rt(Rt)Rt*Rt+Rt,Rt-Rt.Rt/V 3R lt0V3R lt1Rt2Vt3V ;t4# )ÚTapasConfigaØ  
type_vocab_sizes (`list[int]`, *optional*, defaults to `[3, 256, 256, 2, 256, 256, 10]`):
    The vocabulary sizes of the `token_type_ids` passed when calling [`TapasModel`].
positive_label_weight (`float`, *optional*, defaults to 10.0):
    Weight for positive labels.
num_aggregation_labels (`int`, *optional*, defaults to 0):
    The number of aggregation operators to predict.
aggregation_loss_weight (`float`, *optional*, defaults to 1.0):
    Importance weight for the aggregation loss.
use_answer_as_supervision (`bool`, *optional*):
    Whether to use the answer as the only supervision for aggregation examples.
answer_loss_importance (`float`, *optional*, defaults to 1.0):
    Importance weight for the regression loss.
use_normalized_answer_loss (`bool`, *optional*, defaults to `False`):
    Whether to normalize the answer loss by the maximum of the predicted and expected value.
huber_loss_delta (`float`, *optional*):
    Delta parameter used to calculate the regression loss.
temperature (`float`, *optional*, defaults to 1.0):
    Value used to control (OR change) the skewness of cell logits probabilities.
aggregation_temperature (`float`, *optional*, defaults to 1.0):
    Scales aggregation logits to control the skewness of probabilities.
use_gumbel_for_cells (`bool`, *optional*, defaults to `False`):
    Whether to apply Gumbel-Softmax to cell selection.
use_gumbel_for_aggregation (`bool`, *optional*, defaults to `False`):
    Whether to apply Gumbel-Softmax to aggregation selection.
average_approximation_function (`string`, *optional*, defaults to `"ratio"`):
    Method to calculate the expected average of cells in the weak supervision case. One of `"ratio"`,
    `"first_order"` or `"second_order"`.
cell_selection_preference (`float`, *optional*):
    Preference for cell selection in ambiguous cases. Only applicable in case of weak supervision for
    aggregation (WTQ, WikiSQL). If the total mass of the aggregation probabilities (excluding the "NONE"
    operator) is higher than this hyperparameter, then aggregation is predicted for an example.
answer_loss_cutoff (`float`, *optional*):
    Ignore examples with answer loss larger than cutoff.
max_num_rows (`int`, *optional*, defaults to 64):
    Maximum number of rows.
max_num_columns (`int`, *optional*, defaults to 32):
    Maximum number of columns.
average_logits_per_cell (`bool`, *optional*, defaults to `False`):
    Whether to average logits per cell.
select_one_column (`bool`, *optional*, defaults to `True`):
    Whether to constrain the model to only select cells from a single column.
allow_empty_column_selection (`bool`, *optional*, defaults to `False`):
    Whether to allow not to select any column.
init_cell_selection_weights_to_zero (`bool`, *optional*, defaults to `False`):
    Whether to initialize cell selection weights to 0 so that the initial probabilities are 50%.
reset_position_index_per_cell (`bool`, *optional*, defaults to `True`):
    Whether to restart position indexes at every cell (i.e. use relative position embeddings).
disable_per_token_loss (`bool`, *optional*, defaults to `False`):
    Whether to disable any (strong or weak) supervision on cells.
aggregation_labels (`dict[int, label]`, *optional*):
    The aggregation labels used to aggregate the results. For example, the WTQ models have the following
    aggregation labels: `{0: "NONE", 1: "SUM", 2: "AVERAGE", 3: "COUNT"}`
no_aggregation_label_index (`int`, *optional*):
    If the aggregation labels are defined and one of these labels represents "No aggregation", this should be
    set to its index. For example, the WTQ models have the "NONE" aggregation label at index 0, so that value
    should be set to 0 for these models.

Example:

```python
>>> from transformers import TapasModel, TapasConfig

>>> # Initializing a default (SQA) Tapas configuration
>>> configuration = TapasConfig()
>>> # Initializing a model from the configuration
>>> model = TapasModel(configuration)
>>> # Accessing the model configuration
>>> configuration = model.config
```Útapasi:w  i   i   Úgelugš™™™™™¹?i   g{®Gáz”?gê-�™—q=Ng      $@g      ð?FÚratioTc                óî   <€ \        V P                  \        4      '       d>   V P                  P                  4        UUu/ uF  w  r#\	        V4      VbK  	  uppV n        \
        SV `  ! R/ VB  R # u uppi )N© )Ú
isinstanceÚaggregation_labelsÚdictÚitemsÚintÚsuperÚ__post_init__)ÚselfÚkwargsÚkÚvÚ	__class__s   &,  €Ún/home/luca/screen-checking/.venv/lib/python3.14/site-packages/transformers/models/tapas/configuration_tapas.pyr   ÚTapasConfig.__post_init__•   s^   ø€ Ü�d×-Ñ-¬t×4Ò4Ø=A×=TÑ=T×=ZÑ=ZÔ=\Ô&]Ñ=\±T°Q¤s¨1£v¨q¢yÑ=\Ò&]ˆDÔ#Ü‰ÒÑ' Ô'ùó '^s   ¿A1c                ó  <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[;R&   S[S[ ,          ;R&   S[S[ ,          ;R&   S[ ;R	&   S[S[ ,          S[S[ R
3,          ,          ;R&   S[;R&   S[;R&   S[ R,          ;R&   S[ R,          ;R&   S[ S[S[ ,          ,          R,          ;R&   S[;R&   S[ ;R&   S[;R&   S[R,          ;R&   S[;R&   S[;R&   S[R,          ;R&   S[;R&   S[;R&   S[;R&   S[;R&   S[;R&   S[R,          ;R&   S[S[ ,          R,          ;R&   S[ ;R &   S[ ;R!&   S[;R"&   S[;R#&   S[;R$&   S[;R%&   S[;R&&   S[;R'&   S[R,          ;R(&   S[ R,          ;R)&   S[;R*&   S[;R+&   S[;R,&   # )-é   Ú
vocab_sizeÚhidden_sizeÚnum_hidden_layersÚnum_attention_headsÚintermediate_sizeÚ
hidden_actÚhidden_dropout_probÚattention_probs_dropout_probÚmax_position_embeddings.Útype_vocab_sizesÚinitializer_rangeÚlayer_norm_epsNÚpad_token_idÚbos_token_idÚeos_token_idÚpositive_label_weightÚnum_aggregation_labelsÚaggregation_loss_weightÚuse_answer_as_supervisionÚanswer_loss_importanceÚuse_normalized_answer_lossÚhuber_loss_deltaÚtemperatureÚaggregation_temperatureÚuse_gumbel_for_cellsÚuse_gumbel_for_aggregationÚaverage_approximation_functionÚcell_selection_preferenceÚanswer_loss_cutoffÚmax_num_rowsÚmax_num_columnsÚaverage_logits_per_cellÚselect_one_columnÚallow_empty_column_selectionÚ#init_cell_selection_weights_to_zeroÚreset_position_index_per_cellÚdisable_per_token_lossr   Úno_aggregation_label_indexÚ
is_decoderÚadd_cross_attentionÚtie_word_embeddings)r   ÚstrÚfloatÚlistÚtupleÚboolr   )ÚformatÚ__classdict__s   "€r   Ú__annotate__ÚTapasConfig.__annotate__   sÆ  ø‡ ‚ ñX ÑñY ñZ Ññ[ ñ\ Ññ] ñ^ Ñ!ñ_ ñ` Ñ!ña ñb Ññc ñd ¡�Ñ*ñe ñf #(©#¥+Ñ3ñg ñh !Ñ'ñi ñj ™3•i¡%©¨S¨¥/Õ1ÑRñk ñl Ñ#ñm ñn Ñ!ño ñp ˜•*Ñ ñq ñr ˜•*Ñ#ñs ñt ™™S�	•/ DÕ(Ñ/ñu ñv !Ñ'ñw ñx  Ñ#ñy ñz #Ñ(ñ{ ñ|  $ d�{Ñ1ñ} ñ~ "Ñ'ñ ñ@ !%Ñ,ñA ñB ˜d•lÑ)ñC ñD ÑñE ñF #Ñ(ñG ñH Ñ&ñI ñJ !%Ñ,ñK ñL %(Ñ1ñM ñN  % t�|Ñ2ñO ñP ¡� dÕ*Ñ1ñQ ñR ÑñS ñT ÑñU ñV "Ñ)ñW ñX Ñ"ñY ñZ #'Ñ.ñ[ ñ\ *.Ñ5ñ] ñ^ $(Ñ.ñ_ ñ` !Ñ(ña ñb ˜t�Ñ*ñc ñd !$ d¥
Ñ1ñe ñf Ññg ñh Ñ%ñi ñj Ñ$òk ó    )r   )é   é   rQ   r   rQ   rQ   é
   )5Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú
model_typer   r   r   r    r!   r"   r#   r$   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   r   rB   rC   rD   rE   r   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   rL   s   @@r   r   r      s  ù‡ € ñEðN €Jà€JØ€KØÐØ!ÐØ!ÐØ€JØ'*ÐØ03Ð Ø#'ÐØ4RÐØ#ÐØ!€NØ €LØ#€LØ+/€LØ#'ÐØ"#ÐØ%(ÐØ-1ÐØ$'ÐØ',ÐØ%)ÐØ€KØ%(ÐØ!&ÐØ',ÐØ*1Ð"Ø.2ÐØ-1ÐØ€LØ€OØ$)ÐØ"ÐØ).Ð Ø05Ð'Ø*.Ð!Ø#(ÐØ&*ÐØ-1ÐØ€JØ %ÐØ $Ðõ(÷o … rO   r   N)	rW   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   r   Ú__all__r   rO   r   Ú<module>ra      sL   ðñõ /å 3Ý #ñ Ð<Ô=Øôx(Ð"ó x(ó ó >ðx(ðv ˆ/‚rO   