Ë
    ÜÓ^jw  ã                   óv   — d Z ddlmZ ddlmZ ddlmZ ddlmZ  ed¬«      e G d	„ d
e«      «       «       Z	d
gZ
y)zPhi model configurationé    )Ústricté   )ÚPreTrainedConfig)ÚRopeParameters)Úauto_docstringzmicrosoft/phi-1)Ú
checkpointc                   óÐ  ‡ — e Zd ZU dZdZdgZdddddddœZdgdgfdgdgfd	d
gd	gfd	gd	gfdœZdZe	e
d<   dZe	e
d<   dZe	e
d<   dZe	e
d<   dZe	e
d<   dZe	dz  e
d<   dZee	z  e
d<   dZee	z  e
d<   dZee	z  dz  e
d<   dZee
d<   dZe	e
d<   dZee
d <   d!Zee
d"<   d#Zee
d$<   d%Zee
d&<   dZeez  dz  e
d'<   d%Zee
d(<   d)Z e	dz  e
d*<   d+Z!e	e"e	   z  dz  e
d,<   dZ#e	dz  e
d-<   ˆ fd.„Z$ˆ xZ%S )/Ú	PhiConfiga  
    qk_layernorm (`bool`, *optional*, defaults to `False`):
        Whether or not to normalize the Queries and Keys after projecting the hidden states.

    Example:

    ```python
    >>> from transformers import PhiModel, PhiConfig

    >>> # Initializing a Phi-1 style configuration
    >>> configuration = PhiConfig.from_pretrained("microsoft/phi-1")

    >>> # Initializing a model from the configuration
    >>> model = PhiModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```ÚphiÚpast_key_valuesÚcolwiseÚrowwise)zlayers.*.self_attn.q_projzlayers.*.self_attn.k_projzlayers.*.self_attn.v_projzlayers.*.self_attn.densezlayers.*.mlp.fc1zlayers.*.mlp.fc2Ú	input_idsÚinputs_embedsÚhidden_statesÚattention_mask)Úembed_tokensÚembed_dropoutÚlayersÚfinal_layernormi È  Ú
vocab_sizei   Úhidden_sizei    Úintermediate_sizeé   Únum_hidden_layersé    Únum_attention_headsNÚnum_key_value_headsg        Úresid_pdropÚ
embd_pdropÚattention_dropoutÚgelu_newÚ
hidden_actÚmax_position_embeddingsg{®Gáz”?Úinitializer_rangegñhãˆµøä>Úlayer_norm_epsTÚ	use_cacheFÚtie_word_embeddingsÚrope_parametersÚqk_layernormé   Úbos_token_idé   Úeos_token_idÚpad_token_idc                 ó‚   •— | j                   €| j                  | _         |j                  dd«       t        ‰| �  di |¤Ž y )NÚpartial_rotary_factorg      à?© )r   r   Ú
setdefaultÚsuperÚ__post_init__)ÚselfÚkwargsÚ	__class__s     €út/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/transformers/models/phi/configuration_phi.pyr5   zPhiConfig.__post_init__T   s>   ø€ Ø×#Ñ#Ð+Ø'+×'?Ñ'?ˆDÔ$à×ÑÐ1°3Ô7Ü‰ÑÑ' Ó'ó    )&Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
model_typeÚkeys_to_ignore_at_inferenceÚbase_model_tp_planÚbase_model_pp_planr   ÚintÚ__annotations__r   r   r   r   r   r   Úfloatr    r!   r#   Ústrr$   r%   r&   r'   Úboolr(   r)   r   Údictr*   r,   r.   Úlistr/   r5   Ú__classcell__)r8   s   @r9   r
   r
      s†  ø… ñð& €JØ#4Ð"5Ðà%.Ø%.Ø%.Ø$-Ø%Ø%ñÐð &˜¨Ð(9Ð:Ø*Ð+¨oÐ->Ð?Ø#Ð%5Ð6¸Ð8IÐJØ,Ð-°Ð/@ÐAñ	Ðð €J�ÓØ€K�ÓØ!Ð�sÓ!ØÐ�sÓØ!Ð˜Ó!Ø&*Ð˜˜t™Ó*Ø"€K�˜‘Ó"Ø!€J�˜‘Ó!Ø,/Ð�u˜s‘{ TÑ)Ó/Ø €J�Ó Ø#'Ð˜SÓ'Ø#Ð�uÓ#Ø €N�EÓ Ø€IˆtÓØ %Ð˜Ó%Ø48€O�^ dÑ*¨TÑ1Ó8Ø€L�$ÓØ €L�#˜‘*Ó Ø+,€L�#˜˜S™	‘/ DÑ(Ó,Ø#€L�#˜‘*Ó#÷(ð (r:   r
   N)r>   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úmodeling_rope_utilsr   Úutilsr   r
   Ú__all__r2   r:   r9   ú<module>rP      sJ   ðñ å .å 3Ý 1Ý #ñ Ð,Ô-Øô?(Ð ó ?(ó ó .ð?(ðD ˆ-�r:   