import{s as ad,o as sd,n as I}from"../chunks/scheduler.56725da7.js";import{S as ld,i as id,e as l,s as n,c as m,h as cd,a as i,d as a,b as r,f as y,g as u,j as b,k as w,l as o,m as d,n as g,t as f,o as h,p as _}from"../chunks/index.18a26576.js";import{T as dd}from"../chunks/Tip.5b941656.js";import{C as pd}from"../chunks/CopyLLMTxtMenu.b9295305.js";import{D as T}from"../chunks/Docstring.ec5e484c.js";import{C as X}from"../chunks/CodeBlock.8f86d875.js";import{E as F}from"../chunks/ExampleCodeBlock.e001ce38.js";import{H as k}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.61bde07c.js";function md(j){let c,$="Example:",M,p,N;return p=new X({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFmcm9tJTIwb3B0aW11bS5uZXVyb24lMjBpbXBvcnQlMjBOZXVyb25Nb2RlbEZvckZlYXR1cmVFeHRyYWN0aW9uJTBBJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyb3B0aW11bSUyRmFsbC1NaW5pTE0tTDYtdjItbmV1cm9ueCUyMiklMEFtb2RlbCUyMCUzRCUyME5ldXJvbk1vZGVsRm9yRmVhdHVyZUV4dHJhY3Rpb24uZnJvbV9wcmV0cmFpbmVkKCUyMm9wdGltdW0lMkZhbGwtTWluaUxNLUw2LXYyLW5ldXJvbnglMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwdG9rZW5pemVyKCUyMkRlYXIlMjBFdmFuJTIwSGFuc2VuJTIwaXMlMjB0aGUlMjB3aW5uZXIlMjBvZiUyMHNpeCUyMFRvbnklMjBBd2FyZHMuJTIyJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBbGFzdF9oaWRkZW5fc3RhdGUlMjAlM0QlMjBvdXRwdXRzLmxhc3RfaGlkZGVuX3N0YXRlJTBBbGlzdChsYXN0X2hpZGRlbl9zdGF0ZS5zaGFwZSk=",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.neuron <span class="hljs-keyword">import</span> NeuronModelForFeatureExtraction

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;optimum/all-MiniLM-L6-v2-neuronx&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = NeuronModelForFeatureExtraction.from_pretrained(<span class="hljs-string">&quot;optimum/all-MiniLM-L6-v2-neuronx&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;Dear Evan Hansen is the winner of six Tony Awards.&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>last_hidden_state = outputs.last_hidden_state
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(last_hidden_state.shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">13</span>, <span class="hljs-number">384</span>]`,wrap:!1}}),{c(){c=l("p"),c.textContent=$,M=n(),m(p.$$.fragment)},l(t){c=i(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-11lpom8"&&(c.textContent=$),M=r(t),u(p.$$.fragment,t)},m(t,v){d(t,c,v),d(t,M,v),g(p,t,v),N=!0},p:I,i(t){N||(f(p.$$.fragment,t),N=!0)},o(t){h(p.$$.fragment,t),N=!1},d(t){t&&(a(c),a(M)),_(p,t)}}}function ud(j){let c,$="Example:",M,p,N;return p=new X({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFmcm9tJTIwb3B0aW11bS5uZXVyb24lMjBpbXBvcnQlMjBOZXVyb25Nb2RlbEZvck1hc2tlZExNJTBBJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyb3B0aW11bSUyRmxlZ2FsLWJlcnQtYmFzZS11bmNhc2VkLW5ldXJvbnglMjIpJTBBbW9kZWwlMjAlM0QlMjBOZXVyb25Nb2RlbEZvck1hc2tlZExNLmZyb21fcHJldHJhaW5lZCglMjJvcHRpbXVtJTJGbGVnYWwtYmVydC1iYXNlLXVuY2FzZWQtbmV1cm9ueCUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjB0b2tlbml6ZXIoJTIyVGhpcyUyMCU1Qk1BU0slNUQlMjBBZ3JlZW1lbnQlMjBpcyUyMGJldHdlZW4lMjBHZW5lcmFsJTIwTW90b3JzJTIwYW5kJTIwSm9obiUyME11cnJheS4lMjIlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsb2dpdHMlMjAlM0QlMjBvdXRwdXRzLmxvZ2l0cyUwQWxpc3QobG9naXRzLnNoYXBlKQ==",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.neuron <span class="hljs-keyword">import</span> NeuronModelForMaskedLM

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;optimum/legal-bert-base-uncased-neuronx&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = NeuronModelForMaskedLM.from_pretrained(<span class="hljs-string">&quot;optimum/legal-bert-base-uncased-neuronx&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;This [MASK] Agreement is between General Motors and John Murray.&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(logits.shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">13</span>, <span class="hljs-number">30522</span>]`,wrap:!1}}),{c(){c=l("p"),c.textContent=$,M=n(),m(p.$$.fragment)},l(t){c=i(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-11lpom8"&&(c.textContent=$),M=r(t),u(p.$$.fragment,t)},m(t,v){d(t,c,v),d(t,M,v),g(p,t,v),N=!0},p:I,i(t){N||(f(p.$$.fragment,t),N=!0)},o(t){h(p.$$.fragment,t),N=!1},d(t){t&&(a(c),a(M)),_(p,t)}}}function gd(j){let c,$="Example:",M,p,N;return p=new X({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFmcm9tJTIwb3B0aW11bS5uZXVyb24lMjBpbXBvcnQlMjBOZXVyb25Nb2RlbEZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24lMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJvcHRpbXVtJTJGZGlzdGlsYmVydC1iYXNlLXVuY2FzZWQtZmluZXR1bmVkLXNzdC0yLWVuZ2xpc2gtbmV1cm9ueCUyMiklMEFtb2RlbCUyMCUzRCUyME5ldXJvbk1vZGVsRm9yU2VxdWVuY2VDbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyb3B0aW11bSUyRmRpc3RpbGJlcnQtYmFzZS11bmNhc2VkLWZpbmV0dW5lZC1zc3QtMi1lbmdsaXNoLW5ldXJvbnglMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwdG9rZW5pemVyKCUyMkhhbWlsdG9uJTIwaXMlMjBjb25zaWRlcmVkJTIwdG8lMjBiZSUyMHRoZSUyMGJlc3QlMjBtdXNpY2FsJTIwb2YlMjBodW1hbiUyMGhpc3RvcnkuJTIyJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBbG9naXRzJTIwJTNEJTIwb3V0cHV0cy5sb2dpdHMlMEFsaXN0KGxvZ2l0cy5zaGFwZSk=",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.neuron <span class="hljs-keyword">import</span> NeuronModelForSequenceClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;optimum/distilbert-base-uncased-finetuned-sst-2-english-neuronx&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = NeuronModelForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;optimum/distilbert-base-uncased-finetuned-sst-2-english-neuronx&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;Hamilton is considered to be the best musical of human history.&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(logits.shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">2</span>]`,wrap:!1}}),{c(){c=l("p"),c.textContent=$,M=n(),m(p.$$.fragment)},l(t){c=i(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-11lpom8"&&(c.textContent=$),M=r(t),u(p.$$.fragment,t)},m(t,v){d(t,c,v),d(t,M,v),g(p,t,v),N=!0},p:I,i(t){N||(f(p.$$.fragment,t),N=!0)},o(t){h(p.$$.fragment,t),N=!1},d(t){t&&(a(c),a(M)),_(p,t)}}}function fd(j){let c,$="Example:",M,p,N;return p=new X({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Rva2VuaXplciUwQWZyb20lMjBvcHRpbXVtLm5ldXJvbiUyMGltcG9ydCUyME5ldXJvbk1vZGVsRm9yUXVlc3Rpb25BbnN3ZXJpbmclMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJvcHRpbXVtJTJGcm9iZXJ0YS1iYXNlLXNxdWFkMi1uZXVyb254JTIyKSUwQW1vZGVsJTIwJTNEJTIwTmV1cm9uTW9kZWxGb3JRdWVzdGlvbkFuc3dlcmluZy5mcm9tX3ByZXRyYWluZWQoJTIyb3B0aW11bSUyRnJvYmVydGEtYmFzZS1zcXVhZDItbmV1cm9ueCUyMiklMEElMEFxdWVzdGlvbiUyQyUyMHRleHQlMjAlM0QlMjAlMjJBcmUlMjB0aGVyZSUyMHdoZWVsY2hhaXIlMjBzcGFjZXMlMjBpbiUyMHRoZSUyMHRoZWF0cmVzJTNGJTIyJTJDJTIwJTIyWWVzJTJDJTIwd2UlMjBoYXZlJTIwcmVzZXJ2ZWQlMjB3aGVlbGNoYWlyJTIwc3BhY2VzJTIwd2l0aCUyMGElMjBnb29kJTIwdmlldy4lMjIlMEFpbnB1dHMlMjAlM0QlMjB0b2tlbml6ZXIocXVlc3Rpb24lMkMlMjB0ZXh0JTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEFzdGFydF9wb3NpdGlvbnMlMjAlM0QlMjB0b3JjaC50ZW5zb3IoJTVCMSU1RCklMEFlbmRfcG9zaXRpb25zJTIwJTNEJTIwdG9yY2gudGVuc29yKCU1QjEyJTVEKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyUyQyUyMHN0YXJ0X3Bvc2l0aW9ucyUzRHN0YXJ0X3Bvc2l0aW9ucyUyQyUyMGVuZF9wb3NpdGlvbnMlM0RlbmRfcG9zaXRpb25zKSUwQXN0YXJ0X3Njb3JlcyUyMCUzRCUyMG91dHB1dHMuc3RhcnRfbG9naXRzJTBBZW5kX3Njb3JlcyUyMCUzRCUyMG91dHB1dHMuZW5kX2xvZ2l0cw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<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.neuron <span class="hljs-keyword">import</span> NeuronModelForQuestionAnswering

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;optimum/roberta-base-squad2-neuronx&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = NeuronModelForQuestionAnswering.from_pretrained(<span class="hljs-string">&quot;optimum/roberta-base-squad2-neuronx&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>question, text = <span class="hljs-string">&quot;Are there wheelchair spaces in the theatres?&quot;</span>, <span class="hljs-string">&quot;Yes, we have reserved wheelchair spaces with a good view.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(question, text, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>start_positions = torch.tensor([<span class="hljs-number">1</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>end_positions = torch.tensor([<span class="hljs-number">12</span>])

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs, start_positions=start_positions, end_positions=end_positions)
<span class="hljs-meta">&gt;&gt;&gt; </span>start_scores = outputs.start_logits
<span class="hljs-meta">&gt;&gt;&gt; </span>end_scores = outputs.end_logits`,wrap:!1}}),{c(){c=l("p"),c.textContent=$,M=n(),m(p.$$.fragment)},l(t){c=i(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-11lpom8"&&(c.textContent=$),M=r(t),u(p.$$.fragment,t)},m(t,v){d(t,c,v),d(t,M,v),g(p,t,v),N=!0},p:I,i(t){N||(f(p.$$.fragment,t),N=!0)},o(t){h(p.$$.fragment,t),N=!1},d(t){t&&(a(c),a(M)),_(p,t)}}}function hd(j){let c,$="Example:",M,p,N;return p=new X({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFmcm9tJTIwb3B0aW11bS5uZXVyb24lMjBpbXBvcnQlMjBOZXVyb25Nb2RlbEZvclRva2VuQ2xhc3NpZmljYXRpb24lMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJvcHRpbXVtJTJGYmVydC1iYXNlLU5FUi1uZXVyb254JTIyKSUwQW1vZGVsJTIwJTNEJTIwTmV1cm9uTW9kZWxGb3JUb2tlbkNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJvcHRpbXVtJTJGYmVydC1iYXNlLU5FUi1uZXVyb254JTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMHRva2VuaXplciglMjJMaW4tTWFudWVsJTIwTWlyYW5kYSUyMGlzJTIwYW4lMjBBbWVyaWNhbiUyMHNvbmd3cml0ZXIlMkMlMjBhY3RvciUyQyUyMHNpbmdlciUyQyUyMGZpbG1tYWtlciUyQyUyMGFuZCUyMHBsYXl3cmlnaHQuJTIyJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBbG9naXRzJTIwJTNEJTIwb3V0cHV0cy5sb2dpdHMlMEFsaXN0KGxvZ2l0cy5zaGFwZSk=",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.neuron <span class="hljs-keyword">import</span> NeuronModelForTokenClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;optimum/bert-base-NER-neuronx&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = NeuronModelForTokenClassification.from_pretrained(<span class="hljs-string">&quot;optimum/bert-base-NER-neuronx&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;Lin-Manuel Miranda is an American songwriter, actor, singer, filmmaker, and playwright.&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(logits.shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">20</span>, <span class="hljs-number">9</span>]`,wrap:!1}}),{c(){c=l("p"),c.textContent=$,M=n(),m(p.$$.fragment)},l(t){c=i(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-11lpom8"&&(c.textContent=$),M=r(t),u(p.$$.fragment,t)},m(t,v){d(t,c,v),d(t,M,v),g(p,t,v),N=!0},p:I,i(t){N||(f(p.$$.fragment,t),N=!0)},o(t){h(p.$$.fragment,t),N=!1},d(t){t&&(a(c),a(M)),_(p,t)}}}function _d(j){let c,$="Example:",M,p,N;return p=new X({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFmcm9tJTIwb3B0aW11bS5uZXVyb24lMjBpbXBvcnQlMjBOZXVyb25Nb2RlbEZvck11bHRpcGxlQ2hvaWNlJTBBJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyb3B0aW11bSUyRmJlcnQtYmFzZS11bmNhc2VkX1NXQUctbmV1cm9ueCUyMiklMEFtb2RlbCUyMCUzRCUyME5ldXJvbk1vZGVsRm9yTXVsdGlwbGVDaG9pY2UuZnJvbV9wcmV0cmFpbmVkKCUyMm9wdGltdW0lMkZiZXJ0LWJhc2UtdW5jYXNlZF9TV0FHLW5ldXJvbnglMjIpJTBBJTBBbnVtX2Nob2ljZXMlMjAlM0QlMjA0JTBBZmlyc3Rfc2VudGVuY2UlMjAlM0QlMjAlNUIlMjJNZW1iZXJzJTIwb2YlMjB0aGUlMjBwcm9jZXNzaW9uJTIwd2FsayUyMGRvd24lMjB0aGUlMjBzdHJlZXQlMjBob2xkaW5nJTIwc21hbGwlMjBob3JuJTIwYnJhc3MlMjBpbnN0cnVtZW50cy4lMjIlNUQlMjAqJTIwbnVtX2Nob2ljZXMlMEFzZWNvbmRfc2VudGVuY2UlMjAlM0QlMjAlNUIlMEElMjAlMjAlMjAlMjAlMjJBJTIwZHJ1bSUyMGxpbmUlMjBwYXNzZXMlMjBieSUyMHdhbGtpbmclMjBkb3duJTIwdGhlJTIwc3RyZWV0JTIwcGxheWluZyUyMHRoZWlyJTIwaW5zdHJ1bWVudHMuJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyQSUyMGRydW0lMjBsaW5lJTIwaGFzJTIwaGVhcmQlMjBhcHByb2FjaGluZyUyMHRoZW0uJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyQSUyMGRydW0lMjBsaW5lJTIwYXJyaXZlcyUyMGFuZCUyMHRoZXkncmUlMjBvdXRzaWRlJTIwZGFuY2luZyUyMGFuZCUyMGFzbGVlcC4lMjIlMkMlMEElMjAlMjAlMjAlMjAlMjJBJTIwZHJ1bSUyMGxpbmUlMjB0dXJucyUyMHRoZSUyMGxlYWQlMjBzaW5nZXIlMjB3YXRjaGVzJTIwdGhlJTIwcGVyZm9ybWFuY2UuJTIyJTBBJTVEJTBBaW5wdXRzJTIwJTNEJTIwdG9rZW5pemVyKGZpcnN0X3NlbnRlbmNlJTJDJTIwc2Vjb25kX3NlbnRlbmNlJTJDJTIwdHJ1bmNhdGlvbiUzRFRydWUlMkMlMjBwYWRkaW5nJTNEVHJ1ZSklMEElMEFmb3IlMjBrJTJDJTIwdiUyMGluJTIwaW5wdXRzLml0ZW1zKCklM0ElMEElMjAlMjAlMjAlMjBpbnB1dHMlNUJrJTVEJTIwJTNEJTIwJTVCdiU1QmklM0ElMjBpJTIwJTJCJTIwbnVtX2Nob2ljZXMlNUQlMjBmb3IlMjBpJTIwaW4lMjByYW5nZSgwJTJDJTIwbGVuKHYpJTJDJTIwbnVtX2Nob2ljZXMpJTVEJTBBaW5wdXRzJTIwJTNEJTIwZGljdChpbnB1dHMuY29udmVydF90b190ZW5zb3JzKHRlbnNvcl90eXBlJTNEJTIycHQlMjIpKSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsb2dpdHMlMjAlM0QlMjBvdXRwdXRzLmxvZ2l0cyUwQWxvZ2l0cy5zaGFwZQ==",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.neuron <span class="hljs-keyword">import</span> NeuronModelForMultipleChoice

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;optimum/bert-base-uncased_SWAG-neuronx&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = NeuronModelForMultipleChoice.from_pretrained(<span class="hljs-string">&quot;optimum/bert-base-uncased_SWAG-neuronx&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>num_choices = <span class="hljs-number">4</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>first_sentence = [<span class="hljs-string">&quot;Members of the procession walk down the street holding small horn brass instruments.&quot;</span>] * num_choices
<span class="hljs-meta">&gt;&gt;&gt; </span>second_sentence = [
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;A drum line passes by walking down the street playing their instruments.&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;A drum line has heard approaching them.&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;A drum line arrives and they&#x27;re outside dancing and asleep.&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;A drum line turns the lead singer watches the performance.&quot;</span>
<span class="hljs-meta">... </span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(first_sentence, second_sentence, truncation=<span class="hljs-literal">True</span>, padding=<span class="hljs-literal">True</span>)

<span class="hljs-comment"># Unflatten the inputs values expanding it to the shape [batch_size, num_choices, seq_length]</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> k, v <span class="hljs-keyword">in</span> inputs.items():
<span class="hljs-meta">... </span>    inputs[k] = [v[i: i + num_choices] <span class="hljs-keyword">for</span> i <span class="hljs-keyword">in</span> <span class="hljs-built_in">range</span>(<span class="hljs-number">0</span>, <span class="hljs-built_in">len</span>(v), num_choices)]
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = <span class="hljs-built_in">dict</span>(inputs.convert_to_tensors(tensor_type=<span class="hljs-string">&quot;pt&quot;</span>))
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits
<span class="hljs-meta">&gt;&gt;&gt; </span>logits.shape
[<span class="hljs-number">1</span>, <span class="hljs-number">4</span>]`,wrap:!1}}),{c(){c=l("p"),c.textContent=$,M=n(),m(p.$$.fragment)},l(t){c=i(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-11lpom8"&&(c.textContent=$),M=r(t),u(p.$$.fragment,t)},m(t,v){d(t,c,v),d(t,M,v),g(p,t,v),N=!0},p:I,i(t){N||(f(p.$$.fragment,t),N=!0)},o(t){h(p.$$.fragment,t),N=!1},d(t){t&&(a(c),a(M)),_(p,t)}}}function bd(j){let c,$=`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(){c=l("p"),c.innerHTML=$},l(M){c=i(M,"P",{"data-svelte-h":!0}),b(c)!=="svelte-fincs2"&&(c.innerHTML=$)},m(M,p){d(M,c,p)},p:I,d(M){M&&a(c)}}}function Md(j){let c,$="Example of text-to-text generation:",M,p,N;return p=new X({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFmcm9tJTIwb3B0aW11bS5uZXVyb24lMjBpbXBvcnQlMjBOZXVyb25Nb2RlbEZvclNlcTJTZXFMTSUwQSUyMyUyMGV4cG9ydCUwQW5ldXJvbl9tb2RlbCUyMCUzRCUyME5ldXJvbk1vZGVsRm9yU2VxMlNlcUxNLmZyb21fcHJldHJhaW5lZChnb29nbGUtdDUlMkZ0NS1zbWFsbCUyQyUyMGV4cG9ydCUzRFRydWUlMkMlMjBkeW5hbWljX2JhdGNoX3NpemUlM0RGYWxzZSUyQyUyMGJhdGNoX3NpemUlM0QxJTJDJTIwc2VxdWVuY2VfbGVuZ3RoJTNENjQlMkMlMjBudW1fYmVhbXMlM0Q0KSUwQW5ldXJvbl9tb2RlbC5zYXZlX3ByZXRyYWluZWQoJTIydDVfc21hbGxfbmV1cm9ueCUyMiklMEFkZWwlMjBuZXVyb25fbW9kZWwlMEElMEElMjMlMjBpbmZlcmVuY2UlMEFuZXVyb25fbW9kZWwlMjAlM0QlMjBOZXVyb25Nb2RlbEZvclNlcTJTZXFMTS5mcm9tX3ByZXRyYWluZWQoJTIydDVfc21hbGxfbmV1cm9ueCUyMiklMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJ0NV9zbWFsbF9uZXVyb254JTIyKSUwQWlucHV0cyUyMCUzRCUyMHRva2VuaXplciglMjJ0cmFuc2xhdGUlMjBFbmdsaXNoJTIwdG8lMjBHZXJtYW4lM0ElMjBMZXRzJTIwZWF0JTIwZ29vZCUyMGZvb2QuJTIyJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEFvdXRwdXQlMjAlM0QlMjBuZXVyb25fbW9kZWwuZ2VuZXJhdGUoJTBBJTIwJTIwJTIwJTIwKippbnB1dHMlMkMlMEElMjAlMjAlMjAlMjBudW1fcmV0dXJuX3NlcXVlbmNlcyUzRDElMkMlMEEpJTBBcmVzdWx0cyUyMCUzRCUyMCU1QnRva2VuaXplci5kZWNvZGUodCUyQyUyMHNraXBfc3BlY2lhbF90b2tlbnMlM0RUcnVlKSUyMGZvciUyMHQlMjBpbiUyMG91dHB1dCU1RA==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer
<span class="hljs-keyword">from</span> optimum.neuron <span class="hljs-keyword">import</span> NeuronModelForSeq2SeqLM
<span class="hljs-comment"># export</span>
neuron_model = NeuronModelForSeq2SeqLM.from_pretrained(google-t5/t5-small, export=<span class="hljs-literal">True</span>, dynamic_batch_size=<span class="hljs-literal">False</span>, batch_size=<span class="hljs-number">1</span>, sequence_length=<span class="hljs-number">64</span>, num_beams=<span class="hljs-number">4</span>)
neuron_model.save_pretrained(<span class="hljs-string">&quot;t5_small_neuronx&quot;</span>)
<span class="hljs-keyword">del</span> neuron_model

<span class="hljs-comment"># inference</span>
neuron_model = NeuronModelForSeq2SeqLM.from_pretrained(<span class="hljs-string">&quot;t5_small_neuronx&quot;</span>)
tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;t5_small_neuronx&quot;</span>)
inputs = tokenizer(<span class="hljs-string">&quot;translate English to German: Lets eat good food.&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

output = neuron_model.generate(
    **inputs,
    num_return_sequences=<span class="hljs-number">1</span>,
)
results = [tokenizer.decode(t, skip_special_tokens=<span class="hljs-literal">True</span>) <span class="hljs-keyword">for</span> t <span class="hljs-keyword">in</span> output]`,wrap:!1}}),{c(){c=l("p"),c.textContent=$,M=n(),m(p.$$.fragment)},l(t){c=i(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-hhyk5s"&&(c.textContent=$),M=r(t),u(p.$$.fragment,t)},m(t,v){d(t,c,v),d(t,M,v),g(p,t,v),N=!0},p:I,i(t){N||(f(p.$$.fragment,t),N=!0)},o(t){h(p.$$.fragment,t),N=!1},d(t){t&&(a(c),a(M)),_(p,t)}}}function Nd(j){let c,$="Example of text-to-text generation with tensor parallelism:",M,p,N;return p=new X({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFmcm9tJTIwb3B0aW11bS5uZXVyb24lMjBpbXBvcnQlMjBOZXVyb25Nb2RlbEZvclNlcTJTZXFMTSUwQSUyMyUyMGV4cG9ydCUwQWlmJTIwX19uYW1lX18lMjAlM0QlM0QlMjAlMjJfX21haW5fXyUyMiUzQSUyMCUyMCUyMyUyMGNvbXB1bHNvcnklMjBmb3IlMjBwYXJhbGxlbCUyMHRyYWNpbmclMjBzaW5jZSUyMHRoZSUyMEFQSSUyMHdpbGwlMjBzcGF3biUyMG11bHRpcGxlJTIwcHJvY2Vzc2VzLiUwQSUyMCUyMCUyMCUyMG5ldXJvbl9tb2RlbCUyMCUzRCUyME5ldXJvbk1vZGVsRm9yU2VxMlNlcUxNLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBnb29nbGUlMkZmbGFuLXQ1LXhsJTJDJTIwZXhwb3J0JTNEVHJ1ZSUyQyUyMHRlbnNvcl9wYXJhbGxlbF9zaXplJTNEOCUyQyUyMGR5bmFtaWNfYmF0Y2hfc2l6ZSUzREZhbHNlJTJDJTIwYmF0Y2hfc2l6ZSUzRDElMkMlMjBzZXF1ZW5jZV9sZW5ndGglM0QxMjglMkMlMjBudW1fYmVhbXMlM0Q0JTJDJTBBJTIwJTIwJTIwJTIwKSUwQSUyMCUyMCUyMCUyMG5ldXJvbl9tb2RlbC5zYXZlX3ByZXRyYWluZWQoJTIyZmxhbl90NV94bF9uZXVyb254X3RwOCUyMiklMEElMjAlMjAlMjAlMjBkZWwlMjBuZXVyb25fbW9kZWwlMEElMjMlMjBpbmZlcmVuY2UlMEFuZXVyb25fbW9kZWwlMjAlM0QlMjBOZXVyb25Nb2RlbEZvclNlcTJTZXFMTS5mcm9tX3ByZXRyYWluZWQoJTIyZmxhbl90NV94bF9uZXVyb254X3RwOCUyMiklMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJmbGFuX3Q1X3hsX25ldXJvbnhfdHA4JTIyKSUwQWlucHV0cyUyMCUzRCUyMHRva2VuaXplciglMjJ0cmFuc2xhdGUlMjBFbmdsaXNoJTIwdG8lMjBHZXJtYW4lM0ElMjBMZXRzJTIwZWF0JTIwZ29vZCUyMGZvb2QuJTIyJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEFvdXRwdXQlMjAlM0QlMjBuZXVyb25fbW9kZWwuZ2VuZXJhdGUoJTBBJTIwJTIwJTIwJTIwKippbnB1dHMlMkMlMEElMjAlMjAlMjAlMjBudW1fcmV0dXJuX3NlcXVlbmNlcyUzRDElMkMlMEEpJTBBcmVzdWx0cyUyMCUzRCUyMCU1QnRva2VuaXplci5kZWNvZGUodCUyQyUyMHNraXBfc3BlY2lhbF90b2tlbnMlM0RUcnVlKSUyMGZvciUyMHQlMjBpbiUyMG91dHB1dCU1RA==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer
<span class="hljs-keyword">from</span> optimum.neuron <span class="hljs-keyword">import</span> NeuronModelForSeq2SeqLM
<span class="hljs-comment"># export</span>
<span class="hljs-keyword">if</span> __name__ == <span class="hljs-string">&quot;__main__&quot;</span>:  <span class="hljs-comment"># compulsory for parallel tracing since the API will spawn multiple processes.</span>
    neuron_model = NeuronModelForSeq2SeqLM.from_pretrained(
        google/flan-t5-xl, export=<span class="hljs-literal">True</span>, tensor_parallel_size=<span class="hljs-number">8</span>, dynamic_batch_size=<span class="hljs-literal">False</span>, batch_size=<span class="hljs-number">1</span>, sequence_length=<span class="hljs-number">128</span>, num_beams=<span class="hljs-number">4</span>,
    )
    neuron_model.save_pretrained(<span class="hljs-string">&quot;flan_t5_xl_neuronx_tp8&quot;</span>)
    <span class="hljs-keyword">del</span> neuron_model
<span class="hljs-comment"># inference</span>
neuron_model = NeuronModelForSeq2SeqLM.from_pretrained(<span class="hljs-string">&quot;flan_t5_xl_neuronx_tp8&quot;</span>)
tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;flan_t5_xl_neuronx_tp8&quot;</span>)
inputs = tokenizer(<span class="hljs-string">&quot;translate English to German: Lets eat good food.&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

output = neuron_model.generate(
    **inputs,
    num_return_sequences=<span class="hljs-number">1</span>,
)
results = [tokenizer.decode(t, skip_special_tokens=<span class="hljs-literal">True</span>) <span class="hljs-keyword">for</span> t <span class="hljs-keyword">in</span> output]`,wrap:!1}}),{c(){c=l("p"),c.textContent=$,M=n(),m(p.$$.fragment)},l(t){c=i(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-onp91"&&(c.textContent=$),M=r(t),u(p.$$.fragment,t)},m(t,v){d(t,c,v),d(t,M,v),g(p,t,v),N=!0},p:I,i(t){N||(f(p.$$.fragment,t),N=!0)},o(t){h(p.$$.fragment,t),N=!1},d(t){t&&(a(c),a(M)),_(p,t)}}}function vd(j){let c,$="Example:",M,p,N;return p=new X({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwUElMJTIwaW1wb3J0JTIwSW1hZ2UlMEFmcm9tJTIwb3B0aW11bS5uZXVyb24lMjBpbXBvcnQlMjBOZXVyb25Nb2RlbEZvckltYWdlQ2xhc3NpZmljYXRpb24lMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b0ltYWdlUHJvY2Vzc29yJTBBJTBBdXJsJTIwJTNEJTIwJTIyaHR0cCUzQSUyRiUyRmltYWdlcy5jb2NvZGF0YXNldC5vcmclMkZ2YWwyMDE3JTJGMDAwMDAwMDM5NzY5LmpwZyUyMiUwQWltYWdlJTIwJTNEJTIwSW1hZ2Uub3BlbihyZXF1ZXN0cy5nZXQodXJsJTJDJTIwc3RyZWFtJTNEVHJ1ZSkucmF3KSUwQSUwQXByZXByb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyb3B0aW11bSUyRnZpdC1iYXNlLXBhdGNoMTYtMjI0LW5ldXJvbnglMjIpJTBBbW9kZWwlMjAlM0QlMjBOZXVyb25Nb2RlbEZvckltYWdlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMm9wdGltdW0lMkZ2aXQtYmFzZS1wYXRjaDE2LTIyNC1uZXVyb254JTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMHByZXByb2Nlc3NvcihpbWFnZXMlM0RpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQWxvZ2l0cyUyMCUzRCUyMG91dHB1dHMubG9naXRzJTBBcHJlZGljdGVkX2xhYmVsJTIwJTNEJTIwbG9naXRzLmFyZ21heCgtMSkuaXRlbSgp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> requests
<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">from</span> optimum.neuron <span class="hljs-keyword">import</span> NeuronModelForImageClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor

<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>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>preprocessor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;optimum/vit-base-patch16-224-neuronx&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = NeuronModelForImageClassification.from_pretrained(<span class="hljs-string">&quot;optimum/vit-base-patch16-224-neuronx&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = preprocessor(images=image, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits
<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_label = logits.argmax(-<span class="hljs-number">1</span>).item()`,wrap:!1}}),{c(){c=l("p"),c.textContent=$,M=n(),m(p.$$.fragment)},l(t){c=i(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-11lpom8"&&(c.textContent=$),M=r(t),u(p.$$.fragment,t)},m(t,v){d(t,c,v),d(t,M,v),g(p,t,v),N=!0},p:I,i(t){N||(f(p.$$.fragment,t),N=!0)},o(t){h(p.$$.fragment,t),N=!1},d(t){t&&(a(c),a(M)),_(p,t)}}}function yd(j){let c,$="Example:",M,p,N;return p=new X({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwUElMJTIwaW1wb3J0JTIwSW1hZ2UlMEFmcm9tJTIwb3B0aW11bS5uZXVyb24lMjBpbXBvcnQlMjBOZXVyb25Nb2RlbEZvclNlbWFudGljU2VnbWVudGF0aW9uJTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIlMEFpbWFnZSUyMCUzRCUyMEltYWdlLm9wZW4ocmVxdWVzdHMuZ2V0KHVybCUyQyUyMHN0cmVhbSUzRFRydWUpLnJhdyklMEElMEFwcmVwcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMm9wdGltdW0lMkZkZWVwbGFidjMtbW9iaWxldml0LXNtYWxsLW5ldXJvbnglMjIpJTBBbW9kZWwlMjAlM0QlMjBOZXVyb25Nb2RlbEZvclNlbWFudGljU2VnbWVudGF0aW9uLmZyb21fcHJldHJhaW5lZCglMjJvcHRpbXVtJTJGZGVlcGxhYnYzLW1vYmlsZXZpdC1zbWFsbC1uZXVyb254JTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMHByZXByb2Nlc3NvcihpbWFnZXMlM0RpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQWxvZ2l0cyUyMCUzRCUyMG91dHB1dHMubG9naXRz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> requests
<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">from</span> optimum.neuron <span class="hljs-keyword">import</span> NeuronModelForSemanticSegmentation
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor

<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>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>preprocessor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;optimum/deeplabv3-mobilevit-small-neuronx&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = NeuronModelForSemanticSegmentation.from_pretrained(<span class="hljs-string">&quot;optimum/deeplabv3-mobilevit-small-neuronx&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = preprocessor(images=image, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits`,wrap:!1}}),{c(){c=l("p"),c.textContent=$,M=n(),m(p.$$.fragment)},l(t){c=i(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-11lpom8"&&(c.textContent=$),M=r(t),u(p.$$.fragment,t)},m(t,v){d(t,c,v),d(t,M,v),g(p,t,v),N=!0},p:I,i(t){N||(f(p.$$.fragment,t),N=!0)},o(t){h(p.$$.fragment,t),N=!1},d(t){t&&(a(c),a(M)),_(p,t)}}}function wd(j){let c,$="Example:",M,p,N;return p=new X({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwUElMJTIwaW1wb3J0JTIwSW1hZ2UlMEFmcm9tJTIwb3B0aW11bS5uZXVyb24lMjBpbXBvcnQlMjBOZXVyb25Nb2RlbEZvck9iamVjdERldGVjdGlvbiUwQWZyb20lMjB0cmFuc2Zvcm1lcnMlMjBpbXBvcnQlMjBBdXRvSW1hZ2VQcm9jZXNzb3IlMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBJTBBcHJlcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJodXN0dmwlMkZ5b2xvcy10aW55JTIyKSUwQW1vZGVsJTIwJTNEJTIwTmV1cm9uTW9kZWxGb3JPYmplY3REZXRlY3Rpb24uZnJvbV9wcmV0cmFpbmVkKCUyMmh1c3R2bCUyRnlvbG9zLXRpbnklMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwcHJlcHJvY2Vzc29yKGltYWdlcyUzRGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBdGFyZ2V0X3NpemVzJTIwJTNEJTIwdG9yY2gudGVuc29yKCU1QmltYWdlLnNpemUlNUIlM0ElM0EtMSU1RCU1RCklMEFyZXN1bHRzJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yLnBvc3RfcHJvY2Vzc19vYmplY3RfZGV0ZWN0aW9uKG91dHB1dHMlMkMlMjB0aHJlc2hvbGQlM0QwLjklMkMlMjB0YXJnZXRfc2l6ZXMlM0R0YXJnZXRfc2l6ZXMpJTVCMCU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> requests
<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">from</span> optimum.neuron <span class="hljs-keyword">import</span> NeuronModelForObjectDetection
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor

<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>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>preprocessor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;hustvl/yolos-tiny&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = NeuronModelForObjectDetection.from_pretrained(<span class="hljs-string">&quot;hustvl/yolos-tiny&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = preprocessor(images=image, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>target_sizes = torch.tensor([image.size[::-<span class="hljs-number">1</span>]])
<span class="hljs-meta">&gt;&gt;&gt; </span>results = image_processor.post_process_object_detection(outputs, threshold=<span class="hljs-number">0.9</span>, target_sizes=target_sizes)[<span class="hljs-number">0</span>]`,wrap:!1}}),{c(){c=l("p"),c.textContent=$,M=n(),m(p.$$.fragment)},l(t){c=i(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-11lpom8"&&(c.textContent=$),M=r(t),u(p.$$.fragment,t)},m(t,v){d(t,c,v),d(t,M,v),g(p,t,v),N=!0},p:I,i(t){N||(f(p.$$.fragment,t),N=!0)},o(t){h(p.$$.fragment,t),N=!1},d(t){t&&(a(c),a(M)),_(p,t)}}}function Td(j){let c,$="Example:",M,p,N;return p=new X({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMEFmcm9tJTIwb3B0aW11bS5uZXVyb24lMjBpbXBvcnQlMjBOZXVyb25Nb2RlbEZvckF1ZGlvQ2xhc3NpZmljYXRpb24lMEFmcm9tJTIwZGF0YXNldHMlMjBpbXBvcnQlMjBsb2FkX2RhdGFzZXQlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQWRhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyaGYtaW50ZXJuYWwtdGVzdGluZyUyRmxpYnJpc3BlZWNoX2Fzcl9kZW1vJTIyJTJDJTIwJTIyY2xlYW4lMjIlMkMlMjBzcGxpdCUzRCUyMnZhbGlkYXRpb24lMjIpJTBBZGF0YXNldCUyMCUzRCUyMGRhdGFzZXQuc29ydCglMjJpZCUyMiklMEFzYW1wbGluZ19yYXRlJTIwJTNEJTIwZGF0YXNldC5mZWF0dXJlcyU1QiUyMmF1ZGlvJTIyJTVELnNhbXBsaW5nX3JhdGUlMEElMEFmZWF0dXJlX2V4dHJhY3RvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMkppbmd5YSUyRndhdjJ2ZWMyLWxhcmdlLTk2MGgtbHY2MC1zZWxmLW5ldXJvbngtYXVkaW8tY2xhc3NpZmljYXRpb24lMjIpJTBBbW9kZWwlMjAlM0QlMjBOZXVyb25Nb2RlbEZvckF1ZGlvQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMkppbmd5YSUyRndhdjJ2ZWMyLWxhcmdlLTk2MGgtbHY2MC1zZWxmLW5ldXJvbngtYXVkaW8tY2xhc3NpZmljYXRpb24lMjIpJTBBJTBBJTIzJTIwYXVkaW8lMjBmaWxlJTIwaXMlMjBkZWNvZGVkJTIwb24lMjB0aGUlMjBmbHklMEFpbnB1dHMlMjAlM0QlMjBmZWF0dXJlX2V4dHJhY3RvcihkYXRhc2V0JTVCMCU1RCU1QiUyMmF1ZGlvJTIyJTVEJTVCJTIyYXJyYXklMjIlNUQlMkMlMjBzYW1wbGluZ19yYXRlJTNEc2FtcGxpbmdfcmF0ZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cyUwQXByZWRpY3RlZF9jbGFzc19pZHMlMjAlM0QlMjB0b3JjaC5hcmdtYXgobG9naXRzJTJDJTIwZGltJTNELTEpLml0ZW0oKSUwQXByZWRpY3RlZF9sYWJlbCUyMCUzRCUyMG1vZGVsLmNvbmZpZy5pZDJsYWJlbCU1QnByZWRpY3RlZF9jbGFzc19pZHMlNUQ=",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.neuron <span class="hljs-keyword">import</span> NeuronModelForAudioClassification
<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 = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Jingya/wav2vec2-large-960h-lv60-self-neuronx-audio-classification&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = NeuronModelForAudioClassification.from_pretrained(<span class="hljs-string">&quot;Jingya/wav2vec2-large-960h-lv60-self-neuronx-audio-classification&quot;</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(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;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>logits = model(**inputs).logits
<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_class_ids = torch.argmax(logits, dim=-<span class="hljs-number">1</span>).item()
<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_label = model.config.id2label[predicted_class_ids]`,wrap:!1}}),{c(){c=l("p"),c.textContent=$,M=n(),m(p.$$.fragment)},l(t){c=i(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-11lpom8"&&(c.textContent=$),M=r(t),u(p.$$.fragment,t)},m(t,v){d(t,c,v),d(t,M,v),g(p,t,v),N=!0},p:I,i(t){N||(f(p.$$.fragment,t),N=!0)},o(t){h(p.$$.fragment,t),N=!1},d(t){t&&(a(c),a(M)),_(p,t)}}}function $d(j){let c,$="Example:",M,p,N;return p=new X({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMEFmcm9tJTIwb3B0aW11bS5uZXVyb24lMjBpbXBvcnQlMjBOZXVyb25Nb2RlbEZvckF1ZGlvRnJhbWVDbGFzc2lmaWNhdGlvbiUwQWZyb20lMjBkYXRhc2V0cyUyMGltcG9ydCUyMGxvYWRfZGF0YXNldCUwQWltcG9ydCUyMHRvcmNoJTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJoZi1pbnRlcm5hbC10ZXN0aW5nJTJGbGlicmlzcGVlY2hfYXNyX2RlbW8lMjIlMkMlMjAlMjJjbGVhbiUyMiUyQyUyMHNwbGl0JTNEJTIydmFsaWRhdGlvbiUyMiklMEFkYXRhc2V0JTIwJTNEJTIwZGF0YXNldC5zb3J0KCUyMmlkJTIyKSUwQXNhbXBsaW5nX3JhdGUlMjAlM0QlMjBkYXRhc2V0LmZlYXR1cmVzJTVCJTIyYXVkaW8lMjIlNUQuc2FtcGxpbmdfcmF0ZSUwQSUwQWZlYXR1cmVfZXh0cmFjdG9yJTIwJTNEJTIwQXV0b1Byb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIySmluZ3lhJTJGd2F2MnZlYzItYmFzZS1zdXBlcmItc2QtbmV1cm9ueCUyMiklMEFtb2RlbCUyMCUzRCUyMCUyME5ldXJvbk1vZGVsRm9yQXVkaW9GcmFtZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJKaW5neWElMkZ3YXYydmVjMi1iYXNlLXN1cGVyYi1zZC1uZXVyb254JTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGZlYXR1cmVfZXh0cmFjdG9yKGRhdGFzZXQlNUIwJTVEJTVCJTIyYXVkaW8lMjIlNUQlNUIlMjJhcnJheSUyMiU1RCUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIlMkMlMjBzYW1wbGluZ19yYXRlJTNEc2FtcGxpbmdfcmF0ZSklMEFsb2dpdHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cykubG9naXRzJTBBJTBBcHJvYmFiaWxpdGllcyUyMCUzRCUyMHRvcmNoLnNpZ21vaWQobG9naXRzJTVCMCU1RCklMEFsYWJlbHMlMjAlM0QlMjAocHJvYmFiaWxpdGllcyUyMCUzRSUyMDAuNSkubG9uZygpJTBBbGFiZWxzJTVCMCU1RC50b2xpc3QoKQ==",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.neuron <span class="hljs-keyword">import</span> NeuronModelForAudioFrameClassification
<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 = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Jingya/wav2vec2-base-superb-sd-neuronx&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model =  NeuronModelForAudioFrameClassification.from_pretrained(<span class="hljs-string">&quot;Jingya/wav2vec2-base-superb-sd-neuronx&quot;</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(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(){c=l("p"),c.textContent=$,M=n(),m(p.$$.fragment)},l(t){c=i(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-11lpom8"&&(c.textContent=$),M=r(t),u(p.$$.fragment,t)},m(t,v){d(t,c,v),d(t,M,v),g(p,t,v),N=!0},p:I,i(t){N||(f(p.$$.fragment,t),N=!0)},o(t){h(p.$$.fragment,t),N=!1},d(t){t&&(a(c),a(M)),_(p,t)}}}function jd(j){let c,$="Example:",M,p,N;return p=new X({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMEFmcm9tJTIwb3B0aW11bS5uZXVyb24lMjBpbXBvcnQlMjBOZXVyb25Nb2RlbEZvckNUQyUwQWZyb20lMjBkYXRhc2V0cyUyMGltcG9ydCUyMGxvYWRfZGF0YXNldCUwQWltcG9ydCUyMHRvcmNoJTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJoZi1pbnRlcm5hbC10ZXN0aW5nJTJGbGlicmlzcGVlY2hfYXNyX2RlbW8lMjIlMkMlMjAlMjJjbGVhbiUyMiUyQyUyMHNwbGl0JTNEJTIydmFsaWRhdGlvbiUyMiklMEFkYXRhc2V0JTIwJTNEJTIwZGF0YXNldC5zb3J0KCUyMmlkJTIyKSUwQXNhbXBsaW5nX3JhdGUlMjAlM0QlMjBkYXRhc2V0LmZlYXR1cmVzJTVCJTIyYXVkaW8lMjIlNUQuc2FtcGxpbmdfcmF0ZSUwQSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMkppbmd5YSUyRndhdjJ2ZWMyLWxhcmdlLTk2MGgtbHY2MC1zZWxmLW5ldXJvbngtY3RjJTIyKSUwQW1vZGVsJTIwJTNEJTIwTmV1cm9uTW9kZWxGb3JDVEMuZnJvbV9wcmV0cmFpbmVkKCUyMkppbmd5YSUyRndhdjJ2ZWMyLWxhcmdlLTk2MGgtbHY2MC1zZWxmLW5ldXJvbngtY3RjJTIyKSUwQSUwQSUyMyUyMGF1ZGlvJTIwZmlsZSUyMGlzJTIwZGVjb2RlZCUyMG9uJTIwdGhlJTIwZmx5JTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKGRhdGFzZXQlNUIwJTVEJTVCJTIyYXVkaW8lMjIlNUQlNUIlMjJhcnJheSUyMiU1RCUyQyUyMHNhbXBsaW5nX3JhdGUlM0RzYW1wbGluZ19yYXRlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEFsb2dpdHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cykubG9naXRzJTBBcHJlZGljdGVkX2lkcyUyMCUzRCUyMHRvcmNoLmFyZ21heChsb2dpdHMlMkMlMjBkaW0lM0QtMSklMEElMEF0cmFuc2NyaXB0aW9uJTIwJTNEJTIwcHJvY2Vzc29yLmJhdGNoX2RlY29kZShwcmVkaWN0ZWRfaWRzKQ==",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.neuron <span class="hljs-keyword">import</span> NeuronModelForCTC
<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>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Jingya/wav2vec2-large-960h-lv60-self-neuronx-ctc&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = NeuronModelForCTC.from_pretrained(<span class="hljs-string">&quot;Jingya/wav2vec2-large-960h-lv60-self-neuronx-ctc&quot;</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;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = model(**inputs).logits
<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_ids = torch.argmax(logits, dim=-<span class="hljs-number">1</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>transcription = processor.batch_decode(predicted_ids)`,wrap:!1}}),{c(){c=l("p"),c.textContent=$,M=n(),m(p.$$.fragment)},l(t){c=i(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-11lpom8"&&(c.textContent=$),M=r(t),u(p.$$.fragment,t)},m(t,v){d(t,c,v),d(t,M,v),g(p,t,v),N=!0},p:I,i(t){N||(f(p.$$.fragment,t),N=!0)},o(t){h(p.$$.fragment,t),N=!1},d(t){t&&(a(c),a(M)),_(p,t)}}}function kd(j){let c,$="Example using <code>optimum.neuron.pipeline</code>:",M,p,N;return p=new X({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMEFmcm9tJTIwb3B0aW11bS5uZXVyb24lMjBpbXBvcnQlMjBOZXVyb25Nb2RlbEZvckNUQyUyQyUyMHBpcGVsaW5lJTBBJTBBcHJvY2Vzc29yJTIwJTNEJTIwQXV0b1Byb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIySmluZ3lhJTJGd2F2MnZlYzItbGFyZ2UtOTYwaC1sdjYwLXNlbGYtbmV1cm9ueC1jdGMlMjIpJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJoZi1pbnRlcm5hbC10ZXN0aW5nJTJGbGlicmlzcGVlY2hfYXNyX2RlbW8lMjIlMkMlMjAlMjJjbGVhbiUyMiUyQyUyMHNwbGl0JTNEJTIydmFsaWRhdGlvbiUyMiklMEFkYXRhc2V0JTIwJTNEJTIwZGF0YXNldC5zb3J0KCUyMmlkJTIyKSUwQSUwQW1vZGVsJTIwJTNEJTIwTmV1cm9uTW9kZWxGb3JDVEMuZnJvbV9wcmV0cmFpbmVkKCUyMkppbmd5YSUyRndhdjJ2ZWMyLWxhcmdlLTk2MGgtbHY2MC1zZWxmLW5ldXJvbngtY3RjJTIyKSUwQWFzciUyMCUzRCUyMHBpcGVsaW5lKCUyMmF1dG9tYXRpYy1zcGVlY2gtcmVjb2duaXRpb24lMjIlMkMlMjBtb2RlbCUzRG1vZGVsJTJDJTIwZmVhdHVyZV9leHRyYWN0b3IlM0Rwcm9jZXNzb3IuZmVhdHVyZV9leHRyYWN0b3IlMkMlMjB0b2tlbml6ZXIlM0Rwcm9jZXNzb3IudG9rZW5pemVyKQ==",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.neuron <span class="hljs-keyword">import</span> NeuronModelForCTC, pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Jingya/wav2vec2-large-960h-lv60-self-neuronx-ctc&quot;</span>)
<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>model = NeuronModelForCTC.from_pretrained(<span class="hljs-string">&quot;Jingya/wav2vec2-large-960h-lv60-self-neuronx-ctc&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>asr = pipeline(<span class="hljs-string">&quot;automatic-speech-recognition&quot;</span>, model=model, feature_extractor=processor.feature_extractor, tokenizer=processor.tokenizer)`,wrap:!1}}),{c(){c=l("p"),c.innerHTML=$,M=n(),m(p.$$.fragment)},l(t){c=i(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-ch7hyj"&&(c.innerHTML=$),M=r(t),u(p.$$.fragment,t)},m(t,v){d(t,c,v),d(t,M,v),g(p,t,v),N=!0},p:I,i(t){N||(f(p.$$.fragment,t),N=!0)},o(t){h(p.$$.fragment,t),N=!1},d(t){t&&(a(c),a(M)),_(p,t)}}}function Cd(j){let c,$="Example:",M,p,N;return p=new X({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMEFmcm9tJTIwb3B0aW11bS5uZXVyb24lMjBpbXBvcnQlMjBOZXVyb25Nb2RlbEZvclhWZWN0b3IlMEFmcm9tJTIwZGF0YXNldHMlMjBpbXBvcnQlMjBsb2FkX2RhdGFzZXQlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQWRhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyaGYtaW50ZXJuYWwtdGVzdGluZyUyRmxpYnJpc3BlZWNoX2Fzcl9kZW1vJTIyJTJDJTIwJTIyY2xlYW4lMjIlMkMlMjBzcGxpdCUzRCUyMnZhbGlkYXRpb24lMjIpJTBBZGF0YXNldCUyMCUzRCUyMGRhdGFzZXQuc29ydCglMjJpZCUyMiklMEFzYW1wbGluZ19yYXRlJTIwJTNEJTIwZGF0YXNldC5mZWF0dXJlcyU1QiUyMmF1ZGlvJTIyJTVELnNhbXBsaW5nX3JhdGUlMEElMEFmZWF0dXJlX2V4dHJhY3RvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMkppbmd5YSUyRndhdjJ2ZWMyLWJhc2Utc3VwZXJiLXN2LW5ldXJvbnglMjIpJTBBbW9kZWwlMjAlM0QlMjBOZXVyb25Nb2RlbEZvclhWZWN0b3IuZnJvbV9wcmV0cmFpbmVkKCUyMkppbmd5YSUyRndhdjJ2ZWMyLWJhc2Utc3VwZXJiLXN2LW5ldXJvbnglMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwZmVhdHVyZV9leHRyYWN0b3IoJTBBJTIwJTIwJTIwJTIwJTVCZCU1QiUyMmFycmF5JTIyJTVEJTIwZm9yJTIwZCUyMGluJTIwZGF0YXNldCU1QiUzQTIlNUQlNUIlMjJhdWRpbyUyMiU1RCU1RCUyQyUyMHNhbXBsaW5nX3JhdGUlM0RzYW1wbGluZ19yYXRlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiUyQyUyMHBhZGRpbmclM0RUcnVlJTBBKSUwQWVtYmVkZGluZ3MlMjAlM0QlMjBtb2RlbCgqKmlucHV0cykuZW1iZWRkaW5ncyUwQSUwQWVtYmVkZGluZ3MlMjAlM0QlMjB0b3JjaC5ubi5mdW5jdGlvbmFsLm5vcm1hbGl6ZShlbWJlZGRpbmdzJTJDJTIwZGltJTNELTEpJTBBJTBBY29zaW5lX3NpbSUyMCUzRCUyMHRvcmNoLm5uLkNvc2luZVNpbWlsYXJpdHkoZGltJTNELTEpJTBBc2ltaWxhcml0eSUyMCUzRCUyMGNvc2luZV9zaW0oZW1iZWRkaW5ncyU1QjAlNUQlMkMlMjBlbWJlZGRpbmdzJTVCMSU1RCklMEF0aHJlc2hvbGQlMjAlM0QlMjAwLjclMEFpZiUyMHNpbWlsYXJpdHklMjAlM0MlMjB0aHJlc2hvbGQlM0ElMEElMjAlMjAlMjAlMjBwcmludCglMjJTcGVha2VycyUyMGFyZSUyMG5vdCUyMHRoZSUyMHNhbWUhJTIyKSUwQXJvdW5kKHNpbWlsYXJpdHkuaXRlbSgpJTJDJTIwMik=",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.neuron <span class="hljs-keyword">import</span> NeuronModelForXVector
<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 = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;Jingya/wav2vec2-base-superb-sv-neuronx&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = NeuronModelForXVector.from_pretrained(<span class="hljs-string">&quot;Jingya/wav2vec2-base-superb-sv-neuronx&quot;</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>)

<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(){c=l("p"),c.textContent=$,M=n(),m(p.$$.fragment)},l(t){c=i(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-11lpom8"&&(c.textContent=$),M=r(t),u(p.$$.fragment,t)},m(t,v){d(t,c,v),d(t,M,v),g(p,t,v),N=!0},p:I,i(t){N||(f(p.$$.fragment,t),N=!0)},o(t){h(p.$$.fragment,t),N=!1},d(t){t&&(a(c),a(M)),_(p,t)}}}function xd(j){let c,$,M,p,N,t,v,Lr,mt,Gr,ut,Rr,gt,$i=`The <code>NeuronTracedModel</code> class is available for instantiating a base Neuron model without a specific head.
It is used as the base class for all tasks but text generation.`,Dr,C,ft,ms,rn,ji="Base class running compiled and optimized models on Neuron devices.",us,an,ki=`It implements generic methods for interacting with the Hugging Face Hub as well as compiling vanilla
transformers models to neuron-optimized TorchScript module and export it using <code>optimum.exporters.neuron</code> toolchain.`,gs,sn,Ci="Class attributes:",fs,ln,xi=`<li>model_type (<code>str</code>, <em>optional</em>, defaults to <code>&quot;neuron_model&quot;</code>) — The name of the model type to use when
registering the NeuronTracedModel classes.</li> <li>auto_model_class (<code>Type</code>, <em>optional</em>, defaults to <code>AutoModel</code>) — The <code>AutoModel</code> class to be represented by the
current NeuronTracedModel class.</li>`,hs,cn,Ji="Common attributes:",_s,dn,Ii=`<li>model (<code>torch.jit._script.ScriptModule</code>) — The loaded <code>ScriptModule</code> compiled for neuron devices.</li> <li>config (<code>PretrainedConfig</code>) — The configuration of the model.</li> <li>model_save_dir (<code>Path</code>) — The directory where a neuron compiled model is saved.
By default, if the loaded model is local, the directory where the original model will be used. Otherwise, the
cache directory will be used.</li>`,bs,Pe,ht,Ms,pn,Fi="Returns whether this model can generate sequences with <code>.generate()</code>.",Ns,Be,_t,vs,mn,Xi="Gets a dictionary of inputs with their valid static shapes.",ys,Ee,bt,ws,un,Zi=`Loads a TorchScript module compiled by neuron(x)-cc compiler. It will be first loaded onto CPU and then moved to
one or multiple <a href="https://awsdocs-neuron.readthedocs-hosted.com/en/latest/general/arch/neuron-hardware/neuroncores-arch.html" rel="nofollow">NeuronCore</a>.`,Ts,Le,Mt,$s,gn,Si="Removes padding from output tensors.",qr,Nt,Hr,vt,Ui="The following Neuron model classes are available for natural language processing tasks.",Qr,yt,Ar,Z,wt,js,fn,zi="Neuron Model with a BaseModelOutput for feature-extraction tasks.",ks,hn,Vi=`This model inherits from <code>~neuron.modeling.NeuronTracedModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,Cs,_n,Wi="Feature Extraction model on Neuron devices.",xs,ne,Tt,Js,bn,Pi="The <code>NeuronModelForFeatureExtraction</code> forward method, overrides the <code>__call__</code> special method. Accepts only the inputs traced during the compilation step. Any additional inputs provided during inference will be ignored. To include extra inputs, recompile the model with those inputs specified.",Is,Ge,Yr,$t,Kr,oe,jt,Fs,Mn,Bi="Sentence Transformers model on Neuron devices.",Xs,Re,kt,Zs,Nn,Ei="Tokenizes the texts.",Or,Ct,ea,S,xt,Ss,vn,Li="Neuron Model with a MaskedLMOutput for masked language modeling tasks.",Us,yn,Gi=`This model inherits from <code>~neuron.modeling.NeuronTracedModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,zs,wn,Ri="Masked language model for on Neuron devices.",Vs,re,Jt,Ws,Tn,Di="The <code>NeuronModelForMaskedLM</code> forward method, overrides the <code>__call__</code> special method. Accepts only the inputs traced during the compilation step. Any additional inputs provided during inference will be ignored. To include extra inputs, recompile the model with those inputs specified.",Ps,De,ta,It,oa,U,Ft,Bs,$n,qi=`Neuron Model with a sequence classification/regression head on top (a linear layer on top of the
pooled output) e.g. for GLUE tasks.`,Es,jn,Hi=`This model inherits from <code>~neuron.modeling.NeuronTracedModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,Ls,kn,Qi="Sequence Classification model on Neuron devices.",Gs,ae,Xt,Rs,Cn,Ai="The <code>NeuronModelForSequenceClassification</code> forward method, overrides the <code>__call__</code> special method. Accepts only the inputs traced during the compilation step. Any additional inputs provided during inference will be ignored. To include extra inputs, recompile the model with those inputs specified.",Ds,qe,na,Zt,ra,z,St,qs,xn,Yi="Neuron Model with a QuestionAnsweringModelOutput for extractive question-answering tasks like SQuAD.",Hs,Jn,Ki=`This model inherits from <code>~neuron.modeling.NeuronTracedModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,Qs,In,Oi="Question Answering model on Neuron devices.",As,se,Ut,Ys,Fn,ec="The <code>NeuronModelForQuestionAnswering</code> forward method, overrides the <code>__call__</code> special method. Accepts only the inputs traced during the compilation step. Any additional inputs provided during inference will be ignored. To include extra inputs, recompile the model with those inputs specified.",Ks,He,aa,zt,sa,V,Vt,Os,Xn,tc=`Neuron Model with a token classification head on top (a linear layer on top of the hidden-states output) e.g.
for Named-Entity-Recognition (NER) tasks.`,el,Zn,oc=`This model inherits from <code>~neuron.modeling.NeuronTracedModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,tl,Sn,nc="Token Classification model on Neuron devices.",ol,le,Wt,nl,Un,rc="The <code>NeuronModelForTokenClassification</code> forward method, overrides the <code>__call__</code> special method. Accepts only the inputs traced during the compilation step. Any additional inputs provided during inference will be ignored. To include extra inputs, recompile the model with those inputs specified.",rl,Qe,la,Pt,ia,W,Bt,al,zn,ac=`Neuron Model with a multiple choice classification head on top (a linear layer on top of the pooled output and a
softmax) e.g. for RocStories/SWAG tasks.`,sl,Vn,sc=`This model inherits from <code>~neuron.modeling.NeuronTracedModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,ll,Wn,lc="Multiple choice model on Neuron devices.",il,ie,Et,cl,Pn,ic="The <code>NeuronModelForMultipleChoice</code> forward method, overrides the <code>__call__</code> special method. Accepts only the inputs traced during the compilation step. Any additional inputs provided during inference will be ignored. To include extra inputs, recompile the model with those inputs specified.",dl,Ae,ca,Lt,da,H,Gt,pl,Bn,cc="Neuron model with a causal language modeling head for inference on Neuron devices.",ml,En,dc=`This model inherits from <code>~neuron.NeuronModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,ul,Ln,Rt,pa,Dt,ma,Q,qt,gl,Gn,pc="Neuron Sequence-to-sequence model with a language modeling head for text2text-generation tasks.",fl,Rn,mc=`This model inherits from <code>~neuron.modeling.NeuronTracedModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,hl,J,Ht,_l,Dn,uc='The <a href="/docs/optimum.neuron/pr_1057/en/model_doc/modeling_auto#optimum.neuron.NeuronModelForSeq2SeqLM">NeuronModelForSeq2SeqLM</a> forward method, overrides the <code>__call__</code> special method.',bl,Ye,Ml,qn,gc="<em>(Following models are compiled with neuronx compiler and can only be run on INF2.)</em>",Nl,Ke,vl,Hn,fc="<em>(For large models, in order to fit into Neuron cores, we need to apply tensor parallelism. Here below is an example ran on <code>inf2.24xlarge</code>.)</em>",yl,Oe,ua,Qt,ga,At,hc="The following Neuron model classes are available for computer vision tasks.",fa,Yt,ha,P,Kt,wl,Qn,_c="Neuron Model with an image classification head on top (a linear layer on top of the final hidden state of the [CLS] token) e.g. for ImageNet.",Tl,An,bc=`This model inherits from <code>~neuron.modeling.NeuronTracedModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,$l,Yn,Mc="Neuron Model for image-classification tasks. This class officially supports beit, convnext, convnextv2, deit, levit, mobilenet_v2, mobilevit, vit, etc.",jl,ce,Ot,kl,Kn,Nc="The <code>NeuronModelForImageClassification</code> forward method, overrides the <code>__call__</code> special method. Accepts only the inputs traced during the compilation step. Any additional inputs provided during inference will be ignored. To include extra inputs, recompile the model with those inputs specified.",Cl,et,_a,eo,ba,B,to,xl,On,vc="Neuron Model with a semantic segmentation head on top, e.g. for Pascal VOC.",Jl,er,yc=`This model inherits from <code>~neuron.modeling.NeuronTracedModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,Il,tr,wc="Neuron Model for semantic-segmentation, with an all-MLP decode head on top e.g. for ADE20k, CityScapes. This class officially supports mobilevit, mobilenet-v2, etc.",Fl,de,oo,Xl,or,Tc="The <code>NeuronModelForSemanticSegmentation</code> forward method, overrides the <code>__call__</code> special method. Accepts only the inputs traced during the compilation step. Any additional inputs provided during inference will be ignored. To include extra inputs, recompile the model with those inputs specified.",Zl,tt,Ma,no,Na,E,ro,Sl,nr,$c="Neuron Model with object detection heads on top, for tasks such as COCO detection.",Ul,rr,jc=`This model inherits from <code>~neuron.modeling.NeuronTracedModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,zl,ar,kc="Neuron Model for object-detection, with object detection heads on top, for tasks such as COCO detection.",Vl,pe,ao,Wl,sr,Cc="The <code>NeuronModelForObjectDetection</code> forward method, overrides the <code>__call__</code> special method. Accepts only the inputs traced during the compilation step. Any additional inputs provided during inference will be ignored. To include extra inputs, recompile the model with those inputs specified.",Pl,ot,va,so,ya,lo,xc="The following auto classes are available for the following audio tasks.",wa,io,Ta,L,co,Bl,lr,Jc="Neuron Model with an audio classification head.",El,ir,Ic=`This model inherits from <code>~neuron.modeling.NeuronTracedModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,Ll,cr,Fc=`Neuron Model for audio-classification, with a sequence classification head on top (a linear layer over the pooled output) for tasks like
SUPERB Keyword Spotting.`,Gl,me,po,Rl,dr,Xc="The <code>NeuronModelForAudioClassification</code> forward method, overrides the <code>__call__</code> special method. Accepts only the inputs traced during the compilation step. Any additional inputs provided during inference will be ignored. To include extra inputs, recompile the model with those inputs specified.",Dl,nt,$a,mo,ja,G,uo,ql,pr,Zc="Neuron Model with an audio frame classification head.",Hl,mr,Sc=`This model inherits from <code>~neuron.modeling.NeuronTracedModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,Ql,ur,Uc="Neuron Model with a frame classification head on top for tasks like Speaker Diarization.",Al,ue,go,Yl,gr,zc="The <code>NeuronModelForAudioFrameClassification</code> forward method, overrides the <code>__call__</code> special method. Accepts only the inputs traced during the compilation step. Any additional inputs provided during inference will be ignored. To include extra inputs, recompile the model with those inputs specified.",Kl,rt,ka,fo,Ca,R,ho,Ol,fr,Vc="Neuron Model with a connectionist temporal classification head.",ei,hr,Wc=`This model inherits from <code>~neuron.modeling.NeuronTracedModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,ti,_r,Pc="Neuron Model with a language modeling head on top for Connectionist Temporal Classification (CTC).",oi,te,_o,ni,br,Bc="The <code>NeuronModelForCTC</code> forward method, overrides the <code>__call__</code> special method. Accepts only the inputs traced during the compilation step. Any additional inputs provided during inference will be ignored. To include extra inputs, recompile the model with those inputs specified.",ri,at,ai,st,xa,bo,Ja,D,Mo,si,Mr,Ec="Neuron Model with an XVector feature extraction head on top for tasks like Speaker Verification.",li,Nr,Lc=`This model inherits from <code>~neuron.modeling.NeuronTracedModel</code>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving)`,ii,vr,Gc="Neuron Model with an XVector feature extraction head on top for tasks like Speaker Verification.",ci,ge,No,di,yr,Rc="The <code>NeuronModelForXVector</code> forward method, overrides the <code>__call__</code> special method. Accepts only the inputs traced during the compilation step. Any additional inputs provided during inference will be ignored. To include extra inputs, recompile the model with those inputs specified.",pi,lt,Ia,vo,Fa,yo,Dc="The following Neuron model classes are available for stable diffusion tasks.",Xa,wo,Za,Te,To,mi,wr,$o,Sa,jo,Ua,$e,ko,ui,Tr,Co,za,xo,Va,je,Jo,gi,$r,Io,Wa,Fo,Pa,ke,Xo,fi,jr,Zo,Ba,So,Ea,Ce,Uo,hi,it,zo,_i,kr,qc="The call function to the pipeline for generation.",La,Vo,Ga,xe,Wo,bi,Cr,Po,Ra,Bo,Da,Je,Eo,Mi,xr,Lo,qa,Go,Ha,Ie,Ro,Ni,Jr,Do,Qa,qo,Aa,Fe,Ho,vi,Ir,Qo,Ya,Ao,Ka,Xe,Yo,yi,fe,Ko,wi,Fr,Hc="The call function to the pipeline for generation.",Ti,Xr,Qc="Examples:",Oa,Er,es;return N=new pd({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),v=new k({props:{title:"Models",local:"models",headingTag:"h1"}}),mt=new k({props:{title:"Generic model classes",local:"generic-model-classes",headingTag:"h2"}}),ut=new k({props:{title:"NeuronTracedModel",local:"optimum.neuron.NeuronTracedModel",headingTag:"h3"}}),ft=new T({props:{name:"class optimum.neuron.NeuronTracedModel",anchor:"optimum.neuron.NeuronTracedModel",parameters:[{name:"model",val:": ScriptModule"},{name:"config",val:": PretrainedConfig"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_file_name",val:": str | None = None"},{name:"preprocessors",val:": list | None = None"},{name:"neuron_config",val:": NeuronDefaultConfig | None = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_traced.py#L68"}}),ht=new T({props:{name:"can_generate",anchor:"optimum.neuron.NeuronTracedModel.can_generate",parameters:[],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_traced.py#L662"}}),_t=new T({props:{name:"get_input_static_shapes",anchor:"optimum.neuron.NeuronTracedModel.get_input_static_shapes",parameters:[{name:"neuron_config",val:": NeuronDefaultConfig"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_traced.py#L515"}}),bt=new T({props:{name:"load_model",anchor:"optimum.neuron.NeuronTracedModel.load_model",parameters:[{name:"path",val:": str | pathlib.Path"},{name:"to_neuron",val:": bool = False"},{name:"device_id",val:": int = 0"},{name:"tensor_parallel_size",val:": int = 1"}],parametersDescription:[{anchor:"optimum.neuron.NeuronTracedModel.load_model.path",description:`<strong>path</strong> (<code>str | Path</code>) &#x2014;
Path of the compiled model.`,name:"path"},{anchor:"optimum.neuron.NeuronTracedModel.load_model.to_neuron",description:`<strong>to_neuron</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to move manually the traced model to NeuronCore. It&#x2019;s only needed when <code>inline_weights_to_neff=False</code>, otherwise it is loaded automatically to a Neuron device.`,name:"to_neuron"},{anchor:"optimum.neuron.NeuronTracedModel.load_model.device_id",description:`<strong>device_id</strong> (<code>int</code>, defaults to 0) &#x2014;
Index of NeuronCore to load the traced model to.`,name:"device_id"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_traced.py#L116"}}),Mt=new T({props:{name:"remove_padding",anchor:"optimum.neuron.NeuronTracedModel.remove_padding",parameters:[{name:"outputs",val:": list[torch.Tensor] | dict"},{name:"dims",val:": list[int]"},{name:"indices",val:": list[int]"},{name:"padding_side",val:": typing.Literal['right', 'left'] = 'right'"}],parametersDescription:[{anchor:"optimum.neuron.NeuronTracedModel.remove_padding.outputs",description:`<strong>outputs</strong> (<code>list[torch.Tensor]</code>) &#x2014;
List of torch tensors which are inference output.`,name:"outputs"},{anchor:"optimum.neuron.NeuronTracedModel.remove_padding.dims",description:`<strong>dims</strong> (<code>list[int]</code>) &#x2014;
List of dimensions in which we slice a tensor.`,name:"dims"},{anchor:"optimum.neuron.NeuronTracedModel.remove_padding.indices",description:`<strong>indices</strong> (<code>list[int]</code>) &#x2014;
List of indices in which we slice a tensor along an axis.`,name:"indices"},{anchor:"optimum.neuron.NeuronTracedModel.remove_padding.padding_side",description:`<strong>padding_side</strong> (<code>Literal[&quot;right&quot;, &quot;left&quot;]</code>, defaults to &#x201C;right&#x201D;) &#x2014;
The side on which the padding has been applied.`,name:"padding_side"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_traced.py#L612"}}),Nt=new k({props:{title:"Natural Language Processing",local:"natural-language-processing",headingTag:"h2"}}),yt=new k({props:{title:"NeuronModelForFeatureExtraction",local:"optimum.neuron.NeuronModelForFeatureExtraction",headingTag:"h3"}}),wt=new T({props:{name:"class optimum.neuron.NeuronModelForFeatureExtraction",anchor:"optimum.neuron.NeuronModelForFeatureExtraction",parameters:[{name:"model",val:": ScriptModule"},{name:"config",val:": PretrainedConfig"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_file_name",val:": str | None = None"},{name:"preprocessors",val:": list | None = None"},{name:"neuron_config",val:": NeuronDefaultConfig | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForFeatureExtraction.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>optimum.neuron.modeling.NeuronTracedModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.neuron.NeuronModelForFeatureExtraction.model",description:'<strong>model</strong> (<code>torch.jit._script.ScriptModule</code>) &#x2014; <a href="https://pytorch.org/docs/stable/generated/torch.jit.ScriptModule.html" rel="nofollow">torch.jit._script.ScriptModule</a> is the TorchScript module with embedded NEFF(Neuron Executable File Format) compiled by neuron(x) compiler.',name:"model"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L85"}}),Tt=new T({props:{name:"forward",anchor:"optimum.neuron.NeuronModelForFeatureExtraction.forward",parameters:[{name:"input_ids",val:": Tensor"},{name:"attention_mask",val:": Tensor"},{name:"token_type_ids",val:": torch.Tensor | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForFeatureExtraction.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</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>.
See <a href="https://huggingface.co/docs/transformers/main_classes/tokenizer#transformers.PreTrainedTokenizerBase.encode" rel="nofollow"><code>PreTrainedTokenizer.encode</code></a> and
<a href="https://huggingface.co/docs/transformers/main_classes/tokenizer#transformers.PreTrainedTokenizerBase.__call__" rel="nofollow"><code>PreTrainedTokenizer.__call__</code></a> for details.
<a href="https://huggingface.co/docs/transformers/glossary#input-ids" rel="nofollow">What are input IDs?</a>`,name:"input_ids"},{anchor:"optimum.neuron.NeuronModelForFeatureExtraction.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor | None</code> of shape <code>(batch_size, sequence_length)</code>, defaults to <code>None</code>) &#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.neuron.NeuronModelForFeatureExtraction.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.Tensor | None</code> of shape <code>(batch_size, sequence_length)</code>, defaults to <code>None</code>) &#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-neuron/blob/vr_1057/optimum/neuron/modeling.py#L92"}}),Ge=new F({props:{anchor:"optimum.neuron.NeuronModelForFeatureExtraction.forward.example",$$slots:{default:[md]},$$scope:{ctx:j}}}),$t=new k({props:{title:"NeuronSentenceTransformers",local:"optimum.neuron.NeuronSentenceTransformers",headingTag:"h3"}}),jt=new T({props:{name:"class optimum.neuron.NeuronSentenceTransformers",anchor:"optimum.neuron.NeuronSentenceTransformers",parameters:[{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_sentence_transformers.py#L32"}}),kt=new T({props:{name:"tokenize",anchor:"optimum.neuron.NeuronSentenceTransformers.tokenize",parameters:[{name:"texts",val:": list[str] | list[dict] | list[tuple[str, str]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronSentenceTransformers.tokenize.texts",description:"<strong>texts</strong> (list[str] | list[dict] | list[tuple[str, str]]]) &#x2014; A list of texts to be tokenized.",name:"texts"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_sentence_transformers.py#L98",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary of tensors with the tokenized texts. Common keys are “input_ids”,
“attention_mask”, and “token_type_ids”.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>dict[str, torch.Tensor]</p>
`}}),Ct=new k({props:{title:"NeuronModelForMaskedLM",local:"optimum.neuron.NeuronModelForMaskedLM",headingTag:"h3"}}),xt=new T({props:{name:"class optimum.neuron.NeuronModelForMaskedLM",anchor:"optimum.neuron.NeuronModelForMaskedLM",parameters:[{name:"model",val:": ScriptModule"},{name:"config",val:": PretrainedConfig"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_file_name",val:": str | None = None"},{name:"preprocessors",val:": list | None = None"},{name:"neuron_config",val:": NeuronDefaultConfig | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForMaskedLM.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>optimum.neuron.modeling.NeuronTracedModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.neuron.NeuronModelForMaskedLM.model",description:'<strong>model</strong> (<code>torch.jit._script.ScriptModule</code>) &#x2014; <a href="https://pytorch.org/docs/stable/generated/torch.jit.ScriptModule.html" rel="nofollow">torch.jit._script.ScriptModule</a> is the TorchScript module with embedded NEFF(Neuron Executable File Format) compiled by neuron(x) compiler.',name:"model"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L137"}}),Jt=new T({props:{name:"forward",anchor:"optimum.neuron.NeuronModelForMaskedLM.forward",parameters:[{name:"input_ids",val:": Tensor"},{name:"attention_mask",val:": Tensor"},{name:"token_type_ids",val:": torch.Tensor | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForMaskedLM.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</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>.
See <a href="https://huggingface.co/docs/transformers/main_classes/tokenizer#transformers.PreTrainedTokenizerBase.encode" rel="nofollow"><code>PreTrainedTokenizer.encode</code></a> and
<a href="https://huggingface.co/docs/transformers/main_classes/tokenizer#transformers.PreTrainedTokenizerBase.__call__" rel="nofollow"><code>PreTrainedTokenizer.__call__</code></a> for details.
<a href="https://huggingface.co/docs/transformers/glossary#input-ids" rel="nofollow">What are input IDs?</a>`,name:"input_ids"},{anchor:"optimum.neuron.NeuronModelForMaskedLM.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor | None</code> of shape <code>(batch_size, sequence_length)</code>, defaults to <code>None</code>) &#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.neuron.NeuronModelForMaskedLM.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.Tensor | None</code> of shape <code>(batch_size, sequence_length)</code>, defaults to <code>None</code>) &#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-neuron/blob/vr_1057/optimum/neuron/modeling.py#L144"}}),De=new F({props:{anchor:"optimum.neuron.NeuronModelForMaskedLM.forward.example",$$slots:{default:[ud]},$$scope:{ctx:j}}}),It=new k({props:{title:"NeuronModelForSequenceClassification",local:"optimum.neuron.NeuronModelForSequenceClassification",headingTag:"h3"}}),Ft=new T({props:{name:"class optimum.neuron.NeuronModelForSequenceClassification",anchor:"optimum.neuron.NeuronModelForSequenceClassification",parameters:[{name:"model",val:": ScriptModule"},{name:"config",val:": PretrainedConfig"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_file_name",val:": str | None = None"},{name:"preprocessors",val:": list | None = None"},{name:"neuron_config",val:": NeuronDefaultConfig | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForSequenceClassification.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>optimum.neuron.modeling.NeuronTracedModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.neuron.NeuronModelForSequenceClassification.model",description:'<strong>model</strong> (<code>torch.jit._script.ScriptModule</code>) &#x2014; <a href="https://pytorch.org/docs/stable/generated/torch.jit.ScriptModule.html" rel="nofollow">torch.jit._script.ScriptModule</a> is the TorchScript module with embedded NEFF(Neuron Executable File Format) compiled by neuron(x) compiler.',name:"model"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L231"}}),Xt=new T({props:{name:"forward",anchor:"optimum.neuron.NeuronModelForSequenceClassification.forward",parameters:[{name:"input_ids",val:": Tensor"},{name:"attention_mask",val:": Tensor"},{name:"token_type_ids",val:": torch.Tensor | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForSequenceClassification.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</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>.
See <a href="https://huggingface.co/docs/transformers/main_classes/tokenizer#transformers.PreTrainedTokenizerBase.encode" rel="nofollow"><code>PreTrainedTokenizer.encode</code></a> and
<a href="https://huggingface.co/docs/transformers/main_classes/tokenizer#transformers.PreTrainedTokenizerBase.__call__" rel="nofollow"><code>PreTrainedTokenizer.__call__</code></a> for details.
<a href="https://huggingface.co/docs/transformers/glossary#input-ids" rel="nofollow">What are input IDs?</a>`,name:"input_ids"},{anchor:"optimum.neuron.NeuronModelForSequenceClassification.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor | None</code> of shape <code>(batch_size, sequence_length)</code>, defaults to <code>None</code>) &#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.neuron.NeuronModelForSequenceClassification.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.Tensor | None</code> of shape <code>(batch_size, sequence_length)</code>, defaults to <code>None</code>) &#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-neuron/blob/vr_1057/optimum/neuron/modeling.py#L238"}}),qe=new F({props:{anchor:"optimum.neuron.NeuronModelForSequenceClassification.forward.example",$$slots:{default:[gd]},$$scope:{ctx:j}}}),Zt=new k({props:{title:"NeuronModelForQuestionAnswering",local:"optimum.neuron.NeuronModelForQuestionAnswering",headingTag:"h3"}}),St=new T({props:{name:"class optimum.neuron.NeuronModelForQuestionAnswering",anchor:"optimum.neuron.NeuronModelForQuestionAnswering",parameters:[{name:"model",val:": ScriptModule"},{name:"config",val:": PretrainedConfig"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_file_name",val:": str | None = None"},{name:"preprocessors",val:": list | None = None"},{name:"neuron_config",val:": NeuronDefaultConfig | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForQuestionAnswering.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>optimum.neuron.modeling.NeuronTracedModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.neuron.NeuronModelForQuestionAnswering.model",description:'<strong>model</strong> (<code>torch.jit._script.ScriptModule</code>) &#x2014; <a href="https://pytorch.org/docs/stable/generated/torch.jit.ScriptModule.html" rel="nofollow">torch.jit._script.ScriptModule</a> is the TorchScript module with embedded NEFF(Neuron Executable File Format) compiled by neuron(x) compiler.',name:"model"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L183"}}),Ut=new T({props:{name:"forward",anchor:"optimum.neuron.NeuronModelForQuestionAnswering.forward",parameters:[{name:"input_ids",val:": Tensor"},{name:"attention_mask",val:": Tensor"},{name:"token_type_ids",val:": torch.Tensor | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForQuestionAnswering.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</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>.
See <a href="https://huggingface.co/docs/transformers/main_classes/tokenizer#transformers.PreTrainedTokenizerBase.encode" rel="nofollow"><code>PreTrainedTokenizer.encode</code></a> and
<a href="https://huggingface.co/docs/transformers/main_classes/tokenizer#transformers.PreTrainedTokenizerBase.__call__" rel="nofollow"><code>PreTrainedTokenizer.__call__</code></a> for details.
<a href="https://huggingface.co/docs/transformers/glossary#input-ids" rel="nofollow">What are input IDs?</a>`,name:"input_ids"},{anchor:"optimum.neuron.NeuronModelForQuestionAnswering.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor | None</code> of shape <code>(batch_size, sequence_length)</code>, defaults to <code>None</code>) &#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.neuron.NeuronModelForQuestionAnswering.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.Tensor | None</code> of shape <code>(batch_size, sequence_length)</code>, defaults to <code>None</code>) &#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-neuron/blob/vr_1057/optimum/neuron/modeling.py#L190"}}),He=new F({props:{anchor:"optimum.neuron.NeuronModelForQuestionAnswering.forward.example",$$slots:{default:[fd]},$$scope:{ctx:j}}}),zt=new k({props:{title:"NeuronModelForTokenClassification",local:"optimum.neuron.NeuronModelForTokenClassification",headingTag:"h3"}}),Vt=new T({props:{name:"class optimum.neuron.NeuronModelForTokenClassification",anchor:"optimum.neuron.NeuronModelForTokenClassification",parameters:[{name:"model",val:": ScriptModule"},{name:"config",val:": PretrainedConfig"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_file_name",val:": str | None = None"},{name:"preprocessors",val:": list | None = None"},{name:"neuron_config",val:": NeuronDefaultConfig | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForTokenClassification.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>optimum.neuron.modeling.NeuronTracedModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.neuron.NeuronModelForTokenClassification.model",description:'<strong>model</strong> (<code>torch.jit._script.ScriptModule</code>) &#x2014; <a href="https://pytorch.org/docs/stable/generated/torch.jit.ScriptModule.html" rel="nofollow">torch.jit._script.ScriptModule</a> is the TorchScript module with embedded NEFF(Neuron Executable File Format) compiled by neuron(x) compiler.',name:"model"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L278"}}),Wt=new T({props:{name:"forward",anchor:"optimum.neuron.NeuronModelForTokenClassification.forward",parameters:[{name:"input_ids",val:": Tensor"},{name:"attention_mask",val:": Tensor"},{name:"token_type_ids",val:": torch.Tensor | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForTokenClassification.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</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>.
See <a href="https://huggingface.co/docs/transformers/main_classes/tokenizer#transformers.PreTrainedTokenizerBase.encode" rel="nofollow"><code>PreTrainedTokenizer.encode</code></a> and
<a href="https://huggingface.co/docs/transformers/main_classes/tokenizer#transformers.PreTrainedTokenizerBase.__call__" rel="nofollow"><code>PreTrainedTokenizer.__call__</code></a> for details.
<a href="https://huggingface.co/docs/transformers/glossary#input-ids" rel="nofollow">What are input IDs?</a>`,name:"input_ids"},{anchor:"optimum.neuron.NeuronModelForTokenClassification.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor | None</code> of shape <code>(batch_size, sequence_length)</code>, defaults to <code>None</code>) &#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.neuron.NeuronModelForTokenClassification.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.Tensor | None</code> of shape <code>(batch_size, sequence_length)</code>, defaults to <code>None</code>) &#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-neuron/blob/vr_1057/optimum/neuron/modeling.py#L285"}}),Qe=new F({props:{anchor:"optimum.neuron.NeuronModelForTokenClassification.forward.example",$$slots:{default:[hd]},$$scope:{ctx:j}}}),Pt=new k({props:{title:"NeuronModelForMultipleChoice",local:"optimum.neuron.NeuronModelForMultipleChoice",headingTag:"h3"}}),Bt=new T({props:{name:"class optimum.neuron.NeuronModelForMultipleChoice",anchor:"optimum.neuron.NeuronModelForMultipleChoice",parameters:[{name:"model",val:": ScriptModule"},{name:"config",val:": PretrainedConfig"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_file_name",val:": str | None = None"},{name:"preprocessors",val:": list | None = None"},{name:"neuron_config",val:": NeuronDefaultConfig | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForMultipleChoice.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>optimum.neuron.modeling.NeuronTracedModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.neuron.NeuronModelForMultipleChoice.model",description:'<strong>model</strong> (<code>torch.jit._script.ScriptModule</code>) &#x2014; <a href="https://pytorch.org/docs/stable/generated/torch.jit.ScriptModule.html" rel="nofollow">torch.jit._script.ScriptModule</a> is the TorchScript module with embedded NEFF(Neuron Executable File Format) compiled by neuron(x) compiler.',name:"model"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L326"}}),Et=new T({props:{name:"forward",anchor:"optimum.neuron.NeuronModelForMultipleChoice.forward",parameters:[{name:"input_ids",val:": Tensor"},{name:"attention_mask",val:": Tensor"},{name:"token_type_ids",val:": torch.Tensor | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForMultipleChoice.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, num_choices, sequence_length)</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>.
See <a href="https://huggingface.co/docs/transformers/main_classes/tokenizer#transformers.PreTrainedTokenizerBase.encode" rel="nofollow"><code>PreTrainedTokenizer.encode</code></a> and
<a href="https://huggingface.co/docs/transformers/main_classes/tokenizer#transformers.PreTrainedTokenizerBase.__call__" rel="nofollow"><code>PreTrainedTokenizer.__call__</code></a> for details.
<a href="https://huggingface.co/docs/transformers/glossary#input-ids" rel="nofollow">What are input IDs?</a>`,name:"input_ids"},{anchor:"optimum.neuron.NeuronModelForMultipleChoice.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor | None</code> of shape <code>(batch_size, num_choices, sequence_length)</code>, defaults to <code>None</code>) &#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.neuron.NeuronModelForMultipleChoice.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.Tensor | None</code> of shape <code>(batch_size, num_choices, sequence_length)</code>, defaults to <code>None</code>) &#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-neuron/blob/vr_1057/optimum/neuron/modeling.py#L333"}}),Ae=new F({props:{anchor:"optimum.neuron.NeuronModelForMultipleChoice.forward.example",$$slots:{default:[_d]},$$scope:{ctx:j}}}),Lt=new k({props:{title:"NeuronModelForCausalLM",local:"optimum.neuron.NeuronModelForCausalLM",headingTag:"h3"}}),Gt=new T({props:{name:"class optimum.neuron.NeuronModelForCausalLM",anchor:"optimum.neuron.NeuronModelForCausalLM",parameters:[{name:"device",val:": device = device(type='cpu')"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/models/inference/modeling_utils.py#L375"}}),Rt=new T({props:{name:"forward",anchor:"optimum.neuron.NeuronModelForCausalLM.forward",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_base.py#L42"}}),Dt=new k({props:{title:"NeuronModelForSeq2SeqLM",local:"optimum.neuron.NeuronModelForSeq2SeqLM",headingTag:"h3"}}),qt=new T({props:{name:"class optimum.neuron.NeuronModelForSeq2SeqLM",anchor:"optimum.neuron.NeuronModelForSeq2SeqLM",parameters:[{name:"encoder",val:": ScriptModule"},{name:"decoder",val:": ScriptModule"},{name:"config",val:": PretrainedConfig"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"encoder_file_name",val:": str | None = 'model.neuron'"},{name:"decoder_file_name",val:": str | None = 'model.neuron'"},{name:"preprocessors",val:": list | None = None"},{name:"neuron_configs",val:": dict[str, 'NeuronDefaultConfig'] | None = None"},{name:"configs",val:": dict[str, 'PretrainedConfig'] | None = None"},{name:"generation_config",val:": transformers.generation.configuration_utils.GenerationConfig | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForSeq2SeqLM.encoder",description:'<strong>encoder</strong> (<code>torch.jit._script.ScriptModule</code>) &#x2014; <a href="https://pytorch.org/docs/stable/generated/torch.jit.ScriptModule.html" rel="nofollow">torch.jit._script.ScriptModule</a> is the TorchScript module of the encoder with embedded NEFF(Neuron Executable File Format) compiled by neuron(x) compiler.',name:"encoder"},{anchor:"optimum.neuron.NeuronModelForSeq2SeqLM.decoder",description:'<strong>decoder</strong> (<code>torch.jit._script.ScriptModule</code>) &#x2014; <a href="https://pytorch.org/docs/stable/generated/torch.jit.ScriptModule.html" rel="nofollow">torch.jit._script.ScriptModule</a> is the TorchScript module of the decoder with embedded NEFF(Neuron Executable File Format) compiled by neuron(x) compiler.',name:"decoder"},{anchor:"optimum.neuron.NeuronModelForSeq2SeqLM.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>optimum.neuron.modeling.NeuronTracedModel.from_pretrained</code> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_seq2seq.py#L443"}}),Ht=new T({props:{name:"forward",anchor:"optimum.neuron.NeuronModelForSeq2SeqLM.forward",parameters:[{name:"attention_mask",val:": torch.FloatTensor | None = None"},{name:"decoder_input_ids",val:": torch.LongTensor | None = None"},{name:"decoder_attention_mask",val:": torch.BoolTensor | None = None"},{name:"encoder_outputs",val:": tuple[tuple[torch.Tensor]] | None = None"},{name:"beam_scores",val:": torch.FloatTensor | None = None"},{name:"return_dict",val:": bool = False"},{name:"output_attentions",val:": bool = False"},{name:"output_hidden_states",val:": bool = False"}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForSeq2SeqLM.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, sequence_length)</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>.
See <a href="https://huggingface.co/docs/transformers/main_classes/tokenizer#transformers.PreTrainedTokenizerBase.encode" rel="nofollow"><code>PreTrainedTokenizer.encode</code></a> and
<a href="https://huggingface.co/docs/transformers/main_classes/tokenizer#transformers.PreTrainedTokenizerBase.__call__" rel="nofollow"><code>PreTrainedTokenizer.__call__</code></a> for details.
<a href="https://huggingface.co/docs/transformers/glossary#input-ids" rel="nofollow">What are input IDs?</a>`,name:"input_ids"},{anchor:"optimum.neuron.NeuronModelForSeq2SeqLM.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor | None</code> of shape <code>(batch_size, sequence_length)</code>, defaults to <code>None</code>) &#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"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_seq2seq.py#L447"}}),Ye=new dd({props:{$$slots:{default:[bd]},$$scope:{ctx:j}}}),Ke=new F({props:{anchor:"optimum.neuron.NeuronModelForSeq2SeqLM.forward.example",$$slots:{default:[Md]},$$scope:{ctx:j}}}),Oe=new F({props:{anchor:"optimum.neuron.NeuronModelForSeq2SeqLM.forward.example-2",$$slots:{default:[Nd]},$$scope:{ctx:j}}}),Qt=new k({props:{title:"Computer Vision",local:"computer-vision",headingTag:"h2"}}),Yt=new k({props:{title:"NeuronModelForImageClassification",local:"optimum.neuron.NeuronModelForImageClassification",headingTag:"h3"}}),Kt=new T({props:{name:"class optimum.neuron.NeuronModelForImageClassification",anchor:"optimum.neuron.NeuronModelForImageClassification",parameters:[{name:"model",val:": ScriptModule"},{name:"config",val:": PretrainedConfig"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_file_name",val:": str | None = None"},{name:"preprocessors",val:": list | None = None"},{name:"neuron_config",val:": NeuronDefaultConfig | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForImageClassification.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>optimum.neuron.modeling.NeuronTracedModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.neuron.NeuronModelForImageClassification.model",description:'<strong>model</strong> (<code>torch.jit._script.ScriptModule</code>) &#x2014; <a href="https://pytorch.org/docs/stable/generated/torch.jit.ScriptModule.html" rel="nofollow">torch.jit._script.ScriptModule</a> is the TorchScript module with embedded NEFF(Neuron Executable File Format) compiled by neuron(x) compiler.',name:"model"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L373"}}),Ot=new T({props:{name:"forward",anchor:"optimum.neuron.NeuronModelForImageClassification.forward",parameters:[{name:"pixel_values",val:": Tensor"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForImageClassification.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.Tensor | None</code> of shape <code>(batch_size, num_channels, height, width)</code>, defaults to <code>None</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/en/model_doc/auto#transformers.AutoImageProcessor" rel="nofollow"><code>AutoImageProcessor</code></a>.`,name:"pixel_values"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L387"}}),et=new F({props:{anchor:"optimum.neuron.NeuronModelForImageClassification.forward.example",$$slots:{default:[vd]},$$scope:{ctx:j}}}),eo=new k({props:{title:"NeuronModelForSemanticSegmentation",local:"optimum.neuron.NeuronModelForSemanticSegmentation",headingTag:"h3"}}),to=new T({props:{name:"class optimum.neuron.NeuronModelForSemanticSegmentation",anchor:"optimum.neuron.NeuronModelForSemanticSegmentation",parameters:[{name:"model",val:": ScriptModule"},{name:"config",val:": PretrainedConfig"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_file_name",val:": str | None = None"},{name:"preprocessors",val:": list | None = None"},{name:"neuron_config",val:": NeuronDefaultConfig | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForSemanticSegmentation.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>optimum.neuron.modeling.NeuronTracedModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.neuron.NeuronModelForSemanticSegmentation.model",description:'<strong>model</strong> (<code>torch.jit._script.ScriptModule</code>) &#x2014; <a href="https://pytorch.org/docs/stable/generated/torch.jit.ScriptModule.html" rel="nofollow">torch.jit._script.ScriptModule</a> is the TorchScript module with embedded NEFF(Neuron Executable File Format) compiled by neuron(x) compiler.',name:"model"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L420"}}),oo=new T({props:{name:"forward",anchor:"optimum.neuron.NeuronModelForSemanticSegmentation.forward",parameters:[{name:"pixel_values",val:": Tensor"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForSemanticSegmentation.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.Tensor | None</code> of shape <code>(batch_size, num_channels, height, width)</code>, defaults to <code>None</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/en/model_doc/auto#transformers.AutoImageProcessor" rel="nofollow"><code>AutoImageProcessor</code></a>.`,name:"pixel_values"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L434"}}),tt=new F({props:{anchor:"optimum.neuron.NeuronModelForSemanticSegmentation.forward.example",$$slots:{default:[yd]},$$scope:{ctx:j}}}),no=new k({props:{title:"NeuronModelForObjectDetection",local:"optimum.neuron.NeuronModelForObjectDetection",headingTag:"h3"}}),ro=new T({props:{name:"class optimum.neuron.NeuronModelForObjectDetection",anchor:"optimum.neuron.NeuronModelForObjectDetection",parameters:[{name:"model",val:": ScriptModule"},{name:"config",val:": PretrainedConfig"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_file_name",val:": str | None = None"},{name:"preprocessors",val:": list | None = None"},{name:"neuron_config",val:": NeuronDefaultConfig | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForObjectDetection.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>optimum.neuron.modeling.NeuronTracedModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.neuron.NeuronModelForObjectDetection.model",description:'<strong>model</strong> (<code>torch.jit._script.ScriptModule</code>) &#x2014; <a href="https://pytorch.org/docs/stable/generated/torch.jit.ScriptModule.html" rel="nofollow">torch.jit._script.ScriptModule</a> is the TorchScript module with embedded NEFF(Neuron Executable File Format) compiled by neuron(x) compiler.',name:"model"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L467"}}),ao=new T({props:{name:"forward",anchor:"optimum.neuron.NeuronModelForObjectDetection.forward",parameters:[{name:"pixel_values",val:": Tensor"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForObjectDetection.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.Tensor | None</code> of shape <code>(batch_size, num_channels, height, width)</code>, defaults to <code>None</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/en/model_doc/auto#transformers.AutoImageProcessor" rel="nofollow"><code>AutoImageProcessor</code></a>.`,name:"pixel_values"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L481"}}),ot=new F({props:{anchor:"optimum.neuron.NeuronModelForObjectDetection.forward.example",$$slots:{default:[wd]},$$scope:{ctx:j}}}),so=new k({props:{title:"Audio",local:"audio",headingTag:"h2"}}),io=new k({props:{title:"NeuronModelForAudioClassification",local:"optimum.neuron.NeuronModelForAudioClassification",headingTag:"h3"}}),co=new T({props:{name:"class optimum.neuron.NeuronModelForAudioClassification",anchor:"optimum.neuron.NeuronModelForAudioClassification",parameters:[{name:"model",val:": ScriptModule"},{name:"config",val:": PretrainedConfig"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_file_name",val:": str | None = None"},{name:"preprocessors",val:": list | None = None"},{name:"neuron_config",val:": NeuronDefaultConfig | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForAudioClassification.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>optimum.neuron.modeling.NeuronTracedModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.neuron.NeuronModelForAudioClassification.model",description:'<strong>model</strong> (<code>torch.jit._script.ScriptModule</code>) &#x2014; <a href="https://pytorch.org/docs/stable/generated/torch.jit.ScriptModule.html" rel="nofollow">torch.jit._script.ScriptModule</a> is the TorchScript module with embedded NEFF(Neuron Executable File Format) compiled by neuron(x) compiler.',name:"model"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L516"}}),po=new T({props:{name:"forward",anchor:"optimum.neuron.NeuronModelForAudioClassification.forward",parameters:[{name:"input_values",val:": Tensor"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForAudioClassification.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/en/model_doc/auto#transformers.AutoProcessor" rel="nofollow"><code>AutoProcessor</code></a>.`,name:"input_values"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L524"}}),nt=new F({props:{anchor:"optimum.neuron.NeuronModelForAudioClassification.forward.example",$$slots:{default:[Td]},$$scope:{ctx:j}}}),mo=new k({props:{title:"NeuronModelForAudioFrameClassification",local:"optimum.neuron.NeuronModelForAudioFrameClassification",headingTag:"h3"}}),uo=new T({props:{name:"class optimum.neuron.NeuronModelForAudioFrameClassification",anchor:"optimum.neuron.NeuronModelForAudioFrameClassification",parameters:[{name:"model",val:": ScriptModule"},{name:"config",val:": PretrainedConfig"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_file_name",val:": str | None = None"},{name:"preprocessors",val:": list | None = None"},{name:"neuron_config",val:": NeuronDefaultConfig | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForAudioFrameClassification.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>optimum.neuron.modeling.NeuronTracedModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.neuron.NeuronModelForAudioFrameClassification.model",description:'<strong>model</strong> (<code>torch.jit._script.ScriptModule</code>) &#x2014; <a href="https://pytorch.org/docs/stable/generated/torch.jit.ScriptModule.html" rel="nofollow">torch.jit._script.ScriptModule</a> is the TorchScript module with embedded NEFF(Neuron Executable File Format) compiled by neuron(x) compiler.',name:"model"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L557"}}),go=new T({props:{name:"forward",anchor:"optimum.neuron.NeuronModelForAudioFrameClassification.forward",parameters:[{name:"input_values",val:": Tensor"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForAudioFrameClassification.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/en/model_doc/auto#transformers.AutoProcessor" rel="nofollow"><code>AutoProcessor</code></a>.`,name:"input_values"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L564"}}),rt=new F({props:{anchor:"optimum.neuron.NeuronModelForAudioFrameClassification.forward.example",$$slots:{default:[$d]},$$scope:{ctx:j}}}),fo=new k({props:{title:"NeuronModelForCTC",local:"optimum.neuron.NeuronModelForCTC",headingTag:"h3"}}),ho=new T({props:{name:"class optimum.neuron.NeuronModelForCTC",anchor:"optimum.neuron.NeuronModelForCTC",parameters:[{name:"model",val:": ScriptModule"},{name:"config",val:": PretrainedConfig"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_file_name",val:": str | None = None"},{name:"preprocessors",val:": list | None = None"},{name:"neuron_config",val:": NeuronDefaultConfig | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForCTC.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>optimum.neuron.modeling.NeuronTracedModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.neuron.NeuronModelForCTC.model",description:'<strong>model</strong> (<code>torch.jit._script.ScriptModule</code>) &#x2014; <a href="https://pytorch.org/docs/stable/generated/torch.jit.ScriptModule.html" rel="nofollow">torch.jit._script.ScriptModule</a> is the TorchScript module with embedded NEFF(Neuron Executable File Format) compiled by neuron(x) compiler.',name:"model"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L597"}}),_o=new T({props:{name:"forward",anchor:"optimum.neuron.NeuronModelForCTC.forward",parameters:[{name:"input_values",val:": Tensor"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForCTC.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/en/model_doc/auto#transformers.AutoProcessor" rel="nofollow"><code>AutoProcessor</code></a>.`,name:"input_values"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L605"}}),at=new F({props:{anchor:"optimum.neuron.NeuronModelForCTC.forward.example",$$slots:{default:[jd]},$$scope:{ctx:j}}}),st=new F({props:{anchor:"optimum.neuron.NeuronModelForCTC.forward.example-2",$$slots:{default:[kd]},$$scope:{ctx:j}}}),bo=new k({props:{title:"NeuronModelForXVector",local:"optimum.neuron.NeuronModelForXVector",headingTag:"h3"}}),Mo=new T({props:{name:"class optimum.neuron.NeuronModelForXVector",anchor:"optimum.neuron.NeuronModelForXVector",parameters:[{name:"model",val:": ScriptModule"},{name:"config",val:": PretrainedConfig"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_file_name",val:": str | None = None"},{name:"preprocessors",val:": list | None = None"},{name:"neuron_config",val:": NeuronDefaultConfig | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForXVector.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>optimum.neuron.modeling.NeuronTracedModel.from_pretrained</code> method to load the model weights.`,name:"config"},{anchor:"optimum.neuron.NeuronModelForXVector.model",description:'<strong>model</strong> (<code>torch.jit._script.ScriptModule</code>) &#x2014; <a href="https://pytorch.org/docs/stable/generated/torch.jit.ScriptModule.html" rel="nofollow">torch.jit._script.ScriptModule</a> is the TorchScript module with embedded NEFF(Neuron Executable File Format) compiled by neuron(x) compiler.',name:"model"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L638"}}),No=new T({props:{name:"forward",anchor:"optimum.neuron.NeuronModelForXVector.forward",parameters:[{name:"input_values",val:": Tensor"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronModelForXVector.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/en/model_doc/auto#transformers.AutoProcessor" rel="nofollow"><code>AutoProcessor</code></a>.`,name:"input_values"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling.py#L645"}}),lt=new F({props:{anchor:"optimum.neuron.NeuronModelForXVector.forward.example",$$slots:{default:[Cd]},$$scope:{ctx:j}}}),vo=new k({props:{title:"Stable Diffusion",local:"stable-diffusion",headingTag:"h2"}}),wo=new k({props:{title:"NeuronStableDiffusionPipeline",local:"optimum.neuron.NeuronStableDiffusionPipeline",headingTag:"h3"}}),To=new T({props:{name:"class optimum.neuron.NeuronStableDiffusionPipeline",anchor:"optimum.neuron.NeuronStableDiffusionPipeline",parameters:[{name:"config",val:": dict[str, typing.Any]"},{name:"configs",val:": dict[str, 'PretrainedConfig']"},{name:"neuron_configs",val:": dict[str, 'NeuronDefaultConfig']"},{name:"data_parallel_mode",val:": typing.Literal['none', 'unet', 'transformer', 'all']"},{name:"scheduler",val:": diffusers.schedulers.scheduling_utils.SchedulerMixin | None"},{name:"vae_decoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeDecoder"},{name:"text_encoder",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"text_encoder_2",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"unet",val:": torch.jit._script.ScriptModule | NeuronModelUnet | None = None"},{name:"transformer",val:": torch.jit._script.ScriptModule | NeuronModelTransformer | None = None"},{name:"vae_encoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeEncoder | None = None"},{name:"image_encoder",val:": torch.jit._script.ScriptModule | None = None"},{name:"safety_checker",val:": torch.jit._script.ScriptModule | None = None"},{name:"tokenizer",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"tokenizer_2",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"feature_extractor",val:": transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor | None = None"},{name:"controlnet",val:": torch.jit._script.ScriptModule | list[torch.jit._script.ScriptModule]| NeuronControlNetModel | NeuronMultiControlNetModel | None = None"},{name:"requires_aesthetics_score",val:": bool = False"},{name:"force_zeros_for_empty_prompt",val:": bool = True"},{name:"add_watermarker",val:": bool | None = None"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_and_config_save_paths",val:": dict[str, tuple[str, pathlib.Path]] | None = None"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1525"}}),$o=new T({props:{name:"__call__",anchor:"optimum.neuron.NeuronStableDiffusionPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1094"}}),jo=new k({props:{title:"NeuronStableDiffusionImg2ImgPipeline",local:"optimum.neuron.NeuronStableDiffusionImg2ImgPipeline",headingTag:"h3"}}),ko=new T({props:{name:"class optimum.neuron.NeuronStableDiffusionImg2ImgPipeline",anchor:"optimum.neuron.NeuronStableDiffusionImg2ImgPipeline",parameters:[{name:"config",val:": dict[str, typing.Any]"},{name:"configs",val:": dict[str, 'PretrainedConfig']"},{name:"neuron_configs",val:": dict[str, 'NeuronDefaultConfig']"},{name:"data_parallel_mode",val:": typing.Literal['none', 'unet', 'transformer', 'all']"},{name:"scheduler",val:": diffusers.schedulers.scheduling_utils.SchedulerMixin | None"},{name:"vae_decoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeDecoder"},{name:"text_encoder",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"text_encoder_2",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"unet",val:": torch.jit._script.ScriptModule | NeuronModelUnet | None = None"},{name:"transformer",val:": torch.jit._script.ScriptModule | NeuronModelTransformer | None = None"},{name:"vae_encoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeEncoder | None = None"},{name:"image_encoder",val:": torch.jit._script.ScriptModule | None = None"},{name:"safety_checker",val:": torch.jit._script.ScriptModule | None = None"},{name:"tokenizer",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"tokenizer_2",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"feature_extractor",val:": transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor | None = None"},{name:"controlnet",val:": torch.jit._script.ScriptModule | list[torch.jit._script.ScriptModule]| NeuronControlNetModel | NeuronMultiControlNetModel | None = None"},{name:"requires_aesthetics_score",val:": bool = False"},{name:"force_zeros_for_empty_prompt",val:": bool = True"},{name:"add_watermarker",val:": bool | None = None"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_and_config_save_paths",val:": dict[str, tuple[str, pathlib.Path]] | None = None"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1538"}}),Co=new T({props:{name:"__call__",anchor:"optimum.neuron.NeuronStableDiffusionImg2ImgPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1094"}}),xo=new k({props:{title:"NeuronStableDiffusionInpaintPipeline",local:"optimum.neuron.NeuronStableDiffusionInpaintPipeline",headingTag:"h3"}}),Jo=new T({props:{name:"class optimum.neuron.NeuronStableDiffusionInpaintPipeline",anchor:"optimum.neuron.NeuronStableDiffusionInpaintPipeline",parameters:[{name:"config",val:": dict[str, typing.Any]"},{name:"configs",val:": dict[str, 'PretrainedConfig']"},{name:"neuron_configs",val:": dict[str, 'NeuronDefaultConfig']"},{name:"data_parallel_mode",val:": typing.Literal['none', 'unet', 'transformer', 'all']"},{name:"scheduler",val:": diffusers.schedulers.scheduling_utils.SchedulerMixin | None"},{name:"vae_decoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeDecoder"},{name:"text_encoder",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"text_encoder_2",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"unet",val:": torch.jit._script.ScriptModule | NeuronModelUnet | None = None"},{name:"transformer",val:": torch.jit._script.ScriptModule | NeuronModelTransformer | None = None"},{name:"vae_encoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeEncoder | None = None"},{name:"image_encoder",val:": torch.jit._script.ScriptModule | None = None"},{name:"safety_checker",val:": torch.jit._script.ScriptModule | None = None"},{name:"tokenizer",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"tokenizer_2",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"feature_extractor",val:": transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor | None = None"},{name:"controlnet",val:": torch.jit._script.ScriptModule | list[torch.jit._script.ScriptModule]| NeuronControlNetModel | NeuronMultiControlNetModel | None = None"},{name:"requires_aesthetics_score",val:": bool = False"},{name:"force_zeros_for_empty_prompt",val:": bool = True"},{name:"add_watermarker",val:": bool | None = None"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_and_config_save_paths",val:": dict[str, tuple[str, pathlib.Path]] | None = None"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1543"}}),Io=new T({props:{name:"__call__",anchor:"optimum.neuron.NeuronStableDiffusionInpaintPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1094"}}),Fo=new k({props:{title:"NeuronLatentConsistencyModelPipeline",local:"optimum.neuron.NeuronLatentConsistencyModelPipeline",headingTag:"h3"}}),Xo=new T({props:{name:"class optimum.neuron.NeuronLatentConsistencyModelPipeline",anchor:"optimum.neuron.NeuronLatentConsistencyModelPipeline",parameters:[{name:"config",val:": dict[str, typing.Any]"},{name:"configs",val:": dict[str, 'PretrainedConfig']"},{name:"neuron_configs",val:": dict[str, 'NeuronDefaultConfig']"},{name:"data_parallel_mode",val:": typing.Literal['none', 'unet', 'transformer', 'all']"},{name:"scheduler",val:": diffusers.schedulers.scheduling_utils.SchedulerMixin | None"},{name:"vae_decoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeDecoder"},{name:"text_encoder",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"text_encoder_2",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"unet",val:": torch.jit._script.ScriptModule | NeuronModelUnet | None = None"},{name:"transformer",val:": torch.jit._script.ScriptModule | NeuronModelTransformer | None = None"},{name:"vae_encoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeEncoder | None = None"},{name:"image_encoder",val:": torch.jit._script.ScriptModule | None = None"},{name:"safety_checker",val:": torch.jit._script.ScriptModule | None = None"},{name:"tokenizer",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"tokenizer_2",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"feature_extractor",val:": transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor | None = None"},{name:"controlnet",val:": torch.jit._script.ScriptModule | list[torch.jit._script.ScriptModule]| NeuronControlNetModel | NeuronMultiControlNetModel | None = None"},{name:"requires_aesthetics_score",val:": bool = False"},{name:"force_zeros_for_empty_prompt",val:": bool = True"},{name:"add_watermarker",val:": bool | None = None"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_and_config_save_paths",val:": dict[str, tuple[str, pathlib.Path]] | None = None"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1556"}}),Zo=new T({props:{name:"__call__",anchor:"optimum.neuron.NeuronLatentConsistencyModelPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1094"}}),So=new k({props:{title:"NeuronStableDiffusionControlNetPipeline",local:"optimum.neuron.NeuronStableDiffusionControlNetPipeline",headingTag:"h3"}}),Uo=new T({props:{name:"class optimum.neuron.NeuronStableDiffusionControlNetPipeline",anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline",parameters:[{name:"config",val:": dict[str, typing.Any]"},{name:"configs",val:": dict[str, 'PretrainedConfig']"},{name:"neuron_configs",val:": dict[str, 'NeuronDefaultConfig']"},{name:"data_parallel_mode",val:": typing.Literal['none', 'unet', 'transformer', 'all']"},{name:"scheduler",val:": diffusers.schedulers.scheduling_utils.SchedulerMixin | None"},{name:"vae_decoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeDecoder"},{name:"text_encoder",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"text_encoder_2",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"unet",val:": torch.jit._script.ScriptModule | NeuronModelUnet | None = None"},{name:"transformer",val:": torch.jit._script.ScriptModule | NeuronModelTransformer | None = None"},{name:"vae_encoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeEncoder | None = None"},{name:"image_encoder",val:": torch.jit._script.ScriptModule | None = None"},{name:"safety_checker",val:": torch.jit._script.ScriptModule | None = None"},{name:"tokenizer",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"tokenizer_2",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"feature_extractor",val:": transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor | None = None"},{name:"controlnet",val:": torch.jit._script.ScriptModule | list[torch.jit._script.ScriptModule]| NeuronControlNetModel | NeuronMultiControlNetModel | None = None"},{name:"requires_aesthetics_score",val:": bool = False"},{name:"force_zeros_for_empty_prompt",val:": bool = True"},{name:"add_watermarker",val:": bool | None = None"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_and_config_save_paths",val:": dict[str, tuple[str, pathlib.Path]] | None = None"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1561"}}),zo=new T({props:{name:"__call__",anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__",parameters:[{name:"prompt",val:": str | list[str] | None = None"},{name:"image",val:": typing.Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.Tensor]] = None"},{name:"num_inference_steps",val:": int = 50"},{name:"timesteps",val:": list[int] | None = None"},{name:"sigmas",val:": list[float] | None = None"},{name:"guidance_scale",val:": float = 7.5"},{name:"negative_prompt",val:": str | list[str] | None = None"},{name:"num_images_per_prompt",val:": int | None = 1"},{name:"eta",val:": float = 0.0"},{name:"generator",val:": torch._C.Generator | list[torch._C.Generator] | None = None"},{name:"latents",val:": torch.Tensor | None = None"},{name:"prompt_embeds",val:": torch.Tensor | None = None"},{name:"negative_prompt_embeds",val:": torch.Tensor | None = None"},{name:"ip_adapter_image",val:": typing.Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.Tensor], NoneType] = None"},{name:"ip_adapter_image_embeds",val:": list[torch.Tensor] | None = None"},{name:"output_type",val:": str = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"cross_attention_kwargs",val:": dict[str, typing.Any] | None = None"},{name:"controlnet_conditioning_scale",val:": float | list[float] = 1.0"},{name:"guess_mode",val:": bool = False"},{name:"control_guidance_start",val:": float | list[float] = 0.0"},{name:"control_guidance_end",val:": float | list[float] = 1.0"},{name:"clip_skip",val:": int | None = None"},{name:"callback_on_step_end",val:": typing.Union[typing.Callable[[int, int, dict], NoneType], diffusers.callbacks.PipelineCallback, diffusers.callbacks.MultiPipelineCallbacks, NoneType] = None"},{name:"callback_on_step_end_tensor_inputs",val:": list[str] = ['latents']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str | list[str] | None</code>, defaults to <code>None</code>) &#x2014;
The prompt or prompts to guide image generation. If not defined, you need to pass <code>prompt_embeds</code>.`,name:"prompt"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.image",description:`<strong>image</strong> (<code>&quot;PipelineImageInput&quot; | None</code>, defaults to <code>None</code>) &#x2014;
The ControlNet input condition to provide guidance to the <code>unet</code> for generation. If the type is
specified as <code>torch.Tensor</code>, it is passed to ControlNet as is. <code>PIL.Image.Image</code> can also be accepted
as an image. The dimensions of the output image defaults to <code>image</code>&#x2019;s dimensions. If height and/or
width are passed, <code>image</code> is resized accordingly. If multiple ControlNets are specified in <code>init</code>,
images must be passed as a list such that each element of the list can be correctly batched for input
to a single ControlNet. When <code>prompt</code> is a list, and if a list of images is passed for a single
ControlNet, each will be paired with each prompt in the <code>prompt</code> list. This also applies to multiple
ControlNets, where a list of image lists can be passed to batch for each prompt and each ControlNet.`,name:"image"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, defaults to 50) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.timesteps",description:`<strong>timesteps</strong> (<code>list[int] | None</code>, defaults to <code>None</code>) &#x2014;
Custom timesteps to use for the denoising process with schedulers which support a <code>timesteps</code> argument
in their <code>set_timesteps</code> method. If not defined, the default behavior when <code>num_inference_steps</code> is
passed will be used. Must be in descending order.`,name:"timesteps"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.sigmas",description:`<strong>sigmas</strong> (<code>list[int] | None</code>, defaults to <code>None</code>) &#x2014;
Custom sigmas to use for the denoising process with schedulers which support a <code>sigmas</code> argument in
their <code>set_timesteps</code> method. If not defined, the default behavior when <code>num_inference_steps</code> is passed
will be used.`,name:"sigmas"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, defaults to 7.5) &#x2014;
A higher guidance scale value encourages the model to generate images closely linked to the text
<code>prompt</code> at the expense of lower image quality. Guidance scale is enabled when <code>guidance_scale &gt; 1</code>.`,name:"guidance_scale"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str | list[str] | None</code>, defaults to <code>None</code>) &#x2014;
The prompt or prompts to guide what to not include in image generation. If not defined, you need to
pass <code>negative_prompt_embeds</code> instead. Ignored when not using guidance (<code>guidance_scale &lt; 1</code>).`,name:"negative_prompt"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>, defaults to 1) &#x2014;
The number of images to generate per prompt. If it is different from the batch size used for the compiltaion,
it will be overridden by the static batch size of neuron (except for dynamic batching).`,name:"num_images_per_prompt"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.eta",description:`<strong>eta</strong> (<code>float</code>, defaults to 0.0) &#x2014;
Corresponds to parameter eta (&#x3B7;) from the <a href="https://arxiv.org/abs/2010.02502" rel="nofollow">DDIM</a> paper. Only applies
to the <code>diffusers.schedulers.DDIMScheduler</code>, and is ignored in other schedulers.`,name:"eta"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator | list[torch.Generator] | None</code>, defaults to <code>None</code>) &#x2014;
A <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow"><code>torch.Generator</code></a> to make
generation deterministic.`,name:"generator"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.Tensor | None</code>, defaults to <code>None</code>) &#x2014;
Pre-generated noisy latents sampled from a Gaussian distribution, to be used as inputs for image
generation. Can be used to tweak the same generation with different prompts. If not provided, a latents
tensor is generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.Tensor | None</code>, defaults to <code>None</code>) &#x2014;
Pre-generated text embeddings. Can be used to easily tweak text inputs (prompt weighting). If not
provided, text embeddings are generated from the <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.Tensor | None</code>, defaults to <code>None</code>) &#x2014;
Pre-generated negative text embeddings. Can be used to easily tweak text inputs (prompt weighting). If
not provided, <code>negative_prompt_embeds</code> are generated from the <code>negative_prompt</code> input argument.`,name:"negative_prompt_embeds"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.ip_adapter_image",description:"<strong>ip_adapter_image</strong> &#x2014; (<code>PipelineImageInput | None</code>, defaults to <code>None</code>): Optional image input to work with IP Adapters.",name:"ip_adapter_image"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.ip_adapter_image_embeds",description:`<strong>ip_adapter_image_embeds</strong> (<code>list[torch.Tensor] | None</code>, defaults to <code>None</code>) &#x2014;
Pre-generated image embeddings for IP-Adapter. It should be a list of length same as number of
IP-adapters. Each element should be a tensor of shape <code>(batch_size, num_images, emb_dim)</code>. It should
contain the negative image embedding if <code>do_classifier_free_guidance</code> is set to <code>True</code>. If not
provided, embeddings are computed from the <code>ip_adapter_image</code> input argument.`,name:"ip_adapter_image_embeds"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, defaults to <code>&quot;pil&quot;</code>) &#x2014;
The output format of the generated image. Choose between <code>PIL.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <code>diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput</code> instead of a
plain tuple.`,name:"return_dict"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.cross_attention_kwargs",description:`<strong>cross_attention_kwargs</strong> (<code>dict[str, Any] | None</code>, defaults to <code>None</code>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow"><code>self.processor</code></a>.`,name:"cross_attention_kwargs"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.controlnet_conditioning_scale",description:`<strong>controlnet_conditioning_scale</strong> (<code>float | list[float]</code>, defaults to 1.0) &#x2014;
The outputs of the ControlNet are multiplied by <code>controlnet_conditioning_scale</code> before they are added
to the residual in the original <code>unet</code>. If multiple ControlNets are specified in <code>init</code>, you can set
the corresponding scale as a list.`,name:"controlnet_conditioning_scale"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.guess_mode",description:`<strong>guess_mode</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
The ControlNet encoder tries to recognize the content of the input image even if you remove all
prompts. A <code>guidance_scale</code> value between 3.0 and 5.0 is recommended.`,name:"guess_mode"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.control_guidance_start",description:`<strong>control_guidance_start</strong> (<code>float | list[float]</code>, defaults to 0.0) &#x2014;
The percentage of total steps at which the ControlNet starts applying.`,name:"control_guidance_start"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.control_guidance_end",description:`<strong>control_guidance_end</strong> (<code>float | list[float]</code>, <em>optional</em>, defaults to 1.0) &#x2014;
The percentage of total steps at which the ControlNet stops applying.`,name:"control_guidance_end"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.clip_skip",description:`<strong>clip_skip</strong> (<code>int | None</code>, defaults to <code>None</code>) &#x2014;
Number of layers to be skipped from CLIP while computing the prompt embeddings. A value of 1 means that
the output of the pre-final layer will be used for computing the prompt embeddings.`,name:"clip_skip"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.callback_on_step_end",description:`<strong>callback_on_step_end</strong> (<code>Callable[[int, int, dict], None] | PipelineCallback | MultiPipelineCallbacks | None</code>, defaults to <code>None</code>) &#x2014;
A function or a subclass of <code>PipelineCallback</code> or <code>MultiPipelineCallbacks</code> that is called at the end of
each denoising step during the inference. with the following arguments: <code>callback_on_step_end(self: DiffusionPipeline, step: int, timestep: int, callback_kwargs: dict)</code>. <code>callback_kwargs</code> will include a
list of all tensors as specified by <code>callback_on_step_end_tensor_inputs</code>.`,name:"callback_on_step_end"},{anchor:"optimum.neuron.NeuronStableDiffusionControlNetPipeline.__call__.callback_on_step_end_tensor_inputs",description:`<strong>callback_on_step_end_tensor_inputs</strong> (<code>list[str]</code>, defaults to <code>[&quot;latents&quot;]</code>) &#x2014;
The list of tensor inputs for the <code>callback_on_step_end</code> function. The tensors specified in the list
will be passed as <code>callback_kwargs</code> argument. You will only be able to include variables listed in the
<code>._callback_tensor_inputs</code> attribute of your pipeline class.`,name:"callback_on_step_end_tensor_inputs"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/pipelines/diffusers/pipeline_controlnet.py#L33",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If <code>return_dict</code> is <code>True</code>, <code>diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput</code> is returned,
otherwise a <code>tuple</code> is returned where the first element is a list with the generated images and the
second element is a list of <code>bool</code>s indicating whether the corresponding generated image contains
“not-safe-for-work” (nsfw) content.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput</code> or <code>tuple</code></p>
`}}),Vo=new k({props:{title:"NeuronPixArtAlphaPipeline",local:"optimum.neuron.NeuronPixArtAlphaPipeline",headingTag:"h3"}}),Wo=new T({props:{name:"class optimum.neuron.NeuronPixArtAlphaPipeline",anchor:"optimum.neuron.NeuronPixArtAlphaPipeline",parameters:[{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1568"}}),Po=new T({props:{name:"__call__",anchor:"optimum.neuron.NeuronPixArtAlphaPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1094"}}),Bo=new k({props:{title:"NeuronStableDiffusionXLPipeline",local:"optimum.neuron.NeuronStableDiffusionXLPipeline",headingTag:"h3"}}),Eo=new T({props:{name:"class optimum.neuron.NeuronStableDiffusionXLPipeline",anchor:"optimum.neuron.NeuronStableDiffusionXLPipeline",parameters:[{name:"config",val:": dict[str, typing.Any]"},{name:"configs",val:": dict[str, 'PretrainedConfig']"},{name:"neuron_configs",val:": dict[str, 'NeuronDefaultConfig']"},{name:"data_parallel_mode",val:": typing.Literal['none', 'unet', 'transformer', 'all']"},{name:"scheduler",val:": diffusers.schedulers.scheduling_utils.SchedulerMixin | None"},{name:"vae_decoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeDecoder"},{name:"text_encoder",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"text_encoder_2",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"unet",val:": torch.jit._script.ScriptModule | NeuronModelUnet | None = None"},{name:"transformer",val:": torch.jit._script.ScriptModule | NeuronModelTransformer | None = None"},{name:"vae_encoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeEncoder | None = None"},{name:"image_encoder",val:": torch.jit._script.ScriptModule | None = None"},{name:"safety_checker",val:": torch.jit._script.ScriptModule | None = None"},{name:"tokenizer",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"tokenizer_2",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"feature_extractor",val:": transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor | None = None"},{name:"controlnet",val:": torch.jit._script.ScriptModule | list[torch.jit._script.ScriptModule]| NeuronControlNetModel | NeuronMultiControlNetModel | None = None"},{name:"requires_aesthetics_score",val:": bool = False"},{name:"force_zeros_for_empty_prompt",val:": bool = True"},{name:"add_watermarker",val:": bool | None = None"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_and_config_save_paths",val:": dict[str, tuple[str, pathlib.Path]] | None = None"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1586"}}),Lo=new T({props:{name:"__call__",anchor:"optimum.neuron.NeuronStableDiffusionXLPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1094"}}),Go=new k({props:{title:"NeuronStableDiffusionXLImg2ImgPipeline",local:"optimum.neuron.NeuronStableDiffusionXLImg2ImgPipeline",headingTag:"h3"}}),Ro=new T({props:{name:"class optimum.neuron.NeuronStableDiffusionXLImg2ImgPipeline",anchor:"optimum.neuron.NeuronStableDiffusionXLImg2ImgPipeline",parameters:[{name:"config",val:": dict[str, typing.Any]"},{name:"configs",val:": dict[str, 'PretrainedConfig']"},{name:"neuron_configs",val:": dict[str, 'NeuronDefaultConfig']"},{name:"data_parallel_mode",val:": typing.Literal['none', 'unet', 'transformer', 'all']"},{name:"scheduler",val:": diffusers.schedulers.scheduling_utils.SchedulerMixin | None"},{name:"vae_decoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeDecoder"},{name:"text_encoder",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"text_encoder_2",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"unet",val:": torch.jit._script.ScriptModule | NeuronModelUnet | None = None"},{name:"transformer",val:": torch.jit._script.ScriptModule | NeuronModelTransformer | None = None"},{name:"vae_encoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeEncoder | None = None"},{name:"image_encoder",val:": torch.jit._script.ScriptModule | None = None"},{name:"safety_checker",val:": torch.jit._script.ScriptModule | None = None"},{name:"tokenizer",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"tokenizer_2",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"feature_extractor",val:": transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor | None = None"},{name:"controlnet",val:": torch.jit._script.ScriptModule | list[torch.jit._script.ScriptModule]| NeuronControlNetModel | NeuronMultiControlNetModel | None = None"},{name:"requires_aesthetics_score",val:": bool = False"},{name:"force_zeros_for_empty_prompt",val:": bool = True"},{name:"add_watermarker",val:": bool | None = None"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_and_config_save_paths",val:": dict[str, tuple[str, pathlib.Path]] | None = None"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1599"}}),Do=new T({props:{name:"__call__",anchor:"optimum.neuron.NeuronStableDiffusionXLImg2ImgPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1094"}}),qo=new k({props:{title:"NeuronStableDiffusionXLInpaintPipeline",local:"optimum.neuron.NeuronStableDiffusionXLInpaintPipeline",headingTag:"h3"}}),Ho=new T({props:{name:"class optimum.neuron.NeuronStableDiffusionXLInpaintPipeline",anchor:"optimum.neuron.NeuronStableDiffusionXLInpaintPipeline",parameters:[{name:"config",val:": dict[str, typing.Any]"},{name:"configs",val:": dict[str, 'PretrainedConfig']"},{name:"neuron_configs",val:": dict[str, 'NeuronDefaultConfig']"},{name:"data_parallel_mode",val:": typing.Literal['none', 'unet', 'transformer', 'all']"},{name:"scheduler",val:": diffusers.schedulers.scheduling_utils.SchedulerMixin | None"},{name:"vae_decoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeDecoder"},{name:"text_encoder",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"text_encoder_2",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"unet",val:": torch.jit._script.ScriptModule | NeuronModelUnet | None = None"},{name:"transformer",val:": torch.jit._script.ScriptModule | NeuronModelTransformer | None = None"},{name:"vae_encoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeEncoder | None = None"},{name:"image_encoder",val:": torch.jit._script.ScriptModule | None = None"},{name:"safety_checker",val:": torch.jit._script.ScriptModule | None = None"},{name:"tokenizer",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"tokenizer_2",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"feature_extractor",val:": transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor | None = None"},{name:"controlnet",val:": torch.jit._script.ScriptModule | list[torch.jit._script.ScriptModule]| NeuronControlNetModel | NeuronMultiControlNetModel | None = None"},{name:"requires_aesthetics_score",val:": bool = False"},{name:"force_zeros_for_empty_prompt",val:": bool = True"},{name:"add_watermarker",val:": bool | None = None"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_and_config_save_paths",val:": dict[str, tuple[str, pathlib.Path]] | None = None"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1606"}}),Qo=new T({props:{name:"__call__",anchor:"optimum.neuron.NeuronStableDiffusionXLInpaintPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1094"}}),Ao=new k({props:{title:"NeuronStableDiffusionXLControlNetPipeline",local:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline",headingTag:"h3"}}),Yo=new T({props:{name:"class optimum.neuron.NeuronStableDiffusionXLControlNetPipeline",anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline",parameters:[{name:"config",val:": dict[str, typing.Any]"},{name:"configs",val:": dict[str, 'PretrainedConfig']"},{name:"neuron_configs",val:": dict[str, 'NeuronDefaultConfig']"},{name:"data_parallel_mode",val:": typing.Literal['none', 'unet', 'transformer', 'all']"},{name:"scheduler",val:": diffusers.schedulers.scheduling_utils.SchedulerMixin | None"},{name:"vae_decoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeDecoder"},{name:"text_encoder",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"text_encoder_2",val:": torch.jit._script.ScriptModule | NeuronModelTextEncoder | None = None"},{name:"unet",val:": torch.jit._script.ScriptModule | NeuronModelUnet | None = None"},{name:"transformer",val:": torch.jit._script.ScriptModule | NeuronModelTransformer | None = None"},{name:"vae_encoder",val:": torch.jit._script.ScriptModule | NeuronModelVaeEncoder | None = None"},{name:"image_encoder",val:": torch.jit._script.ScriptModule | None = None"},{name:"safety_checker",val:": torch.jit._script.ScriptModule | None = None"},{name:"tokenizer",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"tokenizer_2",val:": transformers.models.clip.tokenization_clip.CLIPTokenizer | transformers.models.t5.tokenization_t5.T5Tokenizer | None = None"},{name:"feature_extractor",val:": transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor | None = None"},{name:"controlnet",val:": torch.jit._script.ScriptModule | list[torch.jit._script.ScriptModule]| NeuronControlNetModel | NeuronMultiControlNetModel | None = None"},{name:"requires_aesthetics_score",val:": bool = False"},{name:"force_zeros_for_empty_prompt",val:": bool = True"},{name:"add_watermarker",val:": bool | None = None"},{name:"model_save_dir",val:": str | pathlib.Path | tempfile.TemporaryDirectory | None = None"},{name:"model_and_config_save_paths",val:": dict[str, tuple[str, pathlib.Path]] | None = None"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/modeling_diffusion.py#L1613"}}),Ko=new T({props:{name:"__call__",anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__",parameters:[{name:"prompt",val:": str | list[str] | None = None"},{name:"prompt_2",val:": str | list[str] | None = None"},{name:"image",val:": typing.Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.Tensor], NoneType] = None"},{name:"num_inference_steps",val:": int = 50"},{name:"timesteps",val:": list[int] | None = None"},{name:"sigmas",val:": list[float] | None = None"},{name:"denoising_end",val:": float | None = None"},{name:"guidance_scale",val:": float = 5.0"},{name:"negative_prompt",val:": str | list[str] | None = None"},{name:"negative_prompt_2",val:": str | list[str] | None = None"},{name:"num_images_per_prompt",val:": int | None = 1"},{name:"eta",val:": float = 0.0"},{name:"generator",val:": torch._C.Generator | list[torch._C.Generator] | None = None"},{name:"latents",val:": torch.Tensor | None = None"},{name:"prompt_embeds",val:": torch.Tensor | None = None"},{name:"negative_prompt_embeds",val:": torch.Tensor | None = None"},{name:"pooled_prompt_embeds",val:": torch.Tensor | None = None"},{name:"negative_pooled_prompt_embeds",val:": torch.Tensor | None = None"},{name:"ip_adapter_image",val:": typing.Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.Tensor], NoneType] = None"},{name:"ip_adapter_image_embeds",val:": list[torch.Tensor] | None = None"},{name:"output_type",val:": str | None = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"cross_attention_kwargs",val:": dict[str, typing.Any] | None = None"},{name:"controlnet_conditioning_scale",val:": float | list[float] = 1.0"},{name:"guess_mode",val:": bool = False"},{name:"control_guidance_start",val:": float | list[float] = 0.0"},{name:"control_guidance_end",val:": float | list[float] = 1.0"},{name:"original_size",val:": tuple[int, int] | None = None"},{name:"crops_coords_top_left",val:": tuple[int, int] = (0, 0)"},{name:"target_size",val:": tuple[int, int] | None = None"},{name:"negative_original_size",val:": tuple[int, int] | None = None"},{name:"negative_crops_coords_top_left",val:": tuple[int, int] = (0, 0)"},{name:"negative_target_size",val:": tuple[int, int] | None = None"},{name:"clip_skip",val:": int | None = None"},{name:"callback_on_step_end",val:": typing.Union[typing.Callable[[int, int, dict], NoneType], diffusers.callbacks.PipelineCallback, diffusers.callbacks.MultiPipelineCallbacks, NoneType] = None"},{name:"callback_on_step_end_tensor_inputs",val:": list[str] = ['latents']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str | list[str]</code>, defaults to <code>None</code>) &#x2014;
The prompt or prompts to guide image generation. If not defined, you need to pass <code>prompt_embeds</code>.`,name:"prompt"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.prompt_2",description:`<strong>prompt_2</strong> (<code>str | list[str]</code>, defaults to <code>None</code>) &#x2014;
The prompt or prompts to be sent to <code>tokenizer_2</code> and <code>text_encoder_2</code>. If not defined, <code>prompt</code> is
used in both text-encoders.`,name:"prompt_2"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.image",description:`<strong>image</strong> (<code>PipelineImageInput | None</code>, defaults to <code>None</code>) &#x2014;
The ControlNet input condition to provide guidance to the <code>unet</code> for generation. If the type is
specified as <code>torch.Tensor</code>, it is passed to ControlNet as is. <code>PIL.Image.Image</code> can also be accepted
as an image. The dimensions of the output image default to <code>image</code>&#x2019;s dimensions. If height and/or
width are passed, <code>image</code> is resized accordingly. If multiple ControlNets are specified in <code>init</code>,
images must be passed as a list such that each element of the list can be correctly batched for input
to a single ControlNet.`,name:"image"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, defaults to 50) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.timesteps",description:`<strong>timesteps</strong> (<code>list[int] | None</code>, defaults to <code>None</code>) &#x2014;
Custom timesteps to use for the denoising process with schedulers which support a <code>timesteps</code> argument
in their <code>set_timesteps</code> method. If not defined, the default behavior when <code>num_inference_steps</code> is passed
will be used. Must be in descending order.`,name:"timesteps"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.sigmas",description:`<strong>sigmas</strong> (<code>list[float] | None</code>, defaults to <code>None</code>) &#x2014;
Custom sigmas to use for the denoising process with schedulers which support a <code>sigmas</code> argument in
their <code>set_timesteps</code> method. If not defined, the default behavior when <code>num_inference_steps</code> is passed
will be used.`,name:"sigmas"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.denoising_end",description:`<strong>denoising_end</strong> (<code>float | None</code>, defaults to <code>None</code>) &#x2014;
When specified, determines the fraction (between 0.0 and 1.0) of the total denoising process to be
completed before it is intentionally prematurely terminated. As a result, the returned sample will
still retain a substantial amount of noise as determined by the discrete timesteps selected by the
scheduler. The denoising_end parameter should ideally be utilized when this pipeline forms a part of a
&#x201C;Mixture of Denoisers&#x201D; multi-pipeline setup, as elaborated in <a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/stable_diffusion_xl#refining-the-image-output" rel="nofollow"><strong>Refining the Image
Output</strong></a>`,name:"denoising_end"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, defaults to 5.0) &#x2014;
A higher guidance scale value encourages the model to generate images closely linked to the text
<code>prompt</code> at the expense of lower image quality. Guidance scale is enabled when <code>guidance_scale &gt; 1</code>.`,name:"guidance_scale"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str | list[str] | None</code>, defaults to <code>None</code>) &#x2014;
The prompt or prompts to guide what to not include in image generation. If not defined, you need to
pass <code>negative_prompt_embeds</code> instead. Ignored when not using guidance (<code>guidance_scale &lt; 1</code>).`,name:"negative_prompt"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.negative_prompt_2",description:`<strong>negative_prompt_2</strong> (<code>str | list[str] | None</code>, defaults to <code>None</code>) &#x2014;
The prompt or prompts to guide what to not include in image generation. This is sent to <code>tokenizer_2</code>
and <code>text_encoder_2</code>. If not defined, <code>negative_prompt</code> is used in both text-encoders.`,name:"negative_prompt_2"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>, defaults to 1) &#x2014;
The number of images to generate per prompt.`,name:"num_images_per_prompt"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.eta",description:`<strong>eta</strong> (<code>float</code>, defaults to 0.0) &#x2014;
Corresponds to parameter eta (&#x3B7;) from the <a href="https://arxiv.org/abs/2010.02502" rel="nofollow">DDIM</a> paper. Only applies
to the <code>diffusers.schedulers.DDIMScheduler</code>, and is ignored in other schedulers.`,name:"eta"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator | list[torch.Generator] | None</code>, defaults to <code>None</code>) &#x2014;
A <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow"><code>torch.Generator</code></a> to make
generation deterministic.`,name:"generator"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.Tensor | None</code>, defaults to <code>None</code>) &#x2014;
Pre-generated noisy latents sampled from a Gaussian distribution, to be used as inputs for image
generation. Can be used to tweak the same generation with different prompts. If not provided, a latents
tensor is generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.Tensor | None</code>, defaults to <code>None</code>) &#x2014;
Pre-generated text embeddings. Can be used to easily tweak text inputs (prompt weighting). If not
provided, text embeddings are generated from the <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.Tensor | None</code>, defaults to <code>None</code>) &#x2014;
Pre-generated negative text embeddings. Can be used to easily tweak text inputs (prompt weighting). If
not provided, <code>negative_prompt_embeds</code> are generated from the <code>negative_prompt</code> input argument.`,name:"negative_prompt_embeds"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.pooled_prompt_embeds",description:`<strong>pooled_prompt_embeds</strong> (<code>torch.Tensor | None</code>, defaults to <code>None</code>) &#x2014;
Pre-generated pooled text embeddings. Can be used to easily tweak text inputs (prompt weighting). If
not provided, pooled text embeddings are generated from <code>prompt</code> input argument.`,name:"pooled_prompt_embeds"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.negative_pooled_prompt_embeds",description:`<strong>negative_pooled_prompt_embeds</strong> (<code>torch.Tensor | None</code>, defaults to <code>None</code>) &#x2014;
Pre-generated negative pooled text embeddings. Can be used to easily tweak text inputs (prompt
weighting). If not provided, pooled <code>negative_prompt_embeds</code> are generated from <code>negative_prompt</code> input
argument.`,name:"negative_pooled_prompt_embeds"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.ip_adapter_image",description:`<strong>ip_adapter_image</strong> (<code>PipelineImageInput | None</code>, defaults to <code>None</code>) &#x2014;
Optional image input to work with IP Adapters.`,name:"ip_adapter_image"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.ip_adapter_image_embeds",description:`<strong>ip_adapter_image_embeds</strong> (<code>list[torch.Tensor] | None</code>, defaults to <code>None</code>) &#x2014;
Pre-generated image embeddings for IP-Adapter. It should be a list of length the same as the number of
IP-adapters. Each element should be a tensor of shape <code>(batch_size, num_images, emb_dim)</code>. It should
contain the negative image embedding if <code>do_classifier_free_guidance</code> is set to <code>True</code>. If not
provided, embeddings are computed from the <code>ip_adapter_image</code> input argument.`,name:"ip_adapter_image_embeds"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str | None</code>, defaults to <code>&quot;pil&quot;</code>) &#x2014;
The output format of the generated image. Choose between <code>PIL.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <code>~pipelines.stable_diffusion.StableDiffusionPipelineOutput</code> instead of a
plain tuple.`,name:"return_dict"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.cross_attention_kwargs",description:`<strong>cross_attention_kwargs</strong> (<code>dict[str, Any] | None</code>, defaults to <code>None</code>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow"><code>self.processor</code></a>.`,name:"cross_attention_kwargs"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.controlnet_conditioning_scale",description:`<strong>controlnet_conditioning_scale</strong> (<code>float | list[float]</code>, defaults to 1.0) &#x2014;
The outputs of the ControlNet are multiplied by <code>controlnet_conditioning_scale</code> before they are added
to the residual in the original <code>unet</code>. If multiple ControlNets are specified in <code>init</code>, you can set
the corresponding scale as a list.`,name:"controlnet_conditioning_scale"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.guess_mode",description:`<strong>guess_mode</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
The ControlNet encoder tries to recognize the content of the input image even if you remove all
prompts. A <code>guidance_scale</code> value between 3.0 and 5.0 is recommended.`,name:"guess_mode"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.control_guidance_start",description:`<strong>control_guidance_start</strong> (<code>float | list[float]</code>, defaults to 0.0) &#x2014;
The percentage of total steps at which the ControlNet starts applying.`,name:"control_guidance_start"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.control_guidance_end",description:`<strong>control_guidance_end</strong> (<code>float | list[float]</code>, defaults to 1.0) &#x2014;
The percentage of total steps at which the ControlNet stops applying.`,name:"control_guidance_end"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.original_size",description:`<strong>original_size</strong> (<code>tuple[int, int] | None</code>, defaults to (1024, 1024)) &#x2014;
If <code>original_size</code> is not the same as <code>target_size</code>, the image will appear to be down- or upsampled.
<code>original_size</code> defaults to <code>(height, width)</code> if not specified. Part of SDXL&#x2019;s micro-conditioning as
explained in section 2.2 of
<a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>.`,name:"original_size"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.crops_coords_top_left",description:`<strong>crops_coords_top_left</strong> (<code>tuple[int, int]</code>, defaults to (0, 0)) &#x2014;
<code>crops_coords_top_left</code> can be used to generate an image that appears to be &#x201C;cropped&#x201D; from the position
<code>crops_coords_top_left</code> downwards. Favorable, well-centered images are usually achieved by setting
<code>crops_coords_top_left</code> to (0, 0). Part of SDXL&#x2019;s micro-conditioning as explained in section 2.2 of
<a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>.`,name:"crops_coords_top_left"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.target_size",description:`<strong>target_size</strong> (<code>tuple[int, int] | None</code>, defaults to <code>None</code>) &#x2014;
For most cases, <code>target_size</code> should be set to the desired height and width of the generated image. If
not specified, it will default to <code>(height, width)</code>. Part of SDXL&#x2019;s micro-conditioning as explained in
section 2.2 of <a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>.`,name:"target_size"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.negative_original_size",description:`<strong>negative_original_size</strong> (<code>tuple[int, int] | None</code>, defaults to <code>None</code>) &#x2014;
To negatively condition the generation process based on a specific image resolution. Part of SDXL&#x2019;s
micro-conditioning as explained in section 2.2 of
<a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>. For more
information, refer to this issue thread: <a href="https://github.com/huggingface/diffusers/issues/4208" rel="nofollow">https://github.com/huggingface/diffusers/issues/4208</a>.`,name:"negative_original_size"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.negative_crops_coords_top_left",description:`<strong>negative_crops_coords_top_left</strong> (<code>tuple[int, int]</code>, defaults to (0, 0)) &#x2014;
To negatively condition the generation process based on a specific crop coordinates. Part of SDXL&#x2019;s
micro-conditioning as explained in section 2.2 of
<a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>. For more
information, refer to this issue thread: <a href="https://github.com/huggingface/diffusers/issues/4208" rel="nofollow">https://github.com/huggingface/diffusers/issues/4208</a>.`,name:"negative_crops_coords_top_left"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.negative_target_size",description:`<strong>negative_target_size</strong> (<code>tuple[int, int] | None</code>, defaults to <code>None</code>) &#x2014;
To negatively condition the generation process based on a target image resolution. It should be the same
as the <code>target_size</code> for most cases. Part of SDXL&#x2019;s micro-conditioning as explained in section 2.2 of
<a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>. For more
information, refer to this issue thread: <a href="https://github.com/huggingface/diffusers/issues/4208" rel="nofollow">https://github.com/huggingface/diffusers/issues/4208</a>.`,name:"negative_target_size"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.clip_skip",description:`<strong>clip_skip</strong> (<code>int | None</code>, defaults to <code>None</code>) &#x2014;
Number of layers to be skipped from CLIP while computing the prompt embeddings. A value of 1 means that
the output of the pre-final layer will be used for computing the prompt embeddings.`,name:"clip_skip"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.callback_on_step_end",description:`<strong>callback_on_step_end</strong> (<code>Callable[[int, int, dict], None] | PipelineCallback | MultiPipelineCallbacks | None</code>, defaults to <code>None</code>) &#x2014;
A function or a subclass of <code>PipelineCallback</code> or <code>MultiPipelineCallbacks</code> that is called at the end of
each denoising step during the inference with the following arguments: <code>callback_on_step_end(self: DiffusionPipeline, step: int, timestep: int, callback_kwargs: dict)</code>. <code>callback_kwargs</code> will include a
list of all tensors as specified by <code>callback_on_step_end_tensor_inputs</code>.`,name:"callback_on_step_end"},{anchor:"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline.__call__.callback_on_step_end_tensor_inputs",description:`<strong>callback_on_step_end_tensor_inputs</strong> (<code>list[str]</code>, defaults to <code>[&quot;latents&quot;]</code>) &#x2014;
The list of tensor inputs for the <code>callback_on_step_end</code> function. The tensors specified in the list
will be passed as <code>callback_kwargs</code> argument. You will only be able to include variables listed in the
<code>._callback_tensor_inputs</code> attribute of your pipeline class.`,name:"callback_on_step_end_tensor_inputs"}],source:"https://github.com/huggingface/optimum-neuron/blob/vr_1057/optimum/neuron/pipelines/diffusers/pipeline_controlnet_sd_xl.py#L37",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If <code>return_dict</code> is <code>True</code>, <code>diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput</code> is returned,
otherwise a <code>tuple</code> is returned containing the output images.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput</code> or <code>tuple</code></p>
`}}),{c(){c=l("meta"),$=n(),M=l("p"),p=n(),m(N.$$.fragment),t=n(),m(v.$$.fragment),Lr=n(),m(mt.$$.fragment),Gr=n(),m(ut.$$.fragment),Rr=n(),gt=l("p"),gt.innerHTML=$i,Dr=n(),C=l("div"),m(ft.$$.fragment),ms=n(),rn=l("p"),rn.textContent=ji,us=n(),an=l("p"),an.innerHTML=ki,gs=n(),sn=l("p"),sn.textContent=Ci,fs=n(),ln=l("ul"),ln.innerHTML=xi,hs=n(),cn=l("p"),cn.textContent=Ji,_s=n(),dn=l("ul"),dn.innerHTML=Ii,bs=n(),Pe=l("div"),m(ht.$$.fragment),Ms=n(),pn=l("p"),pn.innerHTML=Fi,Ns=n(),Be=l("div"),m(_t.$$.fragment),vs=n(),mn=l("p"),mn.textContent=Xi,ys=n(),Ee=l("div"),m(bt.$$.fragment),ws=n(),un=l("p"),un.innerHTML=Zi,Ts=n(),Le=l("div"),m(Mt.$$.fragment),$s=n(),gn=l("p"),gn.textContent=Si,qr=n(),m(Nt.$$.fragment),Hr=n(),vt=l("p"),vt.textContent=Ui,Qr=n(),m(yt.$$.fragment),Ar=n(),Z=l("div"),m(wt.$$.fragment),js=n(),fn=l("p"),fn.textContent=zi,ks=n(),hn=l("p"),hn.innerHTML=Vi,Cs=n(),_n=l("p"),_n.textContent=Wi,xs=n(),ne=l("div"),m(Tt.$$.fragment),Js=n(),bn=l("p"),bn.innerHTML=Pi,Is=n(),m(Ge.$$.fragment),Yr=n(),m($t.$$.fragment),Kr=n(),oe=l("div"),m(jt.$$.fragment),Fs=n(),Mn=l("p"),Mn.textContent=Bi,Xs=n(),Re=l("div"),m(kt.$$.fragment),Zs=n(),Nn=l("p"),Nn.textContent=Ei,Or=n(),m(Ct.$$.fragment),ea=n(),S=l("div"),m(xt.$$.fragment),Ss=n(),vn=l("p"),vn.textContent=Li,Us=n(),yn=l("p"),yn.innerHTML=Gi,zs=n(),wn=l("p"),wn.textContent=Ri,Vs=n(),re=l("div"),m(Jt.$$.fragment),Ws=n(),Tn=l("p"),Tn.innerHTML=Di,Ps=n(),m(De.$$.fragment),ta=n(),m(It.$$.fragment),oa=n(),U=l("div"),m(Ft.$$.fragment),Bs=n(),$n=l("p"),$n.textContent=qi,Es=n(),jn=l("p"),jn.innerHTML=Hi,Ls=n(),kn=l("p"),kn.textContent=Qi,Gs=n(),ae=l("div"),m(Xt.$$.fragment),Rs=n(),Cn=l("p"),Cn.innerHTML=Ai,Ds=n(),m(qe.$$.fragment),na=n(),m(Zt.$$.fragment),ra=n(),z=l("div"),m(St.$$.fragment),qs=n(),xn=l("p"),xn.textContent=Yi,Hs=n(),Jn=l("p"),Jn.innerHTML=Ki,Qs=n(),In=l("p"),In.textContent=Oi,As=n(),se=l("div"),m(Ut.$$.fragment),Ys=n(),Fn=l("p"),Fn.innerHTML=ec,Ks=n(),m(He.$$.fragment),aa=n(),m(zt.$$.fragment),sa=n(),V=l("div"),m(Vt.$$.fragment),Os=n(),Xn=l("p"),Xn.textContent=tc,el=n(),Zn=l("p"),Zn.innerHTML=oc,tl=n(),Sn=l("p"),Sn.textContent=nc,ol=n(),le=l("div"),m(Wt.$$.fragment),nl=n(),Un=l("p"),Un.innerHTML=rc,rl=n(),m(Qe.$$.fragment),la=n(),m(Pt.$$.fragment),ia=n(),W=l("div"),m(Bt.$$.fragment),al=n(),zn=l("p"),zn.textContent=ac,sl=n(),Vn=l("p"),Vn.innerHTML=sc,ll=n(),Wn=l("p"),Wn.textContent=lc,il=n(),ie=l("div"),m(Et.$$.fragment),cl=n(),Pn=l("p"),Pn.innerHTML=ic,dl=n(),m(Ae.$$.fragment),ca=n(),m(Lt.$$.fragment),da=n(),H=l("div"),m(Gt.$$.fragment),pl=n(),Bn=l("p"),Bn.textContent=cc,ml=n(),En=l("p"),En.innerHTML=dc,ul=n(),Ln=l("div"),m(Rt.$$.fragment),pa=n(),m(Dt.$$.fragment),ma=n(),Q=l("div"),m(qt.$$.fragment),gl=n(),Gn=l("p"),Gn.textContent=pc,fl=n(),Rn=l("p"),Rn.innerHTML=mc,hl=n(),J=l("div"),m(Ht.$$.fragment),_l=n(),Dn=l("p"),Dn.innerHTML=uc,bl=n(),m(Ye.$$.fragment),Ml=n(),qn=l("p"),qn.innerHTML=gc,Nl=n(),m(Ke.$$.fragment),vl=n(),Hn=l("p"),Hn.innerHTML=fc,yl=n(),m(Oe.$$.fragment),ua=n(),m(Qt.$$.fragment),ga=n(),At=l("p"),At.textContent=hc,fa=n(),m(Yt.$$.fragment),ha=n(),P=l("div"),m(Kt.$$.fragment),wl=n(),Qn=l("p"),Qn.textContent=_c,Tl=n(),An=l("p"),An.innerHTML=bc,$l=n(),Yn=l("p"),Yn.textContent=Mc,jl=n(),ce=l("div"),m(Ot.$$.fragment),kl=n(),Kn=l("p"),Kn.innerHTML=Nc,Cl=n(),m(et.$$.fragment),_a=n(),m(eo.$$.fragment),ba=n(),B=l("div"),m(to.$$.fragment),xl=n(),On=l("p"),On.textContent=vc,Jl=n(),er=l("p"),er.innerHTML=yc,Il=n(),tr=l("p"),tr.textContent=wc,Fl=n(),de=l("div"),m(oo.$$.fragment),Xl=n(),or=l("p"),or.innerHTML=Tc,Zl=n(),m(tt.$$.fragment),Ma=n(),m(no.$$.fragment),Na=n(),E=l("div"),m(ro.$$.fragment),Sl=n(),nr=l("p"),nr.textContent=$c,Ul=n(),rr=l("p"),rr.innerHTML=jc,zl=n(),ar=l("p"),ar.textContent=kc,Vl=n(),pe=l("div"),m(ao.$$.fragment),Wl=n(),sr=l("p"),sr.innerHTML=Cc,Pl=n(),m(ot.$$.fragment),va=n(),m(so.$$.fragment),ya=n(),lo=l("p"),lo.textContent=xc,wa=n(),m(io.$$.fragment),Ta=n(),L=l("div"),m(co.$$.fragment),Bl=n(),lr=l("p"),lr.textContent=Jc,El=n(),ir=l("p"),ir.innerHTML=Ic,Ll=n(),cr=l("p"),cr.textContent=Fc,Gl=n(),me=l("div"),m(po.$$.fragment),Rl=n(),dr=l("p"),dr.innerHTML=Xc,Dl=n(),m(nt.$$.fragment),$a=n(),m(mo.$$.fragment),ja=n(),G=l("div"),m(uo.$$.fragment),ql=n(),pr=l("p"),pr.textContent=Zc,Hl=n(),mr=l("p"),mr.innerHTML=Sc,Ql=n(),ur=l("p"),ur.textContent=Uc,Al=n(),ue=l("div"),m(go.$$.fragment),Yl=n(),gr=l("p"),gr.innerHTML=zc,Kl=n(),m(rt.$$.fragment),ka=n(),m(fo.$$.fragment),Ca=n(),R=l("div"),m(ho.$$.fragment),Ol=n(),fr=l("p"),fr.textContent=Vc,ei=n(),hr=l("p"),hr.innerHTML=Wc,ti=n(),_r=l("p"),_r.textContent=Pc,oi=n(),te=l("div"),m(_o.$$.fragment),ni=n(),br=l("p"),br.innerHTML=Bc,ri=n(),m(at.$$.fragment),ai=n(),m(st.$$.fragment),xa=n(),m(bo.$$.fragment),Ja=n(),D=l("div"),m(Mo.$$.fragment),si=n(),Mr=l("p"),Mr.textContent=Ec,li=n(),Nr=l("p"),Nr.innerHTML=Lc,ii=n(),vr=l("p"),vr.textContent=Gc,ci=n(),ge=l("div"),m(No.$$.fragment),di=n(),yr=l("p"),yr.innerHTML=Rc,pi=n(),m(lt.$$.fragment),Ia=n(),m(vo.$$.fragment),Fa=n(),yo=l("p"),yo.textContent=Dc,Xa=n(),m(wo.$$.fragment),Za=n(),Te=l("div"),m(To.$$.fragment),mi=n(),wr=l("div"),m($o.$$.fragment),Sa=n(),m(jo.$$.fragment),Ua=n(),$e=l("div"),m(ko.$$.fragment),ui=n(),Tr=l("div"),m(Co.$$.fragment),za=n(),m(xo.$$.fragment),Va=n(),je=l("div"),m(Jo.$$.fragment),gi=n(),$r=l("div"),m(Io.$$.fragment),Wa=n(),m(Fo.$$.fragment),Pa=n(),ke=l("div"),m(Xo.$$.fragment),fi=n(),jr=l("div"),m(Zo.$$.fragment),Ba=n(),m(So.$$.fragment),Ea=n(),Ce=l("div"),m(Uo.$$.fragment),hi=n(),it=l("div"),m(zo.$$.fragment),_i=n(),kr=l("p"),kr.textContent=qc,La=n(),m(Vo.$$.fragment),Ga=n(),xe=l("div"),m(Wo.$$.fragment),bi=n(),Cr=l("div"),m(Po.$$.fragment),Ra=n(),m(Bo.$$.fragment),Da=n(),Je=l("div"),m(Eo.$$.fragment),Mi=n(),xr=l("div"),m(Lo.$$.fragment),qa=n(),m(Go.$$.fragment),Ha=n(),Ie=l("div"),m(Ro.$$.fragment),Ni=n(),Jr=l("div"),m(Do.$$.fragment),Qa=n(),m(qo.$$.fragment),Aa=n(),Fe=l("div"),m(Ho.$$.fragment),vi=n(),Ir=l("div"),m(Qo.$$.fragment),Ya=n(),m(Ao.$$.fragment),Ka=n(),Xe=l("div"),m(Yo.$$.fragment),yi=n(),fe=l("div"),m(Ko.$$.fragment),wi=n(),Fr=l("p"),Fr.textContent=Hc,Ti=n(),Xr=l("p"),Xr.textContent=Qc,Oa=n(),Er=l("p"),this.h()},l(e){const s=cd("svelte-u9bgzb",document.head);c=i(s,"META",{name:!0,content:!0}),s.forEach(a),$=r(e),M=i(e,"P",{}),y(M).forEach(a),p=r(e),u(N.$$.fragment,e),t=r(e),u(v.$$.fragment,e),Lr=r(e),u(mt.$$.fragment,e),Gr=r(e),u(ut.$$.fragment,e),Rr=r(e),gt=i(e,"P",{"data-svelte-h":!0}),b(gt)!=="svelte-1wqojdr"&&(gt.innerHTML=$i),Dr=r(e),C=i(e,"DIV",{class:!0});var x=y(C);u(ft.$$.fragment,x),ms=r(x),rn=i(x,"P",{"data-svelte-h":!0}),b(rn)!=="svelte-14ur69o"&&(rn.textContent=ji),us=r(x),an=i(x,"P",{"data-svelte-h":!0}),b(an)!=="svelte-1chwlbt"&&(an.innerHTML=ki),gs=r(x),sn=i(x,"P",{"data-svelte-h":!0}),b(sn)!=="svelte-wz8va1"&&(sn.textContent=Ci),fs=r(x),ln=i(x,"UL",{"data-svelte-h":!0}),b(ln)!=="svelte-7z1nij"&&(ln.innerHTML=xi),hs=r(x),cn=i(x,"P",{"data-svelte-h":!0}),b(cn)!=="svelte-86gko0"&&(cn.textContent=Ji),_s=r(x),dn=i(x,"UL",{"data-svelte-h":!0}),b(dn)!=="svelte-1jg1kmv"&&(dn.innerHTML=Ii),bs=r(x),Pe=i(x,"DIV",{class:!0});var Oo=y(Pe);u(ht.$$.fragment,Oo),Ms=r(Oo),pn=i(Oo,"P",{"data-svelte-h":!0}),b(pn)!=="svelte-1r2xt0l"&&(pn.innerHTML=Fi),Oo.forEach(a),Ns=r(x),Be=i(x,"DIV",{class:!0});var en=y(Be);u(_t.$$.fragment,en),vs=r(en),mn=i(en,"P",{"data-svelte-h":!0}),b(mn)!=="svelte-fniwno"&&(mn.textContent=Xi),en.forEach(a),ys=r(x),Ee=i(x,"DIV",{class:!0});var tn=y(Ee);u(bt.$$.fragment,tn),ws=r(tn),un=i(tn,"P",{"data-svelte-h":!0}),b(un)!=="svelte-o2sfh1"&&(un.innerHTML=Zi),tn.forEach(a),Ts=r(x),Le=i(x,"DIV",{class:!0});var on=y(Le);u(Mt.$$.fragment,on),$s=r(on),gn=i(on,"P",{"data-svelte-h":!0}),b(gn)!=="svelte-2mtl9d"&&(gn.textContent=Si),on.forEach(a),x.forEach(a),qr=r(e),u(Nt.$$.fragment,e),Hr=r(e),vt=i(e,"P",{"data-svelte-h":!0}),b(vt)!=="svelte-1j76tak"&&(vt.textContent=Ui),Qr=r(e),u(yt.$$.fragment,e),Ar=r(e),Z=i(e,"DIV",{class:!0});var A=y(Z);u(wt.$$.fragment,A),js=r(A),fn=i(A,"P",{"data-svelte-h":!0}),b(fn)!=="svelte-tyb6d9"&&(fn.textContent=zi),ks=r(A),hn=i(A,"P",{"data-svelte-h":!0}),b(hn)!=="svelte-t21i2g"&&(hn.innerHTML=Vi),Cs=r(A),_n=i(A,"P",{"data-svelte-h":!0}),b(_n)!=="svelte-1nitj0t"&&(_n.textContent=Wi),xs=r(A),ne=i(A,"DIV",{class:!0});var Ze=y(ne);u(Tt.$$.fragment,Ze),Js=r(Ze),bn=i(Ze,"P",{"data-svelte-h":!0}),b(bn)!=="svelte-cgjaxs"&&(bn.innerHTML=Pi),Is=r(Ze),u(Ge.$$.fragment,Ze),Ze.forEach(a),A.forEach(a),Yr=r(e),u($t.$$.fragment,e),Kr=r(e),oe=i(e,"DIV",{class:!0});var Se=y(oe);u(jt.$$.fragment,Se),Fs=r(Se),Mn=i(Se,"P",{"data-svelte-h":!0}),b(Mn)!=="svelte-fib3qb"&&(Mn.textContent=Bi),Xs=r(Se),Re=i(Se,"DIV",{class:!0});var nn=y(Re);u(kt.$$.fragment,nn),Zs=r(nn),Nn=i(nn,"P",{"data-svelte-h":!0}),b(Nn)!=="svelte-s58zwn"&&(Nn.textContent=Ei),nn.forEach(a),Se.forEach(a),Or=r(e),u(Ct.$$.fragment,e),ea=r(e),S=i(e,"DIV",{class:!0});var Y=y(S);u(xt.$$.fragment,Y),Ss=r(Y),vn=i(Y,"P",{"data-svelte-h":!0}),b(vn)!=="svelte-12nn25"&&(vn.textContent=Li),Us=r(Y),yn=i(Y,"P",{"data-svelte-h":!0}),b(yn)!=="svelte-t21i2g"&&(yn.innerHTML=Gi),zs=r(Y),wn=i(Y,"P",{"data-svelte-h":!0}),b(wn)!=="svelte-1y0nyf2"&&(wn.textContent=Ri),Vs=r(Y),re=i(Y,"DIV",{class:!0});var Ue=y(re);u(Jt.$$.fragment,Ue),Ws=r(Ue),Tn=i(Ue,"P",{"data-svelte-h":!0}),b(Tn)!=="svelte-8d129p"&&(Tn.innerHTML=Di),Ps=r(Ue),u(De.$$.fragment,Ue),Ue.forEach(a),Y.forEach(a),ta=r(e),u(It.$$.fragment,e),oa=r(e),U=i(e,"DIV",{class:!0});var K=y(U);u(Ft.$$.fragment,K),Bs=r(K),$n=i(K,"P",{"data-svelte-h":!0}),b($n)!=="svelte-sy64kq"&&($n.textContent=qi),Es=r(K),jn=i(K,"P",{"data-svelte-h":!0}),b(jn)!=="svelte-t21i2g"&&(jn.innerHTML=Hi),Ls=r(K),kn=i(K,"P",{"data-svelte-h":!0}),b(kn)!=="svelte-1pso76n"&&(kn.textContent=Qi),Gs=r(K),ae=i(K,"DIV",{class:!0});var ze=y(ae);u(Xt.$$.fragment,ze),Rs=r(ze),Cn=i(ze,"P",{"data-svelte-h":!0}),b(Cn)!=="svelte-1qtopj4"&&(Cn.innerHTML=Ai),Ds=r(ze),u(qe.$$.fragment,ze),ze.forEach(a),K.forEach(a),na=r(e),u(Zt.$$.fragment,e),ra=r(e),z=i(e,"DIV",{class:!0});var O=y(z);u(St.$$.fragment,O),qs=r(O),xn=i(O,"P",{"data-svelte-h":!0}),b(xn)!=="svelte-196ytxv"&&(xn.textContent=Yi),Hs=r(O),Jn=i(O,"P",{"data-svelte-h":!0}),b(Jn)!=="svelte-t21i2g"&&(Jn.innerHTML=Ki),Qs=r(O),In=i(O,"P",{"data-svelte-h":!0}),b(In)!=="svelte-8xyl8y"&&(In.textContent=Oi),As=r(O),se=i(O,"DIV",{class:!0});var Ve=y(se);u(Ut.$$.fragment,Ve),Ys=r(Ve),Fn=i(Ve,"P",{"data-svelte-h":!0}),b(Fn)!=="svelte-1il3s71"&&(Fn.innerHTML=ec),Ks=r(Ve),u(He.$$.fragment,Ve),Ve.forEach(a),O.forEach(a),aa=r(e),u(zt.$$.fragment,e),sa=r(e),V=i(e,"DIV",{class:!0});var ee=y(V);u(Vt.$$.fragment,ee),Os=r(ee),Xn=i(ee,"P",{"data-svelte-h":!0}),b(Xn)!=="svelte-16p5zms"&&(Xn.textContent=tc),el=r(ee),Zn=i(ee,"P",{"data-svelte-h":!0}),b(Zn)!=="svelte-t21i2g"&&(Zn.innerHTML=oc),tl=r(ee),Sn=i(ee,"P",{"data-svelte-h":!0}),b(Sn)!=="svelte-1hvccyd"&&(Sn.textContent=nc),ol=r(ee),le=i(ee,"DIV",{class:!0});var We=y(le);u(Wt.$$.fragment,We),nl=r(We),Un=i(We,"P",{"data-svelte-h":!0}),b(Un)!=="svelte-x5ht8e"&&(Un.innerHTML=rc),rl=r(We),u(Qe.$$.fragment,We),We.forEach(a),ee.forEach(a),la=r(e),u(Pt.$$.fragment,e),ia=r(e),W=i(e,"DIV",{class:!0});var he=y(W);u(Bt.$$.fragment,he),al=r(he),zn=i(he,"P",{"data-svelte-h":!0}),b(zn)!=="svelte-1kpvzm3"&&(zn.textContent=ac),sl=r(he),Vn=i(he,"P",{"data-svelte-h":!0}),b(Vn)!=="svelte-t21i2g"&&(Vn.innerHTML=sc),ll=r(he),Wn=i(he,"P",{"data-svelte-h":!0}),b(Wn)!=="svelte-v7xrhz"&&(Wn.textContent=lc),il=r(he),ie=i(he,"DIV",{class:!0});var Zr=y(ie);u(Et.$$.fragment,Zr),cl=r(Zr),Pn=i(Zr,"P",{"data-svelte-h":!0}),b(Pn)!=="svelte-kejd1q"&&(Pn.innerHTML=ic),dl=r(Zr),u(Ae.$$.fragment,Zr),Zr.forEach(a),he.forEach(a),ca=r(e),u(Lt.$$.fragment,e),da=r(e),H=i(e,"DIV",{class:!0});var ct=y(H);u(Gt.$$.fragment,ct),pl=r(ct),Bn=i(ct,"P",{"data-svelte-h":!0}),b(Bn)!=="svelte-1dh7ria"&&(Bn.textContent=cc),ml=r(ct),En=i(ct,"P",{"data-svelte-h":!0}),b(En)!=="svelte-m4jyla"&&(En.innerHTML=dc),ul=r(ct),Ln=i(ct,"DIV",{class:!0});var Ac=y(Ln);u(Rt.$$.fragment,Ac),Ac.forEach(a),ct.forEach(a),pa=r(e),u(Dt.$$.fragment,e),ma=r(e),Q=i(e,"DIV",{class:!0});var dt=y(Q);u(qt.$$.fragment,dt),gl=r(dt),Gn=i(dt,"P",{"data-svelte-h":!0}),b(Gn)!=="svelte-12et8hl"&&(Gn.textContent=pc),fl=r(dt),Rn=i(dt,"P",{"data-svelte-h":!0}),b(Rn)!=="svelte-t21i2g"&&(Rn.innerHTML=mc),hl=r(dt),J=i(dt,"DIV",{class:!0});var q=y(J);u(Ht.$$.fragment,q),_l=r(q),Dn=i(q,"P",{"data-svelte-h":!0}),b(Dn)!=="svelte-4tnox3"&&(Dn.innerHTML=uc),bl=r(q),u(Ye.$$.fragment,q),Ml=r(q),qn=i(q,"P",{"data-svelte-h":!0}),b(qn)!=="svelte-1osiy1t"&&(qn.innerHTML=gc),Nl=r(q),u(Ke.$$.fragment,q),vl=r(q),Hn=i(q,"P",{"data-svelte-h":!0}),b(Hn)!=="svelte-89pj2f"&&(Hn.innerHTML=fc),yl=r(q),u(Oe.$$.fragment,q),q.forEach(a),dt.forEach(a),ua=r(e),u(Qt.$$.fragment,e),ga=r(e),At=i(e,"P",{"data-svelte-h":!0}),b(At)!=="svelte-dmb9sp"&&(At.textContent=hc),fa=r(e),u(Yt.$$.fragment,e),ha=r(e),P=i(e,"DIV",{class:!0});var _e=y(P);u(Kt.$$.fragment,_e),wl=r(_e),Qn=i(_e,"P",{"data-svelte-h":!0}),b(Qn)!=="svelte-iobswt"&&(Qn.textContent=_c),Tl=r(_e),An=i(_e,"P",{"data-svelte-h":!0}),b(An)!=="svelte-t21i2g"&&(An.innerHTML=bc),$l=r(_e),Yn=i(_e,"P",{"data-svelte-h":!0}),b(Yn)!=="svelte-1g4h8eb"&&(Yn.textContent=Mc),jl=r(_e),ce=i(_e,"DIV",{class:!0});var Sr=y(ce);u(Ot.$$.fragment,Sr),kl=r(Sr),Kn=i(Sr,"P",{"data-svelte-h":!0}),b(Kn)!=="svelte-4a7c7i"&&(Kn.innerHTML=Nc),Cl=r(Sr),u(et.$$.fragment,Sr),Sr.forEach(a),_e.forEach(a),_a=r(e),u(eo.$$.fragment,e),ba=r(e),B=i(e,"DIV",{class:!0});var be=y(B);u(to.$$.fragment,be),xl=r(be),On=i(be,"P",{"data-svelte-h":!0}),b(On)!=="svelte-a522e4"&&(On.textContent=vc),Jl=r(be),er=i(be,"P",{"data-svelte-h":!0}),b(er)!=="svelte-t21i2g"&&(er.innerHTML=yc),Il=r(be),tr=i(be,"P",{"data-svelte-h":!0}),b(tr)!=="svelte-jb8c8r"&&(tr.textContent=wc),Fl=r(be),de=i(be,"DIV",{class:!0});var Ur=y(de);u(oo.$$.fragment,Ur),Xl=r(Ur),or=i(Ur,"P",{"data-svelte-h":!0}),b(or)!=="svelte-kcdbet"&&(or.innerHTML=Tc),Zl=r(Ur),u(tt.$$.fragment,Ur),Ur.forEach(a),be.forEach(a),Ma=r(e),u(no.$$.fragment,e),Na=r(e),E=i(e,"DIV",{class:!0});var Me=y(E);u(ro.$$.fragment,Me),Sl=r(Me),nr=i(Me,"P",{"data-svelte-h":!0}),b(nr)!=="svelte-1jokdk4"&&(nr.textContent=$c),Ul=r(Me),rr=i(Me,"P",{"data-svelte-h":!0}),b(rr)!=="svelte-t21i2g"&&(rr.innerHTML=jc),zl=r(Me),ar=i(Me,"P",{"data-svelte-h":!0}),b(ar)!=="svelte-pqeh18"&&(ar.textContent=kc),Vl=r(Me),pe=i(Me,"DIV",{class:!0});var zr=y(pe);u(ao.$$.fragment,zr),Wl=r(zr),sr=i(zr,"P",{"data-svelte-h":!0}),b(sr)!=="svelte-rg1qqx"&&(sr.innerHTML=Cc),Pl=r(zr),u(ot.$$.fragment,zr),zr.forEach(a),Me.forEach(a),va=r(e),u(so.$$.fragment,e),ya=r(e),lo=i(e,"P",{"data-svelte-h":!0}),b(lo)!=="svelte-1htpfc5"&&(lo.textContent=xc),wa=r(e),u(io.$$.fragment,e),Ta=r(e),L=i(e,"DIV",{class:!0});var Ne=y(L);u(co.$$.fragment,Ne),Bl=r(Ne),lr=i(Ne,"P",{"data-svelte-h":!0}),b(lr)!=="svelte-13994kt"&&(lr.textContent=Jc),El=r(Ne),ir=i(Ne,"P",{"data-svelte-h":!0}),b(ir)!=="svelte-t21i2g"&&(ir.innerHTML=Ic),Ll=r(Ne),cr=i(Ne,"P",{"data-svelte-h":!0}),b(cr)!=="svelte-iwso1f"&&(cr.textContent=Fc),Gl=r(Ne),me=i(Ne,"DIV",{class:!0});var Vr=y(me);u(po.$$.fragment,Vr),Rl=r(Vr),dr=i(Vr,"P",{"data-svelte-h":!0}),b(dr)!=="svelte-1mrzugx"&&(dr.innerHTML=Xc),Dl=r(Vr),u(nt.$$.fragment,Vr),Vr.forEach(a),Ne.forEach(a),$a=r(e),u(mo.$$.fragment,e),ja=r(e),G=i(e,"DIV",{class:!0});var ve=y(G);u(uo.$$.fragment,ve),ql=r(ve),pr=i(ve,"P",{"data-svelte-h":!0}),b(pr)!=="svelte-1wtizei"&&(pr.textContent=Zc),Hl=r(ve),mr=i(ve,"P",{"data-svelte-h":!0}),b(mr)!=="svelte-t21i2g"&&(mr.innerHTML=Sc),Ql=r(ve),ur=i(ve,"P",{"data-svelte-h":!0}),b(ur)!=="svelte-484vqn"&&(ur.textContent=Uc),Al=r(ve),ue=i(ve,"DIV",{class:!0});var Wr=y(ue);u(go.$$.fragment,Wr),Yl=r(Wr),gr=i(Wr,"P",{"data-svelte-h":!0}),b(gr)!=="svelte-hohte"&&(gr.innerHTML=zc),Kl=r(Wr),u(rt.$$.fragment,Wr),Wr.forEach(a),ve.forEach(a),ka=r(e),u(fo.$$.fragment,e),Ca=r(e),R=i(e,"DIV",{class:!0});var ye=y(R);u(ho.$$.fragment,ye),Ol=r(ye),fr=i(ye,"P",{"data-svelte-h":!0}),b(fr)!=="svelte-1minwrj"&&(fr.textContent=Vc),ei=r(ye),hr=i(ye,"P",{"data-svelte-h":!0}),b(hr)!=="svelte-t21i2g"&&(hr.innerHTML=Wc),ti=r(ye),_r=i(ye,"P",{"data-svelte-h":!0}),b(_r)!=="svelte-1dft1qw"&&(_r.textContent=Pc),oi=r(ye),te=i(ye,"DIV",{class:!0});var pt=y(te);u(_o.$$.fragment,pt),ni=r(pt),br=i(pt,"P",{"data-svelte-h":!0}),b(br)!=="svelte-33b8wf"&&(br.innerHTML=Bc),ri=r(pt),u(at.$$.fragment,pt),ai=r(pt),u(st.$$.fragment,pt),pt.forEach(a),ye.forEach(a),xa=r(e),u(bo.$$.fragment,e),Ja=r(e),D=i(e,"DIV",{class:!0});var we=y(D);u(Mo.$$.fragment,we),si=r(we),Mr=i(we,"P",{"data-svelte-h":!0}),b(Mr)!=="svelte-ylsbuv"&&(Mr.textContent=Ec),li=r(we),Nr=i(we,"P",{"data-svelte-h":!0}),b(Nr)!=="svelte-t21i2g"&&(Nr.innerHTML=Lc),ii=r(we),vr=i(we,"P",{"data-svelte-h":!0}),b(vr)!=="svelte-ylsbuv"&&(vr.textContent=Gc),ci=r(we),ge=i(we,"DIV",{class:!0});var Pr=y(ge);u(No.$$.fragment,Pr),di=r(Pr),yr=i(Pr,"P",{"data-svelte-h":!0}),b(yr)!=="svelte-190wczg"&&(yr.innerHTML=Rc),pi=r(Pr),u(lt.$$.fragment,Pr),Pr.forEach(a),we.forEach(a),Ia=r(e),u(vo.$$.fragment,e),Fa=r(e),yo=i(e,"P",{"data-svelte-h":!0}),b(yo)!=="svelte-149jhtw"&&(yo.textContent=Dc),Xa=r(e),u(wo.$$.fragment,e),Za=r(e),Te=i(e,"DIV",{class:!0});var ts=y(Te);u(To.$$.fragment,ts),mi=r(ts),wr=i(ts,"DIV",{class:!0});var Yc=y(wr);u($o.$$.fragment,Yc),Yc.forEach(a),ts.forEach(a),Sa=r(e),u(jo.$$.fragment,e),Ua=r(e),$e=i(e,"DIV",{class:!0});var os=y($e);u(ko.$$.fragment,os),ui=r(os),Tr=i(os,"DIV",{class:!0});var Kc=y(Tr);u(Co.$$.fragment,Kc),Kc.forEach(a),os.forEach(a),za=r(e),u(xo.$$.fragment,e),Va=r(e),je=i(e,"DIV",{class:!0});var ns=y(je);u(Jo.$$.fragment,ns),gi=r(ns),$r=i(ns,"DIV",{class:!0});var Oc=y($r);u(Io.$$.fragment,Oc),Oc.forEach(a),ns.forEach(a),Wa=r(e),u(Fo.$$.fragment,e),Pa=r(e),ke=i(e,"DIV",{class:!0});var rs=y(ke);u(Xo.$$.fragment,rs),fi=r(rs),jr=i(rs,"DIV",{class:!0});var ed=y(jr);u(Zo.$$.fragment,ed),ed.forEach(a),rs.forEach(a),Ba=r(e),u(So.$$.fragment,e),Ea=r(e),Ce=i(e,"DIV",{class:!0});var as=y(Ce);u(Uo.$$.fragment,as),hi=r(as),it=i(as,"DIV",{class:!0});var ss=y(it);u(zo.$$.fragment,ss),_i=r(ss),kr=i(ss,"P",{"data-svelte-h":!0}),b(kr)!=="svelte-50j04k"&&(kr.textContent=qc),ss.forEach(a),as.forEach(a),La=r(e),u(Vo.$$.fragment,e),Ga=r(e),xe=i(e,"DIV",{class:!0});var ls=y(xe);u(Wo.$$.fragment,ls),bi=r(ls),Cr=i(ls,"DIV",{class:!0});var td=y(Cr);u(Po.$$.fragment,td),td.forEach(a),ls.forEach(a),Ra=r(e),u(Bo.$$.fragment,e),Da=r(e),Je=i(e,"DIV",{class:!0});var is=y(Je);u(Eo.$$.fragment,is),Mi=r(is),xr=i(is,"DIV",{class:!0});var od=y(xr);u(Lo.$$.fragment,od),od.forEach(a),is.forEach(a),qa=r(e),u(Go.$$.fragment,e),Ha=r(e),Ie=i(e,"DIV",{class:!0});var cs=y(Ie);u(Ro.$$.fragment,cs),Ni=r(cs),Jr=i(cs,"DIV",{class:!0});var nd=y(Jr);u(Do.$$.fragment,nd),nd.forEach(a),cs.forEach(a),Qa=r(e),u(qo.$$.fragment,e),Aa=r(e),Fe=i(e,"DIV",{class:!0});var ds=y(Fe);u(Ho.$$.fragment,ds),vi=r(ds),Ir=i(ds,"DIV",{class:!0});var rd=y(Ir);u(Qo.$$.fragment,rd),rd.forEach(a),ds.forEach(a),Ya=r(e),u(Ao.$$.fragment,e),Ka=r(e),Xe=i(e,"DIV",{class:!0});var ps=y(Xe);u(Yo.$$.fragment,ps),yi=r(ps),fe=i(ps,"DIV",{class:!0});var Br=y(fe);u(Ko.$$.fragment,Br),wi=r(Br),Fr=i(Br,"P",{"data-svelte-h":!0}),b(Fr)!=="svelte-50j04k"&&(Fr.textContent=Hc),Ti=r(Br),Xr=i(Br,"P",{"data-svelte-h":!0}),b(Xr)!=="svelte-kvfsh7"&&(Xr.textContent=Qc),Br.forEach(a),ps.forEach(a),Oa=r(e),Er=i(e,"P",{}),y(Er).forEach(a),this.h()},h(){w(c,"name","hf:doc:metadata"),w(c,"content",Jd),w(Pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ln,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(wr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Tr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w($r,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(jr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(it,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Cr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(xr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Jr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ir,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Xe,"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,s){o(document.head,c),d(e,$,s),d(e,M,s),d(e,p,s),g(N,e,s),d(e,t,s),g(v,e,s),d(e,Lr,s),g(mt,e,s),d(e,Gr,s),g(ut,e,s),d(e,Rr,s),d(e,gt,s),d(e,Dr,s),d(e,C,s),g(ft,C,null),o(C,ms),o(C,rn),o(C,us),o(C,an),o(C,gs),o(C,sn),o(C,fs),o(C,ln),o(C,hs),o(C,cn),o(C,_s),o(C,dn),o(C,bs),o(C,Pe),g(ht,Pe,null),o(Pe,Ms),o(Pe,pn),o(C,Ns),o(C,Be),g(_t,Be,null),o(Be,vs),o(Be,mn),o(C,ys),o(C,Ee),g(bt,Ee,null),o(Ee,ws),o(Ee,un),o(C,Ts),o(C,Le),g(Mt,Le,null),o(Le,$s),o(Le,gn),d(e,qr,s),g(Nt,e,s),d(e,Hr,s),d(e,vt,s),d(e,Qr,s),g(yt,e,s),d(e,Ar,s),d(e,Z,s),g(wt,Z,null),o(Z,js),o(Z,fn),o(Z,ks),o(Z,hn),o(Z,Cs),o(Z,_n),o(Z,xs),o(Z,ne),g(Tt,ne,null),o(ne,Js),o(ne,bn),o(ne,Is),g(Ge,ne,null),d(e,Yr,s),g($t,e,s),d(e,Kr,s),d(e,oe,s),g(jt,oe,null),o(oe,Fs),o(oe,Mn),o(oe,Xs),o(oe,Re),g(kt,Re,null),o(Re,Zs),o(Re,Nn),d(e,Or,s),g(Ct,e,s),d(e,ea,s),d(e,S,s),g(xt,S,null),o(S,Ss),o(S,vn),o(S,Us),o(S,yn),o(S,zs),o(S,wn),o(S,Vs),o(S,re),g(Jt,re,null),o(re,Ws),o(re,Tn),o(re,Ps),g(De,re,null),d(e,ta,s),g(It,e,s),d(e,oa,s),d(e,U,s),g(Ft,U,null),o(U,Bs),o(U,$n),o(U,Es),o(U,jn),o(U,Ls),o(U,kn),o(U,Gs),o(U,ae),g(Xt,ae,null),o(ae,Rs),o(ae,Cn),o(ae,Ds),g(qe,ae,null),d(e,na,s),g(Zt,e,s),d(e,ra,s),d(e,z,s),g(St,z,null),o(z,qs),o(z,xn),o(z,Hs),o(z,Jn),o(z,Qs),o(z,In),o(z,As),o(z,se),g(Ut,se,null),o(se,Ys),o(se,Fn),o(se,Ks),g(He,se,null),d(e,aa,s),g(zt,e,s),d(e,sa,s),d(e,V,s),g(Vt,V,null),o(V,Os),o(V,Xn),o(V,el),o(V,Zn),o(V,tl),o(V,Sn),o(V,ol),o(V,le),g(Wt,le,null),o(le,nl),o(le,Un),o(le,rl),g(Qe,le,null),d(e,la,s),g(Pt,e,s),d(e,ia,s),d(e,W,s),g(Bt,W,null),o(W,al),o(W,zn),o(W,sl),o(W,Vn),o(W,ll),o(W,Wn),o(W,il),o(W,ie),g(Et,ie,null),o(ie,cl),o(ie,Pn),o(ie,dl),g(Ae,ie,null),d(e,ca,s),g(Lt,e,s),d(e,da,s),d(e,H,s),g(Gt,H,null),o(H,pl),o(H,Bn),o(H,ml),o(H,En),o(H,ul),o(H,Ln),g(Rt,Ln,null),d(e,pa,s),g(Dt,e,s),d(e,ma,s),d(e,Q,s),g(qt,Q,null),o(Q,gl),o(Q,Gn),o(Q,fl),o(Q,Rn),o(Q,hl),o(Q,J),g(Ht,J,null),o(J,_l),o(J,Dn),o(J,bl),g(Ye,J,null),o(J,Ml),o(J,qn),o(J,Nl),g(Ke,J,null),o(J,vl),o(J,Hn),o(J,yl),g(Oe,J,null),d(e,ua,s),g(Qt,e,s),d(e,ga,s),d(e,At,s),d(e,fa,s),g(Yt,e,s),d(e,ha,s),d(e,P,s),g(Kt,P,null),o(P,wl),o(P,Qn),o(P,Tl),o(P,An),o(P,$l),o(P,Yn),o(P,jl),o(P,ce),g(Ot,ce,null),o(ce,kl),o(ce,Kn),o(ce,Cl),g(et,ce,null),d(e,_a,s),g(eo,e,s),d(e,ba,s),d(e,B,s),g(to,B,null),o(B,xl),o(B,On),o(B,Jl),o(B,er),o(B,Il),o(B,tr),o(B,Fl),o(B,de),g(oo,de,null),o(de,Xl),o(de,or),o(de,Zl),g(tt,de,null),d(e,Ma,s),g(no,e,s),d(e,Na,s),d(e,E,s),g(ro,E,null),o(E,Sl),o(E,nr),o(E,Ul),o(E,rr),o(E,zl),o(E,ar),o(E,Vl),o(E,pe),g(ao,pe,null),o(pe,Wl),o(pe,sr),o(pe,Pl),g(ot,pe,null),d(e,va,s),g(so,e,s),d(e,ya,s),d(e,lo,s),d(e,wa,s),g(io,e,s),d(e,Ta,s),d(e,L,s),g(co,L,null),o(L,Bl),o(L,lr),o(L,El),o(L,ir),o(L,Ll),o(L,cr),o(L,Gl),o(L,me),g(po,me,null),o(me,Rl),o(me,dr),o(me,Dl),g(nt,me,null),d(e,$a,s),g(mo,e,s),d(e,ja,s),d(e,G,s),g(uo,G,null),o(G,ql),o(G,pr),o(G,Hl),o(G,mr),o(G,Ql),o(G,ur),o(G,Al),o(G,ue),g(go,ue,null),o(ue,Yl),o(ue,gr),o(ue,Kl),g(rt,ue,null),d(e,ka,s),g(fo,e,s),d(e,Ca,s),d(e,R,s),g(ho,R,null),o(R,Ol),o(R,fr),o(R,ei),o(R,hr),o(R,ti),o(R,_r),o(R,oi),o(R,te),g(_o,te,null),o(te,ni),o(te,br),o(te,ri),g(at,te,null),o(te,ai),g(st,te,null),d(e,xa,s),g(bo,e,s),d(e,Ja,s),d(e,D,s),g(Mo,D,null),o(D,si),o(D,Mr),o(D,li),o(D,Nr),o(D,ii),o(D,vr),o(D,ci),o(D,ge),g(No,ge,null),o(ge,di),o(ge,yr),o(ge,pi),g(lt,ge,null),d(e,Ia,s),g(vo,e,s),d(e,Fa,s),d(e,yo,s),d(e,Xa,s),g(wo,e,s),d(e,Za,s),d(e,Te,s),g(To,Te,null),o(Te,mi),o(Te,wr),g($o,wr,null),d(e,Sa,s),g(jo,e,s),d(e,Ua,s),d(e,$e,s),g(ko,$e,null),o($e,ui),o($e,Tr),g(Co,Tr,null),d(e,za,s),g(xo,e,s),d(e,Va,s),d(e,je,s),g(Jo,je,null),o(je,gi),o(je,$r),g(Io,$r,null),d(e,Wa,s),g(Fo,e,s),d(e,Pa,s),d(e,ke,s),g(Xo,ke,null),o(ke,fi),o(ke,jr),g(Zo,jr,null),d(e,Ba,s),g(So,e,s),d(e,Ea,s),d(e,Ce,s),g(Uo,Ce,null),o(Ce,hi),o(Ce,it),g(zo,it,null),o(it,_i),o(it,kr),d(e,La,s),g(Vo,e,s),d(e,Ga,s),d(e,xe,s),g(Wo,xe,null),o(xe,bi),o(xe,Cr),g(Po,Cr,null),d(e,Ra,s),g(Bo,e,s),d(e,Da,s),d(e,Je,s),g(Eo,Je,null),o(Je,Mi),o(Je,xr),g(Lo,xr,null),d(e,qa,s),g(Go,e,s),d(e,Ha,s),d(e,Ie,s),g(Ro,Ie,null),o(Ie,Ni),o(Ie,Jr),g(Do,Jr,null),d(e,Qa,s),g(qo,e,s),d(e,Aa,s),d(e,Fe,s),g(Ho,Fe,null),o(Fe,vi),o(Fe,Ir),g(Qo,Ir,null),d(e,Ya,s),g(Ao,e,s),d(e,Ka,s),d(e,Xe,s),g(Yo,Xe,null),o(Xe,yi),o(Xe,fe),g(Ko,fe,null),o(fe,wi),o(fe,Fr),o(fe,Ti),o(fe,Xr),d(e,Oa,s),d(e,Er,s),es=!0},p(e,[s]){const x={};s&2&&(x.$$scope={dirty:s,ctx:e}),Ge.$set(x);const Oo={};s&2&&(Oo.$$scope={dirty:s,ctx:e}),De.$set(Oo);const en={};s&2&&(en.$$scope={dirty:s,ctx:e}),qe.$set(en);const tn={};s&2&&(tn.$$scope={dirty:s,ctx:e}),He.$set(tn);const on={};s&2&&(on.$$scope={dirty:s,ctx:e}),Qe.$set(on);const A={};s&2&&(A.$$scope={dirty:s,ctx:e}),Ae.$set(A);const Ze={};s&2&&(Ze.$$scope={dirty:s,ctx:e}),Ye.$set(Ze);const Se={};s&2&&(Se.$$scope={dirty:s,ctx:e}),Ke.$set(Se);const nn={};s&2&&(nn.$$scope={dirty:s,ctx:e}),Oe.$set(nn);const Y={};s&2&&(Y.$$scope={dirty:s,ctx:e}),et.$set(Y);const Ue={};s&2&&(Ue.$$scope={dirty:s,ctx:e}),tt.$set(Ue);const K={};s&2&&(K.$$scope={dirty:s,ctx:e}),ot.$set(K);const ze={};s&2&&(ze.$$scope={dirty:s,ctx:e}),nt.$set(ze);const O={};s&2&&(O.$$scope={dirty:s,ctx:e}),rt.$set(O);const Ve={};s&2&&(Ve.$$scope={dirty:s,ctx:e}),at.$set(Ve);const ee={};s&2&&(ee.$$scope={dirty:s,ctx:e}),st.$set(ee);const We={};s&2&&(We.$$scope={dirty:s,ctx:e}),lt.$set(We)},i(e){es||(f(N.$$.fragment,e),f(v.$$.fragment,e),f(mt.$$.fragment,e),f(ut.$$.fragment,e),f(ft.$$.fragment,e),f(ht.$$.fragment,e),f(_t.$$.fragment,e),f(bt.$$.fragment,e),f(Mt.$$.fragment,e),f(Nt.$$.fragment,e),f(yt.$$.fragment,e),f(wt.$$.fragment,e),f(Tt.$$.fragment,e),f(Ge.$$.fragment,e),f($t.$$.fragment,e),f(jt.$$.fragment,e),f(kt.$$.fragment,e),f(Ct.$$.fragment,e),f(xt.$$.fragment,e),f(Jt.$$.fragment,e),f(De.$$.fragment,e),f(It.$$.fragment,e),f(Ft.$$.fragment,e),f(Xt.$$.fragment,e),f(qe.$$.fragment,e),f(Zt.$$.fragment,e),f(St.$$.fragment,e),f(Ut.$$.fragment,e),f(He.$$.fragment,e),f(zt.$$.fragment,e),f(Vt.$$.fragment,e),f(Wt.$$.fragment,e),f(Qe.$$.fragment,e),f(Pt.$$.fragment,e),f(Bt.$$.fragment,e),f(Et.$$.fragment,e),f(Ae.$$.fragment,e),f(Lt.$$.fragment,e),f(Gt.$$.fragment,e),f(Rt.$$.fragment,e),f(Dt.$$.fragment,e),f(qt.$$.fragment,e),f(Ht.$$.fragment,e),f(Ye.$$.fragment,e),f(Ke.$$.fragment,e),f(Oe.$$.fragment,e),f(Qt.$$.fragment,e),f(Yt.$$.fragment,e),f(Kt.$$.fragment,e),f(Ot.$$.fragment,e),f(et.$$.fragment,e),f(eo.$$.fragment,e),f(to.$$.fragment,e),f(oo.$$.fragment,e),f(tt.$$.fragment,e),f(no.$$.fragment,e),f(ro.$$.fragment,e),f(ao.$$.fragment,e),f(ot.$$.fragment,e),f(so.$$.fragment,e),f(io.$$.fragment,e),f(co.$$.fragment,e),f(po.$$.fragment,e),f(nt.$$.fragment,e),f(mo.$$.fragment,e),f(uo.$$.fragment,e),f(go.$$.fragment,e),f(rt.$$.fragment,e),f(fo.$$.fragment,e),f(ho.$$.fragment,e),f(_o.$$.fragment,e),f(at.$$.fragment,e),f(st.$$.fragment,e),f(bo.$$.fragment,e),f(Mo.$$.fragment,e),f(No.$$.fragment,e),f(lt.$$.fragment,e),f(vo.$$.fragment,e),f(wo.$$.fragment,e),f(To.$$.fragment,e),f($o.$$.fragment,e),f(jo.$$.fragment,e),f(ko.$$.fragment,e),f(Co.$$.fragment,e),f(xo.$$.fragment,e),f(Jo.$$.fragment,e),f(Io.$$.fragment,e),f(Fo.$$.fragment,e),f(Xo.$$.fragment,e),f(Zo.$$.fragment,e),f(So.$$.fragment,e),f(Uo.$$.fragment,e),f(zo.$$.fragment,e),f(Vo.$$.fragment,e),f(Wo.$$.fragment,e),f(Po.$$.fragment,e),f(Bo.$$.fragment,e),f(Eo.$$.fragment,e),f(Lo.$$.fragment,e),f(Go.$$.fragment,e),f(Ro.$$.fragment,e),f(Do.$$.fragment,e),f(qo.$$.fragment,e),f(Ho.$$.fragment,e),f(Qo.$$.fragment,e),f(Ao.$$.fragment,e),f(Yo.$$.fragment,e),f(Ko.$$.fragment,e),es=!0)},o(e){h(N.$$.fragment,e),h(v.$$.fragment,e),h(mt.$$.fragment,e),h(ut.$$.fragment,e),h(ft.$$.fragment,e),h(ht.$$.fragment,e),h(_t.$$.fragment,e),h(bt.$$.fragment,e),h(Mt.$$.fragment,e),h(Nt.$$.fragment,e),h(yt.$$.fragment,e),h(wt.$$.fragment,e),h(Tt.$$.fragment,e),h(Ge.$$.fragment,e),h($t.$$.fragment,e),h(jt.$$.fragment,e),h(kt.$$.fragment,e),h(Ct.$$.fragment,e),h(xt.$$.fragment,e),h(Jt.$$.fragment,e),h(De.$$.fragment,e),h(It.$$.fragment,e),h(Ft.$$.fragment,e),h(Xt.$$.fragment,e),h(qe.$$.fragment,e),h(Zt.$$.fragment,e),h(St.$$.fragment,e),h(Ut.$$.fragment,e),h(He.$$.fragment,e),h(zt.$$.fragment,e),h(Vt.$$.fragment,e),h(Wt.$$.fragment,e),h(Qe.$$.fragment,e),h(Pt.$$.fragment,e),h(Bt.$$.fragment,e),h(Et.$$.fragment,e),h(Ae.$$.fragment,e),h(Lt.$$.fragment,e),h(Gt.$$.fragment,e),h(Rt.$$.fragment,e),h(Dt.$$.fragment,e),h(qt.$$.fragment,e),h(Ht.$$.fragment,e),h(Ye.$$.fragment,e),h(Ke.$$.fragment,e),h(Oe.$$.fragment,e),h(Qt.$$.fragment,e),h(Yt.$$.fragment,e),h(Kt.$$.fragment,e),h(Ot.$$.fragment,e),h(et.$$.fragment,e),h(eo.$$.fragment,e),h(to.$$.fragment,e),h(oo.$$.fragment,e),h(tt.$$.fragment,e),h(no.$$.fragment,e),h(ro.$$.fragment,e),h(ao.$$.fragment,e),h(ot.$$.fragment,e),h(so.$$.fragment,e),h(io.$$.fragment,e),h(co.$$.fragment,e),h(po.$$.fragment,e),h(nt.$$.fragment,e),h(mo.$$.fragment,e),h(uo.$$.fragment,e),h(go.$$.fragment,e),h(rt.$$.fragment,e),h(fo.$$.fragment,e),h(ho.$$.fragment,e),h(_o.$$.fragment,e),h(at.$$.fragment,e),h(st.$$.fragment,e),h(bo.$$.fragment,e),h(Mo.$$.fragment,e),h(No.$$.fragment,e),h(lt.$$.fragment,e),h(vo.$$.fragment,e),h(wo.$$.fragment,e),h(To.$$.fragment,e),h($o.$$.fragment,e),h(jo.$$.fragment,e),h(ko.$$.fragment,e),h(Co.$$.fragment,e),h(xo.$$.fragment,e),h(Jo.$$.fragment,e),h(Io.$$.fragment,e),h(Fo.$$.fragment,e),h(Xo.$$.fragment,e),h(Zo.$$.fragment,e),h(So.$$.fragment,e),h(Uo.$$.fragment,e),h(zo.$$.fragment,e),h(Vo.$$.fragment,e),h(Wo.$$.fragment,e),h(Po.$$.fragment,e),h(Bo.$$.fragment,e),h(Eo.$$.fragment,e),h(Lo.$$.fragment,e),h(Go.$$.fragment,e),h(Ro.$$.fragment,e),h(Do.$$.fragment,e),h(qo.$$.fragment,e),h(Ho.$$.fragment,e),h(Qo.$$.fragment,e),h(Ao.$$.fragment,e),h(Yo.$$.fragment,e),h(Ko.$$.fragment,e),es=!1},d(e){e&&(a($),a(M),a(p),a(t),a(Lr),a(Gr),a(Rr),a(gt),a(Dr),a(C),a(qr),a(Hr),a(vt),a(Qr),a(Ar),a(Z),a(Yr),a(Kr),a(oe),a(Or),a(ea),a(S),a(ta),a(oa),a(U),a(na),a(ra),a(z),a(aa),a(sa),a(V),a(la),a(ia),a(W),a(ca),a(da),a(H),a(pa),a(ma),a(Q),a(ua),a(ga),a(At),a(fa),a(ha),a(P),a(_a),a(ba),a(B),a(Ma),a(Na),a(E),a(va),a(ya),a(lo),a(wa),a(Ta),a(L),a($a),a(ja),a(G),a(ka),a(Ca),a(R),a(xa),a(Ja),a(D),a(Ia),a(Fa),a(yo),a(Xa),a(Za),a(Te),a(Sa),a(Ua),a($e),a(za),a(Va),a(je),a(Wa),a(Pa),a(ke),a(Ba),a(Ea),a(Ce),a(La),a(Ga),a(xe),a(Ra),a(Da),a(Je),a(qa),a(Ha),a(Ie),a(Qa),a(Aa),a(Fe),a(Ya),a(Ka),a(Xe),a(Oa),a(Er)),a(c),_(N,e),_(v,e),_(mt,e),_(ut,e),_(ft),_(ht),_(_t),_(bt),_(Mt),_(Nt,e),_(yt,e),_(wt),_(Tt),_(Ge),_($t,e),_(jt),_(kt),_(Ct,e),_(xt),_(Jt),_(De),_(It,e),_(Ft),_(Xt),_(qe),_(Zt,e),_(St),_(Ut),_(He),_(zt,e),_(Vt),_(Wt),_(Qe),_(Pt,e),_(Bt),_(Et),_(Ae),_(Lt,e),_(Gt),_(Rt),_(Dt,e),_(qt),_(Ht),_(Ye),_(Ke),_(Oe),_(Qt,e),_(Yt,e),_(Kt),_(Ot),_(et),_(eo,e),_(to),_(oo),_(tt),_(no,e),_(ro),_(ao),_(ot),_(so,e),_(io,e),_(co),_(po),_(nt),_(mo,e),_(uo),_(go),_(rt),_(fo,e),_(ho),_(_o),_(at),_(st),_(bo,e),_(Mo),_(No),_(lt),_(vo,e),_(wo,e),_(To),_($o),_(jo,e),_(ko),_(Co),_(xo,e),_(Jo),_(Io),_(Fo,e),_(Xo),_(Zo),_(So,e),_(Uo),_(zo),_(Vo,e),_(Wo),_(Po),_(Bo,e),_(Eo),_(Lo),_(Go,e),_(Ro),_(Do),_(qo,e),_(Ho),_(Qo),_(Ao,e),_(Yo),_(Ko)}}}const Jd='{"title":"Models","local":"models","sections":[{"title":"Generic model classes","local":"generic-model-classes","sections":[{"title":"NeuronTracedModel","local":"optimum.neuron.NeuronTracedModel","sections":[],"depth":3}],"depth":2},{"title":"Natural Language Processing","local":"natural-language-processing","sections":[{"title":"NeuronModelForFeatureExtraction","local":"optimum.neuron.NeuronModelForFeatureExtraction","sections":[],"depth":3},{"title":"NeuronSentenceTransformers","local":"optimum.neuron.NeuronSentenceTransformers","sections":[],"depth":3},{"title":"NeuronModelForMaskedLM","local":"optimum.neuron.NeuronModelForMaskedLM","sections":[],"depth":3},{"title":"NeuronModelForSequenceClassification","local":"optimum.neuron.NeuronModelForSequenceClassification","sections":[],"depth":3},{"title":"NeuronModelForQuestionAnswering","local":"optimum.neuron.NeuronModelForQuestionAnswering","sections":[],"depth":3},{"title":"NeuronModelForTokenClassification","local":"optimum.neuron.NeuronModelForTokenClassification","sections":[],"depth":3},{"title":"NeuronModelForMultipleChoice","local":"optimum.neuron.NeuronModelForMultipleChoice","sections":[],"depth":3},{"title":"NeuronModelForCausalLM","local":"optimum.neuron.NeuronModelForCausalLM","sections":[],"depth":3},{"title":"NeuronModelForSeq2SeqLM","local":"optimum.neuron.NeuronModelForSeq2SeqLM","sections":[],"depth":3}],"depth":2},{"title":"Computer Vision","local":"computer-vision","sections":[{"title":"NeuronModelForImageClassification","local":"optimum.neuron.NeuronModelForImageClassification","sections":[],"depth":3},{"title":"NeuronModelForSemanticSegmentation","local":"optimum.neuron.NeuronModelForSemanticSegmentation","sections":[],"depth":3},{"title":"NeuronModelForObjectDetection","local":"optimum.neuron.NeuronModelForObjectDetection","sections":[],"depth":3}],"depth":2},{"title":"Audio","local":"audio","sections":[{"title":"NeuronModelForAudioClassification","local":"optimum.neuron.NeuronModelForAudioClassification","sections":[],"depth":3},{"title":"NeuronModelForAudioFrameClassification","local":"optimum.neuron.NeuronModelForAudioFrameClassification","sections":[],"depth":3},{"title":"NeuronModelForCTC","local":"optimum.neuron.NeuronModelForCTC","sections":[],"depth":3},{"title":"NeuronModelForXVector","local":"optimum.neuron.NeuronModelForXVector","sections":[],"depth":3}],"depth":2},{"title":"Stable Diffusion","local":"stable-diffusion","sections":[{"title":"NeuronStableDiffusionPipeline","local":"optimum.neuron.NeuronStableDiffusionPipeline","sections":[],"depth":3},{"title":"NeuronStableDiffusionImg2ImgPipeline","local":"optimum.neuron.NeuronStableDiffusionImg2ImgPipeline","sections":[],"depth":3},{"title":"NeuronStableDiffusionInpaintPipeline","local":"optimum.neuron.NeuronStableDiffusionInpaintPipeline","sections":[],"depth":3},{"title":"NeuronLatentConsistencyModelPipeline","local":"optimum.neuron.NeuronLatentConsistencyModelPipeline","sections":[],"depth":3},{"title":"NeuronStableDiffusionControlNetPipeline","local":"optimum.neuron.NeuronStableDiffusionControlNetPipeline","sections":[],"depth":3},{"title":"NeuronPixArtAlphaPipeline","local":"optimum.neuron.NeuronPixArtAlphaPipeline","sections":[],"depth":3},{"title":"NeuronStableDiffusionXLPipeline","local":"optimum.neuron.NeuronStableDiffusionXLPipeline","sections":[],"depth":3},{"title":"NeuronStableDiffusionXLImg2ImgPipeline","local":"optimum.neuron.NeuronStableDiffusionXLImg2ImgPipeline","sections":[],"depth":3},{"title":"NeuronStableDiffusionXLInpaintPipeline","local":"optimum.neuron.NeuronStableDiffusionXLInpaintPipeline","sections":[],"depth":3},{"title":"NeuronStableDiffusionXLControlNetPipeline","local":"optimum.neuron.NeuronStableDiffusionXLControlNetPipeline","sections":[],"depth":3}],"depth":2}],"depth":1}';function Id(j){return sd(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Pd extends ld{constructor(c){super(),id(this,c,Id,xd,ad,{})}}export{Pd as component};
