import{s as rl,o as al,n as Xe}from"../chunks/scheduler.9bc65507.js";import{S as sl,i as il,g as n,s,u as f,A as ll,h as r,f as t,c as i,j as c,v as u,y as m,k as d,o,a as l,w as g,d as _,t as b,x as v}from"../chunks/index.78c82d43.js";import{T as Kr}from"../chunks/Tip.87d55b76.js";import{D as B}from"../chunks/Docstring.f3d04bd2.js";import{C as S}from"../chunks/CodeBlock.48618ec2.js";import{I as x}from"../chunks/IconCopyLink.bedaa44d.js";import{E as ea}from"../chunks/ExampleCodeBlock.872b014d.js";function dl(C){let h,M="Example:",k,y,w;return y=new S({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMkMlMjBCYXJrTW9kZWwlMEElMEFwcm9jZXNzb3IlMjAlM0QlMjBBdXRvUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJzdW5vJTJGYmFyay1zbWFsbCUyMiklMEFtb2RlbCUyMCUzRCUyMEJhcmtNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyc3VubyUyRmJhcmstc21hbGwlMjIpJTBBJTBBJTIzJTIwVG8lMjBhZGQlMjBhJTIwdm9pY2UlMjBwcmVzZXQlMkMlMjB5b3UlMjBjYW4lMjBwYXNzJTIwJTYwdm9pY2VfcHJlc2V0JTYwJTIwdG8lMjAlNjBCYXJrUHJvY2Vzc29yLl9fY2FsbF9fKC4uLiklNjAlMEF2b2ljZV9wcmVzZXQlMjAlM0QlMjAlMjJ2MiUyRmVuX3NwZWFrZXJfNiUyMiUwQSUwQWlucHV0cyUyMCUzRCUyMHByb2Nlc3NvciglMjJIZWxsbyUyQyUyMG15JTIwZG9nJTIwaXMlMjBjdXRlJTJDJTIwSSUyMG5lZWQlMjBoaW0lMjBpbiUyMG15JTIwbGlmZSUyMiUyQyUyMHZvaWNlX3ByZXNldCUzRHZvaWNlX3ByZXNldCklMEElMEFhdWRpb19hcnJheSUyMCUzRCUyMG1vZGVsLmdlbmVyYXRlKCoqaW5wdXRzJTJDJTIwc2VtYW50aWNfbWF4X25ld190b2tlbnMlM0QxMDApJTBBYXVkaW9fYXJyYXklMjAlM0QlMjBhdWRpb19hcnJheS5jcHUoKS5udW1weSgpLnNxdWVlemUoKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, BarkModel

<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;suno/bark-small&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BarkModel.from_pretrained(<span class="hljs-string">&quot;suno/bark-small&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># To add a voice preset, you can pass \`voice_preset\` to \`BarkProcessor.__call__(...)\`</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>voice_preset = <span class="hljs-string">&quot;v2/en_speaker_6&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(<span class="hljs-string">&quot;Hello, my dog is cute, I need him in my life&quot;</span>, voice_preset=voice_preset)

<span class="hljs-meta">&gt;&gt;&gt; </span>audio_array = model.generate(**inputs, semantic_max_new_tokens=<span class="hljs-number">100</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_array = audio_array.cpu().numpy().squeeze()`}}),{c(){h=n("p"),h.textContent=M,k=s(),f(y.$$.fragment)},l(p){h=r(p,"P",{"data-svelte-h":!0}),m(h)!=="svelte-11lpom8"&&(h.textContent=M),k=i(p),u(y.$$.fragment,p)},m(p,$){l(p,h,$),l(p,k,$),g(y,p,$),w=!0},p:Xe,i(p){w||(_(y.$$.fragment,p),w=!0)},o(p){b(y.$$.fragment,p),w=!1},d(p){p&&(t(h),t(k)),v(y,p)}}}function cl(C){let h,M=`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(){h=n("p"),h.innerHTML=M},l(k){h=r(k,"P",{"data-svelte-h":!0}),m(h)!=="svelte-fincs2"&&(h.innerHTML=M)},m(k,y){l(k,h,y)},p:Xe,d(k){k&&t(h)}}}function ml(C){let h,M=`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(){h=n("p"),h.innerHTML=M},l(k){h=r(k,"P",{"data-svelte-h":!0}),m(h)!=="svelte-fincs2"&&(h.innerHTML=M)},m(k,y){l(k,h,y)},p:Xe,d(k){k&&t(h)}}}function hl(C){let h,M=`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(){h=n("p"),h.innerHTML=M},l(k){h=r(k,"P",{"data-svelte-h":!0}),m(h)!=="svelte-fincs2"&&(h.innerHTML=M)},m(k,y){l(k,h,y)},p:Xe,d(k){k&&t(h)}}}function pl(C){let h,M=`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(){h=n("p"),h.innerHTML=M},l(k){h=r(k,"P",{"data-svelte-h":!0}),m(h)!=="svelte-fincs2"&&(h.innerHTML=M)},m(k,y){l(k,h,y)},p:Xe,d(k){k&&t(h)}}}function fl(C){let h,M="Example:",k,y,w;return y=new S({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJhcmtDb2Fyc2VDb25maWclMkMlMjBCYXJrQ29hcnNlTW9kZWwlMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwQmFyayUyMHN1Yi1tb2R1bGUlMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwQmFya0NvYXJzZUNvbmZpZygpJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMG1vZGVsJTIwKHdpdGglMjByYW5kb20lMjB3ZWlnaHRzKSUyMGZyb20lMjB0aGUlMjBzdW5vJTJGYmFyayUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQW1vZGVsJTIwJTNEJTIwQmFya0NvYXJzZU1vZGVsKGNvbmZpZ3VyYXRpb24pJTBBJTBBJTIzJTIwQWNjZXNzaW5nJTIwdGhlJTIwbW9kZWwlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMG1vZGVsLmNvbmZpZw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BarkCoarseConfig, BarkCoarseModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a Bark sub-module style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = BarkCoarseConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the suno/bark style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BarkCoarseModel(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`}}),{c(){h=n("p"),h.textContent=M,k=s(),f(y.$$.fragment)},l(p){h=r(p,"P",{"data-svelte-h":!0}),m(h)!=="svelte-11lpom8"&&(h.textContent=M),k=i(p),u(y.$$.fragment,p)},m(p,$){l(p,h,$),l(p,k,$),g(y,p,$),w=!0},p:Xe,i(p){w||(_(y.$$.fragment,p),w=!0)},o(p){b(y.$$.fragment,p),w=!1},d(p){p&&(t(h),t(k)),v(y,p)}}}function ul(C){let h,M="Example:",k,y,w;return y=new S({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJhcmtGaW5lQ29uZmlnJTJDJTIwQmFya0ZpbmVNb2RlbCUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBCYXJrJTIwc3ViLW1vZHVsZSUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBCYXJrRmluZUNvbmZpZygpJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMG1vZGVsJTIwKHdpdGglMjByYW5kb20lMjB3ZWlnaHRzKSUyMGZyb20lMjB0aGUlMjBzdW5vJTJGYmFyayUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQW1vZGVsJTIwJTNEJTIwQmFya0ZpbmVNb2RlbChjb25maWd1cmF0aW9uKSUwQSUwQSUyMyUyMEFjY2Vzc2luZyUyMHRoZSUyMG1vZGVsJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBtb2RlbC5jb25maWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BarkFineConfig, BarkFineModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a Bark sub-module style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = BarkFineConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the suno/bark style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BarkFineModel(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`}}),{c(){h=n("p"),h.textContent=M,k=s(),f(y.$$.fragment)},l(p){h=r(p,"P",{"data-svelte-h":!0}),m(h)!=="svelte-11lpom8"&&(h.textContent=M),k=i(p),u(y.$$.fragment,p)},m(p,$){l(p,h,$),l(p,k,$),g(y,p,$),w=!0},p:Xe,i(p){w||(_(y.$$.fragment,p),w=!0)},o(p){b(y.$$.fragment,p),w=!1},d(p){p&&(t(h),t(k)),v(y,p)}}}function gl(C){let h,M="Example:",k,y,w;return y=new S({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJhcmtTZW1hbnRpY0NvbmZpZyUyQyUyMEJhcmtTZW1hbnRpY01vZGVsJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMEJhcmslMjBzdWItbW9kdWxlJTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMEJhcmtTZW1hbnRpY0NvbmZpZygpJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMG1vZGVsJTIwKHdpdGglMjByYW5kb20lMjB3ZWlnaHRzKSUyMGZyb20lMjB0aGUlMjBzdW5vJTJGYmFyayUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQW1vZGVsJTIwJTNEJTIwQmFya1NlbWFudGljTW9kZWwoY29uZmlndXJhdGlvbiklMEElMEElMjMlMjBBY2Nlc3NpbmclMjB0aGUlMjBtb2RlbCUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwbW9kZWwuY29uZmln",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BarkSemanticConfig, BarkSemanticModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a Bark sub-module style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = BarkSemanticConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the suno/bark style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BarkSemanticModel(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`}}),{c(){h=n("p"),h.textContent=M,k=s(),f(y.$$.fragment)},l(p){h=r(p,"P",{"data-svelte-h":!0}),m(h)!=="svelte-11lpom8"&&(h.textContent=M),k=i(p),u(y.$$.fragment,p)},m(p,$){l(p,h,$),l(p,k,$),g(y,p,$),w=!0},p:Xe,i(p){w||(_(y.$$.fragment,p),w=!0)},o(p){b(y.$$.fragment,p),w=!1},d(p){p&&(t(h),t(k)),v(y,p)}}}function _l(C){let h,M,k,y,w,p,$,qe,ta,so,fs="Bark",zn,X,ce,ln,Re,oa,io,us="Overview",Un,Ae,gs='Bark is a transformer-based text-to-speech model proposed by Suno AI in <a href="https://github.com/suno-ai/bark" rel="nofollow">suno-ai/bark</a>.',In,De,_s="Bark is made of 4 main models:",Nn,Oe,bs='<li><a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkSemanticModel">BarkSemanticModel</a> (also referred to as the ‘text’ model): a causal auto-regressive transformer model that takes as input tokenized text, and predicts semantic text tokens that capture the meaning of the text.</li> <li><a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkCoarseModel">BarkCoarseModel</a> (also referred to as the ‘coarse acoustics’ model): a causal autoregressive transformer, that takes as input the results of the <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkSemanticModel">BarkSemanticModel</a> model. It aims at predicting the first two audio codebooks necessary for EnCodec.</li> <li><a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkFineModel">BarkFineModel</a> (the ‘fine acoustics’ model), this time a non-causal autoencoder transformer, which iteratively predicts the last codebooks based on the sum of the previous codebooks embeddings.</li> <li>having predicted all the codebook channels from the <a href="/docs/transformers/v4.33.3/en/model_doc/encodec#transformers.EncodecModel">EncodecModel</a>, Bark uses it to decode the output audio array.</li>',Wn,Qe,vs="It should be noted that each of the first three modules can support conditional speaker embeddings to condition the output sound according to specific predefined voice.",Pn,q,me,dn,Ke,na,lo,ks="Optimizing Bark",Zn,et,ys="Bark can be optimized with just a few extra lines of code, which <strong>significantly reduces its memory footprint</strong> and <strong>accelerates inference</strong>.",Sn,R,he,cn,tt,ra,co,ws="Using half-precision",En,ot,Ms="You can speed up inference and reduce memory footprint by 50% simply by loading the model in half-precision.",Fn,nt,Hn,A,pe,mn,rt,aa,mo,$s="Using 🤗 Better Transformer",Gn,at,Ts="Better Transformer is an 🤗 Optimum feature that performs kernel fusion under the hood. You can gain 20% to 30% in speed with zero performance degradation. It only requires one line of code to export the model to 🤗 Better Transformer:",Vn,st,Ln,it,Bs='Note that 🤗 Optimum must be installed before using this feature. <a href="https://huggingface.co/docs/optimum/installation" rel="nofollow">Here’s how to install it.</a>',Yn,D,fe,hn,lt,sa,ho,Cs="Using CPU offload",Xn,dt,xs="As mentioned above, Bark is made up of 4 sub-models, which are called up sequentially during audio generation. In other words, while one sub-model is in use, the other sub-models are idle.",qn,ct,Js="If you’re using a CUDA device, a simple solution to benefit from an 80% reduction in memory footprint is to offload the GPU’s submodels when they’re idle. This operation is called CPU offloading. You can use it with one line of code.",Rn,mt,An,ht,js='Note that 🤗 Accelerate must be installed before using this feature. <a href="https://huggingface.co/docs/accelerate/basic_tutorials/install" rel="nofollow">Here’s how to install it.</a>',Dn,O,ue,pn,pt,ia,po,zs="Combining optimizaton techniques",On,ft,Us="You can combine optimization techniques, and use CPU offload, half-precision and 🤗 Better Transformer all at once.",Qn,ut,Kn,gt,Is='Find out more on inference optimization techniques <a href="https://huggingface.co/docs/transformers/perf_infer_gpu_one" rel="nofollow">here</a>.',er,Q,ge,fn,_t,la,fo,Ns="Tips",tr,bt,Ws=`Suno offers a library of voice presets in a number of languages <a href="https://suno-ai.notion.site/8b8e8749ed514b0cbf3f699013548683?v=bc67cff786b04b50b3ceb756fd05f68c" rel="nofollow">here</a>.
These presets are also uploaded in the hub <a href="https://huggingface.co/suno/bark-small/tree/main/speaker_embeddings" rel="nofollow">here</a> or <a href="https://huggingface.co/suno/bark/tree/main/speaker_embeddings" rel="nofollow">here</a>.`,or,vt,nr,kt,Ps="Bark can generate highly realistic, <strong>multilingual</strong> speech as well as other audio - including music, background noise and simple sound effects.",rr,yt,ar,wt,Zs="The model can also produce <strong>nonverbal communications</strong> like laughing, sighing and crying.",sr,Mt,ir,$t,Ss="To save the audio, simply take the sample rate from the model config and some scipy utility:",lr,Tt,dr,Bt,Es=`This model was contributed by <a href="https://huggingface.co/ylacombe" rel="nofollow">Yoach Lacombe (ylacombe)</a> and <a href="https://github.com/sanchit-gandhi" rel="nofollow">Sanchit Gandhi (sanchit-gandhi)</a>.
The original code can be found <a href="https://github.com/suno-ai/bark" rel="nofollow">here</a>.`,cr,K,_e,un,Ct,da,uo,Fs="BarkConfig",mr,j,xt,ca,go,Hs=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkModel">BarkModel</a>. It is used to instantiate a Bark
model according to the specified sub-models configurations, defining the model architecture.`,ma,_o,Gs=`Instantiating a configuration with the defaults will yield a similar configuration to that of the Bark
<a href="https://huggingface.co/suno/bark" rel="nofollow">suno/bark</a> architecture.`,ha,bo,Vs=`Configuration objects inherit from <a href="/docs/transformers/v4.33.3/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/v4.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,pa,be,Jt,fa,vo,Ls='Instantiate a <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkConfig">BarkConfig</a> (or a derived class) from bark sub-models configuration.',hr,ee,ve,gn,jt,ua,ko,Ys="BarkProcessor",pr,z,zt,ga,yo,Xs="Constructs a Bark processor which wraps a text tokenizer and optional Bark voice presets into a single processor.",_a,ke,Ut,ba,wo,qs=`Main method to prepare for the model one or several sequences(s). This method forwards the <code>text</code> and <code>kwargs</code>
arguments to the AutoTokenizer’s <code>__call__()</code> to encode the text. The method also proposes a
voice preset which is a dictionary of arrays that conditions <code>Bark</code>’s output. <code>kwargs</code> arguments are forwarded
to the tokenizer and to <code>cached_file</code> method if <code>voice_preset</code> is a valid filename.`,va,ye,It,ka,Mo,Rs="Instantiate a Bark processor associated with a pretrained model.",ya,we,Nt,wa,$o,As=`Saves the attributes of this processor (tokenizer…) in the specified directory so that it can be reloaded
using the <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkProcessor.from_pretrained">from_pretrained()</a> method.`,fr,te,Me,_n,Wt,Ma,To,Ds="BarkModel",ur,T,Pt,$a,Bo,Os="The full Bark model, a text-to-speech model composed of 4 sub-models:",Ta,Co,Qs=`<li><a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkSemanticModel">BarkSemanticModel</a> (also referred to as the ‘text’ model): a causal auto-regressive transformer model that
takes
as input tokenized text, and predicts semantic text tokens that capture the meaning of the text.</li> <li><a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkCoarseModel">BarkCoarseModel</a> (also refered to as the ‘coarse acoustics’ model), also a causal autoregressive transformer,
that takes into input the results of the last model. It aims at regressing the first two audio codebooks necessary
to <code>encodec</code>.</li> <li><a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkFineModel">BarkFineModel</a> (the ‘fine acoustics’ model), this time a non-causal autoencoder transformer, which iteratively
predicts the last codebooks based on the sum of the previous codebooks embeddings.</li> <li>having predicted all the codebook channels from the <a href="/docs/transformers/v4.33.3/en/model_doc/encodec#transformers.EncodecModel">EncodecModel</a>, Bark uses it to decode the output audio
array.</li>`,Ba,xo,Ks=`It should be noted that each of the first three modules can support conditional speaker embeddings to condition the
output sound according to specific predefined voice.`,Ca,Jo,ei=`This model inherits from <a href="/docs/transformers/v4.33.3/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.)`,xa,jo,ti=`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.`,Ja,E,Zt,ja,zo,oi="Generates audio from an input prompt and an additional optional <code>Bark</code> speaker prompt.",za,$e,Ua,Te,St,Ia,Uo,ni=`Offloads all sub-models to CPU using accelerate, reducing memory usage with a low impact on performance. This
method moves one whole sub-model at a time to the GPU when it is used, and the sub-model remains in GPU until
the next sub-model runs.`,gr,oe,Be,bn,Et,Na,Io,ri="BarkSemanticModel",_r,U,Ft,Wa,No,ai=`Bark semantic (or text) model. It shares the same architecture as the coarse model.
It is a GPT-2 like autoregressive model with a language modeling head on top.
This model inherits from <a href="/docs/transformers/v4.33.3/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.)`,Pa,Wo,si=`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.`,Za,F,Ht,Sa,Po,ii='The <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkCausalModel">BarkCausalModel</a> forward method, overrides the <code>__call__</code> special method.',Ea,Ce,br,ne,xe,vn,Gt,Fa,Zo,li="BarkCoarseModel",vr,I,Vt,Ha,So,di=`Bark coarse acoustics model.
It shares the same architecture as the semantic (or text) model. It is a GPT-2 like autoregressive model with a
language modeling head on top.
This model inherits from <a href="/docs/transformers/v4.33.3/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.)`,Ga,Eo,ci=`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.`,Va,H,Lt,La,Fo,mi='The <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkCausalModel">BarkCausalModel</a> forward method, overrides the <code>__call__</code> special method.',Ya,Je,kr,re,je,kn,Yt,Xa,Ho,hi="BarkFineModel",yr,N,Xt,qa,Go,pi=`Bark fine acoustics model. It is a non-causal GPT-like model with <code>config.n_codes_total</code> embedding layers and
language modeling heads, one for each codebook.
This model inherits from <a href="/docs/transformers/v4.33.3/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.)`,Ra,Vo,fi=`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.`,Aa,G,qt,Da,Lo,ui='The <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkFineModel">BarkFineModel</a> forward method, overrides the <code>__call__</code> special method.',Oa,ze,wr,ae,Ue,yn,Rt,Qa,Yo,gi="BarkCausalModel",Mr,se,At,Ka,V,Dt,es,Xo,_i='The <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkCausalModel">BarkCausalModel</a> forward method, overrides the <code>__call__</code> special method.',ts,Ie,$r,ie,Ne,wn,Ot,os,qo,bi="BarkCoarseConfig",Tr,W,Qt,ns,Ro,vi=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkCoarseModel">BarkCoarseModel</a>. It is used to instantiate the 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 Bark <a href="https://huggingface.co/suno/bark" rel="nofollow">suno/bark</a>
architecture.`,rs,Ao,ki=`Configuration objects inherit from <a href="/docs/transformers/v4.33.3/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/v4.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,as,We,Br,le,Pe,Mn,Kt,ss,Do,yi="BarkFineConfig",Cr,P,eo,is,Oo,wi=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkFineModel">BarkFineModel</a>. It is used to instantiate the 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 Bark <a href="https://huggingface.co/suno/bark" rel="nofollow">suno/bark</a>
architecture.`,ls,Qo,Mi=`Configuration objects inherit from <a href="/docs/transformers/v4.33.3/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/v4.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,ds,Ze,xr,de,Se,$n,to,cs,Ko,$i="BarkSemanticConfig",Jr,Z,oo,ms,en,Ti=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkSemanticModel">BarkSemanticModel</a>. It is used to instantiate the 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 Bark <a href="https://huggingface.co/suno/bark" rel="nofollow">suno/bark</a>
architecture.`,hs,tn,Bi=`Configuration objects inherit from <a href="/docs/transformers/v4.33.3/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/v4.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,ps,Ee,jr,Tn,zr;return qe=new x({}),Re=new x({}),Ke=new x({}),tt=new x({}),nt=new S({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJhcmtNb2RlbCUwQWltcG9ydCUyMHRvcmNoJTBBJTBBZGV2aWNlJTIwJTNEJTIwJTIyY3VkYSUyMiUyMGlmJTIwdG9yY2guY3VkYS5pc19hdmFpbGFibGUoKSUyMGVsc2UlMjAlMjJjcHUlMjIlMEFtb2RlbCUyMCUzRCUyMEJhcmtNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyc3VubyUyRmJhcmstc21hbGwlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYpLnRvKGRldmljZSk=",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BarkModel
<span class="hljs-keyword">import</span> torch

device = <span class="hljs-string">&quot;cuda&quot;</span> <span class="hljs-keyword">if</span> torch.cuda.is_available() <span class="hljs-keyword">else</span> <span class="hljs-string">&quot;cpu&quot;</span>
model = BarkModel.from_pretrained(<span class="hljs-string">&quot;suno/bark-small&quot;</span>, torch_dtype=torch.float16).to(device)`}}),rt=new x({}),st=new S({props:{code:"bW9kZWwlMjAlM0QlMjAlMjBtb2RlbC50b19iZXR0ZXJ0cmFuc2Zvcm1lcigp",highlighted:"model =  model.to_bettertransformer()"}}),lt=new x({}),mt=new S({props:{code:"bW9kZWwuZW5hYmxlX2NwdV9vZmZsb2FkKCk=",highlighted:"model.enable_cpu_offload()"}}),pt=new x({}),ut=new S({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJhcmtNb2RlbCUwQWltcG9ydCUyMHRvcmNoJTBBJTBBZGV2aWNlJTIwJTNEJTIwJTIyY3VkYSUyMiUyMGlmJTIwdG9yY2guY3VkYS5pc19hdmFpbGFibGUoKSUyMGVsc2UlMjAlMjJjcHUlMjIlMEElMEElMjMlMjBsb2FkJTIwaW4lMjBmcDE2JTBBbW9kZWwlMjAlM0QlMjBCYXJrTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMnN1bm8lMkZiYXJrLXNtYWxsJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2KS50byhkZXZpY2UpJTBBJTBBJTIzJTIwY29udmVydCUyMHRvJTIwYmV0dGVydHJhbnNmb3JtZXIlMEFtb2RlbCUyMCUzRCUyMEJldHRlclRyYW5zZm9ybWVyLnRyYW5zZm9ybShtb2RlbCUyQyUyMGtlZXBfb3JpZ2luYWxfbW9kZWwlM0RGYWxzZSklMEElMEElMjMlMjBlbmFibGUlMjBDUFUlMjBvZmZsb2FkJTBBbW9kZWwuZW5hYmxlX2NwdV9vZmZsb2FkKCk=",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BarkModel
<span class="hljs-keyword">import</span> torch

device = <span class="hljs-string">&quot;cuda&quot;</span> <span class="hljs-keyword">if</span> torch.cuda.is_available() <span class="hljs-keyword">else</span> <span class="hljs-string">&quot;cpu&quot;</span>

<span class="hljs-comment"># load in fp16</span>
model = BarkModel.from_pretrained(<span class="hljs-string">&quot;suno/bark-small&quot;</span>, torch_dtype=torch.float16).to(device)

<span class="hljs-comment"># convert to bettertransformer</span>
model = BetterTransformer.transform(model, keep_original_model=<span class="hljs-literal">False</span>)

<span class="hljs-comment"># enable CPU offload</span>
model.enable_cpu_offload()`}}),_t=new x({}),vt=new S({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMkMlMjBCYXJrTW9kZWwlMEElMEFwcm9jZXNzb3IlMjAlM0QlMjBBdXRvUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJzdW5vJTJGYmFyayUyMiklMEFtb2RlbCUyMCUzRCUyMEJhcmtNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyc3VubyUyRmJhcmslMjIpJTBBJTBBdm9pY2VfcHJlc2V0JTIwJTNEJTIwJTIydjIlMkZlbl9zcGVha2VyXzYlMjIlMEElMEFpbnB1dHMlMjAlM0QlMjBwcm9jZXNzb3IoJTIySGVsbG8lMkMlMjBteSUyMGRvZyUyMGlzJTIwY3V0ZSUyMiUyQyUyMHZvaWNlX3ByZXNldCUzRHZvaWNlX3ByZXNldCklMEElMEFhdWRpb19hcnJheSUyMCUzRCUyMG1vZGVsLmdlbmVyYXRlKCoqaW5wdXRzKSUwQWF1ZGlvX2FycmF5JTIwJTNEJTIwYXVkaW9fYXJyYXkuY3B1KCkubnVtcHkoKS5zcXVlZXplKCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, BarkModel

<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;suno/bark&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BarkModel.from_pretrained(<span class="hljs-string">&quot;suno/bark&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>voice_preset = <span class="hljs-string">&quot;v2/en_speaker_6&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(<span class="hljs-string">&quot;Hello, my dog is cute&quot;</span>, voice_preset=voice_preset)

<span class="hljs-meta">&gt;&gt;&gt; </span>audio_array = model.generate(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_array = audio_array.cpu().numpy().squeeze()`}}),yt=new S({props:{code:"JTIzJTIwTXVsdGlsaW5ndWFsJTIwc3BlZWNoJTIwLSUyMHNpbXBsaWZpZWQlMjBDaGluZXNlJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKCUyMiVFNiU4MyU4QSVFNCVCQSVCQSVFNyU5QSU4NCVFRiVCQyU4MSVFNiU4OCU5MSVFNCVCQyU5QSVFOCVBRiVCNCVFNCVCOCVBRCVFNiU5NiU4NyUyMiklMEElMEElMjMlMjBNdWx0aWxpbmd1YWwlMjBzcGVlY2glMjAtJTIwRnJlbmNoJTIwLSUyMGxldCdzJTIwdXNlJTIwYSUyMHZvaWNlX3ByZXNldCUyMGFzJTIwd2VsbCUwQWlucHV0cyUyMCUzRCUyMHByb2Nlc3NvciglMjJJbmNyb3lhYmxlISUyMEplJTIwcGV1eCUyMGclQzMlQTluJUMzJUE5cmVyJTIwZHUlMjBzb24uJTIyJTJDJTIwdm9pY2VfcHJlc2V0JTNEJTIyZnJfc3BlYWtlcl81JTIyKSUwQSUwQSUyMyUyMEJhcmslMjBjYW4lMjBhbHNvJTIwZ2VuZXJhdGUlMjBtdXNpYy4lMjBZb3UlMjBjYW4lMjBoZWxwJTIwaXQlMjBvdXQlMjBieSUyMGFkZGluZyUyMG11c2ljJTIwbm90ZXMlMjBhcm91bmQlMjB5b3VyJTIwbHlyaWNzLiUwQWlucHV0cyUyMCUzRCUyMHByb2Nlc3NvciglMjIlRTIlOTklQUElMjBIZWxsbyUyQyUyMG15JTIwZG9nJTIwaXMlMjBjdXRlJTIwJUUyJTk5JUFBJTIyKSUwQSUwQWF1ZGlvX2FycmF5JTIwJTNEJTIwbW9kZWwuZ2VuZXJhdGUoKippbnB1dHMpJTBBYXVkaW9fYXJyYXklMjAlM0QlMjBhdWRpb19hcnJheS5jcHUoKS5udW1weSgpLnNxdWVlemUoKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Multilingual speech - simplified Chinese</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(<span class="hljs-string">&quot;惊人的！我会说中文&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Multilingual speech - French - let&#x27;s use a voice_preset as well</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(<span class="hljs-string">&quot;Incroyable! Je peux générer du son.&quot;</span>, voice_preset=<span class="hljs-string">&quot;fr_speaker_5&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Bark can also generate music. You can help it out by adding music notes around your lyrics.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(<span class="hljs-string">&quot;♪ Hello, my dog is cute ♪&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>audio_array = model.generate(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_array = audio_array.cpu().numpy().squeeze()`}}),Mt=new S({props:{code:"JTIzJTIwQWRkaW5nJTIwbm9uLXNwZWVjaCUyMGN1ZXMlMjB0byUyMHRoZSUyMGlucHV0JTIwdGV4dCUwQWlucHV0cyUyMCUzRCUyMHByb2Nlc3NvciglMjJIZWxsbyUyMHVoJTIwLi4uJTIwJTVCY2xlYXJzJTIwdGhyb2F0JTVEJTJDJTIwbXklMjBkb2clMjBpcyUyMGN1dGUlMjAlNUJsYXVnaHRlciU1RCUyMiklMEElMEFhdWRpb19hcnJheSUyMCUzRCUyMG1vZGVsLmdlbmVyYXRlKCoqaW5wdXRzKSUwQWF1ZGlvX2FycmF5JTIwJTNEJTIwYXVkaW9fYXJyYXkuY3B1KCkubnVtcHkoKS5zcXVlZXplKCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Adding non-speech cues to the input text</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(<span class="hljs-string">&quot;Hello uh ... [clears throat], my dog is cute [laughter]&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>audio_array = model.generate(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_array = audio_array.cpu().numpy().squeeze()`}}),Tt=new S({props:{code:"ZnJvbSUyMHNjaXB5LmlvLndhdmZpbGUlMjBpbXBvcnQlMjB3cml0ZSUyMGFzJTIwd3JpdGVfd2F2JTBBJTBBJTIzJTIwc2F2ZSUyMGF1ZGlvJTIwdG8lMjBkaXNrJTJDJTIwYnV0JTIwZmlyc3QlMjB0YWtlJTIwdGhlJTIwc2FtcGxlJTIwcmF0ZSUyMGZyb20lMjB0aGUlMjBtb2RlbCUyMGNvbmZpZyUwQXNhbXBsZV9yYXRlJTIwJTNEJTIwbW9kZWwuZ2VuZXJhdGlvbl9jb25maWcuc2FtcGxlX3JhdGUlMEF3cml0ZV93YXYoJTIyYmFya19nZW5lcmF0aW9uLndhdiUyMiUyQyUyMHNhbXBsZV9yYXRlJTJDJTIwYXVkaW9fYXJyYXkp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> scipy.io.wavfile <span class="hljs-keyword">import</span> write <span class="hljs-keyword">as</span> write_wav

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># save audio to disk, but first take the sample rate from the model config</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>sample_rate = model.generation_config.sample_rate
<span class="hljs-meta">&gt;&gt;&gt; </span>write_wav(<span class="hljs-string">&quot;bark_generation.wav&quot;</span>, sample_rate, audio_array)`}}),Ct=new x({}),xt=new B({props:{name:"class transformers.BarkConfig",anchor:"transformers.BarkConfig",parameters:[{name:"semantic_config",val:": typing.Dict = None"},{name:"coarse_acoustics_config",val:": typing.Dict = None"},{name:"fine_acoustics_config",val:": typing.Dict = None"},{name:"codec_config",val:": typing.Dict = None"},{name:"initializer_range",val:" = 0.02"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BarkConfig.semantic_config",description:`<strong>semantic_config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkSemanticConfig">BarkSemanticConfig</a>, <em>optional</em>) &#x2014;
Configuration of the underlying semantic sub-model.`,name:"semantic_config"},{anchor:"transformers.BarkConfig.coarse_acoustics_config",description:`<strong>coarse_acoustics_config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkCoarseConfig">BarkCoarseConfig</a>, <em>optional</em>) &#x2014;
Configuration of the underlying coarse acoustics sub-model.`,name:"coarse_acoustics_config"},{anchor:"transformers.BarkConfig.fine_acoustics_config",description:`<strong>fine_acoustics_config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkFineConfig">BarkFineConfig</a>, <em>optional</em>) &#x2014;
Configuration of the underlying fine acoustics sub-model.`,name:"fine_acoustics_config"},{anchor:"transformers.BarkConfig.codec_config",description:`<strong>codec_config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/auto#transformers.AutoConfig">AutoConfig</a>, <em>optional</em>) &#x2014;
Configuration of the underlying codec sub-model.</p>
<p>Example &#x2014;`,name:"codec_config"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bark/configuration_bark.py#L219"}}),Jt=new B({props:{name:"from_sub_model_configs",anchor:"transformers.BarkConfig.from_sub_model_configs",parameters:[{name:"semantic_config",val:": BarkSemanticConfig"},{name:"coarse_acoustics_config",val:": BarkCoarseConfig"},{name:"fine_acoustics_config",val:": BarkFineConfig"},{name:"codec_config",val:": PretrainedConfig"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bark/configuration_bark.py#L309",returnDescription:`
<p>An instance of a configuration object</p>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkConfig"
>BarkConfig</a></p>
`}}),jt=new x({}),zt=new B({props:{name:"class transformers.BarkProcessor",anchor:"transformers.BarkProcessor",parameters:[{name:"tokenizer",val:""},{name:"speaker_embeddings",val:" = None"}],parametersDescription:[{anchor:"transformers.BarkProcessor.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
An instance of <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.BarkProcessor.speaker_embeddings",description:`<strong>speaker_embeddings</strong> (<code>Dict[Dict[str]]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Optional nested speaker embeddings dictionary. The first level contains voice preset names (e.g
<code>&quot;en_speaker_4&quot;</code>). The second level contains <code>&quot;semantic_prompt&quot;</code>, <code>&quot;coarse_prompt&quot;</code> and <code>&quot;fine_prompt&quot;</code>
embeddings. The values correspond to the path of the corresponding <code>np.ndarray</code>. See
<a href="https://suno-ai.notion.site/8b8e8749ed514b0cbf3f699013548683?v=bc67cff786b04b50b3ceb756fd05f68c" rel="nofollow">here</a> for
a list of <code>voice_preset_names</code>.`,name:"speaker_embeddings"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bark/processing_bark.py#L34"}}),Ut=new B({props:{name:"__call__",anchor:"transformers.BarkProcessor.__call__",parameters:[{name:"text",val:" = None"},{name:"voice_preset",val:" = None"},{name:"return_tensors",val:" = 'pt'"},{name:"max_length",val:" = 256"},{name:"add_special_tokens",val:" = False"},{name:"return_attention_mask",val:" = True"},{name:"return_token_type_ids",val:" = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BarkProcessor.__call__.text",description:`<strong>text</strong> (<code>str</code>, <code>List[str]</code>, <code>List[List[str]]</code>) &#x2014;
The sequence or batch of sequences to be encoded. Each sequence can be a string or a list of strings
(pretokenized string). If the sequences are provided as list of strings (pretokenized), you must set
<code>is_split_into_words=True</code> (to lift the ambiguity with a batch of sequences).`,name:"text"},{anchor:"transformers.BarkProcessor.__call__.voice_preset",description:`<strong>voice_preset</strong> (<code>str</code>, <code>Dict[np.ndarray]</code>) &#x2014;
The voice preset, i.e the speaker embeddings. It can either be a valid voice_preset name, e.g
<code>&quot;en_speaker_1&quot;</code>, or directly a dictionnary of <code>np.ndarray</code> embeddings for each submodel of <code>Bark</code>. Or
it can be a valid file name of a local <code>.npz</code> single voice preset.`,name:"voice_preset"},{anchor:"transformers.BarkProcessor.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code> or <a href="/docs/transformers/v4.33.3/en/internal/file_utils#transformers.TensorType">TensorType</a>, <em>optional</em>) &#x2014;
If set, will return tensors of a particular framework. Acceptable values are:</p>
<ul>
<li><code>&apos;pt&apos;</code>: Return PyTorch <code>torch.Tensor</code> objects.</li>
<li><code>&apos;np&apos;</code>: Return NumPy <code>np.ndarray</code> objects.</li>
</ul>`,name:"return_tensors"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bark/processing_bark.py#L218",returnDescription:`
<p>A tuple composed of a <a
  href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.BatchEncoding"
>BatchEncoding</a>, i.e the output of the
<code>tokenizer</code> and a <a
  href="/docs/transformers/v4.33.3/en/main_classes/image_processor#transformers.BatchFeature"
>BatchFeature</a>, i.e the voice preset with the right tensors type.</p>
`,returnType:`
<p>Tuple(<a
  href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.BatchEncoding"
>BatchEncoding</a>, <a
  href="/docs/transformers/v4.33.3/en/main_classes/image_processor#transformers.BatchFeature"
>BatchFeature</a>)</p>
`}}),It=new B({props:{name:"from_pretrained",anchor:"transformers.BarkProcessor.from_pretrained",parameters:[{name:"pretrained_processor_name_or_path",val:""},{name:"speaker_embeddings_dict_path",val:" = 'speaker_embeddings_path.json'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BarkProcessor.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
This can be either:</p>
<ul>
<li>a string, the <em>model id</em> of a pretrained <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkProcessor">BarkProcessor</a> hosted inside a model repo on
huggingface.co. Valid model ids can be located at the root-level, like <code>bert-base-uncased</code>, or
namespaced under a user or organization name, like <code>dbmdz/bert-base-german-cased</code>.</li>
<li>a path to a <em>directory</em> containing a processor saved using the <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkProcessor.save_pretrained">save_pretrained()</a>
method, e.g., <code>./my_model_directory/</code>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"transformers.BarkProcessor.from_pretrained.speaker_embeddings_dict_path",description:`<strong>speaker_embeddings_dict_path</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;speaker_embeddings_path.json&quot;</code>) &#x2014;
The name of the <code>.json</code> file containing the speaker_embeddings dictionnary located in
<code>pretrained_model_name_or_path</code>. If <code>None</code>, no speaker_embeddings is loaded.
**kwargs &#x2014;
Additional keyword arguments passed along to both
<code>~tokenization_utils_base.PreTrainedTokenizer.from_pretrained</code>.`,name:"speaker_embeddings_dict_path"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bark/processing_bark.py#L63"}}),Nt=new B({props:{name:"save_pretrained",anchor:"transformers.BarkProcessor.save_pretrained",parameters:[{name:"save_directory",val:""},{name:"speaker_embeddings_dict_path",val:" = 'speaker_embeddings_path.json'"},{name:"speaker_embeddings_directory",val:" = 'speaker_embeddings'"},{name:"push_to_hub",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BarkProcessor.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory where the tokenizer files and the speaker embeddings will be saved (directory will be created
if it does not exist).`,name:"save_directory"},{anchor:"transformers.BarkProcessor.save_pretrained.speaker_embeddings_dict_path",description:`<strong>speaker_embeddings_dict_path</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;speaker_embeddings_path.json&quot;</code>) &#x2014;
The name of the <code>.json</code> file that will contains the speaker_embeddings nested path dictionnary, if it
exists, and that will be located in <code>pretrained_model_name_or_path/speaker_embeddings_directory</code>.`,name:"speaker_embeddings_dict_path"},{anchor:"transformers.BarkProcessor.save_pretrained.speaker_embeddings_directory",description:`<strong>speaker_embeddings_directory</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;speaker_embeddings/&quot;</code>) &#x2014;
The name of the folder in which the speaker_embeddings arrays will be saved.`,name:"speaker_embeddings_directory"},{anchor:"transformers.BarkProcessor.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push your model to the Hugging Face model hub after saving it. You can specify the
repository you want to push to with <code>repo_id</code> (will default to the name of <code>save_directory</code> in your
namespace).
kwargs &#x2014;
Additional key word arguments passed along to the <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.push_to_hub">push_to_hub()</a> method.`,name:"push_to_hub"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bark/processing_bark.py#L117"}}),Wt=new x({}),Pt=new B({props:{name:"class transformers.BarkModel",anchor:"transformers.BarkModel",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.BarkModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkConfig">BarkConfig</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/v4.33.3/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/v4.33.3/src/transformers/models/bark/modeling_bark.py#L1426"}}),Zt=new B({props:{name:"generate",anchor:"transformers.BarkModel.generate",parameters:[{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"history_prompt",val:": typing.Union[typing.Dict[str, torch.Tensor], NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BarkModel.generate.input_ids",description:`<strong>input_ids</strong> (<code>Optional[torch.Tensor]</code> of shape (batch_size, seq_len), <em>optional</em>) &#x2014;
Input ids. Will be truncated up to 256 tokens. Note that the output audios will be as long as the
longest generation among the batch.`,name:"input_ids"},{anchor:"transformers.BarkModel.generate.history_prompt",description:`<strong>history_prompt</strong> (<code>Optional[Dict[str,torch.Tensor]]</code>, <em>optional</em>) &#x2014;
Optional <code>Bark</code> speaker prompt. Note that for now, this model takes only one speaker prompt per batch.`,name:"history_prompt"},{anchor:"transformers.BarkModel.generate.kwargs",description:`<strong>kwargs</strong> (<em>optional</em>) &#x2014; Remaining dictionary of keyword arguments. Keyword arguments are of two types:</p>
<ul>
<li>Without a prefix, they will be entered as <code>**kwargs</code> for the <code>generate</code> method of each sub-model.</li>
<li>With a <em>semantic_</em>, <em>coarse_</em>, <em>fine_</em> prefix, they will be input for the <code>generate</code> method of the
semantic, coarse and fine respectively. It has the priority over the keywords without a prefix.</li>
</ul>
<p>This means you can, for example, specify a generation strategy for all sub-models except one.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bark/modeling_bark.py#L1507",returnDescription:`
<p>Output generated audio.</p>
`,returnType:`
<p>torch.LongTensor</p>
`}}),$e=new ea({props:{anchor:"transformers.BarkModel.generate.example",$$slots:{default:[dl]},$$scope:{ctx:C}}}),St=new B({props:{name:"enable_cpu_offload",anchor:"transformers.BarkModel.enable_cpu_offload",parameters:[{name:"gpu_id",val:": typing.Optional[int] = 0"}],parametersDescription:[{anchor:"transformers.BarkModel.enable_cpu_offload.gpu_id",description:`<strong>gpu_id</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
GPU id on which the sub-models will be loaded and offloaded.`,name:"gpu_id"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bark/modeling_bark.py#L1458"}}),Et=new x({}),Ft=new B({props:{name:"class transformers.BarkSemanticModel",anchor:"transformers.BarkSemanticModel",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.BarkSemanticModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkSemanticConfig">BarkSemanticConfig</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/v4.33.3/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/v4.33.3/src/transformers/models/bark/modeling_bark.py#L714"}}),Ht=new B({props:{name:"forward",anchor:"transformers.BarkSemanticModel.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"past_key_values",val:": typing.Optional[typing.Tuple[torch.FloatTensor]] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"input_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"use_cache",val:": typing.Optional[bool] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.BarkSemanticModel.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you provide
it. Indices can be obtained using <a href="/docs/transformers/v4.33.3/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details. <a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.BarkSemanticModel.forward.past_key_values",description:`<strong>past_key_values</strong> (<code>tuple(tuple(torch.FloatTensor))</code>, <em>optional</em>, returned when <code>use_cache</code> is passed or when <code>config.use_cache=True</code>) &#x2014;
Tuple of <code>tuple(torch.FloatTensor)</code> of length <code>config.n_layers</code>, with each tuple having 2 tensors of shape
<code>(batch_size, num_heads, sequence_length, embed_size_per_head)</code>.</p>
<p>Contains pre-computed hidden-states (key and values in the self-attention blocks) that can be used (see
<code>past_key_values</code> input) to speed up sequential decoding.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>decoder_input_ids</code> (those that
don&#x2019;t have their past key value states given to this model) of shape <code>(batch_size, 1)</code> instead of all
<code>input_ids</code> of shape <code>(batch_size, sequence_length)</code>.`,name:"past_key_values"},{anchor:"transformers.BarkSemanticModel.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.BarkSemanticModel.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.BarkSemanticModel.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.Tensor</code> of shape <code>(encoder_layers, encoder_attention_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the attention modules in the encoder. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.BarkSemanticModel.forward.input_embeds",description:`<strong>input_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, input_sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation.
Here, due to <code>Bark</code> particularities, if <code>past_key_values</code> is used, <code>input_embeds</code> will be ignored and you
have to use <code>input_ids</code>. If <code>past_key_values</code> is not used and <code>use_cache</code> is set to <code>True</code>, <code>input_embeds</code>
is used in priority instead of <code>input_ids</code>.`,name:"input_embeds"},{anchor:"transformers.BarkSemanticModel.forward.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If set to <code>True</code>, <code>past_key_values</code> key value states are returned and can be used to speed up decoding (see
<code>past_key_values</code>).`,name:"use_cache"},{anchor:"transformers.BarkSemanticModel.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.BarkSemanticModel.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.BarkSemanticModel.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/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bark/modeling_bark.py#L531"}}),Ce=new Kr({props:{$$slots:{default:[cl]},$$scope:{ctx:C}}}),Gt=new x({}),Vt=new B({props:{name:"class transformers.BarkCoarseModel",anchor:"transformers.BarkCoarseModel",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.BarkCoarseModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkCoarseConfig">BarkCoarseConfig</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/v4.33.3/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/v4.33.3/src/transformers/models/bark/modeling_bark.py#L819"}}),Lt=new B({props:{name:"forward",anchor:"transformers.BarkCoarseModel.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"past_key_values",val:": typing.Optional[typing.Tuple[torch.FloatTensor]] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"input_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"use_cache",val:": typing.Optional[bool] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.BarkCoarseModel.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you provide
it. Indices can be obtained using <a href="/docs/transformers/v4.33.3/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details. <a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.BarkCoarseModel.forward.past_key_values",description:`<strong>past_key_values</strong> (<code>tuple(tuple(torch.FloatTensor))</code>, <em>optional</em>, returned when <code>use_cache</code> is passed or when <code>config.use_cache=True</code>) &#x2014;
Tuple of <code>tuple(torch.FloatTensor)</code> of length <code>config.n_layers</code>, with each tuple having 2 tensors of shape
<code>(batch_size, num_heads, sequence_length, embed_size_per_head)</code>.</p>
<p>Contains pre-computed hidden-states (key and values in the self-attention blocks) that can be used (see
<code>past_key_values</code> input) to speed up sequential decoding.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>decoder_input_ids</code> (those that
don&#x2019;t have their past key value states given to this model) of shape <code>(batch_size, 1)</code> instead of all
<code>input_ids</code> of shape <code>(batch_size, sequence_length)</code>.`,name:"past_key_values"},{anchor:"transformers.BarkCoarseModel.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.BarkCoarseModel.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.BarkCoarseModel.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.Tensor</code> of shape <code>(encoder_layers, encoder_attention_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the attention modules in the encoder. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.BarkCoarseModel.forward.input_embeds",description:`<strong>input_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, input_sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation.
Here, due to <code>Bark</code> particularities, if <code>past_key_values</code> is used, <code>input_embeds</code> will be ignored and you
have to use <code>input_ids</code>. If <code>past_key_values</code> is not used and <code>use_cache</code> is set to <code>True</code>, <code>input_embeds</code>
is used in priority instead of <code>input_ids</code>.`,name:"input_embeds"},{anchor:"transformers.BarkCoarseModel.forward.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If set to <code>True</code>, <code>past_key_values</code> key value states are returned and can be used to speed up decoding (see
<code>past_key_values</code>).`,name:"use_cache"},{anchor:"transformers.BarkCoarseModel.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.BarkCoarseModel.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.BarkCoarseModel.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/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bark/modeling_bark.py#L531"}}),Je=new Kr({props:{$$slots:{default:[ml]},$$scope:{ctx:C}}}),Yt=new x({}),Xt=new B({props:{name:"class transformers.BarkFineModel",anchor:"transformers.BarkFineModel",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.BarkFineModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkFineConfig">BarkFineConfig</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/v4.33.3/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/v4.33.3/src/transformers/models/bark/modeling_bark.py#L1029"}}),qt=new B({props:{name:"forward",anchor:"transformers.BarkFineModel.forward",parameters:[{name:"codebook_idx",val:": int"},{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"input_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.BarkFineModel.forward.codebook_idx",description:`<strong>codebook_idx</strong> (<code>int</code>) &#x2014;
Index of the codebook that will be predicted.`,name:"codebook_idx"},{anchor:"transformers.BarkFineModel.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length, number_of_codebooks)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you provide
it. Initially, indices of the first two codebooks are obtained from the <code>coarse</code> sub-model. The rest is
predicted recursively by attending the previously predicted channels. The model predicts on windows of
length 1024.`,name:"input_ids"},{anchor:"transformers.BarkFineModel.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.BarkFineModel.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.BarkFineModel.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.Tensor</code> of shape <code>(encoder_layers, encoder_attention_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the attention modules in the encoder. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.BarkFineModel.forward.labels",description:"<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014; NOT IMPLEMENTED YET.",name:"labels"},{anchor:"transformers.BarkFineModel.forward.input_embeds",description:`<strong>input_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, input_sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. If
<code>past_key_values</code> is used, optionally only the last <code>input_embeds</code> have to be input (see
<code>past_key_values</code>). This is useful if you want more control over how to convert <code>input_ids</code> indices into
associated vectors than the model&#x2019;s internal embedding lookup matrix.`,name:"input_embeds"},{anchor:"transformers.BarkFineModel.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.BarkFineModel.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.BarkFineModel.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/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bark/modeling_bark.py#L1161"}}),ze=new Kr({props:{$$slots:{default:[hl]},$$scope:{ctx:C}}}),Rt=new x({}),At=new B({props:{name:"class transformers.BarkCausalModel",anchor:"transformers.BarkCausalModel",parameters:[{name:"config",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bark/modeling_bark.py#L450"}}),Dt=new B({props:{name:"forward",anchor:"transformers.BarkCausalModel.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"past_key_values",val:": typing.Optional[typing.Tuple[torch.FloatTensor]] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"input_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"use_cache",val:": typing.Optional[bool] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.BarkCausalModel.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you provide
it. Indices can be obtained using <a href="/docs/transformers/v4.33.3/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details. <a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.BarkCausalModel.forward.past_key_values",description:`<strong>past_key_values</strong> (<code>tuple(tuple(torch.FloatTensor))</code>, <em>optional</em>, returned when <code>use_cache</code> is passed or when <code>config.use_cache=True</code>) &#x2014;
Tuple of <code>tuple(torch.FloatTensor)</code> of length <code>config.n_layers</code>, with each tuple having 2 tensors of shape
<code>(batch_size, num_heads, sequence_length, embed_size_per_head)</code>.</p>
<p>Contains pre-computed hidden-states (key and values in the self-attention blocks) that can be used (see
<code>past_key_values</code> input) to speed up sequential decoding.</p>
<p>If <code>past_key_values</code> are used, the user can optionally input only the last <code>decoder_input_ids</code> (those that
don&#x2019;t have their past key value states given to this model) of shape <code>(batch_size, 1)</code> instead of all
<code>input_ids</code> of shape <code>(batch_size, sequence_length)</code>.`,name:"past_key_values"},{anchor:"transformers.BarkCausalModel.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.BarkCausalModel.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.BarkCausalModel.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.Tensor</code> of shape <code>(encoder_layers, encoder_attention_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the attention modules in the encoder. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.BarkCausalModel.forward.input_embeds",description:`<strong>input_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, input_sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation.
Here, due to <code>Bark</code> particularities, if <code>past_key_values</code> is used, <code>input_embeds</code> will be ignored and you
have to use <code>input_ids</code>. If <code>past_key_values</code> is not used and <code>use_cache</code> is set to <code>True</code>, <code>input_embeds</code>
is used in priority instead of <code>input_ids</code>.`,name:"input_embeds"},{anchor:"transformers.BarkCausalModel.forward.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If set to <code>True</code>, <code>past_key_values</code> key value states are returned and can be used to speed up decoding (see
<code>past_key_values</code>).`,name:"use_cache"},{anchor:"transformers.BarkCausalModel.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.BarkCausalModel.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.BarkCausalModel.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/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bark/modeling_bark.py#L531"}}),Ie=new Kr({props:{$$slots:{default:[pl]},$$scope:{ctx:C}}}),Ot=new x({}),Qt=new B({props:{name:"class transformers.BarkCoarseConfig",anchor:"transformers.BarkCoarseConfig",parameters:[{name:"block_size",val:" = 1024"},{name:"input_vocab_size",val:" = 10048"},{name:"output_vocab_size",val:" = 10048"},{name:"num_layers",val:" = 12"},{name:"num_heads",val:" = 12"},{name:"hidden_size",val:" = 768"},{name:"dropout",val:" = 0.0"},{name:"bias",val:" = True"},{name:"initializer_range",val:" = 0.02"},{name:"use_cache",val:" = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BarkCoarseConfig.block_size",description:`<strong>block_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1024) &#x2014;
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).`,name:"block_size"},{anchor:"transformers.BarkCoarseConfig.input_vocab_size",description:`<strong>input_vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 10_048) &#x2014;
Vocabulary size of a Bark sub-model. Defines the number of different tokens that can be represented by the
<code>inputs_ids</code> passed when calling <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkCoarseModel">BarkCoarseModel</a>. Defaults to 10_048 but should be carefully thought with
regards to the chosen sub-model.`,name:"input_vocab_size"},{anchor:"transformers.BarkCoarseConfig.output_vocab_size",description:`<strong>output_vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 10_048) &#x2014;
Output vocabulary size of a Bark sub-model. Defines the number of different tokens that can be represented
by the: <code>output_ids</code> when passing forward a <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkCoarseModel">BarkCoarseModel</a>. Defaults to 10_048 but should be carefully thought
with regards to the chosen sub-model.`,name:"output_vocab_size"},{anchor:"transformers.BarkCoarseConfig.num_layers",description:`<strong>num_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of hidden layers in the given sub-model.`,name:"num_layers"},{anchor:"transformers.BarkCoarseConfig.num_heads",description:`<strong>num_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of attention heads for each attention layer in the Transformer architecture.`,name:"num_heads"},{anchor:"transformers.BarkCoarseConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimensionality of the &#x201C;intermediate&#x201D; (often named feed-forward) layer in the architecture.`,name:"hidden_size"},{anchor:"transformers.BarkCoarseConfig.dropout",description:`<strong>dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.`,name:"dropout"},{anchor:"transformers.BarkCoarseConfig.bias",description:`<strong>bias</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to use bias in the linear layers and layer norm layers.`,name:"bias"},{anchor:"transformers.BarkCoarseConfig.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.BarkCoarseConfig.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not the model should return the last key/values attentions (not used by all models).`,name:"use_cache"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bark/configuration_bark.py#L182"}}),We=new ea({props:{anchor:"transformers.BarkCoarseConfig.example",$$slots:{default:[fl]},$$scope:{ctx:C}}}),Kt=new x({}),eo=new B({props:{name:"class transformers.BarkFineConfig",anchor:"transformers.BarkFineConfig",parameters:[{name:"tie_word_embeddings",val:" = True"},{name:"n_codes_total",val:" = 8"},{name:"n_codes_given",val:" = 1"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BarkFineConfig.block_size",description:`<strong>block_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1024) &#x2014;
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).`,name:"block_size"},{anchor:"transformers.BarkFineConfig.input_vocab_size",description:`<strong>input_vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 10_048) &#x2014;
Vocabulary size of a Bark sub-model. Defines the number of different tokens that can be represented by the
<code>inputs_ids</code> passed when calling <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkFineModel">BarkFineModel</a>. Defaults to 10_048 but should be carefully thought with
regards to the chosen sub-model.`,name:"input_vocab_size"},{anchor:"transformers.BarkFineConfig.output_vocab_size",description:`<strong>output_vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 10_048) &#x2014;
Output vocabulary size of a Bark sub-model. Defines the number of different tokens that can be represented
by the: <code>output_ids</code> when passing forward a <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkFineModel">BarkFineModel</a>. Defaults to 10_048 but should be carefully thought
with regards to the chosen sub-model.`,name:"output_vocab_size"},{anchor:"transformers.BarkFineConfig.num_layers",description:`<strong>num_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of hidden layers in the given sub-model.`,name:"num_layers"},{anchor:"transformers.BarkFineConfig.num_heads",description:`<strong>num_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of attention heads for each attention layer in the Transformer architecture.`,name:"num_heads"},{anchor:"transformers.BarkFineConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimensionality of the &#x201C;intermediate&#x201D; (often named feed-forward) layer in the architecture.`,name:"hidden_size"},{anchor:"transformers.BarkFineConfig.dropout",description:`<strong>dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.`,name:"dropout"},{anchor:"transformers.BarkFineConfig.bias",description:`<strong>bias</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to use bias in the linear layers and layer norm layers.`,name:"bias"},{anchor:"transformers.BarkFineConfig.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.BarkFineConfig.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not the model should return the last key/values attentions (not used by all models).`,name:"use_cache"},{anchor:"transformers.BarkFineConfig.n_codes_total",description:`<strong>n_codes_total</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
The total number of audio codebooks predicted. Used in the fine acoustics sub-model.`,name:"n_codes_total"},{anchor:"transformers.BarkFineConfig.n_codes_given",description:`<strong>n_codes_given</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of audio codebooks predicted in the coarse acoustics sub-model. Used in the acoustics
sub-models.`,name:"n_codes_given"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bark/configuration_bark.py#L209"}}),Ze=new ea({props:{anchor:"transformers.BarkFineConfig.example",$$slots:{default:[ul]},$$scope:{ctx:C}}}),to=new x({}),oo=new B({props:{name:"class transformers.BarkSemanticConfig",anchor:"transformers.BarkSemanticConfig",parameters:[{name:"block_size",val:" = 1024"},{name:"input_vocab_size",val:" = 10048"},{name:"output_vocab_size",val:" = 10048"},{name:"num_layers",val:" = 12"},{name:"num_heads",val:" = 12"},{name:"hidden_size",val:" = 768"},{name:"dropout",val:" = 0.0"},{name:"bias",val:" = True"},{name:"initializer_range",val:" = 0.02"},{name:"use_cache",val:" = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BarkSemanticConfig.block_size",description:`<strong>block_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1024) &#x2014;
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).`,name:"block_size"},{anchor:"transformers.BarkSemanticConfig.input_vocab_size",description:`<strong>input_vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 10_048) &#x2014;
Vocabulary size of a Bark sub-model. Defines the number of different tokens that can be represented by the
<code>inputs_ids</code> passed when calling <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkSemanticModel">BarkSemanticModel</a>. Defaults to 10_048 but should be carefully thought with
regards to the chosen sub-model.`,name:"input_vocab_size"},{anchor:"transformers.BarkSemanticConfig.output_vocab_size",description:`<strong>output_vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 10_048) &#x2014;
Output vocabulary size of a Bark sub-model. Defines the number of different tokens that can be represented
by the: <code>output_ids</code> when passing forward a <a href="/docs/transformers/v4.33.3/en/model_doc/bark#transformers.BarkSemanticModel">BarkSemanticModel</a>. Defaults to 10_048 but should be carefully thought
with regards to the chosen sub-model.`,name:"output_vocab_size"},{anchor:"transformers.BarkSemanticConfig.num_layers",description:`<strong>num_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of hidden layers in the given sub-model.`,name:"num_layers"},{anchor:"transformers.BarkSemanticConfig.num_heads",description:`<strong>num_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of attention heads for each attention layer in the Transformer architecture.`,name:"num_heads"},{anchor:"transformers.BarkSemanticConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimensionality of the &#x201C;intermediate&#x201D; (often named feed-forward) layer in the architecture.`,name:"hidden_size"},{anchor:"transformers.BarkSemanticConfig.dropout",description:`<strong>dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.`,name:"dropout"},{anchor:"transformers.BarkSemanticConfig.bias",description:`<strong>bias</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to use bias in the linear layers and layer norm layers.`,name:"bias"},{anchor:"transformers.BarkSemanticConfig.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.BarkSemanticConfig.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not the model should return the last key/values attentions (not used by all models).`,name:"use_cache"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/bark/configuration_bark.py#L160"}}),Ee=new ea({props:{anchor:"transformers.BarkSemanticConfig.example",$$slots:{default:[gl]},$$scope:{ctx:C}}}),{c(){h=n("meta"),M=s(),k=n("p"),y=s(),w=n("h1"),p=n("a"),$=n("span"),f(qe.$$.fragment),ta=s(),so=n("span"),so.textContent=fs,zn=s(),X=n("h2"),ce=n("a"),ln=n("span"),f(Re.$$.fragment),oa=s(),io=n("span"),io.textContent=us,Un=s(),Ae=n("p"),Ae.innerHTML=gs,In=s(),De=n("p"),De.textContent=_s,Nn=s(),Oe=n("ul"),Oe.innerHTML=bs,Wn=s(),Qe=n("p"),Qe.textContent=vs,Pn=s(),q=n("h3"),me=n("a"),dn=n("span"),f(Ke.$$.fragment),na=s(),lo=n("span"),lo.textContent=ks,Zn=s(),et=n("p"),et.innerHTML=ys,Sn=s(),R=n("h4"),he=n("a"),cn=n("span"),f(tt.$$.fragment),ra=s(),co=n("span"),co.textContent=ws,En=s(),ot=n("p"),ot.textContent=Ms,Fn=s(),f(nt.$$.fragment),Hn=s(),A=n("h4"),pe=n("a"),mn=n("span"),f(rt.$$.fragment),aa=s(),mo=n("span"),mo.textContent=$s,Gn=s(),at=n("p"),at.textContent=Ts,Vn=s(),f(st.$$.fragment),Ln=s(),it=n("p"),it.innerHTML=Bs,Yn=s(),D=n("h4"),fe=n("a"),hn=n("span"),f(lt.$$.fragment),sa=s(),ho=n("span"),ho.textContent=Cs,Xn=s(),dt=n("p"),dt.textContent=xs,qn=s(),ct=n("p"),ct.textContent=Js,Rn=s(),f(mt.$$.fragment),An=s(),ht=n("p"),ht.innerHTML=js,Dn=s(),O=n("h4"),ue=n("a"),pn=n("span"),f(pt.$$.fragment),ia=s(),po=n("span"),po.textContent=zs,On=s(),ft=n("p"),ft.textContent=Us,Qn=s(),f(ut.$$.fragment),Kn=s(),gt=n("p"),gt.innerHTML=Is,er=s(),Q=n("h3"),ge=n("a"),fn=n("span"),f(_t.$$.fragment),la=s(),fo=n("span"),fo.textContent=Ns,tr=s(),bt=n("p"),bt.innerHTML=Ws,or=s(),f(vt.$$.fragment),nr=s(),kt=n("p"),kt.innerHTML=Ps,rr=s(),f(yt.$$.fragment),ar=s(),wt=n("p"),wt.innerHTML=Zs,sr=s(),f(Mt.$$.fragment),ir=s(),$t=n("p"),$t.textContent=Ss,lr=s(),f(Tt.$$.fragment),dr=s(),Bt=n("p"),Bt.innerHTML=Es,cr=s(),K=n("h2"),_e=n("a"),un=n("span"),f(Ct.$$.fragment),da=s(),uo=n("span"),uo.textContent=Fs,mr=s(),j=n("div"),f(xt.$$.fragment),ca=s(),go=n("p"),go.innerHTML=Hs,ma=s(),_o=n("p"),_o.innerHTML=Gs,ha=s(),bo=n("p"),bo.innerHTML=Vs,pa=s(),be=n("div"),f(Jt.$$.fragment),fa=s(),vo=n("p"),vo.innerHTML=Ls,hr=s(),ee=n("h2"),ve=n("a"),gn=n("span"),f(jt.$$.fragment),ua=s(),ko=n("span"),ko.textContent=Ys,pr=s(),z=n("div"),f(zt.$$.fragment),ga=s(),yo=n("p"),yo.textContent=Xs,_a=s(),ke=n("div"),f(Ut.$$.fragment),ba=s(),wo=n("p"),wo.innerHTML=qs,va=s(),ye=n("div"),f(It.$$.fragment),ka=s(),Mo=n("p"),Mo.textContent=Rs,ya=s(),we=n("div"),f(Nt.$$.fragment),wa=s(),$o=n("p"),$o.innerHTML=As,fr=s(),te=n("h2"),Me=n("a"),_n=n("span"),f(Wt.$$.fragment),Ma=s(),To=n("span"),To.textContent=Ds,ur=s(),T=n("div"),f(Pt.$$.fragment),$a=s(),Bo=n("p"),Bo.textContent=Os,Ta=s(),Co=n("ul"),Co.innerHTML=Qs,Ba=s(),xo=n("p"),xo.textContent=Ks,Ca=s(),Jo=n("p"),Jo.innerHTML=ei,xa=s(),jo=n("p"),jo.innerHTML=ti,Ja=s(),E=n("div"),f(Zt.$$.fragment),ja=s(),zo=n("p"),zo.innerHTML=oi,za=s(),f($e.$$.fragment),Ua=s(),Te=n("div"),f(St.$$.fragment),Ia=s(),Uo=n("p"),Uo.textContent=ni,gr=s(),oe=n("h2"),Be=n("a"),bn=n("span"),f(Et.$$.fragment),Na=s(),Io=n("span"),Io.textContent=ri,_r=s(),U=n("div"),f(Ft.$$.fragment),Wa=s(),No=n("p"),No.innerHTML=ai,Pa=s(),Wo=n("p"),Wo.innerHTML=si,Za=s(),F=n("div"),f(Ht.$$.fragment),Sa=s(),Po=n("p"),Po.innerHTML=ii,Ea=s(),f(Ce.$$.fragment),br=s(),ne=n("h2"),xe=n("a"),vn=n("span"),f(Gt.$$.fragment),Fa=s(),Zo=n("span"),Zo.textContent=li,vr=s(),I=n("div"),f(Vt.$$.fragment),Ha=s(),So=n("p"),So.innerHTML=di,Ga=s(),Eo=n("p"),Eo.innerHTML=ci,Va=s(),H=n("div"),f(Lt.$$.fragment),La=s(),Fo=n("p"),Fo.innerHTML=mi,Ya=s(),f(Je.$$.fragment),kr=s(),re=n("h2"),je=n("a"),kn=n("span"),f(Yt.$$.fragment),Xa=s(),Ho=n("span"),Ho.textContent=hi,yr=s(),N=n("div"),f(Xt.$$.fragment),qa=s(),Go=n("p"),Go.innerHTML=pi,Ra=s(),Vo=n("p"),Vo.innerHTML=fi,Aa=s(),G=n("div"),f(qt.$$.fragment),Da=s(),Lo=n("p"),Lo.innerHTML=ui,Oa=s(),f(ze.$$.fragment),wr=s(),ae=n("h2"),Ue=n("a"),yn=n("span"),f(Rt.$$.fragment),Qa=s(),Yo=n("span"),Yo.textContent=gi,Mr=s(),se=n("div"),f(At.$$.fragment),Ka=s(),V=n("div"),f(Dt.$$.fragment),es=s(),Xo=n("p"),Xo.innerHTML=_i,ts=s(),f(Ie.$$.fragment),$r=s(),ie=n("h2"),Ne=n("a"),wn=n("span"),f(Ot.$$.fragment),os=s(),qo=n("span"),qo.textContent=bi,Tr=s(),W=n("div"),f(Qt.$$.fragment),ns=s(),Ro=n("p"),Ro.innerHTML=vi,rs=s(),Ao=n("p"),Ao.innerHTML=ki,as=s(),f(We.$$.fragment),Br=s(),le=n("h2"),Pe=n("a"),Mn=n("span"),f(Kt.$$.fragment),ss=s(),Do=n("span"),Do.textContent=yi,Cr=s(),P=n("div"),f(eo.$$.fragment),is=s(),Oo=n("p"),Oo.innerHTML=wi,ls=s(),Qo=n("p"),Qo.innerHTML=Mi,ds=s(),f(Ze.$$.fragment),xr=s(),de=n("h2"),Se=n("a"),$n=n("span"),f(to.$$.fragment),cs=s(),Ko=n("span"),Ko.textContent=$i,Jr=s(),Z=n("div"),f(oo.$$.fragment),ms=s(),en=n("p"),en.innerHTML=Ti,hs=s(),tn=n("p"),tn.innerHTML=Bi,ps=s(),f(Ee.$$.fragment),jr=s(),Tn=n("p"),this.h()},l(e){const a=ll("svelte-1phssyn",document.head);h=r(a,"META",{name:!0,content:!0}),a.forEach(t),M=i(e),k=r(e,"P",{}),c(k).forEach(t),y=i(e),w=r(e,"H1",{class:!0});var no=c(w);p=r(no,"A",{id:!0,class:!0,href:!0});var Bn=c(p);$=r(Bn,"SPAN",{});var Cn=c($);u(qe.$$.fragment,Cn),Cn.forEach(t),Bn.forEach(t),ta=i(no),so=r(no,"SPAN",{"data-svelte-h":!0}),m(so)!=="svelte-1o8f8fv"&&(so.textContent=fs),no.forEach(t),zn=i(e),X=r(e,"H2",{class:!0});var ro=c(X);ce=r(ro,"A",{id:!0,class:!0,href:!0});var xn=c(ce);ln=r(xn,"SPAN",{});var Jn=c(ln);u(Re.$$.fragment,Jn),Jn.forEach(t),xn.forEach(t),oa=i(ro),io=r(ro,"SPAN",{"data-svelte-h":!0}),m(io)!=="svelte-1jsw1pg"&&(io.textContent=us),ro.forEach(t),Un=i(e),Ae=r(e,"P",{"data-svelte-h":!0}),m(Ae)!=="svelte-w7c96p"&&(Ae.innerHTML=gs),In=i(e),De=r(e,"P",{"data-svelte-h":!0}),m(De)!=="svelte-x1eizn"&&(De.textContent=_s),Nn=i(e),Oe=r(e,"UL",{"data-svelte-h":!0}),m(Oe)!=="svelte-ucn1ix"&&(Oe.innerHTML=bs),Wn=i(e),Qe=r(e,"P",{"data-svelte-h":!0}),m(Qe)!=="svelte-birews"&&(Qe.textContent=vs),Pn=i(e),q=r(e,"H3",{class:!0});var ao=c(q);me=r(ao,"A",{id:!0,class:!0,href:!0});var jn=c(me);dn=r(jn,"SPAN",{});var Ci=c(dn);u(Ke.$$.fragment,Ci),Ci.forEach(t),jn.forEach(t),na=i(ao),lo=r(ao,"SPAN",{"data-svelte-h":!0}),m(lo)!=="svelte-1psoa5h"&&(lo.textContent=ks),ao.forEach(t),Zn=i(e),et=r(e,"P",{"data-svelte-h":!0}),m(et)!=="svelte-d9f63q"&&(et.innerHTML=ys),Sn=i(e),R=r(e,"H4",{class:!0});var Ur=c(R);he=r(Ur,"A",{id:!0,class:!0,href:!0});var xi=c(he);cn=r(xi,"SPAN",{});var Ji=c(cn);u(tt.$$.fragment,Ji),Ji.forEach(t),xi.forEach(t),ra=i(Ur),co=r(Ur,"SPAN",{"data-svelte-h":!0}),m(co)!=="svelte-8gfk4d"&&(co.textContent=ws),Ur.forEach(t),En=i(e),ot=r(e,"P",{"data-svelte-h":!0}),m(ot)!=="svelte-1c57ze6"&&(ot.textContent=Ms),Fn=i(e),u(nt.$$.fragment,e),Hn=i(e),A=r(e,"H4",{class:!0});var Ir=c(A);pe=r(Ir,"A",{id:!0,class:!0,href:!0});var ji=c(pe);mn=r(ji,"SPAN",{});var zi=c(mn);u(rt.$$.fragment,zi),zi.forEach(t),ji.forEach(t),aa=i(Ir),mo=r(Ir,"SPAN",{"data-svelte-h":!0}),m(mo)!=="svelte-1f5tlpr"&&(mo.textContent=$s),Ir.forEach(t),Gn=i(e),at=r(e,"P",{"data-svelte-h":!0}),m(at)!=="svelte-1r0gpm4"&&(at.textContent=Ts),Vn=i(e),u(st.$$.fragment,e),Ln=i(e),it=r(e,"P",{"data-svelte-h":!0}),m(it)!=="svelte-bu0gze"&&(it.innerHTML=Bs),Yn=i(e),D=r(e,"H4",{class:!0});var Nr=c(D);fe=r(Nr,"A",{id:!0,class:!0,href:!0});var Ui=c(fe);hn=r(Ui,"SPAN",{});var Ii=c(hn);u(lt.$$.fragment,Ii),Ii.forEach(t),Ui.forEach(t),sa=i(Nr),ho=r(Nr,"SPAN",{"data-svelte-h":!0}),m(ho)!=="svelte-11vus6c"&&(ho.textContent=Cs),Nr.forEach(t),Xn=i(e),dt=r(e,"P",{"data-svelte-h":!0}),m(dt)!=="svelte-1gm6phf"&&(dt.textContent=xs),qn=i(e),ct=r(e,"P",{"data-svelte-h":!0}),m(ct)!=="svelte-k6divl"&&(ct.textContent=Js),Rn=i(e),u(mt.$$.fragment,e),An=i(e),ht=r(e,"P",{"data-svelte-h":!0}),m(ht)!=="svelte-jn1vz4"&&(ht.innerHTML=js),Dn=i(e),O=r(e,"H4",{class:!0});var Wr=c(O);ue=r(Wr,"A",{id:!0,class:!0,href:!0});var Ni=c(ue);pn=r(Ni,"SPAN",{});var Wi=c(pn);u(pt.$$.fragment,Wi),Wi.forEach(t),Ni.forEach(t),ia=i(Wr),po=r(Wr,"SPAN",{"data-svelte-h":!0}),m(po)!=="svelte-13lhzcy"&&(po.textContent=zs),Wr.forEach(t),On=i(e),ft=r(e,"P",{"data-svelte-h":!0}),m(ft)!=="svelte-gc4oox"&&(ft.textContent=Us),Qn=i(e),u(ut.$$.fragment,e),Kn=i(e),gt=r(e,"P",{"data-svelte-h":!0}),m(gt)!=="svelte-1xrlue6"&&(gt.innerHTML=Is),er=i(e),Q=r(e,"H3",{class:!0});var Pr=c(Q);ge=r(Pr,"A",{id:!0,class:!0,href:!0});var Pi=c(ge);fn=r(Pi,"SPAN",{});var Zi=c(fn);u(_t.$$.fragment,Zi),Zi.forEach(t),Pi.forEach(t),la=i(Pr),fo=r(Pr,"SPAN",{"data-svelte-h":!0}),m(fo)!=="svelte-12o6a2j"&&(fo.textContent=Ns),Pr.forEach(t),tr=i(e),bt=r(e,"P",{"data-svelte-h":!0}),m(bt)!=="svelte-llmun5"&&(bt.innerHTML=Ws),or=i(e),u(vt.$$.fragment,e),nr=i(e),kt=r(e,"P",{"data-svelte-h":!0}),m(kt)!=="svelte-ff55s5"&&(kt.innerHTML=Ps),rr=i(e),u(yt.$$.fragment,e),ar=i(e),wt=r(e,"P",{"data-svelte-h":!0}),m(wt)!=="svelte-sc737i"&&(wt.innerHTML=Zs),sr=i(e),u(Mt.$$.fragment,e),ir=i(e),$t=r(e,"P",{"data-svelte-h":!0}),m($t)!=="svelte-1bkdry6"&&($t.textContent=Ss),lr=i(e),u(Tt.$$.fragment,e),dr=i(e),Bt=r(e,"P",{"data-svelte-h":!0}),m(Bt)!=="svelte-1m4odbp"&&(Bt.innerHTML=Es),cr=i(e),K=r(e,"H2",{class:!0});var Zr=c(K);_e=r(Zr,"A",{id:!0,class:!0,href:!0});var Si=c(_e);un=r(Si,"SPAN",{});var Ei=c(un);u(Ct.$$.fragment,Ei),Ei.forEach(t),Si.forEach(t),da=i(Zr),uo=r(Zr,"SPAN",{"data-svelte-h":!0}),m(uo)!=="svelte-78l4rp"&&(uo.textContent=Fs),Zr.forEach(t),mr=i(e),j=r(e,"DIV",{class:!0});var L=c(j);u(xt.$$.fragment,L),ca=i(L),go=r(L,"P",{"data-svelte-h":!0}),m(go)!=="svelte-12rrkup"&&(go.innerHTML=Hs),ma=i(L),_o=r(L,"P",{"data-svelte-h":!0}),m(_o)!=="svelte-c6ui3q"&&(_o.innerHTML=Gs),ha=i(L),bo=r(L,"P",{"data-svelte-h":!0}),m(bo)!=="svelte-cfh5wl"&&(bo.innerHTML=Vs),pa=i(L),be=r(L,"DIV",{class:!0});var Sr=c(be);u(Jt.$$.fragment,Sr),fa=i(Sr),vo=r(Sr,"P",{"data-svelte-h":!0}),m(vo)!=="svelte-pz015f"&&(vo.innerHTML=Ls),Sr.forEach(t),L.forEach(t),hr=i(e),ee=r(e,"H2",{class:!0});var Er=c(ee);ve=r(Er,"A",{id:!0,class:!0,href:!0});var Fi=c(ve);gn=r(Fi,"SPAN",{});var Hi=c(gn);u(jt.$$.fragment,Hi),Hi.forEach(t),Fi.forEach(t),ua=i(Er),ko=r(Er,"SPAN",{"data-svelte-h":!0}),m(ko)!=="svelte-y4r1ax"&&(ko.textContent=Ys),Er.forEach(t),pr=i(e),z=r(e,"DIV",{class:!0});var Y=c(z);u(zt.$$.fragment,Y),ga=i(Y),yo=r(Y,"P",{"data-svelte-h":!0}),m(yo)!=="svelte-1xfrjvw"&&(yo.textContent=Xs),_a=i(Y),ke=r(Y,"DIV",{class:!0});var Fr=c(ke);u(Ut.$$.fragment,Fr),ba=i(Fr),wo=r(Fr,"P",{"data-svelte-h":!0}),m(wo)!=="svelte-1hlbbl8"&&(wo.innerHTML=qs),Fr.forEach(t),va=i(Y),ye=r(Y,"DIV",{class:!0});var Hr=c(ye);u(It.$$.fragment,Hr),ka=i(Hr),Mo=r(Hr,"P",{"data-svelte-h":!0}),m(Mo)!=="svelte-1xt1aup"&&(Mo.textContent=Rs),Hr.forEach(t),ya=i(Y),we=r(Y,"DIV",{class:!0});var Gr=c(we);u(Nt.$$.fragment,Gr),wa=i(Gr),$o=r(Gr,"P",{"data-svelte-h":!0}),m($o)!=="svelte-1qr6zeb"&&($o.innerHTML=As),Gr.forEach(t),Y.forEach(t),fr=i(e),te=r(e,"H2",{class:!0});var Vr=c(te);Me=r(Vr,"A",{id:!0,class:!0,href:!0});var Gi=c(Me);_n=r(Gi,"SPAN",{});var Vi=c(_n);u(Wt.$$.fragment,Vi),Vi.forEach(t),Gi.forEach(t),Ma=i(Vr),To=r(Vr,"SPAN",{"data-svelte-h":!0}),m(To)!=="svelte-d2k29w"&&(To.textContent=Ds),Vr.forEach(t),ur=i(e),T=r(e,"DIV",{class:!0});var J=c(T);u(Pt.$$.fragment,J),$a=i(J),Bo=r(J,"P",{"data-svelte-h":!0}),m(Bo)!=="svelte-xp33tl"&&(Bo.textContent=Os),Ta=i(J),Co=r(J,"UL",{"data-svelte-h":!0}),m(Co)!=="svelte-2ry5g6"&&(Co.innerHTML=Qs),Ba=i(J),xo=r(J,"P",{"data-svelte-h":!0}),m(xo)!=="svelte-beeiv6"&&(xo.textContent=Ks),Ca=i(J),Jo=r(J,"P",{"data-svelte-h":!0}),m(Jo)!=="svelte-ev63c"&&(Jo.innerHTML=ei),xa=i(J),jo=r(J,"P",{"data-svelte-h":!0}),m(jo)!=="svelte-hswkmf"&&(jo.innerHTML=ti),Ja=i(J),E=r(J,"DIV",{class:!0});var on=c(E);u(Zt.$$.fragment,on),ja=i(on),zo=r(on,"P",{"data-svelte-h":!0}),m(zo)!=="svelte-4azpa"&&(zo.innerHTML=oi),za=i(on),u($e.$$.fragment,on),on.forEach(t),Ua=i(J),Te=r(J,"DIV",{class:!0});var Lr=c(Te);u(St.$$.fragment,Lr),Ia=i(Lr),Uo=r(Lr,"P",{"data-svelte-h":!0}),m(Uo)!=="svelte-19e6niw"&&(Uo.textContent=ni),Lr.forEach(t),J.forEach(t),gr=i(e),oe=r(e,"H2",{class:!0});var Yr=c(oe);Be=r(Yr,"A",{id:!0,class:!0,href:!0});var Li=c(Be);bn=r(Li,"SPAN",{});var Yi=c(bn);u(Et.$$.fragment,Yi),Yi.forEach(t),Li.forEach(t),Na=i(Yr),Io=r(Yr,"SPAN",{"data-svelte-h":!0}),m(Io)!=="svelte-xgapfo"&&(Io.textContent=ri),Yr.forEach(t),_r=i(e),U=r(e,"DIV",{class:!0});var Fe=c(U);u(Ft.$$.fragment,Fe),Wa=i(Fe),No=r(Fe,"P",{"data-svelte-h":!0}),m(No)!=="svelte-12zcmqw"&&(No.innerHTML=ai),Pa=i(Fe),Wo=r(Fe,"P",{"data-svelte-h":!0}),m(Wo)!=="svelte-hswkmf"&&(Wo.innerHTML=si),Za=i(Fe),F=r(Fe,"DIV",{class:!0});var nn=c(F);u(Ht.$$.fragment,nn),Sa=i(nn),Po=r(nn,"P",{"data-svelte-h":!0}),m(Po)!=="svelte-yacd7j"&&(Po.innerHTML=ii),Ea=i(nn),u(Ce.$$.fragment,nn),nn.forEach(t),Fe.forEach(t),br=i(e),ne=r(e,"H2",{class:!0});var Xr=c(ne);xe=r(Xr,"A",{id:!0,class:!0,href:!0});var Xi=c(xe);vn=r(Xi,"SPAN",{});var qi=c(vn);u(Gt.$$.fragment,qi),qi.forEach(t),Xi.forEach(t),Fa=i(Xr),Zo=r(Xr,"SPAN",{"data-svelte-h":!0}),m(Zo)!=="svelte-ra1gd7"&&(Zo.textContent=li),Xr.forEach(t),vr=i(e),I=r(e,"DIV",{class:!0});var He=c(I);u(Vt.$$.fragment,He),Ha=i(He),So=r(He,"P",{"data-svelte-h":!0}),m(So)!=="svelte-8z4aju"&&(So.innerHTML=di),Ga=i(He),Eo=r(He,"P",{"data-svelte-h":!0}),m(Eo)!=="svelte-hswkmf"&&(Eo.innerHTML=ci),Va=i(He),H=r(He,"DIV",{class:!0});var rn=c(H);u(Lt.$$.fragment,rn),La=i(rn),Fo=r(rn,"P",{"data-svelte-h":!0}),m(Fo)!=="svelte-yacd7j"&&(Fo.innerHTML=mi),Ya=i(rn),u(Je.$$.fragment,rn),rn.forEach(t),He.forEach(t),kr=i(e),re=r(e,"H2",{class:!0});var qr=c(re);je=r(qr,"A",{id:!0,class:!0,href:!0});var Ri=c(je);kn=r(Ri,"SPAN",{});var Ai=c(kn);u(Yt.$$.fragment,Ai),Ai.forEach(t),Ri.forEach(t),Xa=i(qr),Ho=r(qr,"SPAN",{"data-svelte-h":!0}),m(Ho)!=="svelte-1msu1to"&&(Ho.textContent=hi),qr.forEach(t),yr=i(e),N=r(e,"DIV",{class:!0});var Ge=c(N);u(Xt.$$.fragment,Ge),qa=i(Ge),Go=r(Ge,"P",{"data-svelte-h":!0}),m(Go)!=="svelte-szhu0v"&&(Go.innerHTML=pi),Ra=i(Ge),Vo=r(Ge,"P",{"data-svelte-h":!0}),m(Vo)!=="svelte-hswkmf"&&(Vo.innerHTML=fi),Aa=i(Ge),G=r(Ge,"DIV",{class:!0});var an=c(G);u(qt.$$.fragment,an),Da=i(an),Lo=r(an,"P",{"data-svelte-h":!0}),m(Lo)!=="svelte-1ktmk1b"&&(Lo.innerHTML=ui),Oa=i(an),u(ze.$$.fragment,an),an.forEach(t),Ge.forEach(t),wr=i(e),ae=r(e,"H2",{class:!0});var Rr=c(ae);Ue=r(Rr,"A",{id:!0,class:!0,href:!0});var Di=c(Ue);yn=r(Di,"SPAN",{});var Oi=c(yn);u(Rt.$$.fragment,Oi),Oi.forEach(t),Di.forEach(t),Qa=i(Rr),Yo=r(Rr,"SPAN",{"data-svelte-h":!0}),m(Yo)!=="svelte-1cq42dr"&&(Yo.textContent=gi),Rr.forEach(t),Mr=i(e),se=r(e,"DIV",{class:!0});var Ar=c(se);u(At.$$.fragment,Ar),Ka=i(Ar),V=r(Ar,"DIV",{class:!0});var sn=c(V);u(Dt.$$.fragment,sn),es=i(sn),Xo=r(sn,"P",{"data-svelte-h":!0}),m(Xo)!=="svelte-yacd7j"&&(Xo.innerHTML=_i),ts=i(sn),u(Ie.$$.fragment,sn),sn.forEach(t),Ar.forEach(t),$r=i(e),ie=r(e,"H2",{class:!0});var Dr=c(ie);Ne=r(Dr,"A",{id:!0,class:!0,href:!0});var Qi=c(Ne);wn=r(Qi,"SPAN",{});var Ki=c(wn);u(Ot.$$.fragment,Ki),Ki.forEach(t),Qi.forEach(t),os=i(Dr),qo=r(Dr,"SPAN",{"data-svelte-h":!0}),m(qo)!=="svelte-x5djye"&&(qo.textContent=bi),Dr.forEach(t),Tr=i(e),W=r(e,"DIV",{class:!0});var Ve=c(W);u(Qt.$$.fragment,Ve),ns=i(Ve),Ro=r(Ve,"P",{"data-svelte-h":!0}),m(Ro)!=="svelte-1y3of41"&&(Ro.innerHTML=vi),rs=i(Ve),Ao=r(Ve,"P",{"data-svelte-h":!0}),m(Ao)!=="svelte-cfh5wl"&&(Ao.innerHTML=ki),as=i(Ve),u(We.$$.fragment,Ve),Ve.forEach(t),Br=i(e),le=r(e,"H2",{class:!0});var Or=c(le);Pe=r(Or,"A",{id:!0,class:!0,href:!0});var el=c(Pe);Mn=r(el,"SPAN",{});var tl=c(Mn);u(Kt.$$.fragment,tl),tl.forEach(t),el.forEach(t),ss=i(Or),Do=r(Or,"SPAN",{"data-svelte-h":!0}),m(Do)!=="svelte-1yhgsb1"&&(Do.textContent=yi),Or.forEach(t),Cr=i(e),P=r(e,"DIV",{class:!0});var Le=c(P);u(eo.$$.fragment,Le),is=i(Le),Oo=r(Le,"P",{"data-svelte-h":!0}),m(Oo)!=="svelte-xea54x"&&(Oo.innerHTML=wi),ls=i(Le),Qo=r(Le,"P",{"data-svelte-h":!0}),m(Qo)!=="svelte-cfh5wl"&&(Qo.innerHTML=Mi),ds=i(Le),u(Ze.$$.fragment,Le),Le.forEach(t),xr=i(e),de=r(e,"H2",{class:!0});var Qr=c(de);Se=r(Qr,"A",{id:!0,class:!0,href:!0});var ol=c(Se);$n=r(ol,"SPAN",{});var nl=c($n);u(to.$$.fragment,nl),nl.forEach(t),ol.forEach(t),cs=i(Qr),Ko=r(Qr,"SPAN",{"data-svelte-h":!0}),m(Ko)!=="svelte-1yetmy9"&&(Ko.textContent=$i),Qr.forEach(t),Jr=i(e),Z=r(e,"DIV",{class:!0});var Ye=c(Z);u(oo.$$.fragment,Ye),ms=i(Ye),en=r(Ye,"P",{"data-svelte-h":!0}),m(en)!=="svelte-uas8d1"&&(en.innerHTML=Ti),hs=i(Ye),tn=r(Ye,"P",{"data-svelte-h":!0}),m(tn)!=="svelte-cfh5wl"&&(tn.innerHTML=Bi),ps=i(Ye),u(Ee.$$.fragment,Ye),Ye.forEach(t),jr=i(e),Tn=r(e,"P",{}),c(Tn).forEach(t),this.h()},h(){d(h,"name","hf:doc:metadata"),d(h,"content",JSON.stringify(bl)),d(p,"id","bark"),d(p,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(p,"href","#bark"),d(w,"class","relative group"),d(ce,"id","overview"),d(ce,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(ce,"href","#overview"),d(X,"class","relative group"),d(me,"id","optimizing-bark"),d(me,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(me,"href","#optimizing-bark"),d(q,"class","relative group"),d(he,"id","using-halfprecision"),d(he,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(he,"href","#using-halfprecision"),d(R,"class","relative group"),d(pe,"id","using-better-transformer"),d(pe,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(pe,"href","#using-better-transformer"),d(A,"class","relative group"),d(fe,"id","using-cpu-offload"),d(fe,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(fe,"href","#using-cpu-offload"),d(D,"class","relative group"),d(ue,"id","combining-optimizaton-techniques"),d(ue,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(ue,"href","#combining-optimizaton-techniques"),d(O,"class","relative group"),d(ge,"id","tips"),d(ge,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(ge,"href","#tips"),d(Q,"class","relative group"),d(_e,"id","transformers.BarkConfig"),d(_e,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(_e,"href","#transformers.BarkConfig"),d(K,"class","relative group"),d(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(ve,"id","transformers.BarkProcessor"),d(ve,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(ve,"href","#transformers.BarkProcessor"),d(ee,"class","relative group"),d(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(Me,"id","transformers.BarkModel"),d(Me,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(Me,"href","#transformers.BarkModel"),d(te,"class","relative group"),d(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(Be,"id","transformers.BarkSemanticModel"),d(Be,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(Be,"href","#transformers.BarkSemanticModel"),d(oe,"class","relative group"),d(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(xe,"id","transformers.BarkCoarseModel"),d(xe,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(xe,"href","#transformers.BarkCoarseModel"),d(ne,"class","relative group"),d(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(je,"id","transformers.BarkFineModel"),d(je,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(je,"href","#transformers.BarkFineModel"),d(re,"class","relative group"),d(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(Ue,"id","transformers.BarkCausalModel"),d(Ue,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(Ue,"href","#transformers.BarkCausalModel"),d(ae,"class","relative group"),d(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(Ne,"id","transformers.BarkCoarseConfig"),d(Ne,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(Ne,"href","#transformers.BarkCoarseConfig"),d(ie,"class","relative group"),d(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(Pe,"id","transformers.BarkFineConfig"),d(Pe,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(Pe,"href","#transformers.BarkFineConfig"),d(le,"class","relative group"),d(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(Se,"id","transformers.BarkSemanticConfig"),d(Se,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(Se,"href","#transformers.BarkSemanticConfig"),d(de,"class","relative group"),d(Z,"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,a){o(document.head,h),l(e,M,a),l(e,k,a),l(e,y,a),l(e,w,a),o(w,p),o(p,$),g(qe,$,null),o(w,ta),o(w,so),l(e,zn,a),l(e,X,a),o(X,ce),o(ce,ln),g(Re,ln,null),o(X,oa),o(X,io),l(e,Un,a),l(e,Ae,a),l(e,In,a),l(e,De,a),l(e,Nn,a),l(e,Oe,a),l(e,Wn,a),l(e,Qe,a),l(e,Pn,a),l(e,q,a),o(q,me),o(me,dn),g(Ke,dn,null),o(q,na),o(q,lo),l(e,Zn,a),l(e,et,a),l(e,Sn,a),l(e,R,a),o(R,he),o(he,cn),g(tt,cn,null),o(R,ra),o(R,co),l(e,En,a),l(e,ot,a),l(e,Fn,a),g(nt,e,a),l(e,Hn,a),l(e,A,a),o(A,pe),o(pe,mn),g(rt,mn,null),o(A,aa),o(A,mo),l(e,Gn,a),l(e,at,a),l(e,Vn,a),g(st,e,a),l(e,Ln,a),l(e,it,a),l(e,Yn,a),l(e,D,a),o(D,fe),o(fe,hn),g(lt,hn,null),o(D,sa),o(D,ho),l(e,Xn,a),l(e,dt,a),l(e,qn,a),l(e,ct,a),l(e,Rn,a),g(mt,e,a),l(e,An,a),l(e,ht,a),l(e,Dn,a),l(e,O,a),o(O,ue),o(ue,pn),g(pt,pn,null),o(O,ia),o(O,po),l(e,On,a),l(e,ft,a),l(e,Qn,a),g(ut,e,a),l(e,Kn,a),l(e,gt,a),l(e,er,a),l(e,Q,a),o(Q,ge),o(ge,fn),g(_t,fn,null),o(Q,la),o(Q,fo),l(e,tr,a),l(e,bt,a),l(e,or,a),g(vt,e,a),l(e,nr,a),l(e,kt,a),l(e,rr,a),g(yt,e,a),l(e,ar,a),l(e,wt,a),l(e,sr,a),g(Mt,e,a),l(e,ir,a),l(e,$t,a),l(e,lr,a),g(Tt,e,a),l(e,dr,a),l(e,Bt,a),l(e,cr,a),l(e,K,a),o(K,_e),o(_e,un),g(Ct,un,null),o(K,da),o(K,uo),l(e,mr,a),l(e,j,a),g(xt,j,null),o(j,ca),o(j,go),o(j,ma),o(j,_o),o(j,ha),o(j,bo),o(j,pa),o(j,be),g(Jt,be,null),o(be,fa),o(be,vo),l(e,hr,a),l(e,ee,a),o(ee,ve),o(ve,gn),g(jt,gn,null),o(ee,ua),o(ee,ko),l(e,pr,a),l(e,z,a),g(zt,z,null),o(z,ga),o(z,yo),o(z,_a),o(z,ke),g(Ut,ke,null),o(ke,ba),o(ke,wo),o(z,va),o(z,ye),g(It,ye,null),o(ye,ka),o(ye,Mo),o(z,ya),o(z,we),g(Nt,we,null),o(we,wa),o(we,$o),l(e,fr,a),l(e,te,a),o(te,Me),o(Me,_n),g(Wt,_n,null),o(te,Ma),o(te,To),l(e,ur,a),l(e,T,a),g(Pt,T,null),o(T,$a),o(T,Bo),o(T,Ta),o(T,Co),o(T,Ba),o(T,xo),o(T,Ca),o(T,Jo),o(T,xa),o(T,jo),o(T,Ja),o(T,E),g(Zt,E,null),o(E,ja),o(E,zo),o(E,za),g($e,E,null),o(T,Ua),o(T,Te),g(St,Te,null),o(Te,Ia),o(Te,Uo),l(e,gr,a),l(e,oe,a),o(oe,Be),o(Be,bn),g(Et,bn,null),o(oe,Na),o(oe,Io),l(e,_r,a),l(e,U,a),g(Ft,U,null),o(U,Wa),o(U,No),o(U,Pa),o(U,Wo),o(U,Za),o(U,F),g(Ht,F,null),o(F,Sa),o(F,Po),o(F,Ea),g(Ce,F,null),l(e,br,a),l(e,ne,a),o(ne,xe),o(xe,vn),g(Gt,vn,null),o(ne,Fa),o(ne,Zo),l(e,vr,a),l(e,I,a),g(Vt,I,null),o(I,Ha),o(I,So),o(I,Ga),o(I,Eo),o(I,Va),o(I,H),g(Lt,H,null),o(H,La),o(H,Fo),o(H,Ya),g(Je,H,null),l(e,kr,a),l(e,re,a),o(re,je),o(je,kn),g(Yt,kn,null),o(re,Xa),o(re,Ho),l(e,yr,a),l(e,N,a),g(Xt,N,null),o(N,qa),o(N,Go),o(N,Ra),o(N,Vo),o(N,Aa),o(N,G),g(qt,G,null),o(G,Da),o(G,Lo),o(G,Oa),g(ze,G,null),l(e,wr,a),l(e,ae,a),o(ae,Ue),o(Ue,yn),g(Rt,yn,null),o(ae,Qa),o(ae,Yo),l(e,Mr,a),l(e,se,a),g(At,se,null),o(se,Ka),o(se,V),g(Dt,V,null),o(V,es),o(V,Xo),o(V,ts),g(Ie,V,null),l(e,$r,a),l(e,ie,a),o(ie,Ne),o(Ne,wn),g(Ot,wn,null),o(ie,os),o(ie,qo),l(e,Tr,a),l(e,W,a),g(Qt,W,null),o(W,ns),o(W,Ro),o(W,rs),o(W,Ao),o(W,as),g(We,W,null),l(e,Br,a),l(e,le,a),o(le,Pe),o(Pe,Mn),g(Kt,Mn,null),o(le,ss),o(le,Do),l(e,Cr,a),l(e,P,a),g(eo,P,null),o(P,is),o(P,Oo),o(P,ls),o(P,Qo),o(P,ds),g(Ze,P,null),l(e,xr,a),l(e,de,a),o(de,Se),o(Se,$n),g(to,$n,null),o(de,cs),o(de,Ko),l(e,Jr,a),l(e,Z,a),g(oo,Z,null),o(Z,ms),o(Z,en),o(Z,hs),o(Z,tn),o(Z,ps),g(Ee,Z,null),l(e,jr,a),l(e,Tn,a),zr=!0},p(e,[a]){const no={};a&2&&(no.$$scope={dirty:a,ctx:e}),$e.$set(no);const Bn={};a&2&&(Bn.$$scope={dirty:a,ctx:e}),Ce.$set(Bn);const Cn={};a&2&&(Cn.$$scope={dirty:a,ctx:e}),Je.$set(Cn);const ro={};a&2&&(ro.$$scope={dirty:a,ctx:e}),ze.$set(ro);const xn={};a&2&&(xn.$$scope={dirty:a,ctx:e}),Ie.$set(xn);const Jn={};a&2&&(Jn.$$scope={dirty:a,ctx:e}),We.$set(Jn);const ao={};a&2&&(ao.$$scope={dirty:a,ctx:e}),Ze.$set(ao);const jn={};a&2&&(jn.$$scope={dirty:a,ctx:e}),Ee.$set(jn)},i(e){zr||(_(qe.$$.fragment,e),_(Re.$$.fragment,e),_(Ke.$$.fragment,e),_(tt.$$.fragment,e),_(nt.$$.fragment,e),_(rt.$$.fragment,e),_(st.$$.fragment,e),_(lt.$$.fragment,e),_(mt.$$.fragment,e),_(pt.$$.fragment,e),_(ut.$$.fragment,e),_(_t.$$.fragment,e),_(vt.$$.fragment,e),_(yt.$$.fragment,e),_(Mt.$$.fragment,e),_(Tt.$$.fragment,e),_(Ct.$$.fragment,e),_(xt.$$.fragment,e),_(Jt.$$.fragment,e),_(jt.$$.fragment,e),_(zt.$$.fragment,e),_(Ut.$$.fragment,e),_(It.$$.fragment,e),_(Nt.$$.fragment,e),_(Wt.$$.fragment,e),_(Pt.$$.fragment,e),_(Zt.$$.fragment,e),_($e.$$.fragment,e),_(St.$$.fragment,e),_(Et.$$.fragment,e),_(Ft.$$.fragment,e),_(Ht.$$.fragment,e),_(Ce.$$.fragment,e),_(Gt.$$.fragment,e),_(Vt.$$.fragment,e),_(Lt.$$.fragment,e),_(Je.$$.fragment,e),_(Yt.$$.fragment,e),_(Xt.$$.fragment,e),_(qt.$$.fragment,e),_(ze.$$.fragment,e),_(Rt.$$.fragment,e),_(At.$$.fragment,e),_(Dt.$$.fragment,e),_(Ie.$$.fragment,e),_(Ot.$$.fragment,e),_(Qt.$$.fragment,e),_(We.$$.fragment,e),_(Kt.$$.fragment,e),_(eo.$$.fragment,e),_(Ze.$$.fragment,e),_(to.$$.fragment,e),_(oo.$$.fragment,e),_(Ee.$$.fragment,e),zr=!0)},o(e){b(qe.$$.fragment,e),b(Re.$$.fragment,e),b(Ke.$$.fragment,e),b(tt.$$.fragment,e),b(nt.$$.fragment,e),b(rt.$$.fragment,e),b(st.$$.fragment,e),b(lt.$$.fragment,e),b(mt.$$.fragment,e),b(pt.$$.fragment,e),b(ut.$$.fragment,e),b(_t.$$.fragment,e),b(vt.$$.fragment,e),b(yt.$$.fragment,e),b(Mt.$$.fragment,e),b(Tt.$$.fragment,e),b(Ct.$$.fragment,e),b(xt.$$.fragment,e),b(Jt.$$.fragment,e),b(jt.$$.fragment,e),b(zt.$$.fragment,e),b(Ut.$$.fragment,e),b(It.$$.fragment,e),b(Nt.$$.fragment,e),b(Wt.$$.fragment,e),b(Pt.$$.fragment,e),b(Zt.$$.fragment,e),b($e.$$.fragment,e),b(St.$$.fragment,e),b(Et.$$.fragment,e),b(Ft.$$.fragment,e),b(Ht.$$.fragment,e),b(Ce.$$.fragment,e),b(Gt.$$.fragment,e),b(Vt.$$.fragment,e),b(Lt.$$.fragment,e),b(Je.$$.fragment,e),b(Yt.$$.fragment,e),b(Xt.$$.fragment,e),b(qt.$$.fragment,e),b(ze.$$.fragment,e),b(Rt.$$.fragment,e),b(At.$$.fragment,e),b(Dt.$$.fragment,e),b(Ie.$$.fragment,e),b(Ot.$$.fragment,e),b(Qt.$$.fragment,e),b(We.$$.fragment,e),b(Kt.$$.fragment,e),b(eo.$$.fragment,e),b(Ze.$$.fragment,e),b(to.$$.fragment,e),b(oo.$$.fragment,e),b(Ee.$$.fragment,e),zr=!1},d(e){e&&(t(M),t(k),t(y),t(w),t(zn),t(X),t(Un),t(Ae),t(In),t(De),t(Nn),t(Oe),t(Wn),t(Qe),t(Pn),t(q),t(Zn),t(et),t(Sn),t(R),t(En),t(ot),t(Fn),t(Hn),t(A),t(Gn),t(at),t(Vn),t(Ln),t(it),t(Yn),t(D),t(Xn),t(dt),t(qn),t(ct),t(Rn),t(An),t(ht),t(Dn),t(O),t(On),t(ft),t(Qn),t(Kn),t(gt),t(er),t(Q),t(tr),t(bt),t(or),t(nr),t(kt),t(rr),t(ar),t(wt),t(sr),t(ir),t($t),t(lr),t(dr),t(Bt),t(cr),t(K),t(mr),t(j),t(hr),t(ee),t(pr),t(z),t(fr),t(te),t(ur),t(T),t(gr),t(oe),t(_r),t(U),t(br),t(ne),t(vr),t(I),t(kr),t(re),t(yr),t(N),t(wr),t(ae),t(Mr),t(se),t($r),t(ie),t(Tr),t(W),t(Br),t(le),t(Cr),t(P),t(xr),t(de),t(Jr),t(Z),t(jr),t(Tn)),t(h),v(qe),v(Re),v(Ke),v(tt),v(nt,e),v(rt),v(st,e),v(lt),v(mt,e),v(pt),v(ut,e),v(_t),v(vt,e),v(yt,e),v(Mt,e),v(Tt,e),v(Ct),v(xt),v(Jt),v(jt),v(zt),v(Ut),v(It),v(Nt),v(Wt),v(Pt),v(Zt),v($e),v(St),v(Et),v(Ft),v(Ht),v(Ce),v(Gt),v(Vt),v(Lt),v(Je),v(Yt),v(Xt),v(qt),v(ze),v(Rt),v(At),v(Dt),v(Ie),v(Ot),v(Qt),v(We),v(Kt),v(eo),v(Ze),v(to),v(oo),v(Ee)}}}const bl={local:"bark",sections:[{local:"overview",sections:[{local:"optimizing-bark",sections:[{local:"using-halfprecision",title:"Using half-precision"},{local:"using-better-transformer",title:"Using 🤗 Better Transformer"},{local:"using-cpu-offload",title:"Using CPU offload"},{local:"combining-optimizaton-techniques",title:"Combining optimizaton techniques"}],title:"Optimizing Bark"},{local:"tips",title:"Tips"}],title:"Overview"},{local:"transformers.BarkConfig",title:"BarkConfig"},{local:"transformers.BarkProcessor",title:"BarkProcessor"},{local:"transformers.BarkModel",title:"BarkModel"},{local:"transformers.BarkSemanticModel",title:"BarkSemanticModel"},{local:"transformers.BarkCoarseModel",title:"BarkCoarseModel"},{local:"transformers.BarkFineModel",title:"BarkFineModel"},{local:"transformers.BarkCausalModel",title:"BarkCausalModel"},{local:"transformers.BarkCoarseConfig",title:"BarkCoarseConfig"},{local:"transformers.BarkFineConfig",title:"BarkFineConfig"},{local:"transformers.BarkSemanticConfig",title:"BarkSemanticConfig"}],title:"Bark"};function vl(C){return al(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Cl extends sl{constructor(h){super(),il(this,h,vl,_l,rl,{})}}export{Cl as component};
