+
    œ°³jH-  ã                   ó†  € R t ^ RIHt ^RIHt ^RIHtHt ^RIH	t	H
t
 ]P                  ! ]4      t]! RR7      ] ! R R]4      4       4       t]! RR7      ] ! R	 R
]4      4       4       t]! RR7      ] ! R R]4      4       4       t]! RR7      ] ! R R]4      4       4       t]! RR7      ] ! R R]4      4       4       t. ROtR# )zBARK model configuration)Ústrict)ÚPreTrainedConfig)Úauto_docstringÚlogging)ÚCONFIG_MAPPINGÚ
AutoConfigz	suno/bark)Ú
checkpointc                   ór   a € ] tR t^t o RtR.tRRRRRRR	R
/tRtRtRt	^t
^tRtRtRtRtRtV 3R ltRtV tR# )ÚBarkSubModelConfigaÆ  
block_size (`int`, *optional*, defaults to 1024):
    The maximum sequence length that this model might ever be used with. Typically set this to something large
    just in case (e.g., 512 or 1024 or 2048).
input_vocab_size (`int`, *optional*, defaults to 10_048):
    Vocabulary size of a Bark sub-model. Defines the number of different tokens that can be represented by the
    `inputs_ids` passed when calling [`{model}`]. Defaults to 10_048 but should be carefully thought with
    regards to the chosen sub-model.
output_vocab_size (`int`, *optional*, defaults to 10_048):
    Output vocabulary size of a Bark sub-model. Defines the number of different tokens that can be represented
    by the: `output_ids` when passing forward a [`{model}`]. Defaults to 10_048 but should be carefully thought
    with regards to the chosen sub-model.
bias (`bool`, *optional*, defaults to `True`):
    Whether or not to use bias in the linear layers and layer norm layers.
Úpast_key_valuesÚnum_attention_headsÚ	num_headsÚnum_hidden_layersÚ
num_layersÚ
vocab_sizeÚinput_vocab_sizeÚwindow_sizeÚ
block_sizei   i@'  i   g        Tç{®Gáz”?c                ó¢   <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[S[ ,          ;R&   S[;R&   S[;R	&   S[;R
&   # )é   r   r   Úoutput_vocab_sizer   r   Úhidden_sizeÚdropoutÚbiasÚinitializer_rangeÚ	use_cache)ÚintÚfloatÚbool)ÚformatÚ__classdict__s   "€Úl/home/luca/screen-checking/.venv/lib/python3.14/site-packages/transformers/models/bark/configuration_bark.pyÚ__annotate__ÚBarkSubModelConfig.__annotate__   s—   ø‡ ‚ ñ8 Ññ9 ñ: Ñ"ñ; ñ< Ñ#ñ= ñ> Ññ? ñ@ ÑñA ñB ÑñC ñD ‘S�[ÑñE ñF ÑñG ñH Ñ#ñI ñJ ÑòK ó    © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úkeys_to_ignore_at_inferenceÚattribute_mapr   r   r   r   r   r   r   r   r   r   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__©r!   s   @r"   r
   r
      sr   ø‡ € ñð  $5Ð"5Ðð 	˜{Ø˜\ØÐ(Ø�|ð	€Mð €JØ"ÐØ#ÐØ€JØ€IØ€KØ€GØ€DØ#ÐØ€I÷K ƒ r%   r
   c                   ó"   € ] tR t^BtRtRtRtRtR# )ÚBarkSemanticConfigaS  
block_size (`int`, *optional*, defaults to 1024):
    The maximum sequence length that this model might ever be used with. Typically set this to something large
    just in case (e.g., 512 or 1024 or 2048).
input_vocab_size (`int`, *optional*, defaults to 10_048):
    Vocabulary size of a Bark sub-model. Defines the number of different tokens that can be represented by the
    `inputs_ids` passed when calling [`{model}`]. Defaults to 10_048 but should be carefully thought with
    regards to the chosen sub-model.
output_vocab_size (`int`, *optional*, defaults to 10_048):
    Output vocabulary size of a Bark sub-model. Defines the number of different tokens that can be represented
    by the: `output_ids` when passing forward a [`{model}`]. Defaults to 10_048 but should be carefully thought
    with regards to the chosen sub-model.
bias (`bool`, *optional*, defaults to `True`):
    Whether or not to use bias in the linear layers and layer norm layers

Example:

```python
>>> from transformers import BarkSemanticConfig, BarkSemanticModel

>>> # Initializing a Bark sub-module style configuration
>>> configuration = BarkSemanticConfig()

>>> # Initializing a model (with random weights) from the suno/bark style configuration
>>> model = BarkSemanticModel(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```ÚsemanticÚsemantic_configr&   N©r'   r(   r)   r*   r+   Ú
model_typeÚbase_config_keyr/   r&   r%   r"   r3   r3   B   s   † ñð< €JØ'„Or%   r3   c                   ó"   € ] tR t^gtRtRtRtRtR# )ÚBarkCoarseConfigaK  
block_size (`int`, *optional*, defaults to 1024):
    The maximum sequence length that this model might ever be used with. Typically set this to something large
    just in case (e.g., 512 or 1024 or 2048).
