import{s as mt,o as ct,n as Be}from"../chunks/scheduler.01eeda35.js";import{S as ut,i as pt,g as l,s as a,r as g,A as ht,h as d,f as o,c as s,j as te,u as _,x as p,k as X,y as m,a as n,v as M,d as y,t as v,w as b}from"../chunks/index.6dd51b66.js";import{T as ft}from"../chunks/Tip.de9bae2b.js";import{D as ce}from"../chunks/Docstring.cb556860.js";import{C as Le}from"../chunks/CodeBlock.19ec9b8c.js";import{E as dt}from"../chunks/ExampleCodeBlock.69db56ad.js";import{H as ue,E as gt}from"../chunks/index.58fe8f9d.js";function _t(z){let r,T="Example:",u,c,h;return c=new Le({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyME1pbWlNb2RlbCUyQyUyME1pbWlDb25maWclMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwJTIya3l1dGFpJTJGbWltaSUyMiUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBNaW1pQ29uZmlnKCklMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwbW9kZWwlMjAod2l0aCUyMHJhbmRvbSUyMHdlaWdodHMpJTIwZnJvbSUyMHRoZSUyMCUyMmt5dXRhaSUyRm1pbWklMjIlMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFtb2RlbCUyMCUzRCUyME1pbWlNb2RlbChjb25maWd1cmF0aW9uKSUwQSUwQSUyMyUyMEFjY2Vzc2luZyUyMHRoZSUyMG1vZGVsJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBtb2RlbC5jb25maWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> MimiModel, MimiConfig

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a &quot;kyutai/mimi&quot; style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = MimiConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the &quot;kyutai/mimi&quot; style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = MimiModel(configuration)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Accessing the model configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = model.config`,wrap:!1}}),{c(){r=l("p"),r.textContent=T,u=a(),g(c.$$.fragment)},l(i){r=d(i,"P",{"data-svelte-h":!0}),p(r)!=="svelte-11lpom8"&&(r.textContent=T),u=s(i),_(c.$$.fragment,i)},m(i,w){n(i,r,w),n(i,u,w),M(c,i,w),h=!0},p:Be,i(i){h||(y(c.$$.fragment,i),h=!0)},o(i){v(c.$$.fragment,i),h=!1},d(i){i&&(o(r),o(u)),b(c,i)}}}function Mt(z){let r,T=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){r=l("p"),r.innerHTML=T},l(u){r=d(u,"P",{"data-svelte-h":!0}),p(r)!=="svelte-fincs2"&&(r.innerHTML=T)},m(u,c){n(u,r,c)},p:Be,d(u){u&&o(r)}}}function yt(z){let r,T="Examples:",u,c,h;return c=new Le({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9GZWF0dXJlRXh0cmFjdG9yJTJDJTIwTWltaU1vZGVsJTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJoZi1pbnRlcm5hbC10ZXN0aW5nJTJGYXNocmFxLWVzYzUwLTEtZG9nLWV4YW1wbGUlMjIpJTBBYXVkaW9fc2FtcGxlJTIwJTNEJTIwZGF0YXNldCU1QiUyMnRyYWluJTIyJTVEJTVCJTIyYXVkaW8lMjIlNUQlNUIwJTVEJTVCJTIyYXJyYXklMjIlNUQlMEElMEFtb2RlbF9pZCUyMCUzRCUyMCUyMmt5dXRhaSUyRm1pbWklMjIlMEFtb2RlbCUyMCUzRCUyME1pbWlNb2RlbC5mcm9tX3ByZXRyYWluZWQobW9kZWxfaWQpJTBBZmVhdHVyZV9leHRyYWN0b3IlMjAlM0QlMjBBdXRvRmVhdHVyZUV4dHJhY3Rvci5mcm9tX3ByZXRyYWluZWQobW9kZWxfaWQpJTBBJTBBaW5wdXRzJTIwJTNEJTIwZmVhdHVyZV9leHRyYWN0b3IocmF3X2F1ZGlvJTNEYXVkaW9fc2FtcGxlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBYXVkaW9fY29kZXMlMjAlM0QlMjBvdXRwdXRzLmF1ZGlvX2NvZGVzJTBBYXVkaW9fdmFsdWVzJTIwJTNEJTIwb3V0cHV0cy5hdWRpb192YWx1ZXM=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoFeatureExtractor, MimiModel

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/ashraq-esc50-1-dog-example&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_sample = dataset[<span class="hljs-string">&quot;train&quot;</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-number">0</span>][<span class="hljs-string">&quot;array&quot;</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>model_id = <span class="hljs-string">&quot;kyutai/mimi&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = MimiModel.from_pretrained(model_id)
<span class="hljs-meta">&gt;&gt;&gt; </span>feature_extractor = AutoFeatureExtractor.from_pretrained(model_id)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = feature_extractor(raw_audio=audio_sample, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_codes = outputs.audio_codes
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_values = outputs.audio_values`,wrap:!1}}),{c(){r=l("p"),r.textContent=T,u=a(),g(c.$$.fragment)},l(i){r=d(i,"P",{"data-svelte-h":!0}),p(r)!=="svelte-kvfsh7"&&(r.textContent=T),u=s(i),_(c.$$.fragment,i)},m(i,w){n(i,r,w),n(i,u,w),M(c,i,w),h=!0},p:Be,i(i){h||(y(c.$$.fragment,i),h=!0)},o(i){v(c.$$.fragment,i),h=!1},d(i){i&&(o(r),o(u)),b(c,i)}}}function vt(z){let r,T,u,c,h,i,w,Pe='<img alt="PyTorch" src="https://img.shields.io/badge/PyTorch-DE3412?style=flat&amp;logo=pytorch&amp;logoColor=white"/> <img alt="FlashAttention" src="https://img.shields.io/badge/%E2%9A%A1%EF%B8%8E%20FlashAttention-eae0c8?style=flat"/> <img alt="SDPA" src="https://img.shields.io/badge/SDPA-DE3412?style=flat&amp;logo=pytorch&amp;logoColor=white"/>',pe,R,he,N,Qe='The Mimi model was proposed in <a href="https://kyutai.org/Moshi.pdf" rel="nofollow">Moshi: a speech-text foundation model for real-time dialogue</a> by Alexandre Défossez, Laurent Mazaré, Manu Orsini, Amélie Royer, Patrick Pérez, Hervé Jégou, Edouard Grave and Neil Zeghidour. Mimi is a high-fidelity audio codec model developed by the Kyutai team, that combines semantic and acoustic information into audio tokens running at 12Hz and a bitrate of 1.1kbps. In other words, it can be used to map audio waveforms into “audio tokens”, known as “codebooks”.',fe,V,Se="The abstract from the paper is the following:",ge,F,Ae="<em>We introduce Moshi, a speech-text foundation model and full-duplex spoken dialogue framework. Current systems for spoken dialogue rely on pipelines of independent components, namely voice activity detection, speech recognition, textual dialogue and text-to-speech. Such frameworks cannot emulate the experience of real conversations. First, their complexity induces a latency of several seconds between interactions. Second, text being the intermediate modality for dialogue, non-linguistic information that modifies meaning— such as emotion or non-speech sounds— is lost in the interaction. Finally, they rely on a segmentation into speaker turns, which does not take into account overlapping speech, interruptions and interjections. Moshi solves these independent issues altogether by casting spoken dialogue as speech-to-speech generation. Starting from a text language model backbone, Moshi generates speech as tokens from the residual quantizer of a neural audio codec, while modeling separately its own speech and that of the user into parallel streams. This allows for the removal of explicit speaker turns, and the modeling of arbitrary conversational dynamics. We moreover extend the hierarchical semantic-to-acoustic token generation of previous work to first predict time-aligned text tokens as a prefix to audio tokens. Not only this “Inner Monologue” method significantly improves the linguistic quality of generated speech, but we also illustrate how it can provide streaming speech recognition and text-to-speech. Our resulting model is the first real-time full-duplex spoken large language model, with a theoretical latency of 160ms, 200ms in practice, and is available at github.com/kyutai-labs/moshi.</em>",_e,G,De='Its architecture is based on <a href="model_doc/encodec">Encodec</a> with several major differences:',Me,H,Oe="<li>it uses a much lower frame-rate.</li> <li>it uses additional transformers for encoding and decoding for better latent contextualization</li> <li>it uses a different quantization scheme: one codebook is dedicated to semantic projection.</li>",ye,E,ve,Y,Ke="Here is a quick example of how to encode and decode an audio using this model:",be,B,we,L,et=`This model was contributed by <a href="https://huggingface.co/ylacombe" rel="nofollow">Yoach Lacombe (ylacombe)</a>.
The original code can be found <a href="https://github.com/kyutai-labs/moshi" rel="nofollow">here</a>.`,ke,P,Te,x,Q,We,oe,tt=`This is the configuration class to store the configuration of an <a href="/docs/transformers/main/en/model_doc/mimi#transformers.MimiModel">MimiModel</a>. It is used to instantiate a
Mimi model according to the specified arguments, defining the model architecture. Instantiating a configuration
with the defaults will yield a similar configuration to that of the
<a href="https://huggingface.co/kyutai/mimi" rel="nofollow">kyutai/mimi</a> architecture.`,Ue,ne,ot=`Configuration objects inherit from <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Ie,W,xe,S,Ce,f,A,qe,ae,nt=`The Mimi neural audio codec model.
This model inherits from <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`,Ze,se,at=`This model is also a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`,Xe,J,D,Re,ie,st="Decodes the given frames into an output audio waveform.",Ne,re,it=`Note that the output might be a bit bigger than the input. In that case, any extra steps at the end can be
trimmed.`,Ve,U,O,Fe,le,rt="Encodes the input audio waveform into discrete codes.",Ge,C,K,He,de,lt='The <a href="/docs/transformers/main/en/model_doc/mimi#transformers.MimiModel">MimiModel</a> forward method, overrides the <code>__call__</code> special method.',Ee,I,Ye,q,$e,ee,Je,me,je;return h=new ue({props:{title:"Mimi",local:"mimi",headingTag:"h1"}}),R=new ue({props:{title:"Overview",local:"overview",headingTag:"h2"}}),E=new ue({props:{title:"Usage example",local:"usage-example",headingTag:"h2"}}),B=new Le({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTJDJTIwQXVkaW8lMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwTWltaU1vZGVsJTJDJTIwQXV0b0ZlYXR1cmVFeHRyYWN0b3IlMEFsaWJyaXNwZWVjaF9kdW1teSUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJoZi1pbnRlcm5hbC10ZXN0aW5nJTJGbGlicmlzcGVlY2hfYXNyX2R1bW15JTIyJTJDJTIwJTIyY2xlYW4lMjIlMkMlMjBzcGxpdCUzRCUyMnZhbGlkYXRpb24lMjIpJTBBJTBBJTIzJTIwbG9hZCUyMG1vZGVsJTIwYW5kJTIwZmVhdHVyZSUyMGV4dHJhY3RvciUwQW1vZGVsJTIwJTNEJTIwTWltaU1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJreXV0YWklMkZtaW1pJTIyKSUwQWZlYXR1cmVfZXh0cmFjdG9yJTIwJTNEJTIwQXV0b0ZlYXR1cmVFeHRyYWN0b3IuZnJvbV9wcmV0cmFpbmVkKCUyMmt5dXRhaSUyRm1pbWklMjIpJTBBJTBBJTIzJTIwbG9hZCUyMGF1ZGlvJTIwc2FtcGxlJTBBbGlicmlzcGVlY2hfZHVtbXklMjAlM0QlMjBsaWJyaXNwZWVjaF9kdW1teS5jYXN0X2NvbHVtbiglMjJhdWRpbyUyMiUyQyUyMEF1ZGlvKHNhbXBsaW5nX3JhdGUlM0RmZWF0dXJlX2V4dHJhY3Rvci5zYW1wbGluZ19yYXRlKSklMEFhdWRpb19zYW1wbGUlMjAlM0QlMjBsaWJyaXNwZWVjaF9kdW1teSU1Qi0xJTVEJTVCJTIyYXVkaW8lMjIlNUQlNUIlMjJhcnJheSUyMiU1RCUwQWlucHV0cyUyMCUzRCUyMGZlYXR1cmVfZXh0cmFjdG9yKHJhd19hdWRpbyUzRGF1ZGlvX3NhbXBsZSUyQyUyMHNhbXBsaW5nX3JhdGUlM0RmZWF0dXJlX2V4dHJhY3Rvci5zYW1wbGluZ19yYXRlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEFlbmNvZGVyX291dHB1dHMlMjAlM0QlMjBtb2RlbC5lbmNvZGUoaW5wdXRzJTVCJTIyaW5wdXRfdmFsdWVzJTIyJTVEJTJDJTIwaW5wdXRzJTVCJTIycGFkZGluZ19tYXNrJTIyJTVEKSUwQWF1ZGlvX3ZhbHVlcyUyMCUzRCUyMG1vZGVsLmRlY29kZShlbmNvZGVyX291dHB1dHMuYXVkaW9fY29kZXMlMkMlMjBpbnB1dHMlNUIlMjJwYWRkaW5nX21hc2slMjIlNUQpJTVCMCU1RCUwQSUyMyUyMG9yJTIwdGhlJTIwZXF1aXZhbGVudCUyMHdpdGglMjBhJTIwZm9yd2FyZCUyMHBhc3MlMEFhdWRpb192YWx1ZXMlMjAlM0QlMjBtb2RlbChpbnB1dHMlNUIlMjJpbnB1dF92YWx1ZXMlMjIlNUQlMkMlMjBpbnB1dHMlNUIlMjJwYWRkaW5nX21hc2slMjIlNUQpLmF1ZGlvX3ZhbHVlcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset, Audio
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> MimiModel, AutoFeatureExtractor
<span class="hljs-meta">&gt;&gt;&gt; </span>librispeech_dummy = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/librispeech_asr_dummy&quot;</span>, <span class="hljs-string">&quot;clean&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># load model and feature extractor</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = MimiModel.from_pretrained(<span class="hljs-string">&quot;kyutai/mimi&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>feature_extractor = AutoFeatureExtractor.from_pretrained(<span class="hljs-string">&quot;kyutai/mimi&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># load audio sample</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>librispeech_dummy = librispeech_dummy.cast_column(<span class="hljs-string">&quot;audio&quot;</span>, Audio(sampling_rate=feature_extractor.sampling_rate))
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_sample = librispeech_dummy[-<span class="hljs-number">1</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = feature_extractor(raw_audio=audio_sample, sampling_rate=feature_extractor.sampling_rate, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>encoder_outputs = model.encode(inputs[<span class="hljs-string">&quot;input_values&quot;</span>], inputs[<span class="hljs-string">&quot;padding_mask&quot;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_values = model.decode(encoder_outputs.audio_codes, inputs[<span class="hljs-string">&quot;padding_mask&quot;</span>])[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># or the equivalent with a forward pass</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_values = model(inputs[<span class="hljs-string">&quot;input_values&quot;</span>], inputs[<span class="hljs-string">&quot;padding_mask&quot;</span>]).audio_values`,wrap:!1}}),P=new ue({props:{title:"MimiConfig",local:"transformers.MimiConfig",headingTag:"h2"}}),Q=new ce({props:{name:"class transformers.MimiConfig",anchor:"transformers.MimiConfig",parameters:[{name:"sampling_rate",val:" = 24000"},{name:"frame_rate",val:" = 12.5"},{name:"audio_channels",val:" = 1"},{name:"hidden_size",val:" = 512"},{name:"num_filters",val:" = 64"},{name:"num_residual_layers",val:" = 1"},{name:"upsampling_ratios",val:" = None"},{name:"kernel_size",val:" = 7"},{name:"last_kernel_size",val:" = 3"},{name:"residual_kernel_size",val:" = 3"},{name:"dilation_growth_rate",val:" = 2"},{name:"use_causal_conv",val:" = True"},{name:"pad_mode",val:" = 'constant'"},{name:"compress",val:" = 2"},{name:"trim_right_ratio",val:" = 1.0"},{name:"codebook_size",val:" = 2048"},{name:"codebook_dim",val:" = 256"},{name:"num_quantizers",val:" = 32"},{name:"use_conv_shortcut",val:" = False"},{name:"vector_quantization_hidden_dimension",val:" = 256"},{name:"num_semantic_quantizers",val:" = 1"},{name:"upsample_groups",val:" = 512"},{name:"num_hidden_layers",val:" = 8"},{name:"intermediate_size",val:" = 2048"},{name:"num_attention_heads",val:" = 8"},{name:"num_key_value_heads",val:" = 8"},{name:"head_dim",val:" = None"},{name:"hidden_act",val:" = 'gelu'"},{name:"max_position_embeddings",val:" = 8000"},{name:"initializer_range",val:" = 0.02"},{name:"norm_eps",val:" = 1e-05"},{name:"use_cache",val:" = False"},{name:"rope_theta",val:" = 10000.0"},{name:"sliding_window",val:" = 250"},{name:"attention_dropout",val:" = 0.0"},{name:"layer_scale_initial_scale",val:" = 0.01"},{name:"attention_bias",val:" = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MimiConfig.sampling_rate",description:`<strong>sampling_rate</strong> (<code>int</code>, <em>optional</em>, defaults to 24000) &#x2014;
The sampling rate at which the audio waveform should be digitalized expressed in hertz (Hz).`,name:"sampling_rate"},{anchor:"transformers.MimiConfig.frame_rate",description:`<strong>frame_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 12.5) &#x2014;
Framerate of the model.`,name:"frame_rate"},{anchor:"transformers.MimiConfig.audio_channels",description:`<strong>audio_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of channels in the audio data. Either 1 for mono or 2 for stereo.`,name:"audio_channels"},{anchor:"transformers.MimiConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
Intermediate representation dimension.`,name:"hidden_size"},{anchor:"transformers.MimiConfig.num_filters",description:`<strong>num_filters</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
Number of convolution kernels of first <code>MimiConv1d</code> down sampling layer.`,name:"num_filters"},{anchor:"transformers.MimiConfig.num_residual_layers",description:`<strong>num_residual_layers</strong> (<code>int</code>,  <em>optional</em>, defaults to 1) &#x2014;
Number of residual layers.`,name:"num_residual_layers"},{anchor:"transformers.MimiConfig.upsampling_ratios",description:`<strong>upsampling_ratios</strong> (<code>Sequence[int]</code>, <em>optional</em>) &#x2014;
Kernel size and stride ratios. The encoder uses downsampling ratios instead of upsampling ratios, hence it
will use the ratios in the reverse order to the ones specified here that must match the decoder order.
If not specified, will defaults to <code>[8, 6, 5, 4]</code>`,name:"upsampling_ratios"},{anchor:"transformers.MimiConfig.kernel_size",description:`<strong>kernel_size</strong> (<code>int</code>, <em>optional</em>, defaults to 7) &#x2014;
Kernel size for the initial convolution.`,name:"kernel_size"},{anchor:"transformers.MimiConfig.last_kernel_size",description:`<strong>last_kernel_size</strong> (<code>int</code>, <em>optional</em>, defaults to 3) &#x2014;
Kernel size for the last convolution layer.`,name:"last_kernel_size"},{anchor:"transformers.MimiConfig.residual_kernel_size",description:`<strong>residual_kernel_size</strong> (<code>int</code>, <em>optional</em>, defaults to 3) &#x2014;
Kernel size for the residual layers.`,name:"residual_kernel_size"},{anchor:"transformers.MimiConfig.dilation_growth_rate",description:`<strong>dilation_growth_rate</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014;
How much to increase the dilation with each layer.`,name:"dilation_growth_rate"},{anchor:"transformers.MimiConfig.use_causal_conv",description:`<strong>use_causal_conv</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to use fully causal convolution.`,name:"use_causal_conv"},{anchor:"transformers.MimiConfig.pad_mode",description:`<strong>pad_mode</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;constant&quot;</code>) &#x2014;
Padding mode for the convolutions.`,name:"pad_mode"},{anchor:"transformers.MimiConfig.compress",description:`<strong>compress</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014;
Reduced dimensionality in residual branches.`,name:"compress"},{anchor:"transformers.MimiConfig.trim_right_ratio",description:`<strong>trim_right_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
Ratio for trimming at the right of the transposed convolution under the <code>use_causal_conv = True</code> setup. If
equal to 1.0, it means that all the trimming is done at the right.`,name:"trim_right_ratio"},{anchor:"transformers.MimiConfig.codebook_size",description:`<strong>codebook_size</strong> (<code>int</code>, <em>optional</em>, defaults to 2048) &#x2014;
Number of discret codes in each codebooks.`,name:"codebook_size"},{anchor:"transformers.MimiConfig.codebook_dim",description:`<strong>codebook_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 256) &#x2014;
Dimension of the unquantized codebook vectors. If not defined, uses <code>hidden_size</code>.`,name:"codebook_dim"},{anchor:"transformers.MimiConfig.num_quantizers",description:`<strong>num_quantizers</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014;
Number of quantizer channels, or codebooks, in the quantizer.`,name:"num_quantizers"},{anchor:"transformers.MimiConfig.use_conv_shortcut",description:`<strong>use_conv_shortcut</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use a convolutional layer as the &#x2018;skip&#x2019; connection in the <code>MimiResnetBlock</code> block. If False,
an identity function will be used, giving a generic residual connection.`,name:"use_conv_shortcut"},{anchor:"transformers.MimiConfig.vector_quantization_hidden_dimension",description:`<strong>vector_quantization_hidden_dimension</strong> (<code>int</code>, <em>optional</em>, defaults to 256) &#x2014;
Intermediate representation dimension in the residual vector quantization space.`,name:"vector_quantization_hidden_dimension"},{anchor:"transformers.MimiConfig.num_semantic_quantizers",description:`<strong>num_semantic_quantizers</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of semantic quantizer channels, or codebooks, in the semantic quantizer. Must be lower than <code>num_quantizers</code>.`,name:"num_semantic_quantizers"},{anchor:"transformers.MimiConfig.upsample_groups",description:`<strong>upsample_groups</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
If <code>frame_rate!=encodec_frame_rate</code>, indicates the number of groups used in the upsampling operation to go from one rate to another.`,name:"upsample_groups"},{anchor:"transformers.MimiConfig.num_hidden_layers",description:`<strong>num_hidden_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
Number of hidden layers in the Transformer models.`,name:"num_hidden_layers"},{anchor:"transformers.MimiConfig.intermediate_size",description:`<strong>intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 2048) &#x2014;
Dimension of the MLP representations.`,name:"intermediate_size"},{anchor:"transformers.MimiConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
Number of attention heads for each attention layer in the Transformer encoder.`,name:"num_attention_heads"},{anchor:"transformers.MimiConfig.num_key_value_heads",description:`<strong>num_key_value_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
This is the number of key_value heads that should be used to implement Grouped Query Attention. If
<code>num_key_value_heads=num_attention_heads</code>, the model will use Multi Head Attention (MHA), if
<code>num_key_value_heads=1</code> the model will use Multi Query Attention (MQA) otherwise GQA is used. When
converting a multi-head checkpoint to a GQA checkpoint, each group key and value head should be constructed
by meanpooling all the original heads within that group. For more details checkout <a href="https://arxiv.org/pdf/2305.13245.pdf" rel="nofollow">this
paper</a>. If it is not specified, will default to <code>8</code>.`,name:"num_key_value_heads"},{anchor:"transformers.MimiConfig.head_dim",description:`<strong>head_dim</strong> (<code>int</code>, <em>optional</em>, defaults to <code>hidden_size // num_attention_heads</code>) &#x2014;
The attention head dimension.`,name:"head_dim"},{anchor:"transformers.MimiConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>function</code>, <em>optional</em>, defaults to <code>&quot;gelu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the decoder.`,name:"hidden_act"},{anchor:"transformers.MimiConfig.max_position_embeddings",description:`<strong>max_position_embeddings</strong> (<code>int</code>, <em>optional</em>, defaults to 8000) &#x2014;
The maximum sequence length that this model might ever be used with. Mimi&#x2019;s sliding window attention
allows sequence of up to 8000 tokens.`,name:"max_position_embeddings"},{anchor:"transformers.MimiConfig.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to 0.02) &#x2014;
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.`,name:"initializer_range"},{anchor:"transformers.MimiConfig.norm_eps",description:`<strong>norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-05) &#x2014;
The epsilon used by the LayerNorm normalization layers.`,name:"norm_eps"},{anchor:"transformers.MimiConfig.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the model should return the last key/values attentions (not used by all models). Only
relevant if <code>config.is_decoder=True</code>.`,name:"use_cache"},{anchor:"transformers.MimiConfig.rope_theta",description:`<strong>rope_theta</strong> (<code>float</code>, <em>optional</em>, defaults to 10000.0) &#x2014;
The base period of the RoPE embeddings.`,name:"rope_theta"},{anchor:"transformers.MimiConfig.sliding_window",description:`<strong>sliding_window</strong> (<code>int</code>, <em>optional</em>, defaults to 250) &#x2014;
Sliding window attention window size. If not specified, will default to <code>250</code>.`,name:"sliding_window"},{anchor:"transformers.MimiConfig.attention_dropout",description:`<strong>attention_dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout ratio for the attention probabilities.`,name:"attention_dropout"},{anchor:"transformers.MimiConfig.layer_scale_initial_scale",description:`<strong>layer_scale_initial_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 0.01) &#x2014;
Initiale scale of the residual rescaling operation done in the Transformer models.`,name:"layer_scale_initial_scale"},{anchor:"transformers.MimiConfig.attention_bias",description:`<strong>attention_bias</strong> (<code>bool</code>, defaults to <code>False</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use a bias in the query, key, value and output projection layers during self-attention.`,name:"attention_bias"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mimi/configuration_mimi.py#L28"}}),W=new dt({props:{anchor:"transformers.MimiConfig.example",$$slots:{default:[_t]},$$scope:{ctx:z}}}),S=new ue({props:{title:"MimiModel",local:"transformers.MimiModel",headingTag:"h2"}}),A=new ce({props:{name:"class transformers.MimiModel",anchor:"transformers.MimiModel",parameters:[{name:"config",val:": MimiConfig"}],parametersDescription:[{anchor:"transformers.MimiModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/mimi#transformers.MimiConfig">MimiConfig</a>) &#x2014;
Model configuration class with all the parameters of the model. Initializing with a config file does not
load the weights associated with the model, only the configuration. Check out the
<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mimi/modeling_mimi.py#L1520"}}),D=new ce({props:{name:"decode",anchor:"transformers.MimiModel.decode",parameters:[{name:"audio_codes",val:": Tensor"},{name:"padding_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"decoder_past_key_values",val:": typing.Union[transformers.cache_utils.Cache, typing.List[torch.FloatTensor], NoneType] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.MimiModel.decode.audio_codes",description:`<strong>audio_codes</strong> (<code>torch.LongTensor</code>  of shape <code>(batch_size, num_quantizers, codes_length)</code>, <em>optional</em>) &#x2014;
Discret code embeddings computed using <code>model.encode</code>.`,name:"audio_codes"},{anchor:"transformers.MimiModel.decode.padding_mask",description:`<strong>padding_mask</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, channels, sequence_length)</code>) &#x2014;
Indicates which inputs are to be ignored due to padding, where elements are either 1 for <em>not masked</em> or 0
for <em>masked</em>.`,name:"padding_mask"},{anchor:"transformers.MimiModel.decode.decoder_past_key_values",description:`<strong>decoder_past_key_values</strong> (<code>Cache</code>, <em>optional</em>) &#x2014;
Pre-computed hidden-states (key and values in the self-attention blocks) that can be used to speed up sequential decoding of the decoder transformer.
This typically consists in the <code>past_key_values</code> returned by the model at a previous stage of decoding, when <code>use_cache=True</code> or <code>config.use_cache=True</code>.</p>
<p>The model will output the same cache format that is fed as input.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>audio_values</code> or \`audio_codes (those that don&#x2019;t
have their past key value states given to this model).`,name:"decoder_past_key_values"},{anchor:"transformers.MimiModel.decode.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mimi/modeling_mimi.py#L1685"}}),O=new ce({props:{name:"encode",anchor:"transformers.MimiModel.encode",parameters:[{name:"input_values",val:": Tensor"},{name:"padding_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"num_quantizers",val:": typing.Optional[float] = None"},{name:"encoder_past_key_values",val:": typing.Union[transformers.cache_utils.Cache, typing.List[torch.FloatTensor], NoneType] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.MimiModel.encode.input_values",description:`<strong>input_values</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, channels, sequence_length)</code>) &#x2014;
Float values of the input audio waveform.`,name:"input_values"},{anchor:"transformers.MimiModel.encode.padding_mask",description:`<strong>padding_mask</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, channels, sequence_length)</code>) &#x2014;
Indicates which inputs are to be ignored due to padding, where elements are either 1 for <em>not masked</em> or 0
for <em>masked</em>.`,name:"padding_mask"},{anchor:"transformers.MimiModel.encode.num_quantizers",description:`<strong>num_quantizers</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of quantizers (i.e codebooks) to use. By default, all quantizers are used.`,name:"num_quantizers"},{anchor:"transformers.MimiModel.encode.encoder_past_key_values",description:`<strong>encoder_past_key_values</strong> (<code>Cache</code>, <em>optional</em>) &#x2014;
Pre-computed hidden-states (key and values in the self-attention blocks) that can be used to speed up sequential decoding of the encoder transformer.
This typically consists in the <code>past_key_values</code> returned by the model at a previous stage of decoding, when <code>use_cache=True</code> or <code>config.use_cache=True</code>.</p>
<p>The model will output the same cache format that is fed as input.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>audio_values</code> or \`audio_codes (those that don&#x2019;t
have their past key value states given to this model).`,name:"encoder_past_key_values"},{anchor:"transformers.MimiModel.encode.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mimi/modeling_mimi.py#L1599",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>codebook</code> of shape <code>[batch_size, num_codebooks, frames]</code>, the discrete encoded codes for the input audio waveform.</p>
`}}),K=new ce({props:{name:"forward",anchor:"transformers.MimiModel.forward",parameters:[{name:"input_values",val:": Tensor"},{name:"padding_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"num_quantizers",val:": typing.Optional[int] = None"},{name:"audio_codes",val:": typing.Optional[torch.Tensor] = None"},{name:"encoder_past_key_values",val:": typing.Union[transformers.cache_utils.Cache, typing.List[torch.FloatTensor], NoneType] = None"},{name:"decoder_past_key_values",val:": typing.Union[transformers.cache_utils.Cache, typing.List[torch.FloatTensor], NoneType] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.MimiModel.forward.input_values",description:`<strong>input_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, channels, sequence_length)</code>, <em>optional</em>) &#x2014;
Raw audio input converted to Float.`,name:"input_values"},{anchor:"transformers.MimiModel.forward.padding_mask",description:`<strong>padding_mask</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indicates which inputs are to be ignored due to padding, where elements are either 1 for <em>not masked</em> or 0
for <em>masked</em>.`,name:"padding_mask"},{anchor:"transformers.MimiModel.forward.num_quantizers",description:`<strong>num_quantizers</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of quantizers (i.e codebooks) to use. By default, all quantizers are used.`,name:"num_quantizers"},{anchor:"transformers.MimiModel.forward.audio_codes",description:`<strong>audio_codes</strong> (<code>torch.LongTensor</code>  of shape <code>(batch_size, num_quantizers, codes_length)</code>, <em>optional</em>) &#x2014;
Discret code embeddings computed using <code>model.encode</code>.`,name:"audio_codes"},{anchor:"transformers.MimiModel.forward.encoder_past_key_values",description:`<strong>encoder_past_key_values</strong> (<code>Cache</code>, <em>optional</em>) &#x2014;
Pre-computed hidden-states (key and values in the self-attention blocks) that can be used to speed up sequential decoding of the encoder transformer.
This typically consists in the <code>past_key_values</code> returned by the model at a previous stage of decoding, when <code>use_cache=True</code> or <code>config.use_cache=True</code>.</p>
<p>The model will output the same cache format that is fed as input.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>audio_values</code> or \`audio_codes (those that don&#x2019;t
have their past key value states given to this model).`,name:"encoder_past_key_values"},{anchor:"transformers.MimiModel.forward.decoder_past_key_values",description:`<strong>decoder_past_key_values</strong> (<code>Cache</code>, <em>optional</em>) &#x2014;
Pre-computed hidden-states (key and values in the self-attention blocks) that can be used to speed up sequential decoding of the decoder transformer.
This typically consists in the <code>past_key_values</code> returned by the model at a previous stage of decoding, when <code>use_cache=True</code> or <code>config.use_cache=True</code>.</p>
<p>The model will output the same cache format that is fed as input.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>audio_values</code> or \`audio_codes (those that don&#x2019;t
have their past key value states given to this model).`,name:"decoder_past_key_values"},{anchor:"transformers.MimiModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/mimi/modeling_mimi.py#L1733",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.mimi.modeling_mimi.MimiOutput</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/mimi#transformers.MimiConfig"
>MimiConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>audio_codes</strong> (<code>torch.LongTensor</code>  of shape <code>(batch_size, num_quantizers, codes_length)</code>, <em>optional</em>) — Discret code embeddings computed using <code>model.encode</code>.</p>
</li>
<li>
<p><strong>audio_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>)
Decoded audio values, obtained using the decoder part of Mimi.</p>
</li>
<li>
<p><strong>encoder_past_key_values</strong> (<code>Cache</code>, <em>optional</em>) — Pre-computed hidden-states (key and values in the self-attention blocks) that can be used to speed up sequential decoding of the encoder transformer.
This typically consists in the <code>past_key_values</code> returned by the model at a previous stage of decoding, when <code>use_cache=True</code> or <code>config.use_cache=True</code>.</p>
<p>The model will output the same cache format that is fed as input.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>audio_values</code> or \`audio_codes (those that don’t
have their past key value states given to this model).</p>
</li>
<li>
<p><strong>decoder_past_key_values</strong> (<code>Cache</code>, <em>optional</em>) — Pre-computed hidden-states (key and values in the self-attention blocks) that can be used to speed up sequential decoding of the decoder transformer.
This typically consists in the <code>past_key_values</code> returned by the model at a previous stage of decoding, when <code>use_cache=True</code> or <code>config.use_cache=True</code>.</p>
<p>The model will output the same cache format that is fed as input.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>audio_values</code> or \`audio_codes (those that don’t
have their past key value states given to this model).</p>
</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.mimi.modeling_mimi.MimiOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),I=new ft({props:{$$slots:{default:[Mt]},$$scope:{ctx:z}}}),q=new dt({props:{anchor:"transformers.MimiModel.forward.example",$$slots:{default:[yt]},$$scope:{ctx:z}}}),ee=new gt({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/mimi.md"}}),{c(){r=l("meta"),T=a(),u=l("p"),c=a(),g(h.$$.fragment),i=a(),w=l("div"),w.innerHTML=Pe,pe=a(),g(R.$$.fragment),he=a(),N=l("p"),N.innerHTML=Qe,fe=a(),V=l("p"),V.textContent=Se,ge=a(),F=l("p"),F.innerHTML=Ae,_e=a(),G=l("p"),G.innerHTML=De,Me=a(),H=l("ul"),H.innerHTML=Oe,ye=a(),g(E.$$.fragment),ve=a(),Y=l("p"),Y.textContent=Ke,be=a(),g(B.$$.fragment),we=a(),L=l("p"),L.innerHTML=et,ke=a(),g(P.$$.fragment),Te=a(),x=l("div"),g(Q.$$.fragment),We=a(),oe=l("p"),oe.innerHTML=tt,Ue=a(),ne=l("p"),ne.innerHTML=ot,Ie=a(),g(W.$$.fragment),xe=a(),g(S.$$.fragment),Ce=a(),f=l("div"),g(A.$$.fragment),qe=a(),ae=l("p"),ae.innerHTML=nt,Ze=a(),se=l("p"),se.innerHTML=at,Xe=a(),J=l("div"),g(D.$$.fragment),Re=a(),ie=l("p"),ie.textContent=st,Ne=a(),re=l("p"),re.textContent=it,Ve=a(),U=l("div"),g(O.$$.fragment),Fe=a(),le=l("p"),le.textContent=rt,Ge=a(),C=l("div"),g(K.$$.fragment),He=a(),de=l("p"),de.innerHTML=lt,Ee=a(),g(I.$$.fragment),Ye=a(),g(q.$$.fragment),$e=a(),g(ee.$$.fragment),Je=a(),me=l("p"),this.h()},l(e){const t=ht("svelte-u9bgzb",document.head);r=d(t,"META",{name:!0,content:!0}),t.forEach(o),T=s(e),u=d(e,"P",{}),te(u).forEach(o),c=s(e),_(h.$$.fragment,e),i=s(e),w=d(e,"DIV",{class:!0,"data-svelte-h":!0}),p(w)!=="svelte-b95w5j"&&(w.innerHTML=Pe),pe=s(e),_(R.$$.fragment,e),he=s(e),N=d(e,"P",{"data-svelte-h":!0}),p(N)!=="svelte-16k1mag"&&(N.innerHTML=Qe),fe=s(e),V=d(e,"P",{"data-svelte-h":!0}),p(V)!=="svelte-vfdo9a"&&(V.textContent=Se),ge=s(e),F=d(e,"P",{"data-svelte-h":!0}),p(F)!=="svelte-ffvq6r"&&(F.innerHTML=Ae),_e=s(e),G=d(e,"P",{"data-svelte-h":!0}),p(G)!=="svelte-jmjp86"&&(G.innerHTML=De),Me=s(e),H=d(e,"UL",{"data-svelte-h":!0}),p(H)!=="svelte-9chpkl"&&(H.innerHTML=Oe),ye=s(e),_(E.$$.fragment,e),ve=s(e),Y=d(e,"P",{"data-svelte-h":!0}),p(Y)!=="svelte-b4kgu7"&&(Y.textContent=Ke),be=s(e),_(B.$$.fragment,e),we=s(e),L=d(e,"P",{"data-svelte-h":!0}),p(L)!=="svelte-1h1fcg1"&&(L.innerHTML=et),ke=s(e),_(P.$$.fragment,e),Te=s(e),x=d(e,"DIV",{class:!0});var $=te(x);_(Q.$$.fragment,$),We=s($),oe=d($,"P",{"data-svelte-h":!0}),p(oe)!=="svelte-16el385"&&(oe.innerHTML=tt),Ue=s($),ne=d($,"P",{"data-svelte-h":!0}),p(ne)!=="svelte-o55m63"&&(ne.innerHTML=ot),Ie=s($),_(W.$$.fragment,$),$.forEach(o),xe=s(e),_(S.$$.fragment,e),Ce=s(e),f=d(e,"DIV",{class:!0});var k=te(f);_(A.$$.fragment,k),qe=s(k),ae=d(k,"P",{"data-svelte-h":!0}),p(ae)!=="svelte-1jgh5s1"&&(ae.innerHTML=nt),Ze=s(k),se=d(k,"P",{"data-svelte-h":!0}),p(se)!=="svelte-hswkmf"&&(se.innerHTML=at),Xe=s(k),J=d(k,"DIV",{class:!0});var j=te(J);_(D.$$.fragment,j),Re=s(j),ie=d(j,"P",{"data-svelte-h":!0}),p(ie)!=="svelte-18b2f30"&&(ie.textContent=st),Ne=s(j),re=d(j,"P",{"data-svelte-h":!0}),p(re)!=="svelte-12sn3fy"&&(re.textContent=it),j.forEach(o),Ve=s(k),U=d(k,"DIV",{class:!0});var ze=te(U);_(O.$$.fragment,ze),Fe=s(ze),le=d(ze,"P",{"data-svelte-h":!0}),p(le)!=="svelte-1mhlb4g"&&(le.textContent=rt),ze.forEach(o),Ge=s(k),C=d(k,"DIV",{class:!0});var Z=te(C);_(K.$$.fragment,Z),He=s(Z),de=d(Z,"P",{"data-svelte-h":!0}),p(de)!=="svelte-xcj6aj"&&(de.innerHTML=lt),Ee=s(Z),_(I.$$.fragment,Z),Ye=s(Z),_(q.$$.fragment,Z),Z.forEach(o),k.forEach(o),$e=s(e),_(ee.$$.fragment,e),Je=s(e),me=d(e,"P",{}),te(me).forEach(o),this.h()},h(){X(r,"name","hf:doc:metadata"),X(r,"content",bt),X(w,"class","flex flex-wrap space-x-1"),X(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),X(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),X(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),X(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),X(f,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,t){m(document.head,r),n(e,T,t),n(e,u,t),n(e,c,t),M(h,e,t),n(e,i,t),n(e,w,t),n(e,pe,t),M(R,e,t),n(e,he,t),n(e,N,t),n(e,fe,t),n(e,V,t),n(e,ge,t),n(e,F,t),n(e,_e,t),n(e,G,t),n(e,Me,t),n(e,H,t),n(e,ye,t),M(E,e,t),n(e,ve,t),n(e,Y,t),n(e,be,t),M(B,e,t),n(e,we,t),n(e,L,t),n(e,ke,t),M(P,e,t),n(e,Te,t),n(e,x,t),M(Q,x,null),m(x,We),m(x,oe),m(x,Ue),m(x,ne),m(x,Ie),M(W,x,null),n(e,xe,t),M(S,e,t),n(e,Ce,t),n(e,f,t),M(A,f,null),m(f,qe),m(f,ae),m(f,Ze),m(f,se),m(f,Xe),m(f,J),M(D,J,null),m(J,Re),m(J,ie),m(J,Ne),m(J,re),m(f,Ve),m(f,U),M(O,U,null),m(U,Fe),m(U,le),m(f,Ge),m(f,C),M(K,C,null),m(C,He),m(C,de),m(C,Ee),M(I,C,null),m(C,Ye),M(q,C,null),n(e,$e,t),M(ee,e,t),n(e,Je,t),n(e,me,t),je=!0},p(e,[t]){const $={};t&2&&($.$$scope={dirty:t,ctx:e}),W.$set($);const k={};t&2&&(k.$$scope={dirty:t,ctx:e}),I.$set(k);const j={};t&2&&(j.$$scope={dirty:t,ctx:e}),q.$set(j)},i(e){je||(y(h.$$.fragment,e),y(R.$$.fragment,e),y(E.$$.fragment,e),y(B.$$.fragment,e),y(P.$$.fragment,e),y(Q.$$.fragment,e),y(W.$$.fragment,e),y(S.$$.fragment,e),y(A.$$.fragment,e),y(D.$$.fragment,e),y(O.$$.fragment,e),y(K.$$.fragment,e),y(I.$$.fragment,e),y(q.$$.fragment,e),y(ee.$$.fragment,e),je=!0)},o(e){v(h.$$.fragment,e),v(R.$$.fragment,e),v(E.$$.fragment,e),v(B.$$.fragment,e),v(P.$$.fragment,e),v(Q.$$.fragment,e),v(W.$$.fragment,e),v(S.$$.fragment,e),v(A.$$.fragment,e),v(D.$$.fragment,e),v(O.$$.fragment,e),v(K.$$.fragment,e),v(I.$$.fragment,e),v(q.$$.fragment,e),v(ee.$$.fragment,e),je=!1},d(e){e&&(o(T),o(u),o(c),o(i),o(w),o(pe),o(he),o(N),o(fe),o(V),o(ge),o(F),o(_e),o(G),o(Me),o(H),o(ye),o(ve),o(Y),o(be),o(we),o(L),o(ke),o(Te),o(x),o(xe),o(Ce),o(f),o($e),o(Je),o(me)),o(r),b(h,e),b(R,e),b(E,e),b(B,e),b(P,e),b(Q),b(W),b(S,e),b(A),b(D),b(O),b(K),b(I),b(q),b(ee,e)}}}const bt='{"title":"Mimi","local":"mimi","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Usage example","local":"usage-example","sections":[],"depth":2},{"title":"MimiConfig","local":"transformers.MimiConfig","sections":[],"depth":2},{"title":"MimiModel","local":"transformers.MimiModel","sections":[],"depth":2}],"depth":1}';function wt(z){return ct(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class zt extends ut{constructor(r){super(),pt(this,r,wt,vt,mt,{})}}export{zt as component};
