import{s as Dr,c as td,u as od,g as nd,a as ad,o as Ar,d as sd,n as J}from"../chunks/scheduler.c90a44b2.js";import{S as Kr,i as ed,e as p,c as h,s as r,a as c,f as V,g as f,d as n,b as d,k as T,m,l as s,n as y,w as id,t as g,o as u,p as M,r as ld,h as rd,j as $,u as dd}from"../chunks/index.66c3f415.js";import{T as G}from"../chunks/Tip.4ffa6759.js";import{at as pd,au as cd,C as md,H as C}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.36aee93a.js";import{D as k}from"../chunks/Docstring.bc3eae6c.js";import{C as U}from"../chunks/CodeBlock.e8de8a4d.js";const{window:gd}=cd;function ud(w){let o,b,a,i,v,t,_,Le,x;i=new pd({props:{classNames:"text-smd"}});const He=w[4].default,j=td(He,w,w[3],null);return{c(){o=p("div"),b=p("a"),a=p("span"),h(i.$$.fragment),t=r(),j&&j.c(),this.h()},l(F){o=c(F,"DIV",{class:!0});var Z=V(o);b=c(Z,"A",{id:!0,class:!0,href:!0});var Ee=V(b);a=c(Ee,"SPAN",{});var Ja=V(a);f(i.$$.fragment,Ja),Ja.forEach(n),Ee.forEach(n),t=d(Z),j&&j.l(Z),Z.forEach(n),this.h()},h(){T(b,"id",w[0]),T(b,"class","header-link block pr-0.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"),T(b,"href",v=`#${w[0]}`),T(o,"class","relative group rounded-md")},m(F,Z){m(F,o,Z),s(o,b),s(b,a),y(i,a,null),s(o,t),j&&j.m(o,null),w[5](o),_=!0,Le||(x=id(gd,"hashchange",w[2]),Le=!0)},p(F,[Z]){(!_||Z&1)&&T(b,"id",F[0]),(!_||Z&1&&v!==(v=`#${F[0]}`))&&T(b,"href",v),j&&j.p&&(!_||Z&8)&&od(j,He,F,F[3],_?ad(He,F[3],Z,null):nd(F[3]),null)},i(F){_||(g(i.$$.fragment,F),g(j,F),_=!0)},o(F){u(i.$$.fragment,F),u(j,F),_=!1},d(F){F&&n(o),M(i),j&&j.d(F),w[5](null),Le=!1,x()}}}const Yr="bg-yellow-50 dark:bg-[#494a3d]";function hd(w,o,b){let{$$slots:a={},$$scope:i}=o,{anchor:v}=o,t;function _(){const{hash:x}=window.location,He=x.substring(1);t&&t.classList.remove(...Yr.split(" ")),He===v&&t.classList.add(...Yr.split(" "))}Ar(()=>{_()});function Le(x){sd[x?"unshift":"push"](()=>{t=x,b(1,t)})}return w.$$set=x=>{"anchor"in x&&b(0,v=x.anchor),"$$scope"in x&&b(3,i=x.$$scope)},[v,t,_,i,a,Le]}class O extends Kr{constructor(o){super(),ed(this,o,hd,ud,Dr,{anchor:0})}}function fd(w){let o,b=`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(){o=p("p"),o.innerHTML=b},l(a){o=c(a,"P",{"data-svelte-h":!0}),$(o)!=="svelte-fincs2"&&(o.innerHTML=b)},m(a,i){m(a,o,i)},p:J,d(a){a&&n(o)}}}function yd(w){let o,b="Example of masked language modeling using <code>transformers.pipelines</code>:",a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBwaXBlbGluZSUwQWZyb20lMjBvcHRpbXVtLmludGVsJTIwaW1wb3J0JTIwT1ZNb2RlbEZvck1hc2tlZExNJTBBJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIycm9iZXJ0YS1iYXNlJTIyKSUwQW1vZGVsJTIwJTNEJTIwT1ZNb2RlbEZvck1hc2tlZExNLmZyb21fcHJldHJhaW5lZCglMjJyb2JlcnRhLWJhc2UlMjIlMkMlMjBleHBvcnQlM0RUcnVlKSUwQW1hc2tfdG9rZW4lMjAlM0QlMjB0b2tlbml6ZXIubWFza190b2tlbiUwQXBpcGUlMjAlM0QlMjBwaXBlbGluZSglMjJmaWxsLW1hc2slMjIlMkMlMjBtb2RlbCUzRG1vZGVsJTJDJTIwdG9rZW5pemVyJTNEdG9rZW5pemVyKSUwQW91dHB1dHMlMjAlM0QlMjBwaXBlKCUyMlRoZSUyMGdvYWwlMjBvZiUyMGxpZmUlMjBpcyUyMiUyMCUyQiUyMG1hc2tfdG9rZW4p",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, pipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForMaskedLM

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;roberta-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForMaskedLM.from_pretrained(<span class="hljs-string">&quot;roberta-base&quot;</span>, export=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>mask_token = tokenizer.mask_token
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(<span class="hljs-string">&quot;fill-mask&quot;</span>, model=model, tokenizer=tokenizer)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = pipe(<span class="hljs-string">&quot;The goal of life is&quot;</span> + mask_token)`,wrap:!1}}),{c(){o=p("p"),o.innerHTML=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-1lv30sh"&&(o.innerHTML=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function Md(w){let o,b=`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(){o=p("p"),o.innerHTML=b},l(a){o=c(a,"P",{"data-svelte-h":!0}),$(o)!=="svelte-fincs2"&&(o.innerHTML=b)},m(a,i){m(a,o,i)},p:J,d(a){a&&n(o)}}}function bd(w){let o,b="Example of text generation:",a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFmcm9tJTIwb3B0aW11bS5pbnRlbCUyMGltcG9ydCUyME9WTW9kZWxGb3JTZXEyU2VxTE0lMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJlY2hhcmxhaXglMkZ0NS1zbWFsbC1vcGVudmlubyUyMiklMEFtb2RlbCUyMCUzRCUyME9WTW9kZWxGb3JTZXEyU2VxTE0uZnJvbV9wcmV0cmFpbmVkKCUyMmVjaGFybGFpeCUyRnQ1LXNtYWxsLW9wZW52aW5vJTIyKSUwQXRleHQlMjAlM0QlMjAlMjJIZSUyMG5ldmVyJTIwd2VudCUyMG91dCUyMHdpdGhvdXQlMjBhJTIwYm9vayUyMHVuZGVyJTIwaGlzJTIwYXJtJTJDJTIwYW5kJTIwaGUlMjBvZnRlbiUyMGNhbWUlMjBiYWNrJTIwd2l0aCUyMHR3by4lMjIlMEFpbnB1dHMlMjAlM0QlMjB0b2tlbml6ZXIodGV4dCUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBZ2VuX3Rva2VucyUyMCUzRCUyMG1vZGVsLmdlbmVyYXRlKCoqaW5wdXRzKSUwQW91dHB1dHMlMjAlM0QlMjB0b2tlbml6ZXIuYmF0Y2hfZGVjb2RlKGdlbl90b2tlbnMp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForSeq2SeqLM

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;echarlaix/t5-small-openvino&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForSeq2SeqLM.from_pretrained(<span class="hljs-string">&quot;echarlaix/t5-small-openvino&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>text = <span class="hljs-string">&quot;He never went out without a book under his arm, and he often came back with two.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(text, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>gen_tokens = model.generate(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = tokenizer.batch_decode(gen_tokens)`,wrap:!1}}),{c(){o=p("p"),o.textContent=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-1bvu0cy"&&(o.textContent=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function vd(w){let o,b="Example using <code>transformers.pipeline</code>:",a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBwaXBlbGluZSUwQWZyb20lMjBvcHRpbXVtLmludGVsJTIwaW1wb3J0JTIwT1ZNb2RlbEZvclNlcTJTZXFMTSUwQSUwQXRva2VuaXplciUyMCUzRCUyMEF1dG9Ub2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKCUyMmVjaGFybGFpeCUyRnQ1LXNtYWxsLW9wZW52aW5vJTIyKSUwQW1vZGVsJTIwJTNEJTIwT1ZNb2RlbEZvclNlcTJTZXFMTS5mcm9tX3ByZXRyYWluZWQoJTIyZWNoYXJsYWl4JTJGdDUtc21hbGwtb3BlbnZpbm8lMjIpJTBBcGlwZSUyMCUzRCUyMHBpcGVsaW5lKCUyMnRyYW5zbGF0aW9uX2VuX3RvX2ZyJTIyJTJDJTIwbW9kZWwlM0Rtb2RlbCUyQyUyMHRva2VuaXplciUzRHRva2VuaXplciklMEF0ZXh0JTIwJTNEJTIwJTIySGUlMjBuZXZlciUyMHdlbnQlMjBvdXQlMjB3aXRob3V0JTIwYSUyMGJvb2slMjB1bmRlciUyMGhpcyUyMGFybSUyQyUyMGFuZCUyMGhlJTIwb2Z0ZW4lMjBjYW1lJTIwYmFjayUyMHdpdGglMjB0d28uJTIyJTBBb3V0cHV0cyUyMCUzRCUyMHBpcGUodGV4dCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, pipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForSeq2SeqLM

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;echarlaix/t5-small-openvino&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForSeq2SeqLM.from_pretrained(<span class="hljs-string">&quot;echarlaix/t5-small-openvino&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(<span class="hljs-string">&quot;translation_en_to_fr&quot;</span>, model=model, tokenizer=tokenizer)
<span class="hljs-meta">&gt;&gt;&gt; </span>text = <span class="hljs-string">&quot;He never went out without a book under his arm, and he often came back with two.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = pipe(text)`,wrap:!1}}),{c(){o=p("p"),o.innerHTML=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-1u1xsxh"&&(o.innerHTML=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function _d(w){let o,b=`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(){o=p("p"),o.innerHTML=b},l(a){o=c(a,"P",{"data-svelte-h":!0}),$(o)!=="svelte-fincs2"&&(o.innerHTML=b)},m(a,i){m(a,o,i)},p:J,d(a){a&&n(o)}}}function $d(w){let o,b="Example of question answering using <code>transformers.pipeline</code>:",a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBwaXBlbGluZSUwQWZyb20lMjBvcHRpbXVtLmludGVsJTIwaW1wb3J0JTIwT1ZNb2RlbEZvclF1ZXN0aW9uQW5zd2VyaW5nJTBBJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyZGlzdGlsYmVydC1iYXNlLWNhc2VkLWRpc3RpbGxlZC1zcXVhZCUyMiklMEFtb2RlbCUyMCUzRCUyME9WTW9kZWxGb3JRdWVzdGlvbkFuc3dlcmluZy5mcm9tX3ByZXRyYWluZWQoJTIyZGlzdGlsYmVydC1iYXNlLWNhc2VkLWRpc3RpbGxlZC1zcXVhZCUyMiUyQyUyMGV4cG9ydCUzRFRydWUpJTBBcGlwZSUyMCUzRCUyMHBpcGVsaW5lKCUyMnF1ZXN0aW9uLWFuc3dlcmluZyUyMiUyQyUyMG1vZGVsJTNEbW9kZWwlMkMlMjB0b2tlbml6ZXIlM0R0b2tlbml6ZXIpJTBBcXVlc3Rpb24lMkMlMjB0ZXh0JTIwJTNEJTIwJTIyV2hvJTIwd2FzJTIwSmltJTIwSGVuc29uJTNGJTIyJTJDJTIwJTIySmltJTIwSGVuc29uJTIwd2FzJTIwYSUyMG5pY2UlMjBwdXBwZXQlMjIlMEFvdXRwdXRzJTIwJTNEJTIwcGlwZShxdWVzdGlvbiUyQyUyMHRleHQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, pipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForQuestionAnswering

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;distilbert-base-cased-distilled-squad&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForQuestionAnswering.from_pretrained(<span class="hljs-string">&quot;distilbert-base-cased-distilled-squad&quot;</span>, export=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(<span class="hljs-string">&quot;question-answering&quot;</span>, model=model, tokenizer=tokenizer)
<span class="hljs-meta">&gt;&gt;&gt; </span>question, text = <span class="hljs-string">&quot;Who was Jim Henson?&quot;</span>, <span class="hljs-string">&quot;Jim Henson was a nice puppet&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = pipe(question, text)`,wrap:!1}}),{c(){o=p("p"),o.innerHTML=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-1m7gyu4"&&(o.innerHTML=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function wd(w){let o,b=`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(){o=p("p"),o.innerHTML=b},l(a){o=c(a,"P",{"data-svelte-h":!0}),$(o)!=="svelte-fincs2"&&(o.innerHTML=b)},m(a,i){m(a,o,i)},p:J,d(a){a&&n(o)}}}function Td(w){let o,b="Example of sequence classification using <code>transformers.pipeline</code>:",a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBwaXBlbGluZSUwQWZyb20lMjBvcHRpbXVtLmludGVsJTIwaW1wb3J0JTIwT1ZNb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24lMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJkaXN0aWxiZXJ0LWJhc2UtdW5jYXNlZC1maW5ldHVuZWQtc3N0LTItZW5nbGlzaCUyMiklMEFtb2RlbCUyMCUzRCUyME9WTW9kZWxGb3JTZXF1ZW5jZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJkaXN0aWxiZXJ0LWJhc2UtdW5jYXNlZC1maW5ldHVuZWQtc3N0LTItZW5nbGlzaCUyMiUyQyUyMGV4cG9ydCUzRFRydWUpJTBBcGlwZSUyMCUzRCUyMHBpcGVsaW5lKCUyMnRleHQtY2xhc3NpZmljYXRpb24lMjIlMkMlMjBtb2RlbCUzRG1vZGVsJTJDJTIwdG9rZW5pemVyJTNEdG9rZW5pemVyKSUwQW91dHB1dHMlMjAlM0QlMjBwaXBlKCUyMkhlbGxvJTJDJTIwbXklMjBkb2clMjBpcyUyMGN1dGUlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, pipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForSequenceClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;distilbert-base-uncased-finetuned-sst-2-english&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;distilbert-base-uncased-finetuned-sst-2-english&quot;</span>, export=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(<span class="hljs-string">&quot;text-classification&quot;</span>, model=model, tokenizer=tokenizer)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = pipe(<span class="hljs-string">&quot;Hello, my dog is cute&quot;</span>)`,wrap:!1}}),{c(){o=p("p"),o.innerHTML=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-o0vbix"&&(o.innerHTML=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function Vd(w){let o,b=`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(){o=p("p"),o.innerHTML=b},l(a){o=c(a,"P",{"data-svelte-h":!0}),$(o)!=="svelte-fincs2"&&(o.innerHTML=b)},m(a,i){m(a,o,i)},p:J,d(a){a&&n(o)}}}function kd(w){let o,b="Example of token classification using <code>transformers.pipelines</code>:",a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBwaXBlbGluZSUwQWZyb20lMjBvcHRpbXVtLmludGVsJTIwaW1wb3J0JTIwT1ZNb2RlbEZvclRva2VuQ2xhc3NpZmljYXRpb24lMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJkc2xpbSUyRmJlcnQtYmFzZS1ORVIlMjIpJTBBbW9kZWwlMjAlM0QlMjBPVk1vZGVsRm9yVG9rZW5DbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyZHNsaW0lMkZiZXJ0LWJhc2UtTkVSJTIyJTJDJTIwZXhwb3J0JTNEVHJ1ZSklMEFwaXBlJTIwJTNEJTIwcGlwZWxpbmUoJTIydG9rZW4tY2xhc3NpZmljYXRpb24lMjIlMkMlMjBtb2RlbCUzRG1vZGVsJTJDJTIwdG9rZW5pemVyJTNEdG9rZW5pemVyKSUwQW91dHB1dHMlMjAlM0QlMjBwaXBlKCUyMk15JTIwTmFtZSUyMGlzJTIwUGV0ZXIlMjBhbmQlMjBJJTIwbGl2ZSUyMGluJTIwTmV3JTIwWW9yay4lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, pipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForTokenClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;dslim/bert-base-NER&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForTokenClassification.from_pretrained(<span class="hljs-string">&quot;dslim/bert-base-NER&quot;</span>, export=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(<span class="hljs-string">&quot;token-classification&quot;</span>, model=model, tokenizer=tokenizer)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = pipe(<span class="hljs-string">&quot;My Name is Peter and I live in New York.&quot;</span>)`,wrap:!1}}),{c(){o=p("p"),o.innerHTML=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-6ve2pe"&&(o.innerHTML=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function Jd(w){let o,b=`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(){o=p("p"),o.innerHTML=b},l(a){o=c(a,"P",{"data-svelte-h":!0}),$(o)!=="svelte-fincs2"&&(o.innerHTML=b)},m(a,i){m(a,o,i)},p:J,d(a){a&&n(o)}}}function Cd(w){let o,b="Example of audio classification using <code>transformers.pipelines</code>:",a,i,v;return i=new U({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9GZWF0dXJlRXh0cmFjdG9yJTJDJTIwcGlwZWxpbmUlMEFmcm9tJTIwb3B0aW11bS5pbnRlbCUyMGltcG9ydCUyME9WTW9kZWxGb3JBdWRpb0NsYXNzaWZpY2F0aW9uJTBBJTBBcHJlcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ZlYXR1cmVFeHRyYWN0b3IuZnJvbV9wcmV0cmFpbmVkKCUyMnN1cGVyYiUyRmh1YmVydC1iYXNlLXN1cGVyYi1lciUyMiklMEFtb2RlbCUyMCUzRCUyME9WTW9kZWxGb3JBdWRpb0NsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJzdXBlcmIlMkZodWJlcnQtYmFzZS1zdXBlcmItZXIlMjIlMkMlMjBleHBvcnQlM0RUcnVlKSUwQXBpcGUlMjAlM0QlMjBwaXBlbGluZSglMjJhdWRpby1jbGFzc2lmaWNhdGlvbiUyMiUyQyUyMG1vZGVsJTNEbW9kZWwlMkMlMjBmZWF0dXJlX2V4dHJhY3RvciUzRHByZXByb2Nlc3NvciklMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMnN1cGVyYiUyMiUyQyUyMCUyMmtzJTIyJTJDJTIwc3BsaXQlM0QlMjJ0ZXN0JTIyKSUwQWF1ZGlvX2ZpbGUlMjAlM0QlMjBkYXRhc2V0JTVCMyU1RCU1QiUyMmF1ZGlvJTIyJTVEJTVCJTIyYXJyYXklMjIlNUQlMEFvdXRwdXRzJTIwJTNEJTIwcGlwZShhdWRpb19maWxlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoFeatureExtractor, pipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForAudioClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>preprocessor = AutoFeatureExtractor.from_pretrained(<span class="hljs-string">&quot;superb/hubert-base-superb-er&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForAudioClassification.from_pretrained(<span class="hljs-string">&quot;superb/hubert-base-superb-er&quot;</span>, export=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(<span class="hljs-string">&quot;audio-classification&quot;</span>, model=model, feature_extractor=preprocessor)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;superb&quot;</span>, <span class="hljs-string">&quot;ks&quot;</span>, split=<span class="hljs-string">&quot;test&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_file = dataset[<span class="hljs-number">3</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = pipe(audio_file)`,wrap:!1}}),{c(){o=p("p"),o.innerHTML=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-1sgckdf"&&(o.innerHTML=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function jd(w){let o,b=`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(){o=p("p"),o.innerHTML=b},l(a){o=c(a,"P",{"data-svelte-h":!0}),$(o)!=="svelte-fincs2"&&(o.innerHTML=b)},m(a,i){m(a,o,i)},p:J,d(a){a&&n(o)}}}function Fd(w){let o,b="Example of audio frame classification:",a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9GZWF0dXJlRXh0cmFjdG9yJTBBZnJvbSUyMG9wdGltdW0uaW50ZWwlMjBpbXBvcnQlMjBPVk1vZGVsRm9yQXVkaW9GcmFtZUNsYXNzaWZpY2F0aW9uJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBaW1wb3J0JTIwdG9yY2glMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmhmLWludGVybmFsLXRlc3RpbmclMkZsaWJyaXNwZWVjaF9hc3JfZGVtbyUyMiUyQyUyMCUyMmNsZWFuJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRhdGFzZXQlMjAlM0QlMjBkYXRhc2V0LnNvcnQoJTIyaWQlMjIpJTBBc2FtcGxpbmdfcmF0ZSUyMCUzRCUyMGRhdGFzZXQuZmVhdHVyZXMlNUIlMjJhdWRpbyUyMiU1RC5zYW1wbGluZ19yYXRlJTBBJTBBZmVhdHVyZV9leHRyYWN0b3IlMjAlM0QlMjBBdXRvRmVhdHVyZUV4dHJhY3Rvci5mcm9tX3ByZXRyYWluZWQoJTIyYW50b24tbCUyRndhdjJ2ZWMyLWJhc2Utc3VwZXJiLXNkJTIyKSUwQW1vZGVsJTIwJTNEJTIwJTIwT1ZNb2RlbEZvckF1ZGlvRnJhbWVDbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyYW50b24tbCUyRndhdjJ2ZWMyLWJhc2Utc3VwZXJiLXNkJTIyJTJDJTIwZXhwb3J0JTNEVHJ1ZSklMEElMEFpbnB1dHMlMjAlM0QlMjBmZWF0dXJlX2V4dHJhY3RvcihkYXRhc2V0JTVCMCU1RCU1QiUyMmF1ZGlvJTIyJTVEJTVCJTIyYXJyYXklMjIlNUQlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyJTJDJTIwc2FtcGxpbmdfcmF0ZSUzRHNhbXBsaW5nX3JhdGUpJTBBJTIwJTIwJTIwbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cyUwQSUwQXByb2JhYmlsaXRpZXMlMjAlM0QlMjB0b3JjaC5zaWdtb2lkKHRvcmNoLmFzX3RlbnNvcihsb2dpdHMpJTVCMCU1RCklMEFsYWJlbHMlMjAlM0QlMjAocHJvYmFiaWxpdGllcyUyMCUzRSUyMDAuNSkubG9uZygpJTBBbGFiZWxzJTVCMCU1RC50b2xpc3QoKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoFeatureExtractor
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForAudioFrameClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/librispeech_asr_demo&quot;</span>, <span class="hljs-string">&quot;clean&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = dataset.sort(<span class="hljs-string">&quot;id&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>sampling_rate = dataset.features[<span class="hljs-string">&quot;audio&quot;</span>].sampling_rate

<span class="hljs-meta">&gt;&gt;&gt; </span>feature_extractor = AutoFeatureExtractor.from_pretrained(<span class="hljs-string">&quot;anton-l/wav2vec2-base-superb-sd&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model =  OVModelForAudioFrameClassification.from_pretrained(<span class="hljs-string">&quot;anton-l/wav2vec2-base-superb-sd&quot;</span>, export=<span class="hljs-literal">True</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = feature_extractor(dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>], return_tensors=<span class="hljs-string">&quot;pt&quot;</span>, sampling_rate=sampling_rate)
<span class="hljs-meta">&gt;&gt;&gt; </span>   logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span>probabilities = torch.sigmoid(torch.as_tensor(logits)[<span class="hljs-number">0</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>labels = (probabilities &gt; <span class="hljs-number">0.5</span>).long()
<span class="hljs-meta">&gt;&gt;&gt; </span>labels[<span class="hljs-number">0</span>].tolist()`,wrap:!1}}),{c(){o=p("p"),o.textContent=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-12boqdm"&&(o.textContent=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function xd(w){let o,b=`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(){o=p("p"),o.innerHTML=b},l(a){o=c(a,"P",{"data-svelte-h":!0}),$(o)!=="svelte-fincs2"&&(o.innerHTML=b)},m(a,i){m(a,o,i)},p:J,d(a){a&&n(o)}}}function Od(w){let o,b="Example of CTC:",a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9GZWF0dXJlRXh0cmFjdG9yJTBBZnJvbSUyMG9wdGltdW0uaW50ZWwlMjBpbXBvcnQlMjBPVk1vZGVsRm9yQ1RDJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJoZi1pbnRlcm5hbC10ZXN0aW5nJTJGbGlicmlzcGVlY2hfYXNyX2RlbW8lMjIlMkMlMjAlMjJjbGVhbiUyMiUyQyUyMHNwbGl0JTNEJTIydmFsaWRhdGlvbiUyMiklMEFkYXRhc2V0JTIwJTNEJTIwZGF0YXNldC5zb3J0KCUyMmlkJTIyKSUwQXNhbXBsaW5nX3JhdGUlMjAlM0QlMjBkYXRhc2V0LmZlYXR1cmVzJTVCJTIyYXVkaW8lMjIlNUQuc2FtcGxpbmdfcmF0ZSUwQSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9GZWF0dXJlRXh0cmFjdG9yLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRmh1YmVydC1sYXJnZS1sczk2MC1mdCUyMiklMEFtb2RlbCUyMCUzRCUyME9WTW9kZWxGb3JDVEMuZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGaHViZXJ0LWxhcmdlLWxzOTYwLWZ0JTIyJTJDJTIwZXhwb3J0JTNEVHJ1ZSklMEElMEElMjMlMjBhdWRpbyUyMGZpbGUlMjBpcyUyMGRlY29kZWQlMjBvbiUyMHRoZSUyMGZseSUwQWlucHV0cyUyMCUzRCUyMHByb2Nlc3NvcihkYXRhc2V0JTVCMCU1RCU1QiUyMmF1ZGlvJTIyJTVEJTVCJTIyYXJyYXklMjIlNUQlMkMlMjBzYW1wbGluZ19yYXRlJTNEc2FtcGxpbmdfcmF0ZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIybnAlMjIpJTBBbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cyUwQXByZWRpY3RlZF9pZHMlMjAlM0QlMjBucC5hcmdtYXgobG9naXRzJTJDJTIwYXhpcyUzRC0xKSUwQSUwQXRyYW5zY3JpcHRpb24lMjAlM0QlMjBwcm9jZXNzb3IuYmF0Y2hfZGVjb2RlKHByZWRpY3RlZF9pZHMp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoFeatureExtractor
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForCTC
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/librispeech_asr_demo&quot;</span>, <span class="hljs-string">&quot;clean&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = dataset.sort(<span class="hljs-string">&quot;id&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>sampling_rate = dataset.features[<span class="hljs-string">&quot;audio&quot;</span>].sampling_rate

<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoFeatureExtractor.from_pretrained(<span class="hljs-string">&quot;facebook/hubert-large-ls960-ft&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForCTC.from_pretrained(<span class="hljs-string">&quot;facebook/hubert-large-ls960-ft&quot;</span>, export=<span class="hljs-literal">True</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># audio file is decoded on the fly</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>], sampling_rate=sampling_rate, return_tensors=<span class="hljs-string">&quot;np&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = model(**inputs).logits
<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_ids = np.argmax(logits, axis=-<span class="hljs-number">1</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>transcription = processor.batch_decode(predicted_ids)`,wrap:!1}}),{c(){o=p("p"),o.textContent=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-mdyxnj"&&(o.textContent=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function Ud(w){let o,b=`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(){o=p("p"),o.innerHTML=b},l(a){o=c(a,"P",{"data-svelte-h":!0}),$(o)!=="svelte-fincs2"&&(o.innerHTML=b)},m(a,i){m(a,o,i)},p:J,d(a){a&&n(o)}}}function Zd(w){let o,b="Example of Audio XVector:",a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9GZWF0dXJlRXh0cmFjdG9yJTBBZnJvbSUyMG9wdGltdW0uaW50ZWwlMjBpbXBvcnQlMjBPVk1vZGVsRm9yQXVkaW9YVmVjdG9yJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBaW1wb3J0JTIwdG9yY2glMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmhmLWludGVybmFsLXRlc3RpbmclMkZsaWJyaXNwZWVjaF9hc3JfZGVtbyUyMiUyQyUyMCUyMmNsZWFuJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRhdGFzZXQlMjAlM0QlMjBkYXRhc2V0LnNvcnQoJTIyaWQlMjIpJTBBc2FtcGxpbmdfcmF0ZSUyMCUzRCUyMGRhdGFzZXQuZmVhdHVyZXMlNUIlMjJhdWRpbyUyMiU1RC5zYW1wbGluZ19yYXRlJTBBJTBBZmVhdHVyZV9leHRyYWN0b3IlMjAlM0QlMjBBdXRvRmVhdHVyZUV4dHJhY3Rvci5mcm9tX3ByZXRyYWluZWQoJTIyYW50b24tbCUyRndhdjJ2ZWMyLWJhc2Utc3VwZXJiLXN2JTIyKSUwQW1vZGVsJTIwJTNEJTIwT1ZNb2RlbEZvckF1ZGlvWFZlY3Rvci5mcm9tX3ByZXRyYWluZWQoJTIyYW50b24tbCUyRndhdjJ2ZWMyLWJhc2Utc3VwZXJiLXN2JTIyJTJDJTIwZXhwb3J0JTNEVHJ1ZSklMEElMEElMjMlMjBhdWRpbyUyMGZpbGUlMjBpcyUyMGRlY29kZWQlMjBvbiUyMHRoZSUyMGZseSUwQWlucHV0cyUyMCUzRCUyMGZlYXR1cmVfZXh0cmFjdG9yKCUwQSUyMCUyMCUyMCUyMCU1QmQlNUIlMjJhcnJheSUyMiU1RCUyMGZvciUyMGQlMjBpbiUyMGRhdGFzZXQlNUIlM0EyJTVEJTVCJTIyYXVkaW8lMjIlNUQlNUQlMkMlMjBzYW1wbGluZ19yYXRlJTNEc2FtcGxpbmdfcmF0ZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIlMkMlMjBwYWRkaW5nJTNEVHJ1ZSUwQSklMEElMjAlMjAlMjAlMjBlbWJlZGRpbmdzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmVtYmVkZGluZ3MlMEElMEFlbWJlZGRpbmdzJTIwJTNEJTIwdG9yY2gubm4uZnVuY3Rpb25hbC5ub3JtYWxpemUoZW1iZWRkaW5ncyUyQyUyMGRpbSUzRC0xKS5jcHUoKSUwQSUwQWNvc2luZV9zaW0lMjAlM0QlMjB0b3JjaC5ubi5Db3NpbmVTaW1pbGFyaXR5KGRpbSUzRC0xKSUwQXNpbWlsYXJpdHklMjAlM0QlMjBjb3NpbmVfc2ltKGVtYmVkZGluZ3MlNUIwJTVEJTJDJTIwZW1iZWRkaW5ncyU1QjElNUQpJTBBdGhyZXNob2xkJTIwJTNEJTIwMC43JTBBaWYlMjBzaW1pbGFyaXR5JTIwJTNDJTIwdGhyZXNob2xkJTNBJTBBJTIwJTIwJTIwJTIwcHJpbnQoJTIyU3BlYWtlcnMlMjBhcmUlMjBub3QlMjB0aGUlMjBzYW1lISUyMiklMEFyb3VuZChzaW1pbGFyaXR5Lml0ZW0oKSUyQyUyMDIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoFeatureExtractor
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForAudioXVector
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/librispeech_asr_demo&quot;</span>, <span class="hljs-string">&quot;clean&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = dataset.sort(<span class="hljs-string">&quot;id&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>sampling_rate = dataset.features[<span class="hljs-string">&quot;audio&quot;</span>].sampling_rate

<span class="hljs-meta">&gt;&gt;&gt; </span>feature_extractor = AutoFeatureExtractor.from_pretrained(<span class="hljs-string">&quot;anton-l/wav2vec2-base-superb-sv&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForAudioXVector.from_pretrained(<span class="hljs-string">&quot;anton-l/wav2vec2-base-superb-sv&quot;</span>, export=<span class="hljs-literal">True</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># audio file is decoded on the fly</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = feature_extractor(
<span class="hljs-meta">... </span>    [d[<span class="hljs-string">&quot;array&quot;</span>] <span class="hljs-keyword">for</span> d <span class="hljs-keyword">in</span> dataset[:<span class="hljs-number">2</span>][<span class="hljs-string">&quot;audio&quot;</span>]], sampling_rate=sampling_rate, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>, padding=<span class="hljs-literal">True</span>
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>    embeddings = model(**inputs).embeddings

<span class="hljs-meta">&gt;&gt;&gt; </span>embeddings = torch.nn.functional.normalize(embeddings, dim=-<span class="hljs-number">1</span>).cpu()

<span class="hljs-meta">&gt;&gt;&gt; </span>cosine_sim = torch.nn.CosineSimilarity(dim=-<span class="hljs-number">1</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>similarity = cosine_sim(embeddings[<span class="hljs-number">0</span>], embeddings[<span class="hljs-number">1</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>threshold = <span class="hljs-number">0.7</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">if</span> similarity &lt; threshold:
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;Speakers are not the same!&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">round</span>(similarity.item(), <span class="hljs-number">2</span>)`,wrap:!1}}),{c(){o=p("p"),o.textContent=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-1kzdm5c"&&(o.textContent=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function Id(w){let o,b=`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(){o=p("p"),o.innerHTML=b},l(a){o=c(a,"P",{"data-svelte-h":!0}),$(o)!=="svelte-fincs2"&&(o.innerHTML=b)},m(a,i){m(a,o,i)},p:J,d(a){a&&n(o)}}}function Wd(w){let o,b="Example of text generation:",a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMEFmcm9tJTIwb3B0aW11bS5pbnRlbCUyMGltcG9ydCUyME9WTW9kZWxGb3JTcGVlY2hTZXEyU2VxJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBcHJvY2Vzc29yJTIwJTNEJTIwQXV0b1Byb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyb3BlbmFpJTJGd2hpc3Blci10aW55JTIyKSUwQW1vZGVsJTIwJTNEJTIwT1ZNb2RlbEZvclNwZWVjaFNlcTJTZXEuZnJvbV9wcmV0cmFpbmVkKCUyMm9wZW5haSUyRndoaXNwZXItdGlueSUyMiklMEElMEFkcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJoZi1pbnRlcm5hbC10ZXN0aW5nJTJGbGlicmlzcGVlY2hfYXNyX2R1bW15JTIyJTJDJTIwJTIyY2xlYW4lMjIlMkMlMjBzcGxpdCUzRCUyMnZhbGlkYXRpb24lMjIpJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yLmZlYXR1cmVfZXh0cmFjdG9yKGRzJTVCMCU1RCU1QiUyMmF1ZGlvJTIyJTVEJTVCJTIyYXJyYXklMjIlNUQlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQWdlbl90b2tlbnMlMjAlM0QlMjBtb2RlbC5nZW5lcmF0ZShpbnB1dHMlM0RpbnB1dHMuaW5wdXRfZmVhdHVyZXMpJTBBb3V0cHV0cyUyMCUzRCUyMHByb2Nlc3Nvci50b2tlbml6ZXIuYmF0Y2hfZGVjb2RlKGdlbl90b2tlbnMp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForSpeechSeq2Seq
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;openai/whisper-tiny&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForSpeechSeq2Seq.from_pretrained(<span class="hljs-string">&quot;openai/whisper-tiny&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/librispeech_asr_dummy&quot;</span>, <span class="hljs-string">&quot;clean&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor.feature_extractor(ds[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>], return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>gen_tokens = model.generate(inputs=inputs.input_features)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = processor.tokenizer.batch_decode(gen_tokens)`,wrap:!1}}),{c(){o=p("p"),o.textContent=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-1bvu0cy"&&(o.textContent=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function Nd(w){let o,b="Example using <code>transformers.pipeline</code>:",a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMkMlMjBwaXBlbGluZSUwQWZyb20lMjBvcHRpbXVtLmludGVsJTIwaW1wb3J0JTIwT1ZNb2RlbEZvclNwZWVjaFNlcTJTZXElMEFmcm9tJTIwZGF0YXNldHMlMjBpbXBvcnQlMjBsb2FkX2RhdGFzZXQlMEElMEFwcm9jZXNzb3IlMjAlM0QlMjBBdXRvUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJvcGVuYWklMkZ3aGlzcGVyLXRpbnklMjIpJTBBbW9kZWwlMjAlM0QlMjBPVk1vZGVsRm9yU3BlZWNoU2VxMlNlcS5mcm9tX3ByZXRyYWluZWQoJTIyb3BlbmFpJTJGd2hpc3Blci10aW55JTIyKSUwQXNwZWVjaF9yZWNvZ25pdGlvbiUyMCUzRCUyMHBpcGVsaW5lKCUyMmF1dG9tYXRpYy1zcGVlY2gtcmVjb2duaXRpb24lMjIlMkMlMjBtb2RlbCUzRG1vZGVsJTJDJTIwdG9rZW5pemVyJTNEcHJvY2Vzc29yLnRva2VuaXplciUyQyUyMGZlYXR1cmVfZXh0cmFjdG9yJTNEcHJvY2Vzc29yLmZlYXR1cmVfZXh0cmFjdG9yKSUwQSUwQWRzJTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmhmLWludGVybmFsLXRlc3RpbmclMkZsaWJyaXNwZWVjaF9hc3JfZHVtbXklMjIlMkMlMjAlMjJjbGVhbiUyMiUyQyUyMHNwbGl0JTNEJTIydmFsaWRhdGlvbiUyMiklMEFwcmVkJTIwJTNEJTIwc3BlZWNoX3JlY29nbml0aW9uKGRzJTVCMCU1RCU1QiUyMmF1ZGlvJTIyJTVEJTVCJTIyYXJyYXklMjIlNUQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, pipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForSpeechSeq2Seq
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;openai/whisper-tiny&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForSpeechSeq2Seq.from_pretrained(<span class="hljs-string">&quot;openai/whisper-tiny&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>speech_recognition = pipeline(<span class="hljs-string">&quot;automatic-speech-recognition&quot;</span>, model=model, tokenizer=processor.tokenizer, feature_extractor=processor.feature_extractor)

<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/librispeech_asr_dummy&quot;</span>, <span class="hljs-string">&quot;clean&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pred = speech_recognition(ds[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>])`,wrap:!1}}),{c(){o=p("p"),o.innerHTML=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-1u1xsxh"&&(o.innerHTML=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function qd(w){let o,b=`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(){o=p("p"),o.innerHTML=b},l(a){o=c(a,"P",{"data-svelte-h":!0}),$(o)!=="svelte-fincs2"&&(o.innerHTML=b)},m(a,i){m(a,o,i)},p:J,d(a){a&&n(o)}}}function Gd(w){let o,b="Example of image classification using <code>transformers.pipelines</code>:",a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9GZWF0dXJlRXh0cmFjdG9yJTJDJTIwcGlwZWxpbmUlMEFmcm9tJTIwb3B0aW11bS5pbnRlbCUyMGltcG9ydCUyME9WTW9kZWxGb3JJbWFnZUNsYXNzaWZpY2F0aW9uJTBBJTBBcHJlcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ZlYXR1cmVFeHRyYWN0b3IuZnJvbV9wcmV0cmFpbmVkKCUyMmdvb2dsZSUyRnZpdC1iYXNlLXBhdGNoMTYtMjI0JTIyKSUwQW1vZGVsJTIwJTNEJTIwT1ZNb2RlbEZvckltYWdlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMmdvb2dsZSUyRnZpdC1iYXNlLXBhdGNoMTYtMjI0JTIyJTJDJTIwZXhwb3J0JTNEVHJ1ZSklMEFtb2RlbC5yZXNoYXBlKGJhdGNoX3NpemUlM0QxJTJDJTIwc2VxdWVuY2VfbGVuZ3RoJTNEMyUyQyUyMGhlaWdodCUzRDIyNCUyQyUyMHdpZHRoJTNEMjI0KSUwQXBpcGUlMjAlM0QlMjBwaXBlbGluZSglMjJpbWFnZS1jbGFzc2lmaWNhdGlvbiUyMiUyQyUyMG1vZGVsJTNEbW9kZWwlMkMlMjBmZWF0dXJlX2V4dHJhY3RvciUzRHByZXByb2Nlc3NvciklMEF1cmwlMjAlM0QlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTBBb3V0cHV0cyUyMCUzRCUyMHBpcGUodXJsKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoFeatureExtractor, pipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForImageClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>preprocessor = AutoFeatureExtractor.from_pretrained(<span class="hljs-string">&quot;google/vit-base-patch16-224&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForImageClassification.from_pretrained(<span class="hljs-string">&quot;google/vit-base-patch16-224&quot;</span>, export=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model.reshape(batch_size=<span class="hljs-number">1</span>, sequence_length=<span class="hljs-number">3</span>, height=<span class="hljs-number">224</span>, width=<span class="hljs-number">224</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(<span class="hljs-string">&quot;image-classification&quot;</span>, model=model, feature_extractor=preprocessor)
<span class="hljs-meta">&gt;&gt;&gt; </span>url = <span class="hljs-string">&quot;http://images.cocodataset.org/val2017/000000039769.jpg&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = pipe(url)`,wrap:!1}}),{c(){o=p("p"),o.innerHTML=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-1w9p9ki"&&(o.innerHTML=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function Xd(w){let o,b='models hosted on <a href="https://huggingface.co/timm" rel="nofollow">HuggingFaceHub</a>. Example:',a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBZnJvbSUyMG9wdGltdW0uaW50ZWwub3BlbnZpbm8ubW9kZWxpbmdfdGltbSUyMGltcG9ydCUyMFRpbW1JbWFnZVByb2Nlc3NvciUwQWZyb20lMjBvcHRpbXVtLmludGVsJTIwaW1wb3J0JTIwT1ZNb2RlbEZvckltYWdlQ2xhc3NpZmljYXRpb24lMEElMEFtb2RlbF9pZCUyMCUzRCUyMCUyMnRpbW0lMkZ2aXRfdGlueV9wYXRjaDE2XzIyNC5hdWdyZWdfaW4yMWslMjIlMEFwcmVwcm9jZXNzb3IlMjAlM0QlMjBUaW1tSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKG1vZGVsX2lkKSUwQW1vZGVsJTIwJTNEJTIwT1ZNb2RlbEZvckltYWdlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKG1vZGVsX2lkJTJDJTIwZXhwb3J0JTNEVHJ1ZSklMEFwaXBlJTIwJTNEJTIwcGlwZWxpbmUoJTIyaW1hZ2UtY2xhc3NpZmljYXRpb24lMjIlMkMlMjBtb2RlbCUzRG1vZGVsJTJDJTIwZmVhdHVyZV9leHRyYWN0b3IlM0RwcmVwcm9jZXNzb3IpJTBBdXJsJTIwJTNEJTIwJTIyaHR0cCUzQSUyRiUyRmltYWdlcy5jb2NvZGF0YXNldC5vcmclMkZ2YWwyMDE3JTJGMDAwMDAwMDM5NzY5LmpwZyUyMiUwQW91dHB1dHMlMjAlM0QlMjBwaXBlKHVybCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel.openvino.modeling_timm <span class="hljs-keyword">import</span> TimmImageProcessor
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForImageClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>model_id = <span class="hljs-string">&quot;timm/vit_tiny_patch16_224.augreg_in21k&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>preprocessor = TimmImageProcessor.from_pretrained(model_id)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForImageClassification.from_pretrained(model_id, export=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(<span class="hljs-string">&quot;image-classification&quot;</span>, model=model, feature_extractor=preprocessor)
<span class="hljs-meta">&gt;&gt;&gt; </span>url = <span class="hljs-string">&quot;http://images.cocodataset.org/val2017/000000039769.jpg&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = pipe(url)`,wrap:!1}}),{c(){o=p("p"),o.innerHTML=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-1b3qe4z"&&(o.innerHTML=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function zd(w){let o,b=`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(){o=p("p"),o.innerHTML=b},l(a){o=c(a,"P",{"data-svelte-h":!0}),$(o)!=="svelte-fincs2"&&(o.innerHTML=b)},m(a,i){m(a,o,i)},p:J,d(a){a&&n(o)}}}function Rd(w){let o,b="Example of text generation:",a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMkMlMjBBdXRvVG9rZW5pemVyJTBBZnJvbSUyMG9wdGltdW0uaW50ZWwlMjBpbXBvcnQlMjBPVk1vZGVsRm9yVmlzaW9uMlNlcSUwQWZyb20lMjBQSUwlMjBpbXBvcnQlMjBJbWFnZSUwQWltcG9ydCUyMHJlcXVlc3RzJTBBJTBBJTBBcHJvY2Vzc29yJTIwJTNEJTIwQXV0b1Byb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIybWljcm9zb2Z0JTJGdHJvY3Itc21hbGwtaGFuZHdyaXR0ZW4lMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIybWljcm9zb2Z0JTJGdHJvY3Itc21hbGwtaGFuZHdyaXR0ZW4lMjIpJTBBbW9kZWwlMjAlM0QlMjBPVk1vZGVsRm9yVmlzaW9uMlNlcS5mcm9tX3ByZXRyYWluZWQoJTIybWljcm9zb2Z0JTJGdHJvY3Itc21hbGwtaGFuZHdyaXR0ZW4lMjIlMkMlMjBleHBvcnQlM0RUcnVlKSUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHBzJTNBJTJGJTJGZmtpLnRpYy5oZWlhLWZyLmNoJTJGc3RhdGljJTJGaW1nJTJGYTAxLTEyMi0wMi0wMC5qcGclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEFpbnB1dHMlMjAlM0QlMjBwcm9jZXNzb3IoaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQWdlbl90b2tlbnMlMjAlM0QlMjBtb2RlbC5nZW5lcmF0ZSgqKmlucHV0cyklMEFvdXRwdXRzJTIwJTNEJTIwdG9rZW5pemVyLmJhdGNoX2RlY29kZShnZW5fdG9rZW5zJTJDJTIwc2tpcF9zcGVjaWFsX3Rva2VucyUzRFRydWUpJTBB",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, AutoTokenizer
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForVision2Seq
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> requests


<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;microsoft/trocr-small-handwritten&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;microsoft/trocr-small-handwritten&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForVision2Seq.from_pretrained(<span class="hljs-string">&quot;microsoft/trocr-small-handwritten&quot;</span>, export=<span class="hljs-literal">True</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>url = <span class="hljs-string">&quot;https://fki.tic.heia-fr.ch/static/img/a01-122-02-00.jpg&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = Image.<span class="hljs-built_in">open</span>(requests.get(url, stream=<span class="hljs-literal">True</span>).raw)
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(image, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>gen_tokens = model.generate(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = tokenizer.batch_decode(gen_tokens, skip_special_tokens=<span class="hljs-literal">True</span>)
`,wrap:!1}}),{c(){o=p("p"),o.textContent=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-1bvu0cy"&&(o.textContent=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function Bd(w){let o,b="Example using <code>transformers.pipeline</code>:",a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMkMlMjBBdXRvVG9rZW5pemVyJTJDJTIwcGlwZWxpbmUlMEFmcm9tJTIwb3B0aW11bS5pbnRlbCUyMGltcG9ydCUyME9WTW9kZWxGb3JWaXNpb24yU2VxJTBBZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEElMEElMEFwcm9jZXNzb3IlMjAlM0QlMjBBdXRvUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJtaWNyb3NvZnQlMkZ0cm9jci1zbWFsbC1oYW5kd3JpdHRlbiUyMiklMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJtaWNyb3NvZnQlMkZ0cm9jci1zbWFsbC1oYW5kd3JpdHRlbiUyMiklMEFtb2RlbCUyMCUzRCUyME9WTW9kZWxGb3JWaXNpb24yU2VxLmZyb21fcHJldHJhaW5lZCglMjJtaWNyb3NvZnQlMkZ0cm9jci1zbWFsbC1oYW5kd3JpdHRlbiUyMiUyQyUyMGV4cG9ydCUzRFRydWUpJTBBJTBBdXJsJTIwJTNEJTIwJTIyaHR0cHMlM0ElMkYlMkZma2kudGljLmhlaWEtZnIuY2glMkZzdGF0aWMlMkZpbWclMkZhMDEtMTIyLTAyLTAwLmpwZyUyMiUwQWltYWdlJTIwJTNEJTIwSW1hZ2Uub3BlbihyZXF1ZXN0cy5nZXQodXJsJTJDJTIwc3RyZWFtJTNEVHJ1ZSkucmF3KSUwQSUwQWltYWdlX3RvX3RleHQlMjAlM0QlMjBwaXBlbGluZSglMjJpbWFnZS10by10ZXh0JTIyJTJDJTIwbW9kZWwlM0Rtb2RlbCUyQyUyMHRva2VuaXplciUzRHRva2VuaXplciUyQyUyMGZlYXR1cmVfZXh0cmFjdG9yJTNEcHJvY2Vzc29yJTJDJTIwaW1hZ2VfcHJvY2Vzc29yJTNEcHJvY2Vzc29yKSUwQXByZWQlMjAlM0QlMjBpbWFnZV90b190ZXh0KGltYWdlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, AutoTokenizer, pipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForVision2Seq
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> requests


<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;microsoft/trocr-small-handwritten&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;microsoft/trocr-small-handwritten&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForVision2Seq.from_pretrained(<span class="hljs-string">&quot;microsoft/trocr-small-handwritten&quot;</span>, export=<span class="hljs-literal">True</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>url = <span class="hljs-string">&quot;https://fki.tic.heia-fr.ch/static/img/a01-122-02-00.jpg&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = Image.<span class="hljs-built_in">open</span>(requests.get(url, stream=<span class="hljs-literal">True</span>).raw)

<span class="hljs-meta">&gt;&gt;&gt; </span>image_to_text = pipeline(<span class="hljs-string">&quot;image-to-text&quot;</span>, model=model, tokenizer=tokenizer, feature_extractor=processor, image_processor=processor)
<span class="hljs-meta">&gt;&gt;&gt; </span>pred = image_to_text(image)`,wrap:!1}}),{c(){o=p("p"),o.innerHTML=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-1u1xsxh"&&(o.innerHTML=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function Sd(w){let o,b=`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(){o=p("p"),o.innerHTML=b},l(a){o=c(a,"P",{"data-svelte-h":!0}),$(o)!=="svelte-fincs2"&&(o.innerHTML=b)},m(a,i){m(a,o,i)},p:J,d(a){a&&n(o)}}}function Ld(w){let o,b="Example of pix2struct:",a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMEFmcm9tJTIwb3B0aW11bS5pbnRlbCUyMGltcG9ydCUyME9WTW9kZWxGb3JQaXgyU3RydWN0JTBBZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEElMEFwcm9jZXNzb3IlMjAlM0QlMjBBdXRvUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJnb29nbGUlMkZwaXgyc3RydWN0LWFpMmQtYmFzZSUyMiklMEFtb2RlbCUyMCUzRCUyME9WTW9kZWxGb3JQaXgyU3RydWN0LmZyb21fcHJldHJhaW5lZCglMjJnb29nbGUlMkZwaXgyc3RydWN0LWFpMmQtYmFzZSUyMiUyQyUyMGV4cG9ydCUzRFRydWUpJTBBJTBBdXJsJTIwJTNEJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGaHVnZ2luZ2ZhY2UlMkZkb2N1bWVudGF0aW9uLWltYWdlcyUyRnJlc29sdmUlMkZtYWluJTJGdHJhbnNmb3JtZXJzJTJGdGFza3MlMkZhaTJkLWRlbW8uanBnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBcXVlc3Rpb24lMjAlM0QlMjAlMjJXaGF0JTIwZG9lcyUyMHRoZSUyMGxhYmVsJTIwMTUlMjByZXByZXNlbnQlM0YlMjAoMSklMjBsYXZhJTIwKDIpJTIwY29yZSUyMCgzKSUyMHR1bm5lbCUyMCg0KSUyMGFzaCUyMGNsb3VkJTIyJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKGltYWdlcyUzRGltYWdlJTJDJTIwdGV4dCUzRHF1ZXN0aW9uJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEFnZW5fdG9rZW5zJTIwJTNEJTIwbW9kZWwuZ2VuZXJhdGUoKippbnB1dHMpJTBBb3V0cHV0cyUyMCUzRCUyMHByb2Nlc3Nvci5iYXRjaF9kZWNvZGUoZ2VuX3Rva2VucyUyQyUyMHNraXBfc3BlY2lhbF90b2tlbnMlM0RUcnVlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForPix2Struct
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> requests

<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;google/pix2struct-ai2d-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForPix2Struct.from_pretrained(<span class="hljs-string">&quot;google/pix2struct-ai2d-base&quot;</span>, export=<span class="hljs-literal">True</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>url = <span class="hljs-string">&quot;https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/ai2d-demo.jpg&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = Image.<span class="hljs-built_in">open</span>(requests.get(url, stream=<span class="hljs-literal">True</span>).raw)
<span class="hljs-meta">&gt;&gt;&gt; </span>question = <span class="hljs-string">&quot;What does the label 15 represent? (1) lava (2) core (3) tunnel (4) ash cloud&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(images=image, text=question, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>gen_tokens = model.generate(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = processor.batch_decode(gen_tokens, skip_special_tokens=<span class="hljs-literal">True</span>)`,wrap:!1}}),{c(){o=p("p"),o.textContent=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-11ikyn3"&&(o.textContent=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function Hd(w){let o,b=`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(){o=p("p"),o.innerHTML=b},l(a){o=c(a,"P",{"data-svelte-h":!0}),$(o)!=="svelte-fincs2"&&(o.innerHTML=b)},m(a,i){m(a,o,i)},p:J,d(a){a&&n(o)}}}function Ed(w){let o,b="Example of custom tasks (e.g. a sentence transformers with a pooler head):",a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFmcm9tJTIwb3B0aW11bS5pbnRlbCUyMGltcG9ydCUyME9WTW9kZWxGb3JDdXN0b21UYXNrcyUwQSUwQXRva2VuaXplciUyMCUzRCUyMEF1dG9Ub2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKCUyMklseWFzTW91dGF3d2FraWwlMkZzYmVydC1hbGwtTWluaUxNLUw2LXYyLXdpdGgtcG9vbGVyJTIyKSUwQW1vZGVsJTIwJTNEJTIwT1ZNb2RlbEZvckN1c3RvbVRhc2tzLmZyb21fcHJldHJhaW5lZCglMjJJbHlhc01vdXRhd3dha2lsJTJGc2JlcnQtYWxsLU1pbmlMTS1MNi12Mi13aXRoLXBvb2xlciUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjB0b2tlbml6ZXIoJTIySSUyMGxvdmUlMjBidXJyaXRvcyElMjIlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMm5wJTIyKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsYXN0X2hpZGRlbl9zdGF0ZSUyMCUzRCUyMG91dHB1dHMubGFzdF9oaWRkZW5fc3RhdGUlMEFwb29sZXJfb3V0cHV0JTIwJTNEJTIwb3V0cHV0cy5wb29sZXJfb3V0cHV0",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForCustomTasks

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;IlyasMoutawwakil/sbert-all-MiniLM-L6-v2-with-pooler&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForCustomTasks.from_pretrained(<span class="hljs-string">&quot;IlyasMoutawwakil/sbert-all-MiniLM-L6-v2-with-pooler&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;I love burritos!&quot;</span>, return_tensors=<span class="hljs-string">&quot;np&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>last_hidden_state = outputs.last_hidden_state
<span class="hljs-meta">&gt;&gt;&gt; </span>pooler_output = outputs.pooler_output`,wrap:!1}}),{c(){o=p("p"),o.textContent=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-1xuxpxx"&&(o.textContent=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function Pd(w){let o,b=`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(){o=p("p"),o.innerHTML=b},l(a){o=c(a,"P",{"data-svelte-h":!0}),$(o)!=="svelte-fincs2"&&(o.innerHTML=b)},m(a,i){m(a,o,i)},p:J,d(a){a&&n(o)}}}function Qd(w){let o,b="Example of feature extraction using <code>transformers.pipelines</code>:",a,i,v;return i=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBwaXBlbGluZSUwQWZyb20lMjBvcHRpbXVtLmludGVsJTIwaW1wb3J0JTIwT1ZNb2RlbEZvckZlYXR1cmVFeHRyYWN0aW9uJTBBJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyc2VudGVuY2UtdHJhbnNmb3JtZXJzJTJGYWxsLU1pbmlMTS1MNi12MiUyMiklMEFtb2RlbCUyMCUzRCUyME9WTW9kZWxGb3JGZWF0dXJlRXh0cmFjdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyc2VudGVuY2UtdHJhbnNmb3JtZXJzJTJGYWxsLU1pbmlMTS1MNi12MiUyMiUyQyUyMGV4cG9ydCUzRFRydWUpJTBBcGlwZSUyMCUzRCUyMHBpcGVsaW5lKCUyMmZlYXR1cmUtZXh0cmFjdGlvbiUyMiUyQyUyMG1vZGVsJTNEbW9kZWwlMkMlMjB0b2tlbml6ZXIlM0R0b2tlbml6ZXIpJTBBb3V0cHV0cyUyMCUzRCUyMHBpcGUoJTIyTXklMjBOYW1lJTIwaXMlMjBQZXRlciUyMGFuZCUyMEklMjBsaXZlJTIwaW4lMjBOZXclMjBZb3JrLiUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, pipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> optimum.intel <span class="hljs-keyword">import</span> OVModelForFeatureExtraction

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;sentence-transformers/all-MiniLM-L6-v2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = OVModelForFeatureExtraction.from_pretrained(<span class="hljs-string">&quot;sentence-transformers/all-MiniLM-L6-v2&quot;</span>, export=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(<span class="hljs-string">&quot;feature-extraction&quot;</span>, model=model, tokenizer=tokenizer)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = pipe(<span class="hljs-string">&quot;My Name is Peter and I live in New York.&quot;</span>)`,wrap:!1}}),{c(){o=p("p"),o.innerHTML=b,a=r(),h(i.$$.fragment)},l(t){o=c(t,"P",{"data-svelte-h":!0}),$(o)!=="svelte-9brije"&&(o.innerHTML=b),a=d(t),f(i.$$.fragment,t)},m(t,_){m(t,o,_),m(t,a,_),y(i,t,_),v=!0},p:J,i(t){v||(g(i.$$.fragment,t),v=!0)},o(t){u(i.$$.fragment,t),v=!1},d(t){t&&(n(o),n(a)),M(i,t)}}}function Yd(w){let o,b,a,i,v,t,_,Le,x,He,j,F,Z,Ee,Ja="Base OVModel class.",Is,Ae,Wt,Ws,gn,Xl="Instantiate a pretrained model from a pre-trained model configuration.",Ns,Ke,Nt,qs,un,zl="Propagates the given input shapes on the model’s layers, fixing the inputs shapes of the model.",xa,qt,Oa,Gt,Rl="The following classes are available for the following natural language processing tasks.",Ua,Xt,Za,I,zt,Gs,hn,Bl=`OpenVINO Model with a causal language modeling head on top (linear layer with weights tied to the input
embeddings).`,Xs,fn,Sl=`This model inherits from <code>optimum.intel.openvino.modeling.OVBaseModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,zs,yn,Rt,Rs,Mn,Bt,Ia,St,Wa,S,Lt,Bs,bn,Ll="OpenVINO Model with a MaskedLMOutput for masked language modeling tasks.",Ss,vn,Hl=`This model inherits from <code>optimum.intel.openvino.modeling.OVBaseModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,Ls,ie,Ht,Hs,_n,El='The <a href="/docs/optimum.intel/main/en/openvino/reference#optimum.intel.OVModelForMaskedLM">OVModelForMaskedLM</a> forward method, overrides the <code>__call__</code> special method.',Es,et,Ps,tt,Na,Et,qa,ye,Pt,Qs,$n,Pl="Sequence-to-sequence model with a language modeling head for OpenVINO inference.",Ys,X,Qt,Ds,wn,Ql='The <a href="/docs/optimum.intel/main/en/openvino/reference#optimum.intel.OVModelForSeq2SeqLM">OVModelForSeq2SeqLM</a> forward method, overrides the <code>__call__</code> special method.',As,ot,Ks,nt,ei,at,Ga,Yt,Xa,L,Dt,ti,Tn,Yl="OpenVINO Model with a QuestionAnsweringModelOutput for extractive question-answering tasks.",oi,Vn,Dl=`This model inherits from <code>optimum.intel.openvino.modeling.OVBaseModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,ni,le,At,ai,kn,Al='The <a href="/docs/optimum.intel/main/en/openvino/reference#optimum.intel.OVModelForQuestionAnswering">OVModelForQuestionAnswering</a> forward method, overrides the <code>__call__</code> special method.',si,st,ii,it,za,Kt,Ra,H,eo,li,Jn,Kl="OpenVINO Model with a SequenceClassifierOutput for sequence classification tasks.",ri,Cn,er=`This model inherits from <code>optimum.intel.openvino.modeling.OVBaseModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,di,re,to,pi,jn,tr='The <a href="/docs/optimum.intel/main/en/openvino/reference#optimum.intel.OVModelForSequenceClassification">OVModelForSequenceClassification</a> forward method, overrides the <code>__call__</code> special method.',ci,lt,mi,rt,Ba,oo,Sa,E,no,gi,Fn,or="OpenVINO Model with a TokenClassifierOutput for token classification tasks.",ui,xn,nr=`This model inherits from <code>optimum.intel.openvino.modeling.OVBaseModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,hi,de,ao,fi,On,ar='The <a href="/docs/optimum.intel/main/en/openvino/reference#optimum.intel.OVModelForTokenClassification">OVModelForTokenClassification</a> forward method, overrides the <code>__call__</code> special method.',yi,dt,Mi,pt,La,so,Ha,io,sr="The following classes are available for the following audio tasks.",Ea,lo,Pa,P,ro,bi,Un,ir="OpenVINO Model with a SequenceClassifierOutput for audio classification tasks.",vi,Zn,lr=`This model inherits from <code>optimum.intel.openvino.modeling.OVBaseModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,_i,pe,po,$i,In,rr='The <a href="/docs/optimum.intel/main/en/openvino/reference#optimum.intel.OVModelForAudioClassification">OVModelForAudioClassification</a> forward method, overrides the <code>__call__</code> special method.',wi,ct,Ti,mt,Qa,co,Ya,W,mo,Vi,Wn,dr="OpenVINO Model for with a frame classification head on top for tasks like Speaker Diarization.",ki,Nn,pr=`This model inherits from <code>optimum.intel.openvino.modeling.OVBaseModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,Ji,qn,cr="Audio Frame Classification model for OpenVINO.",Ci,ce,go,ji,Gn,mr='The <a href="/docs/optimum.intel/main/en/openvino/reference#optimum.intel.OVModelForAudioFrameClassification">OVModelForAudioFrameClassification</a> forward method, overrides the <code>__call__</code> special method.',Fi,gt,xi,ut,Da,uo,Aa,N,ho,Oi,Xn,gr="Onnx Model with a language modeling head on top for Connectionist Temporal Classification (CTC).",Ui,zn,ur=`This model inherits from <code>optimum.intel.openvino.modeling.OVBaseModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,Zi,Rn,hr="CTC model for OpenVINO.",Ii,me,fo,Wi,Bn,fr='The <a href="/docs/optimum.intel/main/en/openvino/reference#optimum.intel.OVModelForCTC">OVModelForCTC</a> forward method, overrides the <code>__call__</code> special method.',Ni,ht,qi,ft,Ka,yo,es,q,Mo,Gi,Sn,yr="Onnx Model with an XVector feature extraction head on top for tasks like Speaker Verification.",Xi,Ln,Mr=`This model inherits from <code>optimum.intel.openvino.modeling.OVBaseModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,zi,Hn,br="Audio XVector model for OpenVINO.",Ri,ge,bo,Bi,En,vr='The <a href="/docs/optimum.intel/main/en/openvino/reference#optimum.intel.OVModelForAudioXVector">OVModelForAudioXVector</a> forward method, overrides the <code>__call__</code> special method.',Si,yt,Li,Mt,ts,vo,os,Me,_o,Hi,Pn,_r="Speech Sequence-to-sequence model with a language modeling head for OpenVINO inference. This class officially supports whisper, speech_to_text.",Ei,z,$o,Pi,Qn,$r='The <a href="/docs/optimum.intel/main/en/openvino/reference#optimum.intel.OVModelForSpeechSeq2Seq">OVModelForSpeechSeq2Seq</a> forward method, overrides the <code>__call__</code> special method.',Qi,bt,Yi,vt,Di,_t,ns,wo,as,To,wr="The following classes are available for the following computer vision tasks.",ss,Vo,is,Q,ko,Ai,Yn,Tr="OpenVINO Model with a ImageClassifierOutput for image classification tasks.",Ki,Dn,Vr=`This model inherits from <code>optimum.intel.openvino.modeling.OVBaseModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,el,R,Jo,tl,An,kr='The <a href="/docs/optimum.intel/main/en/openvino/reference#optimum.intel.OVModelForImageClassification">OVModelForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',ol,$t,nl,wt,al,Tt,ls,Co,rs,jo,Jr="The following classes are available for the following multimodal tasks.",ds,Fo,ps,be,xo,sl,Kn,Cr="VisionEncoderDecoder Sequence-to-sequence model with a language modeling head for OpenVINO inference.",il,B,Oo,ll,ea,jr='The <a href="/docs/optimum.intel/main/en/openvino/reference#optimum.intel.OVModelForVision2Seq">OVModelForVision2Seq</a> forward method, overrides the <code>__call__</code> special method.',rl,Vt,dl,kt,pl,Jt,cs,Uo,ms,ve,Zo,cl,ta,Fr="Pix2Struct model with a language modeling head for OpenVINO inference.",ml,ue,Io,gl,oa,xr='The <a href="/docs/optimum.intel/main/en/openvino/reference#optimum.intel.OVModelForPix2Struct">OVModelForPix2Struct</a> forward method, overrides the <code>__call__</code> special method.',ul,Ct,hl,jt,gs,Wo,us,No,hs,Y,qo,fl,na,Or="OpenVINO Model for custom tasks. It can be used to leverage the inference acceleration for any single-file OpenVINO model, that may use custom inputs and outputs.",yl,aa,Ur=`This model inherits from <code>optimum.intel.openvino.modeling.OVBaseModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,Ml,he,Go,bl,sa,Zr='The <a href="/docs/optimum.intel/main/en/openvino/reference#optimum.intel.OVModelForCustomTasks">OVModelForCustomTasks</a> forward method, overrides the <code>__call__</code> special method.',vl,Ft,_l,xt,fs,Xo,ys,D,zo,$l,ia,Ir="OpenVINO Model with a BaseModelOutput for feature extraction tasks.",wl,la,Wr=`This model inherits from <code>optimum.intel.openvino.modeling.OVBaseModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,Tl,fe,Ro,Vl,ra,Nr='The <a href="/docs/optimum.intel/main/en/openvino/reference#optimum.intel.OVModelForFeatureExtraction">OVModelForFeatureExtraction</a> forward method, overrides the <code>__call__</code> special method.',kl,Ot,Jl,Ut,Ms,Bo,bs,So,vs,_e,Lo,Cl,da,qr='OpenVINO-powered stable diffusion pipeline corresponding to <a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/stable_diffusion#diffusers.StableDiffusionPipeline" rel="nofollow">diffusers.StableDiffusionPipeline</a>.',jl,pa,Ho,_s,Eo,$s,$e,Po,Fl,ca,Gr='OpenVINO-powered stable diffusion pipeline corresponding to <a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/stable_diffusion_xl#diffusers.StableDiffusionXLPipeline" rel="nofollow">diffusers.StableDiffusionXLPipeline</a>.',xl,ma,Qo,ws,Yo,Ts,we,Do,Ol,ga,Xr='OpenVINO-powered stable diffusion pipeline corresponding to <a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/latent_consistency#diffusers.LatentConsistencyModelPipeline" rel="nofollow">diffusers.LatentConsistencyModelPipeline</a>.',Ul,ua,Ao,Vs,Ko,ks,en,Js,Te,tn,Zl,ha,zr='OpenVINO-powered stable diffusion pipeline corresponding to <a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/stable_diffusion_img2img#diffusers.StableDiffusionImg2ImgPipeline" rel="nofollow">diffusers.StableDiffusionImg2ImgPipeline</a>.',Il,fa,on,Cs,nn,js,Ve,an,Wl,ya,Rr='OpenVINO-powered stable diffusion pipeline corresponding to <a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/stable_diffusion_xl#diffusers.StableDiffusionXLImg2ImgPipeline" rel="nofollow">diffusers.StableDiffusionXLImg2ImgPipeline</a>.',Nl,Ma,sn,Fs,ln,xs,rn,Os,ke,dn,ql,ba,Br='OpenVINO-powered stable diffusion pipeline corresponding to <a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/stable_diffusion_inpaint#diffusers.StableDiffusionInpaintPipeline" rel="nofollow">diffusers.StableDiffusionInpaintPipeline</a>.',Gl,va,pn,Us,Ca,Zs;return v=new md({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),_=new C({props:{title:"Models",local:"models",headingTag:"h1"}}),x=new C({props:{title:"Generic model classes",local:"optimum.intel.openvino.modeling_base.OVBaseModel",headingTag:"h2"}}),F=new k({props:{name:"class optimum.intel.openvino.modeling_base.OVBaseModel",anchor:"optimum.intel.openvino.modeling_base.OVBaseModel",parameters:[{name:"model",val:": Model"},{name:"config",val:": PretrainedConfig = None"},{name:"device",val:": str = 'CPU'"},{name:"dynamic_shapes",val:": bool = True"},{name:"ov_config",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"model_save_dir",val:": typing.Union[str, pathlib.Path, optimum.intel.openvino.utils.TemporaryDirectory, NoneType] = None"},{name:"quantization_config",val:": typing.Union[optimum.intel.openvino.configuration.OVWeightQuantizationConfig, typing.Dict, NoneType] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_base.py#L150"}}),Wt=new k({props:{name:"from_pretrained",anchor:"optimum.intel.openvino.modeling_base.OVBaseModel.from_pretrained",parameters:[{name:"model_id",val:": typing.Union[str, pathlib.Path]"},{name:"export",val:": bool = False"},{name:"force_download",val:": bool = False"},{name:"use_auth_token",val:": typing.Union[bool, str, NoneType] = None"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"cache_dir",val:": str = '/home/runner/.cache/huggingface/hub'"},{name:"subfolder",val:": str = ''"},{name:"config",val:": typing.Optional[transformers.configuration_utils.PretrainedConfig] = None"},{name:"local_files_only",val:": bool = False"},{name:"trust_remote_code",val:": bool = False"},{name:"revision",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.openvino.modeling_base.OVBaseModel.from_pretrained.model_id",description:`<strong>model_id</strong> (<code>Union[str, Path]</code>) &#x2014;
Can be either:
<ul>
<li>A string, the <em>model id</em> of a pretrained model 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 model saved using <code>~OptimizedModel.save_pretrained</code>,
e.g., <code>./my_model_directory/</code>.</li>
</ul>`,name:"model_id"},{anchor:"optimum.intel.openvino.modeling_base.OVBaseModel.from_pretrained.export",description:`<strong>export</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Defines whether the provided <code>model_id</code> needs to be exported to the targeted format.`,name:"export"},{anchor:"optimum.intel.openvino.modeling_base.OVBaseModel.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"optimum.intel.openvino.modeling_base.OVBaseModel.from_pretrained.token",description:`<strong>token</strong> (<code>Optional[Union[bool,str]]</code>, defaults to <code>None</code>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>huggingface_hub.constants.HF_TOKEN_PATH</code>).`,name:"token"},{anchor:"optimum.intel.openvino.modeling_base.OVBaseModel.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Optional[str]</code>, defaults to <code>None</code>) &#x2014;
Path to a directory in which a downloaded pretrained model configuration should be cached if the
standard cache should not be used.`,name:"cache_dir"},{anchor:"optimum.intel.openvino.modeling_base.OVBaseModel.from_pretrained.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
In case the relevant files are located inside a subfolder of the model repo either locally or on huggingface.co, you can
specify the folder name here.`,name:"subfolder"},{anchor:"optimum.intel.openvino.modeling_base.OVBaseModel.from_pretrained.config",description:`<strong>config</strong> (<code>Optional[transformers.PretrainedConfig]</code>, defaults to <code>None</code>) &#x2014;
The model configuration.`,name:"config"},{anchor:"optimum.intel.openvino.modeling_base.OVBaseModel.from_pretrained.local_files_only",description:`<strong>local_files_only</strong> (<code>Optional[bool]</code>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (i.e., do not try to download the model).`,name:"local_files_only"},{anchor:"optimum.intel.openvino.modeling_base.OVBaseModel.from_pretrained.trust_remote_code",description:`<strong>trust_remote_code</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether or not to allow for custom code defined on the Hub in their own modeling. This option should only be set
to <code>True</code> for repositories you trust and in which you have read the code, as it will execute code present on
the Hub on your local machine.`,name:"trust_remote_code"},{anchor:"optimum.intel.openvino.modeling_base.OVBaseModel.from_pretrained.revision",description:`<strong>revision</strong> (<code>Optional[str]</code>, defaults to <code>None</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.`,name:"revision"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_base.py#L511"}}),Nt=new k({props:{name:"reshape",anchor:"optimum.intel.openvino.modeling_base.OVBaseModel.reshape",parameters:[{name:"batch_size",val:": int"},{name:"sequence_length",val:": int"},{name:"height",val:": int = None"},{name:"width",val:": int = None"}],parametersDescription:[{anchor:"optimum.intel.openvino.modeling_base.OVBaseModel.reshape.batch_size",description:`<strong>batch_size</strong> (<code>int</code>) &#x2014;
The batch size.`,name:"batch_size"},{anchor:"optimum.intel.openvino.modeling_base.OVBaseModel.reshape.sequence_length",description:`<strong>sequence_length</strong> (<code>int</code>) &#x2014;
The sequence length or number of channels.`,name:"sequence_length"},{anchor:"optimum.intel.openvino.modeling_base.OVBaseModel.reshape.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The image height.`,name:"height"},{anchor:"optimum.intel.openvino.modeling_base.OVBaseModel.reshape.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The image width.`,name:"width"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_base.py#L806"}}),qt=new C({props:{title:"Natural Language Processing",local:"natural-language-processing",headingTag:"h2"}}),Xt=new C({props:{title:"OVModelForCausalLM",local:"optimum.intel.OVModelForCausalLM",headingTag:"h3"}}),zt=new k({props:{name:"class optimum.intel.OVModelForCausalLM",anchor:"optimum.intel.OVModelForCausalLM",parameters:[{name:"model",val:": Model"},{name:"config",val:": PretrainedConfig = None"},{name:"device",val:": str = 'CPU'"},{name:"dynamic_shapes",val:": bool = None"},{name:"ov_config",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"model_save_dir",val:": typing.Union[str, pathlib.Path, optimum.intel.openvino.utils.TemporaryDirectory, NoneType] = None"},{name:"quantization_config",val:": typing.Union[optimum.intel.openvino.configuration.OVWeightQuantizationConfig, typing.Dict, NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForCausalLM.model",description:"<strong>model</strong> (<code>openvino.Model</code>) &#x2014; is the main class used to run OpenVINO Runtime inference.",name:"model"},{anchor:"optimum.intel.OVModelForCausalLM.config",description:`<strong>config</strong> (<code>transformers.PretrainedConfig</code>) &#x2014; <a href="https://huggingface.co/docs/transformers/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>
is the 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 <code>~intel.openvino.modeling.OVBaseModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.intel.OVModelForCausalLM.device",description:`<strong>device</strong> (<code>str</code>, defaults to <code>&quot;CPU&quot;</code>) &#x2014;
The device type for which the model will be optimized for. The resulting compiled model will contains nodes specific to this device.`,name:"device"},{anchor:"optimum.intel.OVModelForCausalLM.dynamic_shapes",description:`<strong>dynamic_shapes</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
All the model&#x2019;s dimension will be set to dynamic when set to <code>True</code>. Should be set to <code>False</code> for the model to not be dynamically reshaped by default.`,name:"dynamic_shapes"},{anchor:"optimum.intel.OVModelForCausalLM.ov_config",description:`<strong>ov_config</strong> (<code>Optional[Dict]</code>, defaults to <code>None</code>) &#x2014;
The dictionary containing the information related to the model compilation.`,name:"ov_config"},{anchor:"optimum.intel.OVModelForCausalLM.compile",description:`<strong>compile</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Disable the model compilation during the loading step when set to <code>False</code>.
Can be useful to avoid unnecessary compilation, in the case where the model needs to be statically reshaped, the device modified or if FP16 conversion is enabled.`,name:"compile"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_decoder.py#L446"}}),Rt=new k({props:{name:"forward",anchor:"optimum.intel.OVModelForCausalLM.forward",parameters:[{name:"input_ids",val:": LongTensor"},{name:"attention_mask",val:": typing.Optional[torch.LongTensor] = None"},{name:"past_key_values",val:": typing.Optional[typing.Tuple[typing.Tuple[torch.FloatTensor]]] = None"},{name:"position_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"token_type_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_decoder.py#L550"}}),Bt=new k({props:{name:"generate",anchor:"optimum.intel.OVModelForCausalLM.generate",parameters:[{name:"inputs",val:": typing.Optional[torch.Tensor] = None"},{name:"generation_config",val:": typing.Optional[transformers.generation.configuration_utils.GenerationConfig] = None"},{name:"logits_processor",val:": typing.Optional[transformers.generation.logits_process.LogitsProcessorList] = None"},{name:"stopping_criteria",val:": typing.Optional[transformers.generation.stopping_criteria.StoppingCriteriaList] = None"},{name:"prefix_allowed_tokens_fn",val:": typing.Optional[typing.Callable[[int, torch.Tensor], typing.List[int]]] = None"},{name:"synced_gpus",val:": typing.Optional[bool] = None"},{name:"assistant_model",val:": typing.Optional[ForwardRef('PreTrainedModel')] = None"},{name:"streamer",val:": typing.Optional[ForwardRef('BaseStreamer')] = None"},{name:"negative_prompt_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_prompt_attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_decoder.py#L730"}}),St=new C({props:{title:"OVModelForMaskedLM",local:"optimum.intel.OVModelForMaskedLM",headingTag:"h3"}}),Lt=new k({props:{name:"class optimum.intel.OVModelForMaskedLM",anchor:"optimum.intel.OVModelForMaskedLM",parameters:[{name:"model",val:" = None"},{name:"config",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForMaskedLM.model",description:"<strong>model</strong> (<code>openvino.Model</code>) &#x2014; is the main class used to run OpenVINO Runtime inference.",name:"model"},{anchor:"optimum.intel.OVModelForMaskedLM.config",description:`<strong>config</strong> (<code>transformers.PretrainedConfig</code>) &#x2014; <a href="https://huggingface.co/docs/transformers/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>
is the 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 <code>~intel.openvino.modeling.OVBaseModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.intel.OVModelForMaskedLM.device",description:`<strong>device</strong> (<code>str</code>, defaults to <code>&quot;CPU&quot;</code>) &#x2014;
The device type for which the model will be optimized for. The resulting compiled model will contains nodes specific to this device.`,name:"device"},{anchor:"optimum.intel.OVModelForMaskedLM.dynamic_shapes",description:`<strong>dynamic_shapes</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
All the model&#x2019;s dimension will be set to dynamic when set to <code>True</code>. Should be set to <code>False</code> for the model to not be dynamically reshaped by default.`,name:"dynamic_shapes"},{anchor:"optimum.intel.OVModelForMaskedLM.ov_config",description:`<strong>ov_config</strong> (<code>Optional[Dict]</code>, defaults to <code>None</code>) &#x2014;
The dictionary containing the information related to the model compilation.`,name:"ov_config"},{anchor:"optimum.intel.OVModelForMaskedLM.compile",description:`<strong>compile</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Disable the model compilation during the loading step when set to <code>False</code>.
Can be useful to avoid unnecessary compilation, in the case where the model needs to be statically reshaped, the device modified or if FP16 conversion is enabled.`,name:"compile"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L437"}}),Ht=new k({props:{name:"forward",anchor:"optimum.intel.OVModelForMaskedLM.forward",parameters:[{name:"input_ids",val:": typing.Union[torch.Tensor, numpy.ndarray]"},{name:"attention_mask",val:": typing.Union[torch.Tensor, numpy.ndarray]"},{name:"token_type_ids",val:": typing.Union[torch.Tensor, numpy.ndarray, NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForMaskedLM.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.Tensor</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.
Indices can be obtained using <a href="https://huggingface.co/docs/transformers/autoclass_tutorial#autotokenizer" rel="nofollow"><code>AutoTokenizer</code></a>.
<a href="https://huggingface.co/docs/transformers/glossary#input-ids" rel="nofollow">What are input IDs?</a>`,name:"input_ids"},{anchor:"optimum.intel.OVModelForMaskedLM.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code>), <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.
<a href="https://huggingface.co/docs/transformers/glossary#attention-mask" rel="nofollow">What are attention masks?</a></li>
</ul>`,name:"attention_mask"},{anchor:"optimum.intel.OVModelForMaskedLM.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:
<ul>
<li>1 for tokens that are <strong>sentence A</strong>,</li>
<li>0 for tokens that are <strong>sentence B</strong>.
<a href="https://huggingface.co/docs/transformers/glossary#token-type-ids" rel="nofollow">What are token type IDs?</a></li>
</ul>`,name:"token_type_ids"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L444"}}),et=new G({props:{$$slots:{default:[fd]},$$scope:{ctx:w}}}),tt=new O({props:{anchor:"optimum.intel.OVModelForMaskedLM.forward.example",$$slots:{default:[yd]},$$scope:{ctx:w}}}),Et=new C({props:{title:"OVModelForSeq2SeqLM",local:"optimum.intel.OVModelForSeq2SeqLM",headingTag:"h3"}}),Pt=new k({props:{name:"class optimum.intel.OVModelForSeq2SeqLM",anchor:"optimum.intel.OVModelForSeq2SeqLM",parameters:[{name:"encoder",val:": Model"},{name:"decoder",val:": Model"},{name:"decoder_with_past",val:": Model = None"},{name:"config",val:": PretrainedConfig = None"},{name:"device",val:": str = 'CPU'"},{name:"dynamic_shapes",val:": bool = True"},{name:"ov_config",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"model_save_dir",val:": typing.Union[str, pathlib.Path, optimum.intel.openvino.utils.TemporaryDirectory, NoneType] = None"},{name:"quantization_config",val:": typing.Union[optimum.intel.openvino.configuration.OVWeightQuantizationConfig, typing.Dict] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForSeq2SeqLM.encoder",description:`<strong>encoder</strong> (<code>openvino.Model</code>) &#x2014;
The OpenVINO Runtime model associated to the encoder.`,name:"encoder"},{anchor:"optimum.intel.OVModelForSeq2SeqLM.decoder",description:`<strong>decoder</strong> (<code>openvino.Model</code>) &#x2014;
The OpenVINO Runtime model associated to the decoder.`,name:"decoder"},{anchor:"optimum.intel.OVModelForSeq2SeqLM.decoder_with_past",description:`<strong>decoder_with_past</strong> (<code>openvino.Model</code>) &#x2014;
The OpenVINO Runtime model associated  to the decoder with past key values.`,name:"decoder_with_past"},{anchor:"optimum.intel.OVModelForSeq2SeqLM.config",description:`<strong>config</strong> (<code>transformers.PretrainedConfig</code>) &#x2014;
<a href="https://huggingface.co/docs/transformers/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>
is an instance of the configuration associated to the model. Initializing with a config file does
not load the weights associated with the model, only the configuration.`,name:"config"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_seq2seq.py#L317"}}),Qt=new k({props:{name:"forward",anchor:"optimum.intel.OVModelForSeq2SeqLM.forward",parameters:[{name:"input_ids",val:": LongTensor = None"},{name:"attention_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"decoder_input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"decoder_attention_mask",val:": typing.Optional[torch.LongTensor] = None"},{name:"encoder_outputs",val:": typing.Optional[typing.Tuple[typing.Tuple[torch.Tensor]]] = None"},{name:"past_key_values",val:": typing.Optional[typing.Tuple[typing.Tuple[torch.Tensor]]] = None"},{name:"cache_position",val:": typing.Optional[torch.LongTensor] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForSeq2SeqLM.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code>) &#x2014;
Indices of input sequence tokens in the vocabulary of shape <code>(batch_size, encoder_sequence_length)</code>.`,name:"input_ids"},{anchor:"optimum.intel.OVModelForSeq2SeqLM.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.LongTensor</code>) &#x2014;
Mask to avoid performing attention on padding token indices, of shape
<code>(batch_size, encoder_sequence_length)</code>. Mask values selected in <code>[0, 1]</code>.`,name:"attention_mask"},{anchor:"optimum.intel.OVModelForSeq2SeqLM.forward.decoder_input_ids",description:`<strong>decoder_input_ids</strong> (<code>torch.LongTensor</code>) &#x2014;
Indices of decoder input sequence tokens in the vocabulary of shape <code>(batch_size, decoder_sequence_length)</code>.`,name:"decoder_input_ids"},{anchor:"optimum.intel.OVModelForSeq2SeqLM.forward.encoder_outputs",description:`<strong>encoder_outputs</strong> (<code>torch.FloatTensor</code>) &#x2014;
The encoder <code>last_hidden_state</code> of shape <code>(batch_size, encoder_sequence_length, hidden_size)</code>.`,name:"encoder_outputs"},{anchor:"optimum.intel.OVModelForSeq2SeqLM.forward.past_key_values",description:`<strong>past_key_values</strong> (<code>tuple(tuple(torch.FloatTensor), *optional*)</code> &#x2014;
Contains the precomputed key and value hidden states of the attention blocks used to speed up decoding.
The tuple is of length <code>config.n_layers</code> with each tuple having 2 tensors of shape
<code>(batch_size, num_heads, decoder_sequence_length, embed_size_per_head)</code> and 2 additional tensors of shape
<code>(batch_size, num_heads, encoder_sequence_length, embed_size_per_head)</code>.`,name:"past_key_values"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_seq2seq.py#L634"}}),ot=new G({props:{$$slots:{default:[Md]},$$scope:{ctx:w}}}),nt=new O({props:{anchor:"optimum.intel.OVModelForSeq2SeqLM.forward.example",$$slots:{default:[bd]},$$scope:{ctx:w}}}),at=new O({props:{anchor:"optimum.intel.OVModelForSeq2SeqLM.forward.example-2",$$slots:{default:[vd]},$$scope:{ctx:w}}}),Yt=new C({props:{title:"OVModelForQuestionAnswering",local:"optimum.intel.OVModelForQuestionAnswering",headingTag:"h3"}}),Dt=new k({props:{name:"class optimum.intel.OVModelForQuestionAnswering",anchor:"optimum.intel.OVModelForQuestionAnswering",parameters:[{name:"model",val:" = None"},{name:"config",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForQuestionAnswering.model",description:"<strong>model</strong> (<code>openvino.Model</code>) &#x2014; is the main class used to run OpenVINO Runtime inference.",name:"model"},{anchor:"optimum.intel.OVModelForQuestionAnswering.config",description:`<strong>config</strong> (<code>transformers.PretrainedConfig</code>) &#x2014; <a href="https://huggingface.co/docs/transformers/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>
is the 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 <code>~intel.openvino.modeling.OVBaseModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.intel.OVModelForQuestionAnswering.device",description:`<strong>device</strong> (<code>str</code>, defaults to <code>&quot;CPU&quot;</code>) &#x2014;
The device type for which the model will be optimized for. The resulting compiled model will contains nodes specific to this device.`,name:"device"},{anchor:"optimum.intel.OVModelForQuestionAnswering.dynamic_shapes",description:`<strong>dynamic_shapes</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
All the model&#x2019;s dimension will be set to dynamic when set to <code>True</code>. Should be set to <code>False</code> for the model to not be dynamically reshaped by default.`,name:"dynamic_shapes"},{anchor:"optimum.intel.OVModelForQuestionAnswering.ov_config",description:`<strong>ov_config</strong> (<code>Optional[Dict]</code>, defaults to <code>None</code>) &#x2014;
The dictionary containing the information related to the model compilation.`,name:"ov_config"},{anchor:"optimum.intel.OVModelForQuestionAnswering.compile",description:`<strong>compile</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Disable the model compilation during the loading step when set to <code>False</code>.
Can be useful to avoid unnecessary compilation, in the case where the model needs to be statically reshaped, the device modified or if FP16 conversion is enabled.`,name:"compile"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L218"}}),At=new k({props:{name:"forward",anchor:"optimum.intel.OVModelForQuestionAnswering.forward",parameters:[{name:"input_ids",val:": typing.Union[torch.Tensor, numpy.ndarray]"},{name:"attention_mask",val:": typing.Union[torch.Tensor, numpy.ndarray]"},{name:"token_type_ids",val:": typing.Union[torch.Tensor, numpy.ndarray, NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForQuestionAnswering.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.Tensor</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.
Indices can be obtained using <a href="https://huggingface.co/docs/transformers/autoclass_tutorial#autotokenizer" rel="nofollow"><code>AutoTokenizer</code></a>.
<a href="https://huggingface.co/docs/transformers/glossary#input-ids" rel="nofollow">What are input IDs?</a>`,name:"input_ids"},{anchor:"optimum.intel.OVModelForQuestionAnswering.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code>), <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.
<a href="https://huggingface.co/docs/transformers/glossary#attention-mask" rel="nofollow">What are attention masks?</a></li>
</ul>`,name:"attention_mask"},{anchor:"optimum.intel.OVModelForQuestionAnswering.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:
<ul>
<li>1 for tokens that are <strong>sentence A</strong>,</li>
<li>0 for tokens that are <strong>sentence B</strong>.
<a href="https://huggingface.co/docs/transformers/glossary#token-type-ids" rel="nofollow">What are token type IDs?</a></li>
</ul>`,name:"token_type_ids"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L225"}}),st=new G({props:{$$slots:{default:[_d]},$$scope:{ctx:w}}}),it=new O({props:{anchor:"optimum.intel.OVModelForQuestionAnswering.forward.example",$$slots:{default:[$d]},$$scope:{ctx:w}}}),Kt=new C({props:{title:"OVModelForSequenceClassification",local:"optimum.intel.OVModelForSequenceClassification",headingTag:"h3"}}),eo=new k({props:{name:"class optimum.intel.OVModelForSequenceClassification",anchor:"optimum.intel.OVModelForSequenceClassification",parameters:[{name:"model",val:" = None"},{name:"config",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForSequenceClassification.model",description:"<strong>model</strong> (<code>openvino.Model</code>) &#x2014; is the main class used to run OpenVINO Runtime inference.",name:"model"},{anchor:"optimum.intel.OVModelForSequenceClassification.config",description:`<strong>config</strong> (<code>transformers.PretrainedConfig</code>) &#x2014; <a href="https://huggingface.co/docs/transformers/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>
is the 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 <code>~intel.openvino.modeling.OVBaseModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.intel.OVModelForSequenceClassification.device",description:`<strong>device</strong> (<code>str</code>, defaults to <code>&quot;CPU&quot;</code>) &#x2014;
The device type for which the model will be optimized for. The resulting compiled model will contains nodes specific to this device.`,name:"device"},{anchor:"optimum.intel.OVModelForSequenceClassification.dynamic_shapes",description:`<strong>dynamic_shapes</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
All the model&#x2019;s dimension will be set to dynamic when set to <code>True</code>. Should be set to <code>False</code> for the model to not be dynamically reshaped by default.`,name:"dynamic_shapes"},{anchor:"optimum.intel.OVModelForSequenceClassification.ov_config",description:`<strong>ov_config</strong> (<code>Optional[Dict]</code>, defaults to <code>None</code>) &#x2014;
The dictionary containing the information related to the model compilation.`,name:"ov_config"},{anchor:"optimum.intel.OVModelForSequenceClassification.compile",description:`<strong>compile</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Disable the model compilation during the loading step when set to <code>False</code>.
Can be useful to avoid unnecessary compilation, in the case where the model needs to be statically reshaped, the device modified or if FP16 conversion is enabled.`,name:"compile"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L153"}}),to=new k({props:{name:"forward",anchor:"optimum.intel.OVModelForSequenceClassification.forward",parameters:[{name:"input_ids",val:": typing.Union[torch.Tensor, numpy.ndarray]"},{name:"attention_mask",val:": typing.Union[torch.Tensor, numpy.ndarray]"},{name:"token_type_ids",val:": typing.Union[torch.Tensor, numpy.ndarray, NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForSequenceClassification.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.Tensor</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.
Indices can be obtained using <a href="https://huggingface.co/docs/transformers/autoclass_tutorial#autotokenizer" rel="nofollow"><code>AutoTokenizer</code></a>.
<a href="https://huggingface.co/docs/transformers/glossary#input-ids" rel="nofollow">What are input IDs?</a>`,name:"input_ids"},{anchor:"optimum.intel.OVModelForSequenceClassification.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code>), <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.
<a href="https://huggingface.co/docs/transformers/glossary#attention-mask" rel="nofollow">What are attention masks?</a></li>
</ul>`,name:"attention_mask"},{anchor:"optimum.intel.OVModelForSequenceClassification.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:
<ul>
<li>1 for tokens that are <strong>sentence A</strong>,</li>
<li>0 for tokens that are <strong>sentence B</strong>.
<a href="https://huggingface.co/docs/transformers/glossary#token-type-ids" rel="nofollow">What are token type IDs?</a></li>
</ul>`,name:"token_type_ids"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L160"}}),lt=new G({props:{$$slots:{default:[wd]},$$scope:{ctx:w}}}),rt=new O({props:{anchor:"optimum.intel.OVModelForSequenceClassification.forward.example",$$slots:{default:[Td]},$$scope:{ctx:w}}}),oo=new C({props:{title:"OVModelForTokenClassification",local:"optimum.intel.OVModelForTokenClassification",headingTag:"h3"}}),no=new k({props:{name:"class optimum.intel.OVModelForTokenClassification",anchor:"optimum.intel.OVModelForTokenClassification",parameters:[{name:"model",val:" = None"},{name:"config",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForTokenClassification.model",description:"<strong>model</strong> (<code>openvino.Model</code>) &#x2014; is the main class used to run OpenVINO Runtime inference.",name:"model"},{anchor:"optimum.intel.OVModelForTokenClassification.config",description:`<strong>config</strong> (<code>transformers.PretrainedConfig</code>) &#x2014; <a href="https://huggingface.co/docs/transformers/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>
is the 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 <code>~intel.openvino.modeling.OVBaseModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.intel.OVModelForTokenClassification.device",description:`<strong>device</strong> (<code>str</code>, defaults to <code>&quot;CPU&quot;</code>) &#x2014;
The device type for which the model will be optimized for. The resulting compiled model will contains nodes specific to this device.`,name:"device"},{anchor:"optimum.intel.OVModelForTokenClassification.dynamic_shapes",description:`<strong>dynamic_shapes</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
All the model&#x2019;s dimension will be set to dynamic when set to <code>True</code>. Should be set to <code>False</code> for the model to not be dynamically reshaped by default.`,name:"dynamic_shapes"},{anchor:"optimum.intel.OVModelForTokenClassification.ov_config",description:`<strong>ov_config</strong> (<code>Optional[Dict]</code>, defaults to <code>None</code>) &#x2014;
The dictionary containing the information related to the model compilation.`,name:"ov_config"},{anchor:"optimum.intel.OVModelForTokenClassification.compile",description:`<strong>compile</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Disable the model compilation during the loading step when set to <code>False</code>.
Can be useful to avoid unnecessary compilation, in the case where the model needs to be statically reshaped, the device modified or if FP16 conversion is enabled.`,name:"compile"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L287"}}),ao=new k({props:{name:"forward",anchor:"optimum.intel.OVModelForTokenClassification.forward",parameters:[{name:"input_ids",val:": typing.Union[torch.Tensor, numpy.ndarray]"},{name:"attention_mask",val:": typing.Union[torch.Tensor, numpy.ndarray]"},{name:"token_type_ids",val:": typing.Union[torch.Tensor, numpy.ndarray, NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForTokenClassification.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.Tensor</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.
Indices can be obtained using <a href="https://huggingface.co/docs/transformers/autoclass_tutorial#autotokenizer" rel="nofollow"><code>AutoTokenizer</code></a>.
<a href="https://huggingface.co/docs/transformers/glossary#input-ids" rel="nofollow">What are input IDs?</a>`,name:"input_ids"},{anchor:"optimum.intel.OVModelForTokenClassification.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code>), <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.
<a href="https://huggingface.co/docs/transformers/glossary#attention-mask" rel="nofollow">What are attention masks?</a></li>
</ul>`,name:"attention_mask"},{anchor:"optimum.intel.OVModelForTokenClassification.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:
<ul>
<li>1 for tokens that are <strong>sentence A</strong>,</li>
<li>0 for tokens that are <strong>sentence B</strong>.
<a href="https://huggingface.co/docs/transformers/glossary#token-type-ids" rel="nofollow">What are token type IDs?</a></li>
</ul>`,name:"token_type_ids"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L294"}}),dt=new G({props:{$$slots:{default:[Vd]},$$scope:{ctx:w}}}),pt=new O({props:{anchor:"optimum.intel.OVModelForTokenClassification.forward.example",$$slots:{default:[kd]},$$scope:{ctx:w}}}),so=new C({props:{title:"Audio",local:"audio",headingTag:"h2"}}),lo=new C({props:{title:"OVModelForAudioClassification",local:"optimum.intel.OVModelForAudioClassification",headingTag:"h3"}}),ro=new k({props:{name:"class optimum.intel.OVModelForAudioClassification",anchor:"optimum.intel.OVModelForAudioClassification",parameters:[{name:"model",val:" = None"},{name:"config",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForAudioClassification.model",description:"<strong>model</strong> (<code>openvino.Model</code>) &#x2014; is the main class used to run OpenVINO Runtime inference.",name:"model"},{anchor:"optimum.intel.OVModelForAudioClassification.config",description:`<strong>config</strong> (<code>transformers.PretrainedConfig</code>) &#x2014; <a href="https://huggingface.co/docs/transformers/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>
is the 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 <code>~intel.openvino.modeling.OVBaseModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.intel.OVModelForAudioClassification.device",description:`<strong>device</strong> (<code>str</code>, defaults to <code>&quot;CPU&quot;</code>) &#x2014;
The device type for which the model will be optimized for. The resulting compiled model will contains nodes specific to this device.`,name:"device"},{anchor:"optimum.intel.OVModelForAudioClassification.dynamic_shapes",description:`<strong>dynamic_shapes</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
All the model&#x2019;s dimension will be set to dynamic when set to <code>True</code>. Should be set to <code>False</code> for the model to not be dynamically reshaped by default.`,name:"dynamic_shapes"},{anchor:"optimum.intel.OVModelForAudioClassification.ov_config",description:`<strong>ov_config</strong> (<code>Optional[Dict]</code>, defaults to <code>None</code>) &#x2014;
The dictionary containing the information related to the model compilation.`,name:"ov_config"},{anchor:"optimum.intel.OVModelForAudioClassification.compile",description:`<strong>compile</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Disable the model compilation during the loading step when set to <code>False</code>.
Can be useful to avoid unnecessary compilation, in the case where the model needs to be statically reshaped, the device modified or if FP16 conversion is enabled.`,name:"compile"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L630"}}),po=new k({props:{name:"forward",anchor:"optimum.intel.OVModelForAudioClassification.forward",parameters:[{name:"input_values",val:": typing.Union[torch.Tensor, numpy.ndarray]"},{name:"attention_mask",val:": typing.Union[torch.Tensor, numpy.ndarray, NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForAudioClassification.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.Tensor</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.
Indices can be obtained using <a href="https://huggingface.co/docs/transformers/autoclass_tutorial#autotokenizer" rel="nofollow"><code>AutoTokenizer</code></a>.
<a href="https://huggingface.co/docs/transformers/glossary#input-ids" rel="nofollow">What are input IDs?</a>`,name:"input_ids"},{anchor:"optimum.intel.OVModelForAudioClassification.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code>), <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.
<a href="https://huggingface.co/docs/transformers/glossary#attention-mask" rel="nofollow">What are attention masks?</a></li>
</ul>`,name:"attention_mask"},{anchor:"optimum.intel.OVModelForAudioClassification.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:
<ul>
<li>1 for tokens that are <strong>sentence A</strong>,</li>
<li>0 for tokens that are <strong>sentence B</strong>.
<a href="https://huggingface.co/docs/transformers/glossary#token-type-ids" rel="nofollow">What are token type IDs?</a></li>
</ul>`,name:"token_type_ids"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L637"}}),ct=new G({props:{$$slots:{default:[Jd]},$$scope:{ctx:w}}}),mt=new O({props:{anchor:"optimum.intel.OVModelForAudioClassification.forward.example",$$slots:{default:[Cd]},$$scope:{ctx:w}}}),co=new C({props:{title:"OVModelForAudioFrameClassification",local:"optimum.intel.OVModelForAudioFrameClassification",headingTag:"h3"}}),mo=new k({props:{name:"class optimum.intel.OVModelForAudioFrameClassification",anchor:"optimum.intel.OVModelForAudioFrameClassification",parameters:[{name:"model",val:": Model"},{name:"config",val:": PretrainedConfig = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForAudioFrameClassification.model",description:"<strong>model</strong> (<code>openvino.Model</code>) &#x2014; is the main class used to run OpenVINO Runtime inference.",name:"model"},{anchor:"optimum.intel.OVModelForAudioFrameClassification.config",description:`<strong>config</strong> (<code>transformers.PretrainedConfig</code>) &#x2014; <a href="https://huggingface.co/docs/transformers/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>
is the 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 <code>~intel.openvino.modeling.OVBaseModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.intel.OVModelForAudioFrameClassification.device",description:`<strong>device</strong> (<code>str</code>, defaults to <code>&quot;CPU&quot;</code>) &#x2014;
The device type for which the model will be optimized for. The resulting compiled model will contains nodes specific to this device.`,name:"device"},{anchor:"optimum.intel.OVModelForAudioFrameClassification.dynamic_shapes",description:`<strong>dynamic_shapes</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
All the model&#x2019;s dimension will be set to dynamic when set to <code>True</code>. Should be set to <code>False</code> for the model to not be dynamically reshaped by default.`,name:"dynamic_shapes"},{anchor:"optimum.intel.OVModelForAudioFrameClassification.ov_config",description:`<strong>ov_config</strong> (<code>Optional[Dict]</code>, defaults to <code>None</code>) &#x2014;
The dictionary containing the information related to the model compilation.`,name:"ov_config"},{anchor:"optimum.intel.OVModelForAudioFrameClassification.compile",description:`<strong>compile</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Disable the model compilation during the loading step when set to <code>False</code>.
Can be useful to avoid unnecessary compilation, in the case where the model needs to be statically reshaped, the device modified or if FP16 conversion is enabled.`,name:"compile"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L858"}}),go=new k({props:{name:"forward",anchor:"optimum.intel.OVModelForAudioFrameClassification.forward",parameters:[{name:"input_values",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForAudioFrameClassification.forward.input_values",description:`<strong>input_values</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Float values of input raw speech waveform..
Input values can be obtained from audio file loaded into an array using <a href="https://huggingface.co/docs/transformers/autoclass_tutorial#autofeatureextractor" rel="nofollow"><code>AutoFeatureExtractor</code></a>.`,name:"input_values"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L866"}}),gt=new G({props:{$$slots:{default:[jd]},$$scope:{ctx:w}}}),ut=new O({props:{anchor:"optimum.intel.OVModelForAudioFrameClassification.forward.example",$$slots:{default:[Fd]},$$scope:{ctx:w}}}),uo=new C({props:{title:"OVModelForCTC",local:"optimum.intel.OVModelForCTC",headingTag:"h3"}}),ho=new k({props:{name:"class optimum.intel.OVModelForCTC",anchor:"optimum.intel.OVModelForCTC",parameters:[{name:"model",val:": Model"},{name:"config",val:": PretrainedConfig = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForCTC.model",description:"<strong>model</strong> (<code>openvino.Model</code>) &#x2014; is the main class used to run OpenVINO Runtime inference.",name:"model"},{anchor:"optimum.intel.OVModelForCTC.config",description:`<strong>config</strong> (<code>transformers.PretrainedConfig</code>) &#x2014; <a href="https://huggingface.co/docs/transformers/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>
is the 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 <code>~intel.openvino.modeling.OVBaseModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.intel.OVModelForCTC.device",description:`<strong>device</strong> (<code>str</code>, defaults to <code>&quot;CPU&quot;</code>) &#x2014;
The device type for which the model will be optimized for. The resulting compiled model will contains nodes specific to this device.`,name:"device"},{anchor:"optimum.intel.OVModelForCTC.dynamic_shapes",description:`<strong>dynamic_shapes</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
All the model&#x2019;s dimension will be set to dynamic when set to <code>True</code>. Should be set to <code>False</code> for the model to not be dynamically reshaped by default.`,name:"dynamic_shapes"},{anchor:"optimum.intel.OVModelForCTC.ov_config",description:`<strong>ov_config</strong> (<code>Optional[Dict]</code>, defaults to <code>None</code>) &#x2014;
The dictionary containing the information related to the model compilation.`,name:"ov_config"},{anchor:"optimum.intel.OVModelForCTC.compile",description:`<strong>compile</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Disable the model compilation during the loading step when set to <code>False</code>.
Can be useful to avoid unnecessary compilation, in the case where the model needs to be statically reshaped, the device modified or if FP16 conversion is enabled.`,name:"compile"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L702"}}),fo=new k({props:{name:"forward",anchor:"optimum.intel.OVModelForCTC.forward",parameters:[{name:"input_values",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Union[torch.Tensor, numpy.ndarray, NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForCTC.forward.input_values",description:`<strong>input_values</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Float values of input raw speech waveform..
Input values can be obtained from audio file loaded into an array using <a href="https://huggingface.co/docs/transformers/autoclass_tutorial#autofeatureextractor" rel="nofollow"><code>AutoFeatureExtractor</code></a>.`,name:"input_values"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L710"}}),ht=new G({props:{$$slots:{default:[xd]},$$scope:{ctx:w}}}),ft=new O({props:{anchor:"optimum.intel.OVModelForCTC.forward.example",$$slots:{default:[Od]},$$scope:{ctx:w}}}),yo=new C({props:{title:"OVModelForAudioXVector",local:"optimum.intel.OVModelForAudioXVector",headingTag:"h3"}}),Mo=new k({props:{name:"class optimum.intel.OVModelForAudioXVector",anchor:"optimum.intel.OVModelForAudioXVector",parameters:[{name:"model",val:": Model"},{name:"config",val:": PretrainedConfig = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForAudioXVector.model",description:"<strong>model</strong> (<code>openvino.Model</code>) &#x2014; is the main class used to run OpenVINO Runtime inference.",name:"model"},{anchor:"optimum.intel.OVModelForAudioXVector.config",description:`<strong>config</strong> (<code>transformers.PretrainedConfig</code>) &#x2014; <a href="https://huggingface.co/docs/transformers/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>
is the 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 <code>~intel.openvino.modeling.OVBaseModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.intel.OVModelForAudioXVector.device",description:`<strong>device</strong> (<code>str</code>, defaults to <code>&quot;CPU&quot;</code>) &#x2014;
The device type for which the model will be optimized for. The resulting compiled model will contains nodes specific to this device.`,name:"device"},{anchor:"optimum.intel.OVModelForAudioXVector.dynamic_shapes",description:`<strong>dynamic_shapes</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
All the model&#x2019;s dimension will be set to dynamic when set to <code>True</code>. Should be set to <code>False</code> for the model to not be dynamically reshaped by default.`,name:"dynamic_shapes"},{anchor:"optimum.intel.OVModelForAudioXVector.ov_config",description:`<strong>ov_config</strong> (<code>Optional[Dict]</code>, defaults to <code>None</code>) &#x2014;
The dictionary containing the information related to the model compilation.`,name:"ov_config"},{anchor:"optimum.intel.OVModelForAudioXVector.compile",description:`<strong>compile</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Disable the model compilation during the loading step when set to <code>False</code>.
Can be useful to avoid unnecessary compilation, in the case where the model needs to be statically reshaped, the device modified or if FP16 conversion is enabled.`,name:"compile"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L782"}}),bo=new k({props:{name:"forward",anchor:"optimum.intel.OVModelForAudioXVector.forward",parameters:[{name:"input_values",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForAudioXVector.forward.input_values",description:`<strong>input_values</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Float values of input raw speech waveform..
Input values can be obtained from audio file loaded into an array using <a href="https://huggingface.co/docs/transformers/autoclass_tutorial#autofeatureextractor" rel="nofollow"><code>AutoFeatureExtractor</code></a>.`,name:"input_values"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L790"}}),yt=new G({props:{$$slots:{default:[Ud]},$$scope:{ctx:w}}}),Mt=new O({props:{anchor:"optimum.intel.OVModelForAudioXVector.forward.example",$$slots:{default:[Zd]},$$scope:{ctx:w}}}),vo=new C({props:{title:"OVModelForSpeechSeq2Seq",local:"optimum.intel.OVModelForSpeechSeq2Seq",headingTag:"h3"}}),_o=new k({props:{name:"class optimum.intel.OVModelForSpeechSeq2Seq",anchor:"optimum.intel.OVModelForSpeechSeq2Seq",parameters:[{name:"encoder",val:": Model"},{name:"decoder",val:": Model"},{name:"decoder_with_past",val:": Model = None"},{name:"config",val:": PretrainedConfig = None"},{name:"device",val:": str = 'CPU'"},{name:"dynamic_shapes",val:": bool = True"},{name:"ov_config",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"model_save_dir",val:": typing.Union[str, pathlib.Path, optimum.intel.openvino.utils.TemporaryDirectory, NoneType] = None"},{name:"quantization_config",val:": typing.Union[optimum.intel.openvino.configuration.OVWeightQuantizationConfig, typing.Dict] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForSpeechSeq2Seq.encoder",description:`<strong>encoder</strong> (<code>openvino.Model</code>) &#x2014;
The OpenVINO Runtime model associated to the encoder.`,name:"encoder"},{anchor:"optimum.intel.OVModelForSpeechSeq2Seq.decoder",description:`<strong>decoder</strong> (<code>openvino.Model</code>) &#x2014;
The OpenVINO Runtime model associated to the decoder.`,name:"decoder"},{anchor:"optimum.intel.OVModelForSpeechSeq2Seq.decoder_with_past",description:`<strong>decoder_with_past</strong> (<code>openvino.Model</code>) &#x2014;
The OpenVINO Runtime model associated  to the decoder with past key values.`,name:"decoder_with_past"},{anchor:"optimum.intel.OVModelForSpeechSeq2Seq.config",description:`<strong>config</strong> (<code>transformers.PretrainedConfig</code>) &#x2014;
<a href="https://huggingface.co/docs/transformers/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>
is an instance of the configuration associated to the model. Initializing with a config file does
not load the weights associated with the model, only the configuration.`,name:"config"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_seq2seq.py#L1209"}}),$o=new k({props:{name:"forward",anchor:"optimum.intel.OVModelForSpeechSeq2Seq.forward",parameters:[{name:"input_features",val:": typing.Optional[torch.FloatTensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.LongTensor] = None"},{name:"decoder_input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"decoder_attention_mask",val:": typing.Optional[torch.BoolTensor] = None"},{name:"encoder_outputs",val:": typing.Optional[typing.Tuple[typing.Tuple[torch.Tensor]]] = None"},{name:"past_key_values",val:": typing.Optional[typing.Tuple[typing.Tuple[torch.Tensor]]] = None"},{name:"cache_position",val:": typing.Optional[torch.LongTensor] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForSpeechSeq2Seq.forward.input_features",description:`<strong>input_features</strong> (<code>torch.FloatTensor</code>) &#x2014;
Mel features extracted from the raw speech waveform.
<code>(batch_size, feature_size, encoder_sequence_length)</code>.`,name:"input_features"},{anchor:"optimum.intel.OVModelForSpeechSeq2Seq.forward.decoder_input_ids",description:`<strong>decoder_input_ids</strong> (<code>torch.LongTensor</code>) &#x2014;
Indices of decoder input sequence tokens in the vocabulary of shape <code>(batch_size, decoder_sequence_length)</code>.`,name:"decoder_input_ids"},{anchor:"optimum.intel.OVModelForSpeechSeq2Seq.forward.encoder_outputs",description:`<strong>encoder_outputs</strong> (<code>torch.FloatTensor</code>) &#x2014;
The encoder <code>last_hidden_state</code> of shape <code>(batch_size, encoder_sequence_length, hidden_size)</code>.`,name:"encoder_outputs"},{anchor:"optimum.intel.OVModelForSpeechSeq2Seq.forward.past_key_values",description:`<strong>past_key_values</strong> (<code>tuple(tuple(torch.FloatTensor), *optional*, defaults to </code>None<code>)</code> &#x2014;
Contains the precomputed key and value hidden states of the attention blocks used to speed up decoding.
The tuple is of length <code>config.n_layers</code> with each tuple having 2 tensors of shape
<code>(batch_size, num_heads, decoder_sequence_length, embed_size_per_head)</code> and 2 additional tensors of shape
<code>(batch_size, num_heads, encoder_sequence_length, embed_size_per_head)</code>.`,name:"past_key_values"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_seq2seq.py#L1245"}}),bt=new G({props:{$$slots:{default:[Id]},$$scope:{ctx:w}}}),vt=new O({props:{anchor:"optimum.intel.OVModelForSpeechSeq2Seq.forward.example",$$slots:{default:[Wd]},$$scope:{ctx:w}}}),_t=new O({props:{anchor:"optimum.intel.OVModelForSpeechSeq2Seq.forward.example-2",$$slots:{default:[Nd]},$$scope:{ctx:w}}}),wo=new C({props:{title:"Computer Vision",local:"computer-vision",headingTag:"h2"}}),Vo=new C({props:{title:"OVModelForImageClassification",local:"optimum.intel.OVModelForImageClassification",headingTag:"h3"}}),ko=new k({props:{name:"class optimum.intel.OVModelForImageClassification",anchor:"optimum.intel.OVModelForImageClassification",parameters:[{name:"model",val:" = None"},{name:"config",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForImageClassification.model",description:"<strong>model</strong> (<code>openvino.Model</code>) &#x2014; is the main class used to run OpenVINO Runtime inference.",name:"model"},{anchor:"optimum.intel.OVModelForImageClassification.config",description:`<strong>config</strong> (<code>transformers.PretrainedConfig</code>) &#x2014; <a href="https://huggingface.co/docs/transformers/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>
is the 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 <code>~intel.openvino.modeling.OVBaseModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.intel.OVModelForImageClassification.device",description:`<strong>device</strong> (<code>str</code>, defaults to <code>&quot;CPU&quot;</code>) &#x2014;
The device type for which the model will be optimized for. The resulting compiled model will contains nodes specific to this device.`,name:"device"},{anchor:"optimum.intel.OVModelForImageClassification.dynamic_shapes",description:`<strong>dynamic_shapes</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
All the model&#x2019;s dimension will be set to dynamic when set to <code>True</code>. Should be set to <code>False</code> for the model to not be dynamically reshaped by default.`,name:"dynamic_shapes"},{anchor:"optimum.intel.OVModelForImageClassification.ov_config",description:`<strong>ov_config</strong> (<code>Optional[Dict]</code>, defaults to <code>None</code>) &#x2014;
The dictionary containing the information related to the model compilation.`,name:"ov_config"},{anchor:"optimum.intel.OVModelForImageClassification.compile",description:`<strong>compile</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Disable the model compilation during the loading step when set to <code>False</code>.
Can be useful to avoid unnecessary compilation, in the case where the model needs to be statically reshaped, the device modified or if FP16 conversion is enabled.`,name:"compile"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L517"}}),Jo=new k({props:{name:"forward",anchor:"optimum.intel.OVModelForImageClassification.forward",parameters:[{name:"pixel_values",val:": typing.Union[torch.Tensor, numpy.ndarray]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForImageClassification.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.Tensor</code>) &#x2014;
Pixel values corresponding to the images in the current batch.
Pixel values can be obtained from encoded images using <a href="https://huggingface.co/docs/transformers/autoclass_tutorial#autofeatureextractor" rel="nofollow"><code>AutoFeatureExtractor</code></a>.`,name:"pixel_values"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L579"}}),$t=new G({props:{$$slots:{default:[qd]},$$scope:{ctx:w}}}),wt=new O({props:{anchor:"optimum.intel.OVModelForImageClassification.forward.example",$$slots:{default:[Gd]},$$scope:{ctx:w}}}),Tt=new O({props:{anchor:"optimum.intel.OVModelForImageClassification.forward.example-2",$$slots:{default:[Xd]},$$scope:{ctx:w}}}),Co=new C({props:{title:"Multimodal",local:"multimodal",headingTag:"h2"}}),Fo=new C({props:{title:"OVModelForVision2Seq",local:"optimum.intel.OVModelForVision2Seq",headingTag:"h3"}}),xo=new k({props:{name:"class optimum.intel.OVModelForVision2Seq",anchor:"optimum.intel.OVModelForVision2Seq",parameters:[{name:"encoder",val:": Model"},{name:"decoder",val:": Model"},{name:"decoder_with_past",val:": Model = None"},{name:"config",val:": PretrainedConfig = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForVision2Seq.encoder",description:`<strong>encoder</strong> (<code>openvino.Model</code>) &#x2014;
The OpenVINO Runtime model associated to the encoder.`,name:"encoder"},{anchor:"optimum.intel.OVModelForVision2Seq.decoder",description:`<strong>decoder</strong> (<code>openvino.Model</code>) &#x2014;
The OpenVINO Runtime model associated to the decoder.`,name:"decoder"},{anchor:"optimum.intel.OVModelForVision2Seq.decoder_with_past",description:`<strong>decoder_with_past</strong> (<code>openvino.Model</code>) &#x2014;
The OpenVINO Runtime model associated  to the decoder with past key values.`,name:"decoder_with_past"},{anchor:"optimum.intel.OVModelForVision2Seq.config",description:`<strong>config</strong> (<code>transformers.PretrainedConfig</code>) &#x2014;
<a href="https://huggingface.co/docs/transformers/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>
is an instance of the configuration associated to the model. Initializing with a config file does
not load the weights associated with the model, only the configuration.`,name:"config"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_seq2seq.py#L1026"}}),Oo=new k({props:{name:"forward",anchor:"optimum.intel.OVModelForVision2Seq.forward",parameters:[{name:"pixel_values",val:": typing.Optional[torch.FloatTensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.LongTensor] = None"},{name:"decoder_input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"decoder_attention_mask",val:": typing.Optional[torch.BoolTensor] = None"},{name:"encoder_outputs",val:": typing.Optional[typing.Tuple[typing.Tuple[torch.Tensor]]] = None"},{name:"past_key_values",val:": typing.Optional[typing.Tuple[typing.Tuple[torch.Tensor]]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForVision2Seq.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.FloatTensor</code>) &#x2014;
Features extracted from an Image. This tensor should be of shape
<code>(batch_size, num_channels, height, width)</code>.`,name:"pixel_values"},{anchor:"optimum.intel.OVModelForVision2Seq.forward.decoder_input_ids",description:`<strong>decoder_input_ids</strong> (<code>torch.LongTensor</code>) &#x2014;
Indices of decoder input sequence tokens in the vocabulary of shape <code>(batch_size, decoder_sequence_length)</code>.`,name:"decoder_input_ids"},{anchor:"optimum.intel.OVModelForVision2Seq.forward.encoder_outputs",description:`<strong>encoder_outputs</strong> (<code>torch.FloatTensor</code>) &#x2014;
The encoder <code>last_hidden_state</code> of shape <code>(batch_size, encoder_sequence_length, hidden_size)</code>.`,name:"encoder_outputs"},{anchor:"optimum.intel.OVModelForVision2Seq.forward.past_key_values",description:`<strong>past_key_values</strong> (<code>tuple(tuple(torch.FloatTensor), *optional*, defaults to </code>None<code>)</code> &#x2014;
Contains the precomputed key and value hidden states of the attention blocks used to speed up decoding.
The tuple is of length <code>config.n_layers</code> with each tuple having 2 tensors of shape
<code>(batch_size, num_heads, decoder_sequence_length, embed_size_per_head)</code> and 2 additional tensors of shape
<code>(batch_size, num_heads, encoder_sequence_length, embed_size_per_head)</code>.`,name:"past_key_values"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_seq2seq.py#L1073"}}),Vt=new G({props:{$$slots:{default:[zd]},$$scope:{ctx:w}}}),kt=new O({props:{anchor:"optimum.intel.OVModelForVision2Seq.forward.example",$$slots:{default:[Rd]},$$scope:{ctx:w}}}),Jt=new O({props:{anchor:"optimum.intel.OVModelForVision2Seq.forward.example-2",$$slots:{default:[Bd]},$$scope:{ctx:w}}}),Uo=new C({props:{title:"OVModelForPix2Struct",local:"optimum.intel.OVModelForPix2Struct",headingTag:"h3"}}),Zo=new k({props:{name:"class optimum.intel.OVModelForPix2Struct",anchor:"optimum.intel.OVModelForPix2Struct",parameters:[{name:"encoder",val:": Model"},{name:"decoder",val:": Model"},{name:"decoder_with_past",val:": Model = None"},{name:"config",val:": PretrainedConfig = None"},{name:"device",val:": str = 'CPU'"},{name:"dynamic_shapes",val:": bool = True"},{name:"ov_config",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"model_save_dir",val:": typing.Union[str, pathlib.Path, optimum.intel.openvino.utils.TemporaryDirectory, NoneType] = None"},{name:"quantization_config",val:": typing.Union[optimum.intel.openvino.configuration.OVWeightQuantizationConfig, typing.Dict] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForPix2Struct.encoder",description:`<strong>encoder</strong> (<code>openvino.Model</code>) &#x2014;
The OpenVINO Runtime model associated to the encoder.`,name:"encoder"},{anchor:"optimum.intel.OVModelForPix2Struct.decoder",description:`<strong>decoder</strong> (<code>openvino.Model</code>) &#x2014;
The OpenVINO Runtime model associated to the decoder.`,name:"decoder"},{anchor:"optimum.intel.OVModelForPix2Struct.decoder_with_past",description:`<strong>decoder_with_past</strong> (<code>openvino.Model</code>) &#x2014;
The OpenVINO Runtime model associated  to the decoder with past key values.`,name:"decoder_with_past"},{anchor:"optimum.intel.OVModelForPix2Struct.config",description:`<strong>config</strong> (<code>transformers.PretrainedConfig</code>) &#x2014;
<a href="https://huggingface.co/docs/transformers/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>
is an instance of the configuration associated to the model. Initializing with a config file does
not load the weights associated with the model, only the configuration.`,name:"config"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_seq2seq.py#L1124"}}),Io=new k({props:{name:"forward",anchor:"optimum.intel.OVModelForPix2Struct.forward",parameters:[{name:"flattened_patches",val:": typing.Optional[torch.FloatTensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.LongTensor] = None"},{name:"decoder_input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"decoder_attention_mask",val:": typing.Optional[torch.BoolTensor] = None"},{name:"encoder_outputs",val:": typing.Optional[typing.Tuple[typing.Tuple[torch.Tensor]]] = None"},{name:"past_key_values",val:": typing.Optional[typing.Tuple[typing.Tuple[torch.Tensor]]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForPix2Struct.forward.flattened_patches",description:`<strong>flattened_patches</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, seq_length, hidden_size)</code>) &#x2014;
Flattened pixel patches. the <code>hidden_size</code> is obtained by the following formula: <code>hidden_size</code> =
<code>num_channels</code> <em> <code>patch_size</code> </em> <code>patch_size</code>
The process of flattening the pixel patches is done by <code>Pix2StructProcessor</code>.`,name:"flattened_patches"},{anchor:"optimum.intel.OVModelForPix2Struct.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices.`,name:"attention_mask"},{anchor:"optimum.intel.OVModelForPix2Struct.forward.decoder_input_ids",description:`<strong>decoder_input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, target_sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of decoder input sequence tokens in the vocabulary.
Pix2StructText uses the <code>pad_token_id</code> as the starting token for <code>decoder_input_ids</code> generation. If
<code>past_key_values</code> is used, optionally only the last <code>decoder_input_ids</code> have to be input (see
<code>past_key_values</code>).`,name:"decoder_input_ids"},{anchor:"optimum.intel.OVModelForPix2Struct.forward.decoder_attention_mask",description:`<strong>decoder_attention_mask</strong> (<code>torch.BoolTensor</code> of shape <code>(batch_size, target_sequence_length)</code>, <em>optional</em>) &#x2014;
Default behavior: generate a tensor that ignores pad tokens in <code>decoder_input_ids</code>. Causal mask will also
be used by default.`,name:"decoder_attention_mask"},{anchor:"optimum.intel.OVModelForPix2Struct.forward.encoder_outputs",description:`<strong>encoder_outputs</strong> (<code>tuple(tuple(torch.FloatTensor)</code>, <em>optional</em>) &#x2014;
Tuple consists of (<code>last_hidden_state</code>, <code>optional</code>: <em>hidden_states</em>, <code>optional</code>: <em>attentions</em>)
<code>last_hidden_state</code> of shape <code>(batch_size, sequence_length, hidden_size)</code> is a sequence of hidden states at
the output of the last layer of the encoder. Used in the cross-attention of the decoder.`,name:"encoder_outputs"},{anchor:"optimum.intel.OVModelForPix2Struct.forward.past_key_values",description:`<strong>past_key_values</strong> (<code>tuple(tuple(torch.FloatTensor), *optional*, defaults to </code>None<code>)</code> &#x2014;
Contains the precomputed key and value hidden states of the attention blocks used to speed up decoding.
The tuple is of length <code>config.n_layers</code> with each tuple having 2 tensors of shape
<code>(batch_size, num_heads, decoder_sequence_length, embed_size_per_head)</code> and 2 additional tensors of shape
<code>(batch_size, num_heads, encoder_sequence_length, embed_size_per_head)</code>.`,name:"past_key_values"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_seq2seq.py#L1159"}}),Ct=new G({props:{$$slots:{default:[Sd]},$$scope:{ctx:w}}}),jt=new O({props:{anchor:"optimum.intel.OVModelForPix2Struct.forward.example",$$slots:{default:[Ld]},$$scope:{ctx:w}}}),Wo=new C({props:{title:"Custom Tasks",local:"custom-tasks",headingTag:"h2"}}),No=new C({props:{title:"OVModelForCustomTasks",local:"optimum.intel.OVModelForCustomTasks",headingTag:"h3"}}),qo=new k({props:{name:"class optimum.intel.OVModelForCustomTasks",anchor:"optimum.intel.OVModelForCustomTasks",parameters:[{name:"model",val:": Model"},{name:"config",val:": PretrainedConfig = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForCustomTasks.model",description:"<strong>model</strong> (<code>openvino.Model</code>) &#x2014; is the main class used to run OpenVINO Runtime inference.",name:"model"},{anchor:"optimum.intel.OVModelForCustomTasks.config",description:`<strong>config</strong> (<code>transformers.PretrainedConfig</code>) &#x2014; <a href="https://huggingface.co/docs/transformers/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>
is the 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 <code>~intel.openvino.modeling.OVBaseModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.intel.OVModelForCustomTasks.device",description:`<strong>device</strong> (<code>str</code>, defaults to <code>&quot;CPU&quot;</code>) &#x2014;
The device type for which the model will be optimized for. The resulting compiled model will contains nodes specific to this device.`,name:"device"},{anchor:"optimum.intel.OVModelForCustomTasks.dynamic_shapes",description:`<strong>dynamic_shapes</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
All the model&#x2019;s dimension will be set to dynamic when set to <code>True</code>. Should be set to <code>False</code> for the model to not be dynamically reshaped by default.`,name:"dynamic_shapes"},{anchor:"optimum.intel.OVModelForCustomTasks.ov_config",description:`<strong>ov_config</strong> (<code>Optional[Dict]</code>, defaults to <code>None</code>) &#x2014;
The dictionary containing the information related to the model compilation.`,name:"ov_config"},{anchor:"optimum.intel.OVModelForCustomTasks.compile",description:`<strong>compile</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Disable the model compilation during the loading step when set to <code>False</code>.
Can be useful to avoid unnecessary compilation, in the case where the model needs to be statically reshaped, the device modified or if FP16 conversion is enabled.`,name:"compile"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L924"}}),Go=new k({props:{name:"forward",anchor:"optimum.intel.OVModelForCustomTasks.forward",parameters:[{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L925"}}),Ft=new G({props:{$$slots:{default:[Hd]},$$scope:{ctx:w}}}),xt=new O({props:{anchor:"optimum.intel.OVModelForCustomTasks.forward.example",$$slots:{default:[Ed]},$$scope:{ctx:w}}}),Xo=new C({props:{title:"OVModelForFeatureExtraction",local:"optimum.intel.OVModelForFeatureExtraction",headingTag:"h3"}}),zo=new k({props:{name:"class optimum.intel.OVModelForFeatureExtraction",anchor:"optimum.intel.OVModelForFeatureExtraction",parameters:[{name:"model",val:" = None"},{name:"config",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForFeatureExtraction.model",description:"<strong>model</strong> (<code>openvino.Model</code>) &#x2014; is the main class used to run OpenVINO Runtime inference.",name:"model"},{anchor:"optimum.intel.OVModelForFeatureExtraction.config",description:`<strong>config</strong> (<code>transformers.PretrainedConfig</code>) &#x2014; <a href="https://huggingface.co/docs/transformers/main_classes/configuration#transformers.PretrainedConfig" rel="nofollow">PretrainedConfig</a>
is the 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 <code>~intel.openvino.modeling.OVBaseModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.intel.OVModelForFeatureExtraction.device",description:`<strong>device</strong> (<code>str</code>, defaults to <code>&quot;CPU&quot;</code>) &#x2014;
The device type for which the model will be optimized for. The resulting compiled model will contains nodes specific to this device.`,name:"device"},{anchor:"optimum.intel.OVModelForFeatureExtraction.dynamic_shapes",description:`<strong>dynamic_shapes</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
All the model&#x2019;s dimension will be set to dynamic when set to <code>True</code>. Should be set to <code>False</code> for the model to not be dynamically reshaped by default.`,name:"dynamic_shapes"},{anchor:"optimum.intel.OVModelForFeatureExtraction.ov_config",description:`<strong>ov_config</strong> (<code>Optional[Dict]</code>, defaults to <code>None</code>) &#x2014;
The dictionary containing the information related to the model compilation.`,name:"ov_config"},{anchor:"optimum.intel.OVModelForFeatureExtraction.compile",description:`<strong>compile</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Disable the model compilation during the loading step when set to <code>False</code>.
Can be useful to avoid unnecessary compilation, in the case where the model needs to be statically reshaped, the device modified or if FP16 conversion is enabled.`,name:"compile"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L351"}}),Ro=new k({props:{name:"forward",anchor:"optimum.intel.OVModelForFeatureExtraction.forward",parameters:[{name:"input_ids",val:": typing.Union[torch.Tensor, numpy.ndarray]"},{name:"attention_mask",val:": typing.Union[torch.Tensor, numpy.ndarray]"},{name:"token_type_ids",val:": typing.Union[torch.Tensor, numpy.ndarray, NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.intel.OVModelForFeatureExtraction.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.Tensor</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.
Indices can be obtained using <a href="https://huggingface.co/docs/transformers/autoclass_tutorial#autotokenizer" rel="nofollow"><code>AutoTokenizer</code></a>.
<a href="https://huggingface.co/docs/transformers/glossary#input-ids" rel="nofollow">What are input IDs?</a>`,name:"input_ids"},{anchor:"optimum.intel.OVModelForFeatureExtraction.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code>), <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.
<a href="https://huggingface.co/docs/transformers/glossary#attention-mask" rel="nofollow">What are attention masks?</a></li>
</ul>`,name:"attention_mask"},{anchor:"optimum.intel.OVModelForFeatureExtraction.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:
<ul>
<li>1 for tokens that are <strong>sentence A</strong>,</li>
<li>0 for tokens that are <strong>sentence B</strong>.
<a href="https://huggingface.co/docs/transformers/glossary#token-type-ids" rel="nofollow">What are token type IDs?</a></li>
</ul>`,name:"token_type_ids"}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling.py#L365"}}),Ot=new G({props:{$$slots:{default:[Pd]},$$scope:{ctx:w}}}),Ut=new O({props:{anchor:"optimum.intel.OVModelForFeatureExtraction.forward.example",$$slots:{default:[Qd]},$$scope:{ctx:w}}}),Bo=new C({props:{title:"Text-to-image",local:"text-to-image",headingTag:"h2"}}),So=new C({props:{title:"OVStableDiffusionPipeline",local:"optimum.intel.OVStableDiffusionPipeline",headingTag:"h3"}}),Lo=new k({props:{name:"class optimum.intel.OVStableDiffusionPipeline",anchor:"optimum.intel.OVStableDiffusionPipeline",parameters:[{name:"scheduler",val:": SchedulerMixin"},{name:"unet",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"vae_decoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"vae_encoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder_2",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder_3",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"transformer",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"tokenizer",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"tokenizer_2",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"tokenizer_3",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor] = None"},{name:"force_zeros_for_empty_prompt",val:": bool = True"},{name:"requires_aesthetics_score",val:": bool = False"},{name:"add_watermarker",val:": typing.Optional[bool] = None"},{name:"device",val:": str = 'CPU'"},{name:"compile",val:": bool = True"},{name:"compile_only",val:": bool = False"},{name:"dynamic_shapes",val:": bool = True"},{name:"ov_config",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"model_save_dir",val:": typing.Union[str, pathlib.Path, optimum.intel.openvino.utils.TemporaryDirectory, NoneType] = None"},{name:"quantization_config",val:": typing.Union[optimum.intel.openvino.configuration.OVWeightQuantizationConfig, typing.Dict, NoneType] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_diffusion.py#L1482"}}),Ho=new k({props:{name:"forward",anchor:"optimum.intel.OVStableDiffusionPipeline.forward",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_base.py#L846"}}),Eo=new C({props:{title:"OVStableDiffusionXLPipeline",local:"optimum.intel.OVStableDiffusionXLPipeline",headingTag:"h3"}}),Po=new k({props:{name:"class optimum.intel.OVStableDiffusionXLPipeline",anchor:"optimum.intel.OVStableDiffusionXLPipeline",parameters:[{name:"scheduler",val:": SchedulerMixin"},{name:"unet",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"vae_decoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"vae_encoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder_2",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder_3",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"transformer",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"tokenizer",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"tokenizer_2",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"tokenizer_3",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor] = None"},{name:"force_zeros_for_empty_prompt",val:": bool = True"},{name:"requires_aesthetics_score",val:": bool = False"},{name:"add_watermarker",val:": typing.Optional[bool] = None"},{name:"device",val:": str = 'CPU'"},{name:"compile",val:": bool = True"},{name:"compile_only",val:": bool = False"},{name:"dynamic_shapes",val:": bool = True"},{name:"ov_config",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"model_save_dir",val:": typing.Union[str, pathlib.Path, optimum.intel.openvino.utils.TemporaryDirectory, NoneType] = None"},{name:"quantization_config",val:": typing.Union[optimum.intel.openvino.configuration.OVWeightQuantizationConfig, typing.Dict, NoneType] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_diffusion.py#L1516"}}),Qo=new k({props:{name:"forward",anchor:"optimum.intel.OVStableDiffusionXLPipeline.forward",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_base.py#L846"}}),Yo=new C({props:{title:"OVLatentConsistencyModelPipeline",local:"optimum.intel.OVLatentConsistencyModelPipeline",headingTag:"h3"}}),Do=new k({props:{name:"class optimum.intel.OVLatentConsistencyModelPipeline",anchor:"optimum.intel.OVLatentConsistencyModelPipeline",parameters:[{name:"scheduler",val:": SchedulerMixin"},{name:"unet",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"vae_decoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"vae_encoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder_2",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder_3",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"transformer",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"tokenizer",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"tokenizer_2",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"tokenizer_3",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor] = None"},{name:"force_zeros_for_empty_prompt",val:": bool = True"},{name:"requires_aesthetics_score",val:": bool = False"},{name:"add_watermarker",val:": typing.Optional[bool] = None"},{name:"device",val:": str = 'CPU'"},{name:"compile",val:": bool = True"},{name:"compile_only",val:": bool = False"},{name:"dynamic_shapes",val:": bool = True"},{name:"ov_config",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"model_save_dir",val:": typing.Union[str, pathlib.Path, optimum.intel.openvino.utils.TemporaryDirectory, NoneType] = None"},{name:"quantization_config",val:": typing.Union[optimum.intel.openvino.configuration.OVWeightQuantizationConfig, typing.Dict, NoneType] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_diffusion.py#L1617"}}),Ao=new k({props:{name:"forward",anchor:"optimum.intel.OVLatentConsistencyModelPipeline.forward",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_base.py#L846"}}),Ko=new C({props:{title:"Image-to-image",local:"image-to-image",headingTag:"h2"}}),en=new C({props:{title:"OVStableDiffusionImg2ImgPipeline",local:"optimum.intel.OVStableDiffusionImg2ImgPipeline",headingTag:"h3"}}),tn=new k({props:{name:"class optimum.intel.OVStableDiffusionImg2ImgPipeline",anchor:"optimum.intel.OVStableDiffusionImg2ImgPipeline",parameters:[{name:"scheduler",val:": SchedulerMixin"},{name:"unet",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"vae_decoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"vae_encoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder_2",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder_3",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"transformer",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"tokenizer",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"tokenizer_2",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"tokenizer_3",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor] = None"},{name:"force_zeros_for_empty_prompt",val:": bool = True"},{name:"requires_aesthetics_score",val:": bool = False"},{name:"add_watermarker",val:": typing.Optional[bool] = None"},{name:"device",val:": str = 'CPU'"},{name:"compile",val:": bool = True"},{name:"compile_only",val:": bool = False"},{name:"dynamic_shapes",val:": bool = True"},{name:"ov_config",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"model_save_dir",val:": typing.Union[str, pathlib.Path, optimum.intel.openvino.utils.TemporaryDirectory, NoneType] = None"},{name:"quantization_config",val:": typing.Union[optimum.intel.openvino.configuration.OVWeightQuantizationConfig, typing.Dict, NoneType] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_diffusion.py#L1492"}}),on=new k({props:{name:"forward",anchor:"optimum.intel.OVStableDiffusionImg2ImgPipeline.forward",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_base.py#L846"}}),nn=new C({props:{title:"OVStableDiffusionXLImg2ImgPipeline",local:"optimum.intel.OVStableDiffusionXLImg2ImgPipeline",headingTag:"h3"}}),an=new k({props:{name:"class optimum.intel.OVStableDiffusionXLImg2ImgPipeline",anchor:"optimum.intel.OVStableDiffusionXLImg2ImgPipeline",parameters:[{name:"scheduler",val:": SchedulerMixin"},{name:"unet",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"vae_decoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"vae_encoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder_2",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder_3",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"transformer",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"tokenizer",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"tokenizer_2",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"tokenizer_3",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor] = None"},{name:"force_zeros_for_empty_prompt",val:": bool = True"},{name:"requires_aesthetics_score",val:": bool = False"},{name:"add_watermarker",val:": typing.Optional[bool] = None"},{name:"device",val:": str = 'CPU'"},{name:"compile",val:": bool = True"},{name:"compile_only",val:": bool = False"},{name:"dynamic_shapes",val:": bool = True"},{name:"ov_config",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"model_save_dir",val:": typing.Union[str, pathlib.Path, optimum.intel.openvino.utils.TemporaryDirectory, NoneType] = None"},{name:"quantization_config",val:": typing.Union[optimum.intel.openvino.configuration.OVWeightQuantizationConfig, typing.Dict, NoneType] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_diffusion.py#L1539"}}),sn=new k({props:{name:"forward",anchor:"optimum.intel.OVStableDiffusionXLImg2ImgPipeline.forward",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_base.py#L846"}}),ln=new C({props:{title:"Inpainting",local:"inpainting",headingTag:"h2"}}),rn=new C({props:{title:"OVStableDiffusionInpaintPipeline",local:"optimum.intel.OVStableDiffusionInpaintPipeline",headingTag:"h3"}}),dn=new k({props:{name:"class optimum.intel.OVStableDiffusionInpaintPipeline",anchor:"optimum.intel.OVStableDiffusionInpaintPipeline",parameters:[{name:"scheduler",val:": SchedulerMixin"},{name:"unet",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"vae_decoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"vae_encoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder_2",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"text_encoder_3",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"transformer",val:": typing.Optional[openvino._ov_api.Model] = None"},{name:"tokenizer",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"tokenizer_2",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"tokenizer_3",val:": typing.Optional[transformers.models.clip.tokenization_clip.CLIPTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor] = None"},{name:"force_zeros_for_empty_prompt",val:": bool = True"},{name:"requires_aesthetics_score",val:": bool = False"},{name:"add_watermarker",val:": typing.Optional[bool] = None"},{name:"device",val:": str = 'CPU'"},{name:"compile",val:": bool = True"},{name:"compile_only",val:": bool = False"},{name:"dynamic_shapes",val:": bool = True"},{name:"ov_config",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"model_save_dir",val:": typing.Union[str, pathlib.Path, optimum.intel.openvino.utils.TemporaryDirectory, NoneType] = None"},{name:"quantization_config",val:": typing.Union[optimum.intel.openvino.configuration.OVWeightQuantizationConfig, typing.Dict, NoneType] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_diffusion.py#L1504"}}),pn=new k({props:{name:"forward",anchor:"optimum.intel.OVStableDiffusionInpaintPipeline.forward",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-intel/blob/main/optimum/intel/openvino/modeling_base.py#L846"}}),{c(){o=p("meta"),b=r(),a=p("p"),i=r(),h(v.$$.fragment),t=r(),h(_.$$.fragment),Le=r(),h(x.$$.fragment),He=r(),j=p("div"),h(F.$$.fragment),Z=r(),Ee=p("p"),Ee.textContent=Ja,Is=r(),Ae=p("div"),h(Wt.$$.fragment),Ws=r(),gn=p("p"),gn.textContent=Xl,Ns=r(),Ke=p("div"),h(Nt.$$.fragment),qs=r(),un=p("p"),un.textContent=zl,xa=r(),h(qt.$$.fragment),Oa=r(),Gt=p("p"),Gt.textContent=Rl,Ua=r(),h(Xt.$$.fragment),Za=r(),I=p("div"),h(zt.$$.fragment),Gs=r(),hn=p("p"),hn.textContent=Bl,Xs=r(),fn=p("p"),fn.innerHTML=Sl,zs=r(),yn=p("div"),h(Rt.$$.fragment),Rs=r(),Mn=p("div"),h(Bt.$$.fragment),Ia=r(),h(St.$$.fragment),Wa=r(),S=p("div"),h(Lt.$$.fragment),Bs=r(),bn=p("p"),bn.textContent=Ll,Ss=r(),vn=p("p"),vn.innerHTML=Hl,Ls=r(),ie=p("div"),h(Ht.$$.fragment),Hs=r(),_n=p("p"),_n.innerHTML=El,Es=r(),h(et.$$.fragment),Ps=r(),h(tt.$$.fragment),Na=r(),h(Et.$$.fragment),qa=r(),ye=p("div"),h(Pt.$$.fragment),Qs=r(),$n=p("p"),$n.textContent=Pl,Ys=r(),X=p("div"),h(Qt.$$.fragment),Ds=r(),wn=p("p"),wn.innerHTML=Ql,As=r(),h(ot.$$.fragment),Ks=r(),h(nt.$$.fragment),ei=r(),h(at.$$.fragment),Ga=r(),h(Yt.$$.fragment),Xa=r(),L=p("div"),h(Dt.$$.fragment),ti=r(),Tn=p("p"),Tn.textContent=Yl,oi=r(),Vn=p("p"),Vn.innerHTML=Dl,ni=r(),le=p("div"),h(At.$$.fragment),ai=r(),kn=p("p"),kn.innerHTML=Al,si=r(),h(st.$$.fragment),ii=r(),h(it.$$.fragment),za=r(),h(Kt.$$.fragment),Ra=r(),H=p("div"),h(eo.$$.fragment),li=r(),Jn=p("p"),Jn.textContent=Kl,ri=r(),Cn=p("p"),Cn.innerHTML=er,di=r(),re=p("div"),h(to.$$.fragment),pi=r(),jn=p("p"),jn.innerHTML=tr,ci=r(),h(lt.$$.fragment),mi=r(),h(rt.$$.fragment),Ba=r(),h(oo.$$.fragment),Sa=r(),E=p("div"),h(no.$$.fragment),gi=r(),Fn=p("p"),Fn.textContent=or,ui=r(),xn=p("p"),xn.innerHTML=nr,hi=r(),de=p("div"),h(ao.$$.fragment),fi=r(),On=p("p"),On.innerHTML=ar,yi=r(),h(dt.$$.fragment),Mi=r(),h(pt.$$.fragment),La=r(),h(so.$$.fragment),Ha=r(),io=p("p"),io.textContent=sr,Ea=r(),h(lo.$$.fragment),Pa=r(),P=p("div"),h(ro.$$.fragment),bi=r(),Un=p("p"),Un.textContent=ir,vi=r(),Zn=p("p"),Zn.innerHTML=lr,_i=r(),pe=p("div"),h(po.$$.fragment),$i=r(),In=p("p"),In.innerHTML=rr,wi=r(),h(ct.$$.fragment),Ti=r(),h(mt.$$.fragment),Qa=r(),h(co.$$.fragment),Ya=r(),W=p("div"),h(mo.$$.fragment),Vi=r(),Wn=p("p"),Wn.textContent=dr,ki=r(),Nn=p("p"),Nn.innerHTML=pr,Ji=r(),qn=p("p"),qn.textContent=cr,Ci=r(),ce=p("div"),h(go.$$.fragment),ji=r(),Gn=p("p"),Gn.innerHTML=mr,Fi=r(),h(gt.$$.fragment),xi=r(),h(ut.$$.fragment),Da=r(),h(uo.$$.fragment),Aa=r(),N=p("div"),h(ho.$$.fragment),Oi=r(),Xn=p("p"),Xn.textContent=gr,Ui=r(),zn=p("p"),zn.innerHTML=ur,Zi=r(),Rn=p("p"),Rn.textContent=hr,Ii=r(),me=p("div"),h(fo.$$.fragment),Wi=r(),Bn=p("p"),Bn.innerHTML=fr,Ni=r(),h(ht.$$.fragment),qi=r(),h(ft.$$.fragment),Ka=r(),h(yo.$$.fragment),es=r(),q=p("div"),h(Mo.$$.fragment),Gi=r(),Sn=p("p"),Sn.textContent=yr,Xi=r(),Ln=p("p"),Ln.innerHTML=Mr,zi=r(),Hn=p("p"),Hn.textContent=br,Ri=r(),ge=p("div"),h(bo.$$.fragment),Bi=r(),En=p("p"),En.innerHTML=vr,Si=r(),h(yt.$$.fragment),Li=r(),h(Mt.$$.fragment),ts=r(),h(vo.$$.fragment),os=r(),Me=p("div"),h(_o.$$.fragment),Hi=r(),Pn=p("p"),Pn.textContent=_r,Ei=r(),z=p("div"),h($o.$$.fragment),Pi=r(),Qn=p("p"),Qn.innerHTML=$r,Qi=r(),h(bt.$$.fragment),Yi=r(),h(vt.$$.fragment),Di=r(),h(_t.$$.fragment),ns=r(),h(wo.$$.fragment),as=r(),To=p("p"),To.textContent=wr,ss=r(),h(Vo.$$.fragment),is=r(),Q=p("div"),h(ko.$$.fragment),Ai=r(),Yn=p("p"),Yn.textContent=Tr,Ki=r(),Dn=p("p"),Dn.innerHTML=Vr,el=r(),R=p("div"),h(Jo.$$.fragment),tl=r(),An=p("p"),An.innerHTML=kr,ol=r(),h($t.$$.fragment),nl=r(),h(wt.$$.fragment),al=ld(`
This class can also be used with [timm](https://github.com/huggingface/pytorch-image-models)
`),h(Tt.$$.fragment),ls=r(),h(Co.$$.fragment),rs=r(),jo=p("p"),jo.textContent=Jr,ds=r(),h(Fo.$$.fragment),ps=r(),be=p("div"),h(xo.$$.fragment),sl=r(),Kn=p("p"),Kn.textContent=Cr,il=r(),B=p("div"),h(Oo.$$.fragment),ll=r(),ea=p("p"),ea.innerHTML=jr,rl=r(),h(Vt.$$.fragment),dl=r(),h(kt.$$.fragment),pl=r(),h(Jt.$$.fragment),cs=r(),h(Uo.$$.fragment),ms=r(),ve=p("div"),h(Zo.$$.fragment),cl=r(),ta=p("p"),ta.textContent=Fr,ml=r(),ue=p("div"),h(Io.$$.fragment),gl=r(),oa=p("p"),oa.innerHTML=xr,ul=r(),h(Ct.$$.fragment),hl=r(),h(jt.$$.fragment),gs=r(),h(Wo.$$.fragment),us=r(),h(No.$$.fragment),hs=r(),Y=p("div"),h(qo.$$.fragment),fl=r(),na=p("p"),na.textContent=Or,yl=r(),aa=p("p"),aa.innerHTML=Ur,Ml=r(),he=p("div"),h(Go.$$.fragment),bl=r(),sa=p("p"),sa.innerHTML=Zr,vl=r(),h(Ft.$$.fragment),_l=r(),h(xt.$$.fragment),fs=r(),h(Xo.$$.fragment),ys=r(),D=p("div"),h(zo.$$.fragment),$l=r(),ia=p("p"),ia.textContent=Ir,wl=r(),la=p("p"),la.innerHTML=Wr,Tl=r(),fe=p("div"),h(Ro.$$.fragment),Vl=r(),ra=p("p"),ra.innerHTML=Nr,kl=r(),h(Ot.$$.fragment),Jl=r(),h(Ut.$$.fragment),Ms=r(),h(Bo.$$.fragment),bs=r(),h(So.$$.fragment),vs=r(),_e=p("div"),h(Lo.$$.fragment),Cl=r(),da=p("p"),da.innerHTML=qr,jl=r(),pa=p("div"),h(Ho.$$.fragment),_s=r(),h(Eo.$$.fragment),$s=r(),$e=p("div"),h(Po.$$.fragment),Fl=r(),ca=p("p"),ca.innerHTML=Gr,xl=r(),ma=p("div"),h(Qo.$$.fragment),ws=r(),h(Yo.$$.fragment),Ts=r(),we=p("div"),h(Do.$$.fragment),Ol=r(),ga=p("p"),ga.innerHTML=Xr,Ul=r(),ua=p("div"),h(Ao.$$.fragment),Vs=r(),h(Ko.$$.fragment),ks=r(),h(en.$$.fragment),Js=r(),Te=p("div"),h(tn.$$.fragment),Zl=r(),ha=p("p"),ha.innerHTML=zr,Il=r(),fa=p("div"),h(on.$$.fragment),Cs=r(),h(nn.$$.fragment),js=r(),Ve=p("div"),h(an.$$.fragment),Wl=r(),ya=p("p"),ya.innerHTML=Rr,Nl=r(),Ma=p("div"),h(sn.$$.fragment),Fs=r(),h(ln.$$.fragment),xs=r(),h(rn.$$.fragment),Os=r(),ke=p("div"),h(dn.$$.fragment),ql=r(),ba=p("p"),ba.innerHTML=Br,Gl=r(),va=p("div"),h(pn.$$.fragment),Us=r(),Ca=p("p"),this.h()},l(e){const l=rd("svelte-u9bgzb",document.head);o=c(l,"META",{name:!0,content:!0}),l.forEach(n),b=d(e),a=c(e,"P",{}),V(a).forEach(n),i=d(e),f(v.$$.fragment,e),t=d(e),f(_.$$.fragment,e),Le=d(e),f(x.$$.fragment,e),He=d(e),j=c(e,"DIV",{class:!0});var Je=V(j);f(F.$$.fragment,Je),Z=d(Je),Ee=c(Je,"P",{"data-svelte-h":!0}),$(Ee)!=="svelte-1eh3zxn"&&(Ee.textContent=Ja),Is=d(Je),Ae=c(Je,"DIV",{class:!0});var cn=V(Ae);f(Wt.$$.fragment,cn),Ws=d(cn),gn=c(cn,"P",{"data-svelte-h":!0}),$(gn)!=="svelte-18vxhwp"&&(gn.textContent=Xl),cn.forEach(n),Ns=d(Je),Ke=c(Je,"DIV",{class:!0});var mn=V(Ke);f(Nt.$$.fragment,mn),qs=d(mn),un=c(mn,"P",{"data-svelte-h":!0}),$(un)!=="svelte-zx8pbr"&&(un.textContent=zl),mn.forEach(n),Je.forEach(n),xa=d(e),f(qt.$$.fragment,e),Oa=d(e),Gt=c(e,"P",{"data-svelte-h":!0}),$(Gt)!=="svelte-nv9auu"&&(Gt.textContent=Rl),Ua=d(e),f(Xt.$$.fragment,e),Za=d(e),I=c(e,"DIV",{class:!0});var A=V(I);f(zt.$$.fragment,A),Gs=d(A),hn=c(A,"P",{"data-svelte-h":!0}),$(hn)!=="svelte-1eb35zy"&&(hn.textContent=Bl),Xs=d(A),fn=c(A,"P",{"data-svelte-h":!0}),$(fn)!=="svelte-6rqfag"&&(fn.innerHTML=Sl),zs=d(A),yn=c(A,"DIV",{class:!0});var ja=V(yn);f(Rt.$$.fragment,ja),ja.forEach(n),Rs=d(A),Mn=c(A,"DIV",{class:!0});var Fa=V(Mn);f(Bt.$$.fragment,Fa),Fa.forEach(n),A.forEach(n),Ia=d(e),f(St.$$.fragment,e),Wa=d(e),S=c(e,"DIV",{class:!0});var Ce=V(S);f(Lt.$$.fragment,Ce),Bs=d(Ce),bn=c(Ce,"P",{"data-svelte-h":!0}),$(bn)!=="svelte-1hn3d6"&&(bn.textContent=Ll),Ss=d(Ce),vn=c(Ce,"P",{"data-svelte-h":!0}),$(vn)!=="svelte-6rqfag"&&(vn.innerHTML=Hl),Ls=d(Ce),ie=c(Ce,"DIV",{class:!0});var je=V(ie);f(Ht.$$.fragment,je),Hs=d(je),_n=c(je,"P",{"data-svelte-h":!0}),$(_n)!=="svelte-17gjbzg"&&(_n.innerHTML=El),Es=d(je),f(et.$$.fragment,je),Ps=d(je),f(tt.$$.fragment,je),je.forEach(n),Ce.forEach(n),Na=d(e),f(Et.$$.fragment,e),qa=d(e),ye=c(e,"DIV",{class:!0});var Pe=V(ye);f(Pt.$$.fragment,Pe),Qs=d(Pe),$n=c(Pe,"P",{"data-svelte-h":!0}),$($n)!=="svelte-vogxny"&&($n.textContent=Pl),Ys=d(Pe),X=c(Pe,"DIV",{class:!0});var K=V(X);f(Qt.$$.fragment,K),Ds=d(K),wn=c(K,"P",{"data-svelte-h":!0}),$(wn)!=="svelte-1dghbu2"&&(wn.innerHTML=Ql),As=d(K),f(ot.$$.fragment,K),Ks=d(K),f(nt.$$.fragment,K),ei=d(K),f(at.$$.fragment,K),K.forEach(n),Pe.forEach(n),Ga=d(e),f(Yt.$$.fragment,e),Xa=d(e),L=c(e,"DIV",{class:!0});var Fe=V(L);f(Dt.$$.fragment,Fe),ti=d(Fe),Tn=c(Fe,"P",{"data-svelte-h":!0}),$(Tn)!=="svelte-m8bn61"&&(Tn.textContent=Yl),oi=d(Fe),Vn=c(Fe,"P",{"data-svelte-h":!0}),$(Vn)!=="svelte-6rqfag"&&(Vn.innerHTML=Dl),ni=d(Fe),le=c(Fe,"DIV",{class:!0});var xe=V(le);f(At.$$.fragment,xe),ai=d(xe),kn=c(xe,"P",{"data-svelte-h":!0}),$(kn)!=="svelte-q631f6"&&(kn.innerHTML=Al),si=d(xe),f(st.$$.fragment,xe),ii=d(xe),f(it.$$.fragment,xe),xe.forEach(n),Fe.forEach(n),za=d(e),f(Kt.$$.fragment,e),Ra=d(e),H=c(e,"DIV",{class:!0});var Oe=V(H);f(eo.$$.fragment,Oe),li=d(Oe),Jn=c(Oe,"P",{"data-svelte-h":!0}),$(Jn)!=="svelte-3sxcf5"&&(Jn.textContent=Kl),ri=d(Oe),Cn=c(Oe,"P",{"data-svelte-h":!0}),$(Cn)!=="svelte-6rqfag"&&(Cn.innerHTML=er),di=d(Oe),re=c(Oe,"DIV",{class:!0});var Ue=V(re);f(to.$$.fragment,Ue),pi=d(Ue),jn=c(Ue,"P",{"data-svelte-h":!0}),$(jn)!=="svelte-mx7vpm"&&(jn.innerHTML=tr),ci=d(Ue),f(lt.$$.fragment,Ue),mi=d(Ue),f(rt.$$.fragment,Ue),Ue.forEach(n),Oe.forEach(n),Ba=d(e),f(oo.$$.fragment,e),Sa=d(e),E=c(e,"DIV",{class:!0});var Ze=V(E);f(no.$$.fragment,Ze),gi=d(Ze),Fn=c(Ze,"P",{"data-svelte-h":!0}),$(Fn)!=="svelte-2r9afx"&&(Fn.textContent=or),ui=d(Ze),xn=c(Ze,"P",{"data-svelte-h":!0}),$(xn)!=="svelte-6rqfag"&&(xn.innerHTML=nr),hi=d(Ze),de=c(Ze,"DIV",{class:!0});var Ie=V(de);f(ao.$$.fragment,Ie),fi=d(Ie),On=c(Ie,"P",{"data-svelte-h":!0}),$(On)!=="svelte-ni6y3u"&&(On.innerHTML=ar),yi=d(Ie),f(dt.$$.fragment,Ie),Mi=d(Ie),f(pt.$$.fragment,Ie),Ie.forEach(n),Ze.forEach(n),La=d(e),f(so.$$.fragment,e),Ha=d(e),io=c(e,"P",{"data-svelte-h":!0}),$(io)!=="svelte-ib9qfo"&&(io.textContent=sr),Ea=d(e),f(lo.$$.fragment,e),Pa=d(e),P=c(e,"DIV",{class:!0});var We=V(P);f(ro.$$.fragment,We),bi=d(We),Un=c(We,"P",{"data-svelte-h":!0}),$(Un)!=="svelte-qq0ezu"&&(Un.textContent=ir),vi=d(We),Zn=c(We,"P",{"data-svelte-h":!0}),$(Zn)!=="svelte-6rqfag"&&(Zn.innerHTML=lr),_i=d(We),pe=c(We,"DIV",{class:!0});var Ne=V(pe);f(po.$$.fragment,Ne),$i=d(Ne),In=c(Ne,"P",{"data-svelte-h":!0}),$(In)!=="svelte-1xa5f42"&&(In.innerHTML=rr),wi=d(Ne),f(ct.$$.fragment,Ne),Ti=d(Ne),f(mt.$$.fragment,Ne),Ne.forEach(n),We.forEach(n),Qa=d(e),f(co.$$.fragment,e),Ya=d(e),W=c(e,"DIV",{class:!0});var ee=V(W);f(mo.$$.fragment,ee),Vi=d(ee),Wn=c(ee,"P",{"data-svelte-h":!0}),$(Wn)!=="svelte-f1dmx9"&&(Wn.textContent=dr),ki=d(ee),Nn=c(ee,"P",{"data-svelte-h":!0}),$(Nn)!=="svelte-6rqfag"&&(Nn.innerHTML=pr),Ji=d(ee),qn=c(ee,"P",{"data-svelte-h":!0}),$(qn)!=="svelte-1l1oz51"&&(qn.textContent=cr),Ci=d(ee),ce=c(ee,"DIV",{class:!0});var qe=V(ce);f(go.$$.fragment,qe),ji=d(qe),Gn=c(qe,"P",{"data-svelte-h":!0}),$(Gn)!=="svelte-1hjr9y6"&&(Gn.innerHTML=mr),Fi=d(qe),f(gt.$$.fragment,qe),xi=d(qe),f(ut.$$.fragment,qe),qe.forEach(n),ee.forEach(n),Da=d(e),f(uo.$$.fragment,e),Aa=d(e),N=c(e,"DIV",{class:!0});var te=V(N);f(ho.$$.fragment,te),Oi=d(te),Xn=c(te,"P",{"data-svelte-h":!0}),$(Xn)!=="svelte-rhfujk"&&(Xn.textContent=gr),Ui=d(te),zn=c(te,"P",{"data-svelte-h":!0}),$(zn)!=="svelte-6rqfag"&&(zn.innerHTML=ur),Zi=d(te),Rn=c(te,"P",{"data-svelte-h":!0}),$(Rn)!=="svelte-7q8vvu"&&(Rn.textContent=hr),Ii=d(te),me=c(te,"DIV",{class:!0});var Ge=V(me);f(fo.$$.fragment,Ge),Wi=d(Ge),Bn=c(Ge,"P",{"data-svelte-h":!0}),$(Bn)!=="svelte-1ebuz5m"&&(Bn.innerHTML=fr),Ni=d(Ge),f(ht.$$.fragment,Ge),qi=d(Ge),f(ft.$$.fragment,Ge),Ge.forEach(n),te.forEach(n),Ka=d(e),f(yo.$$.fragment,e),es=d(e),q=c(e,"DIV",{class:!0});var oe=V(q);f(Mo.$$.fragment,oe),Gi=d(oe),Sn=c(oe,"P",{"data-svelte-h":!0}),$(Sn)!=="svelte-1p03umf"&&(Sn.textContent=yr),Xi=d(oe),Ln=c(oe,"P",{"data-svelte-h":!0}),$(Ln)!=="svelte-6rqfag"&&(Ln.innerHTML=Mr),zi=d(oe),Hn=c(oe,"P",{"data-svelte-h":!0}),$(Hn)!=="svelte-15ng2dj"&&(Hn.textContent=br),Ri=d(oe),ge=c(oe,"DIV",{class:!0});var Xe=V(ge);f(bo.$$.fragment,Xe),Bi=d(Xe),En=c(Xe,"P",{"data-svelte-h":!0}),$(En)!=="svelte-15p6l62"&&(En.innerHTML=vr),Si=d(Xe),f(yt.$$.fragment,Xe),Li=d(Xe),f(Mt.$$.fragment,Xe),Xe.forEach(n),oe.forEach(n),ts=d(e),f(vo.$$.fragment,e),os=d(e),Me=c(e,"DIV",{class:!0});var Qe=V(Me);f(_o.$$.fragment,Qe),Hi=d(Qe),Pn=c(Qe,"P",{"data-svelte-h":!0}),$(Pn)!=="svelte-gg5e9y"&&(Pn.textContent=_r),Ei=d(Qe),z=c(Qe,"DIV",{class:!0});var ne=V(z);f($o.$$.fragment,ne),Pi=d(ne),Qn=c(ne,"P",{"data-svelte-h":!0}),$(Qn)!=="svelte-1mvms2m"&&(Qn.innerHTML=$r),Qi=d(ne),f(bt.$$.fragment,ne),Yi=d(ne),f(vt.$$.fragment,ne),Di=d(ne),f(_t.$$.fragment,ne),ne.forEach(n),Qe.forEach(n),ns=d(e),f(wo.$$.fragment,e),as=d(e),To=c(e,"P",{"data-svelte-h":!0}),$(To)!=="svelte-rd7k31"&&(To.textContent=wr),ss=d(e),f(Vo.$$.fragment,e),is=d(e),Q=c(e,"DIV",{class:!0});var ze=V(Q);f(ko.$$.fragment,ze),Ai=d(ze),Yn=c(ze,"P",{"data-svelte-h":!0}),$(Yn)!=="svelte-38to9p"&&(Yn.textContent=Tr),Ki=d(ze),Dn=c(ze,"P",{"data-svelte-h":!0}),$(Dn)!=="svelte-6rqfag"&&(Dn.innerHTML=Vr),el=d(ze),R=c(ze,"DIV",{class:!0});var ae=V(R);f(Jo.$$.fragment,ae),tl=d(ae),An=c(ae,"P",{"data-svelte-h":!0}),$(An)!=="svelte-1im0uju"&&(An.innerHTML=kr),ol=d(ae),f($t.$$.fragment,ae),nl=d(ae),f(wt.$$.fragment,ae),al=dd(ae,`
This class can also be used with [timm](https://github.com/huggingface/pytorch-image-models)
`),f(Tt.$$.fragment,ae),ae.forEach(n),ze.forEach(n),ls=d(e),f(Co.$$.fragment,e),rs=d(e),jo=c(e,"P",{"data-svelte-h":!0}),$(jo)!=="svelte-g0e6o0"&&(jo.textContent=Jr),ds=d(e),f(Fo.$$.fragment,e),ps=d(e),be=c(e,"DIV",{class:!0});var Ye=V(be);f(xo.$$.fragment,Ye),sl=d(Ye),Kn=c(Ye,"P",{"data-svelte-h":!0}),$(Kn)!=="svelte-19k7u3u"&&(Kn.textContent=Cr),il=d(Ye),B=c(Ye,"DIV",{class:!0});var se=V(B);f(Oo.$$.fragment,se),ll=d(se),ea=c(se,"P",{"data-svelte-h":!0}),$(ea)!=="svelte-1vq12ai"&&(ea.innerHTML=jr),rl=d(se),f(Vt.$$.fragment,se),dl=d(se),f(kt.$$.fragment,se),pl=d(se),f(Jt.$$.fragment,se),se.forEach(n),Ye.forEach(n),cs=d(e),f(Uo.$$.fragment,e),ms=d(e),ve=c(e,"DIV",{class:!0});var De=V(ve);f(Zo.$$.fragment,De),cl=d(De),ta=c(De,"P",{"data-svelte-h":!0}),$(ta)!=="svelte-1o0qv5p"&&(ta.textContent=Fr),ml=d(De),ue=c(De,"DIV",{class:!0});var Re=V(ue);f(Io.$$.fragment,Re),gl=d(Re),oa=c(Re,"P",{"data-svelte-h":!0}),$(oa)!=="svelte-1hmz05o"&&(oa.innerHTML=xr),ul=d(Re),f(Ct.$$.fragment,Re),hl=d(Re),f(jt.$$.fragment,Re),Re.forEach(n),De.forEach(n),gs=d(e),f(Wo.$$.fragment,e),us=d(e),f(No.$$.fragment,e),hs=d(e),Y=c(e,"DIV",{class:!0});var Be=V(Y);f(qo.$$.fragment,Be),fl=d(Be),na=c(Be,"P",{"data-svelte-h":!0}),$(na)!=="svelte-geirj3"&&(na.textContent=Or),yl=d(Be),aa=c(Be,"P",{"data-svelte-h":!0}),$(aa)!=="svelte-6rqfag"&&(aa.innerHTML=Ur),Ml=d(Be),he=c(Be,"DIV",{class:!0});var Se=V(he);f(Go.$$.fragment,Se),bl=d(Se),sa=c(Se,"P",{"data-svelte-h":!0}),$(sa)!=="svelte-9ten7e"&&(sa.innerHTML=Zr),vl=d(Se),f(Ft.$$.fragment,Se),_l=d(Se),f(xt.$$.fragment,Se),Se.forEach(n),Be.forEach(n),fs=d(e),f(Xo.$$.fragment,e),ys=d(e),D=c(e,"DIV",{class:!0});var Zt=V(D);f(zo.$$.fragment,Zt),$l=d(Zt),ia=c(Zt,"P",{"data-svelte-h":!0}),$(ia)!=="svelte-152z643"&&(ia.textContent=Ir),wl=d(Zt),la=c(Zt,"P",{"data-svelte-h":!0}),$(la)!=="svelte-6rqfag"&&(la.innerHTML=Wr),Tl=d(Zt),fe=c(Zt,"DIV",{class:!0});var It=V(fe);f(Ro.$$.fragment,It),Vl=d(It),ra=c(It,"P",{"data-svelte-h":!0}),$(ra)!=="svelte-gq6c8y"&&(ra.innerHTML=Nr),kl=d(It),f(Ot.$$.fragment,It),Jl=d(It),f(Ut.$$.fragment,It),It.forEach(n),Zt.forEach(n),Ms=d(e),f(Bo.$$.fragment,e),bs=d(e),f(So.$$.fragment,e),vs=d(e),_e=c(e,"DIV",{class:!0});var _a=V(_e);f(Lo.$$.fragment,_a),Cl=d(_a),da=c(_a,"P",{"data-svelte-h":!0}),$(da)!=="svelte-fq54qp"&&(da.innerHTML=qr),jl=d(_a),pa=c(_a,"DIV",{class:!0});var Sr=V(pa);f(Ho.$$.fragment,Sr),Sr.forEach(n),_a.forEach(n),_s=d(e),f(Eo.$$.fragment,e),$s=d(e),$e=c(e,"DIV",{class:!0});var $a=V($e);f(Po.$$.fragment,$a),Fl=d($a),ca=c($a,"P",{"data-svelte-h":!0}),$(ca)!=="svelte-mqdlzq"&&(ca.innerHTML=Gr),xl=d($a),ma=c($a,"DIV",{class:!0});var Lr=V(ma);f(Qo.$$.fragment,Lr),Lr.forEach(n),$a.forEach(n),ws=d(e),f(Yo.$$.fragment,e),Ts=d(e),we=c(e,"DIV",{class:!0});var wa=V(we);f(Do.$$.fragment,wa),Ol=d(wa),ga=c(wa,"P",{"data-svelte-h":!0}),$(ga)!=="svelte-t0bmrx"&&(ga.innerHTML=Xr),Ul=d(wa),ua=c(wa,"DIV",{class:!0});var Hr=V(ua);f(Ao.$$.fragment,Hr),Hr.forEach(n),wa.forEach(n),Vs=d(e),f(Ko.$$.fragment,e),ks=d(e),f(en.$$.fragment,e),Js=d(e),Te=c(e,"DIV",{class:!0});var Ta=V(Te);f(tn.$$.fragment,Ta),Zl=d(Ta),ha=c(Ta,"P",{"data-svelte-h":!0}),$(ha)!=="svelte-1xco43c"&&(ha.innerHTML=zr),Il=d(Ta),fa=c(Ta,"DIV",{class:!0});var Er=V(fa);f(on.$$.fragment,Er),Er.forEach(n),Ta.forEach(n),Cs=d(e),f(nn.$$.fragment,e),js=d(e),Ve=c(e,"DIV",{class:!0});var Va=V(Ve);f(an.$$.fragment,Va),Wl=d(Va),ya=c(Va,"P",{"data-svelte-h":!0}),$(ya)!=="svelte-1u70qsc"&&(ya.innerHTML=Rr),Nl=d(Va),Ma=c(Va,"DIV",{class:!0});var Pr=V(Ma);f(sn.$$.fragment,Pr),Pr.forEach(n),Va.forEach(n),Fs=d(e),f(ln.$$.fragment,e),xs=d(e),f(rn.$$.fragment,e),Os=d(e),ke=c(e,"DIV",{class:!0});var ka=V(ke);f(dn.$$.fragment,ka),ql=d(ka),ba=c(ka,"P",{"data-svelte-h":!0}),$(ba)!=="svelte-ign31x"&&(ba.innerHTML=Br),Gl=d(ka),va=c(ka,"DIV",{class:!0});var Qr=V(va);f(pn.$$.fragment,Qr),Qr.forEach(n),ka.forEach(n),Us=d(e),Ca=c(e,"P",{}),V(Ca).forEach(n),this.h()},h(){T(o,"name","hf:doc:metadata"),T(o,"content",Dd),T(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(yn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Mn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(pa,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ma,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ua,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(fa,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Ma,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(va,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ke,"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,l){s(document.head,o),m(e,b,l),m(e,a,l),m(e,i,l),y(v,e,l),m(e,t,l),y(_,e,l),m(e,Le,l),y(x,e,l),m(e,He,l),m(e,j,l),y(F,j,null),s(j,Z),s(j,Ee),s(j,Is),s(j,Ae),y(Wt,Ae,null),s(Ae,Ws),s(Ae,gn),s(j,Ns),s(j,Ke),y(Nt,Ke,null),s(Ke,qs),s(Ke,un),m(e,xa,l),y(qt,e,l),m(e,Oa,l),m(e,Gt,l),m(e,Ua,l),y(Xt,e,l),m(e,Za,l),m(e,I,l),y(zt,I,null),s(I,Gs),s(I,hn),s(I,Xs),s(I,fn),s(I,zs),s(I,yn),y(Rt,yn,null),s(I,Rs),s(I,Mn),y(Bt,Mn,null),m(e,Ia,l),y(St,e,l),m(e,Wa,l),m(e,S,l),y(Lt,S,null),s(S,Bs),s(S,bn),s(S,Ss),s(S,vn),s(S,Ls),s(S,ie),y(Ht,ie,null),s(ie,Hs),s(ie,_n),s(ie,Es),y(et,ie,null),s(ie,Ps),y(tt,ie,null),m(e,Na,l),y(Et,e,l),m(e,qa,l),m(e,ye,l),y(Pt,ye,null),s(ye,Qs),s(ye,$n),s(ye,Ys),s(ye,X),y(Qt,X,null),s(X,Ds),s(X,wn),s(X,As),y(ot,X,null),s(X,Ks),y(nt,X,null),s(X,ei),y(at,X,null),m(e,Ga,l),y(Yt,e,l),m(e,Xa,l),m(e,L,l),y(Dt,L,null),s(L,ti),s(L,Tn),s(L,oi),s(L,Vn),s(L,ni),s(L,le),y(At,le,null),s(le,ai),s(le,kn),s(le,si),y(st,le,null),s(le,ii),y(it,le,null),m(e,za,l),y(Kt,e,l),m(e,Ra,l),m(e,H,l),y(eo,H,null),s(H,li),s(H,Jn),s(H,ri),s(H,Cn),s(H,di),s(H,re),y(to,re,null),s(re,pi),s(re,jn),s(re,ci),y(lt,re,null),s(re,mi),y(rt,re,null),m(e,Ba,l),y(oo,e,l),m(e,Sa,l),m(e,E,l),y(no,E,null),s(E,gi),s(E,Fn),s(E,ui),s(E,xn),s(E,hi),s(E,de),y(ao,de,null),s(de,fi),s(de,On),s(de,yi),y(dt,de,null),s(de,Mi),y(pt,de,null),m(e,La,l),y(so,e,l),m(e,Ha,l),m(e,io,l),m(e,Ea,l),y(lo,e,l),m(e,Pa,l),m(e,P,l),y(ro,P,null),s(P,bi),s(P,Un),s(P,vi),s(P,Zn),s(P,_i),s(P,pe),y(po,pe,null),s(pe,$i),s(pe,In),s(pe,wi),y(ct,pe,null),s(pe,Ti),y(mt,pe,null),m(e,Qa,l),y(co,e,l),m(e,Ya,l),m(e,W,l),y(mo,W,null),s(W,Vi),s(W,Wn),s(W,ki),s(W,Nn),s(W,Ji),s(W,qn),s(W,Ci),s(W,ce),y(go,ce,null),s(ce,ji),s(ce,Gn),s(ce,Fi),y(gt,ce,null),s(ce,xi),y(ut,ce,null),m(e,Da,l),y(uo,e,l),m(e,Aa,l),m(e,N,l),y(ho,N,null),s(N,Oi),s(N,Xn),s(N,Ui),s(N,zn),s(N,Zi),s(N,Rn),s(N,Ii),s(N,me),y(fo,me,null),s(me,Wi),s(me,Bn),s(me,Ni),y(ht,me,null),s(me,qi),y(ft,me,null),m(e,Ka,l),y(yo,e,l),m(e,es,l),m(e,q,l),y(Mo,q,null),s(q,Gi),s(q,Sn),s(q,Xi),s(q,Ln),s(q,zi),s(q,Hn),s(q,Ri),s(q,ge),y(bo,ge,null),s(ge,Bi),s(ge,En),s(ge,Si),y(yt,ge,null),s(ge,Li),y(Mt,ge,null),m(e,ts,l),y(vo,e,l),m(e,os,l),m(e,Me,l),y(_o,Me,null),s(Me,Hi),s(Me,Pn),s(Me,Ei),s(Me,z),y($o,z,null),s(z,Pi),s(z,Qn),s(z,Qi),y(bt,z,null),s(z,Yi),y(vt,z,null),s(z,Di),y(_t,z,null),m(e,ns,l),y(wo,e,l),m(e,as,l),m(e,To,l),m(e,ss,l),y(Vo,e,l),m(e,is,l),m(e,Q,l),y(ko,Q,null),s(Q,Ai),s(Q,Yn),s(Q,Ki),s(Q,Dn),s(Q,el),s(Q,R),y(Jo,R,null),s(R,tl),s(R,An),s(R,ol),y($t,R,null),s(R,nl),y(wt,R,null),s(R,al),y(Tt,R,null),m(e,ls,l),y(Co,e,l),m(e,rs,l),m(e,jo,l),m(e,ds,l),y(Fo,e,l),m(e,ps,l),m(e,be,l),y(xo,be,null),s(be,sl),s(be,Kn),s(be,il),s(be,B),y(Oo,B,null),s(B,ll),s(B,ea),s(B,rl),y(Vt,B,null),s(B,dl),y(kt,B,null),s(B,pl),y(Jt,B,null),m(e,cs,l),y(Uo,e,l),m(e,ms,l),m(e,ve,l),y(Zo,ve,null),s(ve,cl),s(ve,ta),s(ve,ml),s(ve,ue),y(Io,ue,null),s(ue,gl),s(ue,oa),s(ue,ul),y(Ct,ue,null),s(ue,hl),y(jt,ue,null),m(e,gs,l),y(Wo,e,l),m(e,us,l),y(No,e,l),m(e,hs,l),m(e,Y,l),y(qo,Y,null),s(Y,fl),s(Y,na),s(Y,yl),s(Y,aa),s(Y,Ml),s(Y,he),y(Go,he,null),s(he,bl),s(he,sa),s(he,vl),y(Ft,he,null),s(he,_l),y(xt,he,null),m(e,fs,l),y(Xo,e,l),m(e,ys,l),m(e,D,l),y(zo,D,null),s(D,$l),s(D,ia),s(D,wl),s(D,la),s(D,Tl),s(D,fe),y(Ro,fe,null),s(fe,Vl),s(fe,ra),s(fe,kl),y(Ot,fe,null),s(fe,Jl),y(Ut,fe,null),m(e,Ms,l),y(Bo,e,l),m(e,bs,l),y(So,e,l),m(e,vs,l),m(e,_e,l),y(Lo,_e,null),s(_e,Cl),s(_e,da),s(_e,jl),s(_e,pa),y(Ho,pa,null),m(e,_s,l),y(Eo,e,l),m(e,$s,l),m(e,$e,l),y(Po,$e,null),s($e,Fl),s($e,ca),s($e,xl),s($e,ma),y(Qo,ma,null),m(e,ws,l),y(Yo,e,l),m(e,Ts,l),m(e,we,l),y(Do,we,null),s(we,Ol),s(we,ga),s(we,Ul),s(we,ua),y(Ao,ua,null),m(e,Vs,l),y(Ko,e,l),m(e,ks,l),y(en,e,l),m(e,Js,l),m(e,Te,l),y(tn,Te,null),s(Te,Zl),s(Te,ha),s(Te,Il),s(Te,fa),y(on,fa,null),m(e,Cs,l),y(nn,e,l),m(e,js,l),m(e,Ve,l),y(an,Ve,null),s(Ve,Wl),s(Ve,ya),s(Ve,Nl),s(Ve,Ma),y(sn,Ma,null),m(e,Fs,l),y(ln,e,l),m(e,xs,l),y(rn,e,l),m(e,Os,l),m(e,ke,l),y(dn,ke,null),s(ke,ql),s(ke,ba),s(ke,Gl),s(ke,va),y(pn,va,null),m(e,Us,l),m(e,Ca,l),Zs=!0},p(e,[l]){const Je={};l&2&&(Je.$$scope={dirty:l,ctx:e}),et.$set(Je);const cn={};l&2&&(cn.$$scope={dirty:l,ctx:e}),tt.$set(cn);const mn={};l&2&&(mn.$$scope={dirty:l,ctx:e}),ot.$set(mn);const A={};l&2&&(A.$$scope={dirty:l,ctx:e}),nt.$set(A);const ja={};l&2&&(ja.$$scope={dirty:l,ctx:e}),at.$set(ja);const Fa={};l&2&&(Fa.$$scope={dirty:l,ctx:e}),st.$set(Fa);const Ce={};l&2&&(Ce.$$scope={dirty:l,ctx:e}),it.$set(Ce);const je={};l&2&&(je.$$scope={dirty:l,ctx:e}),lt.$set(je);const Pe={};l&2&&(Pe.$$scope={dirty:l,ctx:e}),rt.$set(Pe);const K={};l&2&&(K.$$scope={dirty:l,ctx:e}),dt.$set(K);const Fe={};l&2&&(Fe.$$scope={dirty:l,ctx:e}),pt.$set(Fe);const xe={};l&2&&(xe.$$scope={dirty:l,ctx:e}),ct.$set(xe);const Oe={};l&2&&(Oe.$$scope={dirty:l,ctx:e}),mt.$set(Oe);const Ue={};l&2&&(Ue.$$scope={dirty:l,ctx:e}),gt.$set(Ue);const Ze={};l&2&&(Ze.$$scope={dirty:l,ctx:e}),ut.$set(Ze);const Ie={};l&2&&(Ie.$$scope={dirty:l,ctx:e}),ht.$set(Ie);const We={};l&2&&(We.$$scope={dirty:l,ctx:e}),ft.$set(We);const Ne={};l&2&&(Ne.$$scope={dirty:l,ctx:e}),yt.$set(Ne);const ee={};l&2&&(ee.$$scope={dirty:l,ctx:e}),Mt.$set(ee);const qe={};l&2&&(qe.$$scope={dirty:l,ctx:e}),bt.$set(qe);const te={};l&2&&(te.$$scope={dirty:l,ctx:e}),vt.$set(te);const Ge={};l&2&&(Ge.$$scope={dirty:l,ctx:e}),_t.$set(Ge);const oe={};l&2&&(oe.$$scope={dirty:l,ctx:e}),$t.$set(oe);const Xe={};l&2&&(Xe.$$scope={dirty:l,ctx:e}),wt.$set(Xe);const Qe={};l&2&&(Qe.$$scope={dirty:l,ctx:e}),Tt.$set(Qe);const ne={};l&2&&(ne.$$scope={dirty:l,ctx:e}),Vt.$set(ne);const ze={};l&2&&(ze.$$scope={dirty:l,ctx:e}),kt.$set(ze);const ae={};l&2&&(ae.$$scope={dirty:l,ctx:e}),Jt.$set(ae);const Ye={};l&2&&(Ye.$$scope={dirty:l,ctx:e}),Ct.$set(Ye);const se={};l&2&&(se.$$scope={dirty:l,ctx:e}),jt.$set(se);const De={};l&2&&(De.$$scope={dirty:l,ctx:e}),Ft.$set(De);const Re={};l&2&&(Re.$$scope={dirty:l,ctx:e}),xt.$set(Re);const Be={};l&2&&(Be.$$scope={dirty:l,ctx:e}),Ot.$set(Be);const Se={};l&2&&(Se.$$scope={dirty:l,ctx:e}),Ut.$set(Se)},i(e){Zs||(g(v.$$.fragment,e),g(_.$$.fragment,e),g(x.$$.fragment,e),g(F.$$.fragment,e),g(Wt.$$.fragment,e),g(Nt.$$.fragment,e),g(qt.$$.fragment,e),g(Xt.$$.fragment,e),g(zt.$$.fragment,e),g(Rt.$$.fragment,e),g(Bt.$$.fragment,e),g(St.$$.fragment,e),g(Lt.$$.fragment,e),g(Ht.$$.fragment,e),g(et.$$.fragment,e),g(tt.$$.fragment,e),g(Et.$$.fragment,e),g(Pt.$$.fragment,e),g(Qt.$$.fragment,e),g(ot.$$.fragment,e),g(nt.$$.fragment,e),g(at.$$.fragment,e),g(Yt.$$.fragment,e),g(Dt.$$.fragment,e),g(At.$$.fragment,e),g(st.$$.fragment,e),g(it.$$.fragment,e),g(Kt.$$.fragment,e),g(eo.$$.fragment,e),g(to.$$.fragment,e),g(lt.$$.fragment,e),g(rt.$$.fragment,e),g(oo.$$.fragment,e),g(no.$$.fragment,e),g(ao.$$.fragment,e),g(dt.$$.fragment,e),g(pt.$$.fragment,e),g(so.$$.fragment,e),g(lo.$$.fragment,e),g(ro.$$.fragment,e),g(po.$$.fragment,e),g(ct.$$.fragment,e),g(mt.$$.fragment,e),g(co.$$.fragment,e),g(mo.$$.fragment,e),g(go.$$.fragment,e),g(gt.$$.fragment,e),g(ut.$$.fragment,e),g(uo.$$.fragment,e),g(ho.$$.fragment,e),g(fo.$$.fragment,e),g(ht.$$.fragment,e),g(ft.$$.fragment,e),g(yo.$$.fragment,e),g(Mo.$$.fragment,e),g(bo.$$.fragment,e),g(yt.$$.fragment,e),g(Mt.$$.fragment,e),g(vo.$$.fragment,e),g(_o.$$.fragment,e),g($o.$$.fragment,e),g(bt.$$.fragment,e),g(vt.$$.fragment,e),g(_t.$$.fragment,e),g(wo.$$.fragment,e),g(Vo.$$.fragment,e),g(ko.$$.fragment,e),g(Jo.$$.fragment,e),g($t.$$.fragment,e),g(wt.$$.fragment,e),g(Tt.$$.fragment,e),g(Co.$$.fragment,e),g(Fo.$$.fragment,e),g(xo.$$.fragment,e),g(Oo.$$.fragment,e),g(Vt.$$.fragment,e),g(kt.$$.fragment,e),g(Jt.$$.fragment,e),g(Uo.$$.fragment,e),g(Zo.$$.fragment,e),g(Io.$$.fragment,e),g(Ct.$$.fragment,e),g(jt.$$.fragment,e),g(Wo.$$.fragment,e),g(No.$$.fragment,e),g(qo.$$.fragment,e),g(Go.$$.fragment,e),g(Ft.$$.fragment,e),g(xt.$$.fragment,e),g(Xo.$$.fragment,e),g(zo.$$.fragment,e),g(Ro.$$.fragment,e),g(Ot.$$.fragment,e),g(Ut.$$.fragment,e),g(Bo.$$.fragment,e),g(So.$$.fragment,e),g(Lo.$$.fragment,e),g(Ho.$$.fragment,e),g(Eo.$$.fragment,e),g(Po.$$.fragment,e),g(Qo.$$.fragment,e),g(Yo.$$.fragment,e),g(Do.$$.fragment,e),g(Ao.$$.fragment,e),g(Ko.$$.fragment,e),g(en.$$.fragment,e),g(tn.$$.fragment,e),g(on.$$.fragment,e),g(nn.$$.fragment,e),g(an.$$.fragment,e),g(sn.$$.fragment,e),g(ln.$$.fragment,e),g(rn.$$.fragment,e),g(dn.$$.fragment,e),g(pn.$$.fragment,e),Zs=!0)},o(e){u(v.$$.fragment,e),u(_.$$.fragment,e),u(x.$$.fragment,e),u(F.$$.fragment,e),u(Wt.$$.fragment,e),u(Nt.$$.fragment,e),u(qt.$$.fragment,e),u(Xt.$$.fragment,e),u(zt.$$.fragment,e),u(Rt.$$.fragment,e),u(Bt.$$.fragment,e),u(St.$$.fragment,e),u(Lt.$$.fragment,e),u(Ht.$$.fragment,e),u(et.$$.fragment,e),u(tt.$$.fragment,e),u(Et.$$.fragment,e),u(Pt.$$.fragment,e),u(Qt.$$.fragment,e),u(ot.$$.fragment,e),u(nt.$$.fragment,e),u(at.$$.fragment,e),u(Yt.$$.fragment,e),u(Dt.$$.fragment,e),u(At.$$.fragment,e),u(st.$$.fragment,e),u(it.$$.fragment,e),u(Kt.$$.fragment,e),u(eo.$$.fragment,e),u(to.$$.fragment,e),u(lt.$$.fragment,e),u(rt.$$.fragment,e),u(oo.$$.fragment,e),u(no.$$.fragment,e),u(ao.$$.fragment,e),u(dt.$$.fragment,e),u(pt.$$.fragment,e),u(so.$$.fragment,e),u(lo.$$.fragment,e),u(ro.$$.fragment,e),u(po.$$.fragment,e),u(ct.$$.fragment,e),u(mt.$$.fragment,e),u(co.$$.fragment,e),u(mo.$$.fragment,e),u(go.$$.fragment,e),u(gt.$$.fragment,e),u(ut.$$.fragment,e),u(uo.$$.fragment,e),u(ho.$$.fragment,e),u(fo.$$.fragment,e),u(ht.$$.fragment,e),u(ft.$$.fragment,e),u(yo.$$.fragment,e),u(Mo.$$.fragment,e),u(bo.$$.fragment,e),u(yt.$$.fragment,e),u(Mt.$$.fragment,e),u(vo.$$.fragment,e),u(_o.$$.fragment,e),u($o.$$.fragment,e),u(bt.$$.fragment,e),u(vt.$$.fragment,e),u(_t.$$.fragment,e),u(wo.$$.fragment,e),u(Vo.$$.fragment,e),u(ko.$$.fragment,e),u(Jo.$$.fragment,e),u($t.$$.fragment,e),u(wt.$$.fragment,e),u(Tt.$$.fragment,e),u(Co.$$.fragment,e),u(Fo.$$.fragment,e),u(xo.$$.fragment,e),u(Oo.$$.fragment,e),u(Vt.$$.fragment,e),u(kt.$$.fragment,e),u(Jt.$$.fragment,e),u(Uo.$$.fragment,e),u(Zo.$$.fragment,e),u(Io.$$.fragment,e),u(Ct.$$.fragment,e),u(jt.$$.fragment,e),u(Wo.$$.fragment,e),u(No.$$.fragment,e),u(qo.$$.fragment,e),u(Go.$$.fragment,e),u(Ft.$$.fragment,e),u(xt.$$.fragment,e),u(Xo.$$.fragment,e),u(zo.$$.fragment,e),u(Ro.$$.fragment,e),u(Ot.$$.fragment,e),u(Ut.$$.fragment,e),u(Bo.$$.fragment,e),u(So.$$.fragment,e),u(Lo.$$.fragment,e),u(Ho.$$.fragment,e),u(Eo.$$.fragment,e),u(Po.$$.fragment,e),u(Qo.$$.fragment,e),u(Yo.$$.fragment,e),u(Do.$$.fragment,e),u(Ao.$$.fragment,e),u(Ko.$$.fragment,e),u(en.$$.fragment,e),u(tn.$$.fragment,e),u(on.$$.fragment,e),u(nn.$$.fragment,e),u(an.$$.fragment,e),u(sn.$$.fragment,e),u(ln.$$.fragment,e),u(rn.$$.fragment,e),u(dn.$$.fragment,e),u(pn.$$.fragment,e),Zs=!1},d(e){e&&(n(b),n(a),n(i),n(t),n(Le),n(He),n(j),n(xa),n(Oa),n(Gt),n(Ua),n(Za),n(I),n(Ia),n(Wa),n(S),n(Na),n(qa),n(ye),n(Ga),n(Xa),n(L),n(za),n(Ra),n(H),n(Ba),n(Sa),n(E),n(La),n(Ha),n(io),n(Ea),n(Pa),n(P),n(Qa),n(Ya),n(W),n(Da),n(Aa),n(N),n(Ka),n(es),n(q),n(ts),n(os),n(Me),n(ns),n(as),n(To),n(ss),n(is),n(Q),n(ls),n(rs),n(jo),n(ds),n(ps),n(be),n(cs),n(ms),n(ve),n(gs),n(us),n(hs),n(Y),n(fs),n(ys),n(D),n(Ms),n(bs),n(vs),n(_e),n(_s),n($s),n($e),n(ws),n(Ts),n(we),n(Vs),n(ks),n(Js),n(Te),n(Cs),n(js),n(Ve),n(Fs),n(xs),n(Os),n(ke),n(Us),n(Ca)),n(o),M(v,e),M(_,e),M(x,e),M(F),M(Wt),M(Nt),M(qt,e),M(Xt,e),M(zt),M(Rt),M(Bt),M(St,e),M(Lt),M(Ht),M(et),M(tt),M(Et,e),M(Pt),M(Qt),M(ot),M(nt),M(at),M(Yt,e),M(Dt),M(At),M(st),M(it),M(Kt,e),M(eo),M(to),M(lt),M(rt),M(oo,e),M(no),M(ao),M(dt),M(pt),M(so,e),M(lo,e),M(ro),M(po),M(ct),M(mt),M(co,e),M(mo),M(go),M(gt),M(ut),M(uo,e),M(ho),M(fo),M(ht),M(ft),M(yo,e),M(Mo),M(bo),M(yt),M(Mt),M(vo,e),M(_o),M($o),M(bt),M(vt),M(_t),M(wo,e),M(Vo,e),M(ko),M(Jo),M($t),M(wt),M(Tt),M(Co,e),M(Fo,e),M(xo),M(Oo),M(Vt),M(kt),M(Jt),M(Uo,e),M(Zo),M(Io),M(Ct),M(jt),M(Wo,e),M(No,e),M(qo),M(Go),M(Ft),M(xt),M(Xo,e),M(zo),M(Ro),M(Ot),M(Ut),M(Bo,e),M(So,e),M(Lo),M(Ho),M(Eo,e),M(Po),M(Qo),M(Yo,e),M(Do),M(Ao),M(Ko,e),M(en,e),M(tn),M(on),M(nn,e),M(an),M(sn),M(ln,e),M(rn,e),M(dn),M(pn)}}}const Dd='{"title":"Models","local":"models","sections":[{"title":"Generic model classes","local":"optimum.intel.openvino.modeling_base.OVBaseModel","sections":[],"depth":2},{"title":"Natural Language Processing","local":"natural-language-processing","sections":[{"title":"OVModelForCausalLM","local":"optimum.intel.OVModelForCausalLM","sections":[],"depth":3},{"title":"OVModelForMaskedLM","local":"optimum.intel.OVModelForMaskedLM","sections":[],"depth":3},{"title":"OVModelForSeq2SeqLM","local":"optimum.intel.OVModelForSeq2SeqLM","sections":[],"depth":3},{"title":"OVModelForQuestionAnswering","local":"optimum.intel.OVModelForQuestionAnswering","sections":[],"depth":3},{"title":"OVModelForSequenceClassification","local":"optimum.intel.OVModelForSequenceClassification","sections":[],"depth":3},{"title":"OVModelForTokenClassification","local":"optimum.intel.OVModelForTokenClassification","sections":[],"depth":3}],"depth":2},{"title":"Audio","local":"audio","sections":[{"title":"OVModelForAudioClassification","local":"optimum.intel.OVModelForAudioClassification","sections":[],"depth":3},{"title":"OVModelForAudioFrameClassification","local":"optimum.intel.OVModelForAudioFrameClassification","sections":[],"depth":3},{"title":"OVModelForCTC","local":"optimum.intel.OVModelForCTC","sections":[],"depth":3},{"title":"OVModelForAudioXVector","local":"optimum.intel.OVModelForAudioXVector","sections":[],"depth":3},{"title":"OVModelForSpeechSeq2Seq","local":"optimum.intel.OVModelForSpeechSeq2Seq","sections":[],"depth":3}],"depth":2},{"title":"Computer Vision","local":"computer-vision","sections":[{"title":"OVModelForImageClassification","local":"optimum.intel.OVModelForImageClassification","sections":[],"depth":3}],"depth":2},{"title":"Multimodal","local":"multimodal","sections":[{"title":"OVModelForVision2Seq","local":"optimum.intel.OVModelForVision2Seq","sections":[],"depth":3},{"title":"OVModelForPix2Struct","local":"optimum.intel.OVModelForPix2Struct","sections":[],"depth":3}],"depth":2},{"title":"Custom Tasks","local":"custom-tasks","sections":[{"title":"OVModelForCustomTasks","local":"optimum.intel.OVModelForCustomTasks","sections":[],"depth":3},{"title":"OVModelForFeatureExtraction","local":"optimum.intel.OVModelForFeatureExtraction","sections":[],"depth":3}],"depth":2},{"title":"Text-to-image","local":"text-to-image","sections":[{"title":"OVStableDiffusionPipeline","local":"optimum.intel.OVStableDiffusionPipeline","sections":[],"depth":3},{"title":"OVStableDiffusionXLPipeline","local":"optimum.intel.OVStableDiffusionXLPipeline","sections":[],"depth":3},{"title":"OVLatentConsistencyModelPipeline","local":"optimum.intel.OVLatentConsistencyModelPipeline","sections":[],"depth":3}],"depth":2},{"title":"Image-to-image","local":"image-to-image","sections":[{"title":"OVStableDiffusionImg2ImgPipeline","local":"optimum.intel.OVStableDiffusionImg2ImgPipeline","sections":[],"depth":3},{"title":"OVStableDiffusionXLImg2ImgPipeline","local":"optimum.intel.OVStableDiffusionXLImg2ImgPipeline","sections":[],"depth":3}],"depth":2},{"title":"Inpainting","local":"inpainting","sections":[{"title":"OVStableDiffusionInpaintPipeline","local":"optimum.intel.OVStableDiffusionInpaintPipeline","sections":[],"depth":3}],"depth":2}],"depth":1}';function Ad(w){return Ar(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class sp extends Kr{constructor(o){super(),ed(this,o,Ad,Yd,Dr,{})}}export{sp as component};