input_vocab_size (`int`, *optional*, defaults to 10_048):
    Vocabulary size of a Bark sub-model. Defines the number of different tokens that can be represented by the
    `inputs_ids` passed when calling [`{model}`]. Defaults to 10_048 but should be carefully thought with
    regards to the chosen sub-model.
output_vocab_size (`int`, *optional*, defaults to 10_048):
    Output vocabulary size of a Bark sub-model. Defines the number of different tokens that can be represented
    by the: `output_ids` when passing forward a [`{model}`]. Defaults to 10_048 but should be carefully thought
    with regards to the chosen sub-model.
bias (`bool`, *optional*, defaults to `True`):
    Whether or not to use bias in the linear layers and layer norm layers

Example:

```python
>>> from transformers import BarkCoarseConfig, BarkCoarseModel

>>> # Initializing a Bark sub-module style configuration
>>> configuration = BarkCoarseConfig()

>>> # Initializing a model (with random weights) from the suno/bark style configuration
>>> model = BarkCoarseModel(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```Úcoarse_acousticsÚcoarse_acoustics_configr&   Nr6   r&   r%   r"   r:   r:   g   s   † ñð< $€JØ/„Or%   r:   c                   óD   a € ] tR t^Œt o RtRtRtRt^t^t	V 3R lt
RtV tR# )ÚBarkFineConfigau  
block_size (`int`, *optional*, defaults to 1024):
    The maximum sequence length that this model might ever be used with. Typically set this to something large
    just in case (e.g., 512 or 1024 or 2048).
input_vocab_size (`int`, *optional*, defaults to 10_048):
    Vocabulary size of a Bark sub-model. Defines the number of different tokens that can be represented by the
    `inputs_ids` passed when calling [`{model}`]. Defaults to 10_048 but should be carefully thought with
    regards to the chosen sub-model.
output_vocab_size (`int`, *optional*, defaults to 10_048):
    Output vocabulary size of a Bark sub-model. Defines the number of different tokens that can be represented
    by the: `output_ids` when passing forward a [`{model}`]. Defaults to 10_048 but should be carefully thought
    with regards to the chosen sub-model.
bias (`bool`, *optional*, defaults to `True`):
    Whether or not to use bias in the linear layers and layer norm layers
n_codes_total (`int`, *optional*, defaults to 8):
    The total number of audio codebooks predicted. Used in the fine acoustics sub-model.
n_codes_given (`int`, *optional*, defaults to 1):
    The number of audio codebooks predicted in the coarse acoustics sub-model. Used in the acoustics
    sub-models.

Example:

```python
>>> from transformers import BarkFineConfig, BarkFineModel

>>> # Initializing a Bark sub-module style configuration
>>> configuration = BarkFineConfig()

>>> # Initializing a model (with random weights) from the suno/bark style configuration
>>> model = BarkFineModel(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```Úfine_acousticsÚfine_acoustics_configTc                ó>   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[;R&   # )r   Útie_word_embeddingsÚn_codes_totalÚn_codes_given)r   r   )r    r!   s   "€r"   r#   ÚBarkFineConfig.__annotate__Œ   s2   ø‡ ‚ ñR Ñ$ñS ñT ÑñU ñV ÑòW r%   r&   N)r'   r(   r)   r*   r+   r7   r8   rB   rC   rD   r.   r/   r0   r1   s   @r"   r>   r>   Œ   s/   ø‡ € ñ!ðF "€JØ-€Oà $ÐØ€MØ€M÷W ƒ r%   r>   c                   ón   a a€ ] tR t^ºt oRtRtR]R]R]R]	/t
RtRtRtRtRtV 3R	 ltV3R
 ltRtVtV ;t# )Ú
BarkConfigaâ  
semantic_config ([`BarkSemanticConfig`], *optional*):
    Configuration of the underlying semantic sub-model.
coarse_acoustics_config ([`BarkCoarseConfig`], *optional*):
    Configuration of the underlying coarse acoustics sub-model.
fine_acoustics_config ([`BarkFineConfig`], *optional*):
    Configuration of the underlying fine acoustics sub-model.
codec_config ([`AutoConfig`], *optional*):
    Configuration of the underlying codec sub-model.

Example:

```python
>>> from transformers import (
...     BarkSemanticConfig,
...     BarkCoarseConfig,
...     BarkFineConfig,
...     BarkModel,
...     BarkConfig,
...     AutoConfig,
... )

>>> # Initializing Bark sub-modules configurations.
>>> semantic_config = BarkSemanticConfig()
>>> coarse_acoustics_config = BarkCoarseConfig()
>>> fine_acoustics_config = BarkFineConfig()
>>> codec_config = AutoConfig.from_pretrained("facebook/encodec_24khz")


>>> # Initializing a Bark module style configuration
>>> configuration = BarkConfig(
...     semantic_config, coarse_acoustics_config, fine_acoustics_config, codec_config
... )

>>> # Initializing a model (with random weights)
>>> model = BarkModel(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```
Úbarkr5   r<   r@   Úcodec_configNr   c                óè  <€ V P                   f&   \        4       V n         \        P                  R4       M:\	        V P                   \
        4      '       d   \        R/ V P                   B V n         V P                  f&   \        4       V n        \        P                  R4       M:\	        V P                  \
        4      '       d   \        R/ V P                  B V n        V P                  f&   \        4       V n        \        P                  R4       M:\	        V P                  \
        4      '       d   \        R/ V P                  B V n        V P                  f.   \        R,          ! 4       V n
        \        P                  R4       M^\	        V P                  \
        4      '       d?   V P                  P                  RR4      p\        V,          ! R/ V P                  B V n
        \        SV `8  ! R/ VB  R # )NzW`semantic_config` is `None`. Initializing the `BarkSemanticConfig` with default values.z]`coarse_acoustics_config` is `None`. Initializing the `BarkCoarseConfig` with default values.zY`fine_acoustics_config` is `None`. Initializing the `BarkFineConfig` with default values.ÚencodeczN`codec_config` is `None`. Initializing the `codec_config` with default values.r7   r&   )r5   r3   ÚloggerÚinfoÚ
isinstanceÚdictr<   r:   r@   r>   rI   r   ÚgetÚsuperÚ__post_init__)ÚselfÚkwargsÚcodec_model_typeÚ	__class__s   &, €r"   rR   ÚBarkConfig.__post_init__ô   so  ø€ Ø×ÑÒ'Ü#5Ó#7ˆDÔ Ü�K‰KÐqÕrÜ˜×,Ñ,¬d×3Ò3Ü#5Ñ#M¸×8LÑ8LÑ#MˆDÔ à×'Ñ'Ò/Ü+;Ó+=ˆDÔ(Ü�K‰KØoõô ˜×4Ñ4´d×;Ò;Ü+;Ñ+[¸d×>ZÑ>ZÑ+[ˆDÔ(à×%Ñ%Ò-Ü)7Ó)9ˆDÔ&Ü�K‰KÐsÕtÜ˜×2Ñ2´D×9Ò9Ü)7Ñ)U¸$×:TÑ:TÑ)UˆDÔ&à×ÑÒ$Ü .¨yÖ 9Ó ;ˆDÔÜ�K‰KÐhÕiÜ˜×)Ñ)¬4×0Ò0Ø#×0Ñ0×4Ñ4°\À9ÓMÐÜ .Ð/?Ö @Ñ UÀ4×CTÑCTÑ UˆDÔä‰ÒÑ' Ô'r%   c                óÎ   <€ V ^8„  d   Qh/ S[ S[,          R,          ;R&   S[ S[,          R,          ;R&   S[ S[,          R,          ;R&   S[ S[,          R,          ;R&   S[;R&   # )r   Nr5   r<   r@   rI   r   )rO   r   r   )r    r!   s   "€r"   r#   ÚBarkConfig.__annotate__º   s|   ø‡ ‚ ñh Ñ,Õ,¨tÕ3Ñ:ñi ñj "Ñ$4Õ4°tÕ;ÑBñk ñl  Ñ"2Õ2°TÕ9Ñ@ñm ñn Ñ)Õ)¨DÕ0Ñ7ño ñp Ñ#òq r%   )r<   rI   r@   r5   )r'   r(   r)   r*   r+   r7   r3   r:   r>   r   Úsub_configsr5   r<   r@   rI   r   rR   r.   r/   r0   Ú__classcell__)rV   r!   s   @@r"   rG   rG   º   sZ   ù‡ € ñ(ðT €JàÐ-Ø!Ð#3Ø Ø˜
ð	€Kð 7;€OØ>BÐØ<@ÐØ37€LØ#Ðõ(÷u … r%   rG   N)r:   rG   r>   r3   )r+   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   r   Úautor   r   Ú
get_loggerr'   rL   r
   r3   r:   r>   rG   Ú__all__r&   r%   r"   Ú<module>rb      s  ðñ å .å 3ß ,ß -ð 
×	Ò	˜HÓ	%€ñ ˜;Ô'Øô#Ð)ó #ó ó (ð#ñL ˜;Ô'Øô (Ð+ó  (ó ó (ð (ñF ˜;Ô'Øô 0Ð)ó  0ó ó (ð 0ñF ˜;Ô'Øô)Ð'ó )ó ó (ð)ñX ˜;Ô'ØôT(Ð!ó T(ó ó (ðT(òn U‚r%   