import{S as S2,i as X2,s as P2,e as a,k as p,w,t as n,M as L2,c as r,d as t,m as h,a as i,x as v,h as s,b as u,G as e,g,y as k,q as M,o as $,B as E,v as Y2,L as Qe}from"../../chunks/vendor-hf-doc-builder.js";import{T as He}from"../../chunks/Tip-hf-doc-builder.js";import{D as K}from"../../chunks/Docstring-hf-doc-builder.js";import{C as Oe}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as Le}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as Ye}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";function Q2(F){let d,y,m,f,T;return f=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMERlYmVydGFWMkNvbmZpZyUyQyUyMERlYmVydGFWMk1vZGVsJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMERlQkVSVGEtdjIlMjBtaWNyb3NvZnQlMkZkZWJlcnRhLXYyLXhsYXJnZSUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBEZWJlcnRhVjJDb25maWcoKSUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBtb2RlbCUyMCh3aXRoJTIwcmFuZG9tJTIwd2VpZ2h0cyklMjBmcm9tJTIwdGhlJTIwbWljcm9zb2Z0JTJGZGViZXJ0YS12Mi14bGFyZ2UlMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFtb2RlbCUyMCUzRCUyMERlYmVydGFWMk1vZGVsKGNvbmZpZ3VyYXRpb24pJTBBJTBBJTIzJTIwQWNjZXNzaW5nJTIwdGhlJTIwbW9kZWwlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMG1vZGVsLmNvbmZpZw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> DebertaV2Config, DebertaV2Model

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a DeBERTa-v2 microsoft/deberta-v2-xlarge style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = DebertaV2Config()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the microsoft/deberta-v2-xlarge style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = DebertaV2Model(configuration)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Accessing the model configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = model.config`}}),{c(){d=a("p"),y=n("Example:"),m=p(),w(f.$$.fragment)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Example:"),c.forEach(t),m=h(l),v(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,m,c),k(f,l,c),T=!0},p:Qe,i(l){T||(M(f.$$.fragment,l),T=!0)},o(l){$(f.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(m),E(f,l)}}}function O2(F){let d,y,m,f,T;return f=new Oe({props:{code:"MCUyMDAlMjAwJTIwMCUyMDAlMjAwJTIwMCUyMDAlMjAwJTIwMCUyMDAlMjAxJTIwMSUyMDElMjAxJTIwMSUyMDElMjAxJTIwMSUyMDElMEElN0MlMjBmaXJzdCUyMHNlcXVlbmNlJTIwJTIwJTIwJTIwJTdDJTIwc2Vjb25kJTIwc2VxdWVuY2UlMjAlN0M=",highlighted:`0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1 1
| first sequence    | second sequence |`}}),{c(){d=a("p"),y=n("sequence pair mask has the following format:"),m=p(),w(f.$$.fragment)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"sequence pair mask has the following format:"),c.forEach(t),m=h(l),v(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,m,c),k(f,l,c),T=!0},p:Qe,i(l){T||(M(f.$$.fragment,l),T=!0)},o(l){$(f.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(m),E(f,l)}}}function H2(F){let d,y,m,f,T;return f=new Oe({props:{code:"MCUyMDAlMjAwJTIwMCUyMDAlMjAwJTIwMCUyMDAlMjAwJTIwMCUyMDAlMjAxJTIwMSUyMDElMjAxJTIwMSUyMDElMjAxJTIwMSUyMDElMEElN0MlMjBmaXJzdCUyMHNlcXVlbmNlJTIwJTIwJTIwJTIwJTdDJTIwc2Vjb25kJTIwc2VxdWVuY2UlMjAlN0M=",highlighted:`0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1 1
| first sequence    | second sequence |`}}),{c(){d=a("p"),y=n("sequence pair mask has the following format:"),m=p(),w(f.$$.fragment)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"sequence pair mask has the following format:"),c.forEach(t),m=h(l),v(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,m,c),k(f,l,c),T=!0},p:Qe,i(l){T||(M(f.$$.fragment,l),T=!0)},o(l){$(f.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(m),E(f,l)}}}function K2(F){let d,y,m,f,T;return{c(){d=a("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),m=a("code"),f=n("Module"),T=n(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),m=r(c,"CODE",{});var J=i(m);f=s(J,"Module"),J.forEach(t),T=s(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,m),e(m,f),e(d,T)},d(l){l&&t(d)}}}function eT(F){let d,y,m,f,T;return f=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBEZWJlcnRhVjJNb2RlbCUwQWltcG9ydCUyMHRvcmNoJTBBJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIybWljcm9zb2Z0JTJGZGViZXJ0YS12Mi14bGFyZ2UlMjIpJTBBbW9kZWwlMjAlM0QlMjBEZWJlcnRhVjJNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIybWljcm9zb2Z0JTJGZGViZXJ0YS12Mi14bGFyZ2UlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwdG9rZW5pemVyKCUyMkhlbGxvJTJDJTIwbXklMjBkb2clMjBpcyUyMGN1dGUlMjIlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEElMEFsYXN0X2hpZGRlbl9zdGF0ZXMlMjAlM0QlMjBvdXRwdXRzLmxhc3RfaGlkZGVuX3N0YXRl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, DebertaV2Model
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;microsoft/deberta-v2-xlarge&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = DebertaV2Model.from_pretrained(<span class="hljs-string">&quot;microsoft/deberta-v2-xlarge&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;Hello, my dog is cute&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_states = outputs.last_hidden_state`}}),{c(){d=a("p"),y=n("Example:"),m=p(),w(f.$$.fragment)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Example:"),c.forEach(t),m=h(l),v(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,m,c),k(f,l,c),T=!0},p:Qe,i(l){T||(M(f.$$.fragment,l),T=!0)},o(l){$(f.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(m),E(f,l)}}}function tT(F){let d,y,m,f,T;return{c(){d=a("p"),y=n(`Although the recipe for forward pass needs to be defined within
this function, one should call the `),m=a("code"),f=n("Module"),T=n(` instance afterwards
instead of this since the former takes care of running the
registered hooks while the latter silently ignores them.`)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,`Although the recipe for forward pass needs to be defined within
this function, one should call the `),m=r(c,"CODE",{});var J=i(m);f=s(J,"Module"),J.forEach(t),T=s(c,` instance afterwards
instead of this since the former takes care of running the
registered hooks while the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,m),e(m,f),e(d,T)},d(l){l&&t(d)}}}function oT(F){let d,y,m,f,T;return{c(){d=a("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),m=a("code"),f=n("Module"),T=n(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),m=r(c,"CODE",{});var J=i(m);f=s(J,"Module"),J.forEach(t),T=s(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,m),e(m,f),e(d,T)},d(l){l&&t(d)}}}function nT(F){let d,y,m,f,T;return f=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBEZWJlcnRhVjJGb3JNYXNrZWRMTSUwQWltcG9ydCUyMHRvcmNoJTBBJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIybWljcm9zb2Z0JTJGZGViZXJ0YS12Mi14bGFyZ2UlMjIpJTBBbW9kZWwlMjAlM0QlMjBEZWJlcnRhVjJGb3JNYXNrZWRMTS5mcm9tX3ByZXRyYWluZWQoJTIybWljcm9zb2Z0JTJGZGViZXJ0YS12Mi14bGFyZ2UlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwdG9rZW5pemVyKCUyMlRoZSUyMGNhcGl0YWwlMjBvZiUyMEZyYW5jZSUyMGlzJTIwJTVCTUFTSyU1RC4lMjIlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQXdpdGglMjB0b3JjaC5ub19ncmFkKCklM0ElMEElMjAlMjAlMjAlMjBsb2dpdHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cykubG9naXRzJTBBJTBBJTIzJTIwcmV0cmlldmUlMjBpbmRleCUyMG9mJTIwJTVCTUFTSyU1RCUwQW1hc2tfdG9rZW5faW5kZXglMjAlM0QlMjAoaW5wdXRzLmlucHV0X2lkcyUyMCUzRCUzRCUyMHRva2VuaXplci5tYXNrX3Rva2VuX2lkKSU1QjAlNUQubm9uemVybyhhc190dXBsZSUzRFRydWUpJTVCMCU1RCUwQSUwQXByZWRpY3RlZF90b2tlbl9pZCUyMCUzRCUyMGxvZ2l0cyU1QjAlMkMlMjBtYXNrX3Rva2VuX2luZGV4JTVELmFyZ21heChheGlzJTNELTEpJTBBJTBBbGFiZWxzJTIwJTNEJTIwdG9rZW5pemVyKCUyMlRoZSUyMGNhcGl0YWwlMjBvZiUyMEZyYW5jZSUyMGlzJTIwUGFyaXMuJTIyJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklNUIlMjJpbnB1dF9pZHMlMjIlNUQlMEElMjMlMjBtYXNrJTIwbGFiZWxzJTIwb2YlMjBub24tJTVCTUFTSyU1RCUyMHRva2VucyUwQWxhYmVscyUyMCUzRCUyMHRvcmNoLndoZXJlKGlucHV0cy5pbnB1dF9pZHMlMjAlM0QlM0QlMjB0b2tlbml6ZXIubWFza190b2tlbl9pZCUyQyUyMGxhYmVscyUyQyUyMC0xMDApJTBBJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzJTJDJTIwbGFiZWxzJTNEbGFiZWxzKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, DebertaV2ForMaskedLM
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;microsoft/deberta-v2-xlarge&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = DebertaV2ForMaskedLM.from_pretrained(<span class="hljs-string">&quot;microsoft/deberta-v2-xlarge&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;The capital of France is [MASK].&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># retrieve index of [MASK]</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>mask_token_index = (inputs.input_ids == tokenizer.mask_token_id)[<span class="hljs-number">0</span>].nonzero(as_tuple=<span class="hljs-literal">True</span>)[<span class="hljs-number">0</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_token_id = logits[<span class="hljs-number">0</span>, mask_token_index].argmax(axis=-<span class="hljs-number">1</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>labels = tokenizer(<span class="hljs-string">&quot;The capital of France is Paris.&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)[<span class="hljs-string">&quot;input_ids&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># mask labels of non-[MASK] tokens</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>labels = torch.where(inputs.input_ids == tokenizer.mask_token_id, labels, -<span class="hljs-number">100</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs, labels=labels)`}}),{c(){d=a("p"),y=n("Example:"),m=p(),w(f.$$.fragment)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Example:"),c.forEach(t),m=h(l),v(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,m,c),k(f,l,c),T=!0},p:Qe,i(l){T||(M(f.$$.fragment,l),T=!0)},o(l){$(f.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(m),E(f,l)}}}function sT(F){let d,y,m,f,T;return{c(){d=a("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),m=a("code"),f=n("Module"),T=n(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),m=r(c,"CODE",{});var J=i(m);f=s(J,"Module"),J.forEach(t),T=s(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,m),e(m,f),e(d,T)},d(l){l&&t(d)}}}function aT(F){let d,y,m,f,T;return f=new Oe({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Rva2VuaXplciUyQyUyMERlYmVydGFWMkZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24lMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJtaWNyb3NvZnQlMkZkZWJlcnRhLXYyLXhsYXJnZSUyMiklMEFtb2RlbCUyMCUzRCUyMERlYmVydGFWMkZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMm1pY3Jvc29mdCUyRmRlYmVydGEtdjIteGxhcmdlJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMHRva2VuaXplciglMjJIZWxsbyUyQyUyMG15JTIwZG9nJTIwaXMlMjBjdXRlJTIyJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEF3aXRoJTIwdG9yY2gubm9fZ3JhZCgpJTNBJTBBJTIwJTIwJTIwJTIwbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cyUwQSUwQXByZWRpY3RlZF9jbGFzc19pZCUyMCUzRCUyMGxvZ2l0cy5hcmdtYXgoKS5pdGVtKCklMEElMEElMjMlMjBUbyUyMHRyYWluJTIwYSUyMG1vZGVsJTIwb24lMjAlNjBudW1fbGFiZWxzJTYwJTIwY2xhc3NlcyUyQyUyMHlvdSUyMGNhbiUyMHBhc3MlMjAlNjBudW1fbGFiZWxzJTNEbnVtX2xhYmVscyU2MCUyMHRvJTIwJTYwLmZyb21fcHJldHJhaW5lZCguLi4pJTYwJTBBbnVtX2xhYmVscyUyMCUzRCUyMGxlbihtb2RlbC5jb25maWcuaWQybGFiZWwpJTBBbW9kZWwlMjAlM0QlMjBEZWJlcnRhVjJGb3JTZXF1ZW5jZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJtaWNyb3NvZnQlMkZkZWJlcnRhLXYyLXhsYXJnZSUyMiUyQyUyMG51bV9sYWJlbHMlM0RudW1fbGFiZWxzKSUwQSUwQWxhYmVscyUyMCUzRCUyMHRvcmNoLnRlbnNvciglNUIxJTVEKSUwQWxvc3MlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyUyQyUyMGxhYmVscyUzRGxhYmVscykubG9zcw==",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, DebertaV2ForSequenceClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;microsoft/deberta-v2-xlarge&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = DebertaV2ForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;microsoft/deberta-v2-xlarge&quot;</span>)

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

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_class_id = logits.argmax().item()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># To train a model on \`num_labels\` classes, you can pass \`num_labels=num_labels\` to \`.from_pretrained(...)\`</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>num_labels = <span class="hljs-built_in">len</span>(model.config.id2label)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = DebertaV2ForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;microsoft/deberta-v2-xlarge&quot;</span>, num_labels=num_labels)

<span class="hljs-meta">&gt;&gt;&gt; </span>labels = torch.tensor([<span class="hljs-number">1</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = model(**inputs, labels=labels).loss`}}),{c(){d=a("p"),y=n("Example of single-label classification:"),m=p(),w(f.$$.fragment)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Example of single-label classification:"),c.forEach(t),m=h(l),v(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,m,c),k(f,l,c),T=!0},p:Qe,i(l){T||(M(f.$$.fragment,l),T=!0)},o(l){$(f.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(m),E(f,l)}}}function rT(F){let d,y,m,f,T;return f=new Oe({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Rva2VuaXplciUyQyUyMERlYmVydGFWMkZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24lMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJtaWNyb3NvZnQlMkZkZWJlcnRhLXYyLXhsYXJnZSUyMiklMEFtb2RlbCUyMCUzRCUyMERlYmVydGFWMkZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMm1pY3Jvc29mdCUyRmRlYmVydGEtdjIteGxhcmdlJTIyJTJDJTIwcHJvYmxlbV90eXBlJTNEJTIybXVsdGlfbGFiZWxfY2xhc3NpZmljYXRpb24lMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwdG9rZW5pemVyKCUyMkhlbGxvJTJDJTIwbXklMjBkb2clMjBpcyUyMGN1dGUlMjIlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQXdpdGglMjB0b3JjaC5ub19ncmFkKCklM0ElMEElMjAlMjAlMjAlMjBsb2dpdHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cykubG9naXRzJTBBJTBBcHJlZGljdGVkX2NsYXNzX2lkcyUyMCUzRCUyMHRvcmNoLmFyYW5nZSgwJTJDJTIwbG9naXRzLnNoYXBlJTVCLTElNUQpJTVCdG9yY2guc2lnbW9pZChsb2dpdHMpLnNxdWVlemUoZGltJTNEMCklMjAlM0UlMjAwLjUlNUQlMEElMEElMjMlMjBUbyUyMHRyYWluJTIwYSUyMG1vZGVsJTIwb24lMjAlNjBudW1fbGFiZWxzJTYwJTIwY2xhc3NlcyUyQyUyMHlvdSUyMGNhbiUyMHBhc3MlMjAlNjBudW1fbGFiZWxzJTNEbnVtX2xhYmVscyU2MCUyMHRvJTIwJTYwLmZyb21fcHJldHJhaW5lZCguLi4pJTYwJTBBbnVtX2xhYmVscyUyMCUzRCUyMGxlbihtb2RlbC5jb25maWcuaWQybGFiZWwpJTBBbW9kZWwlMjAlM0QlMjBEZWJlcnRhVjJGb3JTZXF1ZW5jZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJtaWNyb3NvZnQlMkZkZWJlcnRhLXYyLXhsYXJnZSUyMiUyQyUyMG51bV9sYWJlbHMlM0RudW1fbGFiZWxzJTJDJTIwcHJvYmxlbV90eXBlJTNEJTIybXVsdGlfbGFiZWxfY2xhc3NpZmljYXRpb24lMjIlMEEpJTBBJTBBbGFiZWxzJTIwJTNEJTIwdG9yY2guc3VtKCUwQSUyMCUyMCUyMCUyMHRvcmNoLm5uLmZ1bmN0aW9uYWwub25lX2hvdChwcmVkaWN0ZWRfY2xhc3NfaWRzJTVCTm9uZSUyQyUyMCUzQSU1RC5jbG9uZSgpJTJDJTIwbnVtX2NsYXNzZXMlM0RudW1fbGFiZWxzKSUyQyUyMGRpbSUzRDElMEEpLnRvKHRvcmNoLmZsb2F0KSUwQWxvc3MlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyUyQyUyMGxhYmVscyUzRGxhYmVscykubG9zcw==",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, DebertaV2ForSequenceClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;microsoft/deberta-v2-xlarge&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = DebertaV2ForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;microsoft/deberta-v2-xlarge&quot;</span>, problem_type=<span class="hljs-string">&quot;multi_label_classification&quot;</span>)

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

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_class_ids = torch.arange(<span class="hljs-number">0</span>, logits.shape[-<span class="hljs-number">1</span>])[torch.sigmoid(logits).squeeze(dim=<span class="hljs-number">0</span>) &gt; <span class="hljs-number">0.5</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># To train a model on \`num_labels\` classes, you can pass \`num_labels=num_labels\` to \`.from_pretrained(...)\`</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>num_labels = <span class="hljs-built_in">len</span>(model.config.id2label)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = DebertaV2ForSequenceClassification.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;microsoft/deberta-v2-xlarge&quot;</span>, num_labels=num_labels, problem_type=<span class="hljs-string">&quot;multi_label_classification&quot;</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>labels = torch.<span class="hljs-built_in">sum</span>(
<span class="hljs-meta">... </span>    torch.nn.functional.one_hot(predicted_class_ids[<span class="hljs-literal">None</span>, :].clone(), num_classes=num_labels), dim=<span class="hljs-number">1</span>
<span class="hljs-meta">... </span>).to(torch.<span class="hljs-built_in">float</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = model(**inputs, labels=labels).loss`}}),{c(){d=a("p"),y=n("Example of multi-label classification:"),m=p(),w(f.$$.fragment)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Example of multi-label classification:"),c.forEach(t),m=h(l),v(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,m,c),k(f,l,c),T=!0},p:Qe,i(l){T||(M(f.$$.fragment,l),T=!0)},o(l){$(f.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(m),E(f,l)}}}function iT(F){let d,y,m,f,T;return{c(){d=a("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),m=a("code"),f=n("Module"),T=n(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),m=r(c,"CODE",{});var J=i(m);f=s(J,"Module"),J.forEach(t),T=s(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,m),e(m,f),e(d,T)},d(l){l&&t(d)}}}function lT(F){let d,y,m,f,T;return f=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBEZWJlcnRhVjJGb3JUb2tlbkNsYXNzaWZpY2F0aW9uJTBBaW1wb3J0JTIwdG9yY2glMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJtaWNyb3NvZnQlMkZkZWJlcnRhLXYyLXhsYXJnZSUyMiklMEFtb2RlbCUyMCUzRCUyMERlYmVydGFWMkZvclRva2VuQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMm1pY3Jvc29mdCUyRmRlYmVydGEtdjIteGxhcmdlJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMHRva2VuaXplciglMEElMjAlMjAlMjAlMjAlMjJIdWdnaW5nRmFjZSUyMGlzJTIwYSUyMGNvbXBhbnklMjBiYXNlZCUyMGluJTIwUGFyaXMlMjBhbmQlMjBOZXclMjBZb3JrJTIyJTJDJTIwYWRkX3NwZWNpYWxfdG9rZW5zJTNERmFsc2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyJTBBKSUwQSUwQXdpdGglMjB0b3JjaC5ub19ncmFkKCklM0ElMEElMjAlMjAlMjAlMjBsb2dpdHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cykubG9naXRzJTBBJTBBcHJlZGljdGVkX3Rva2VuX2NsYXNzX2lkcyUyMCUzRCUyMGxvZ2l0cy5hcmdtYXgoLTEpJTBBJTBBJTIzJTIwTm90ZSUyMHRoYXQlMjB0b2tlbnMlMjBhcmUlMjBjbGFzc2lmaWVkJTIwcmF0aGVyJTIwdGhlbiUyMGlucHV0JTIwd29yZHMlMjB3aGljaCUyMG1lYW5zJTIwdGhhdCUwQSUyMyUyMHRoZXJlJTIwbWlnaHQlMjBiZSUyMG1vcmUlMjBwcmVkaWN0ZWQlMjB0b2tlbiUyMGNsYXNzZXMlMjB0aGFuJTIwd29yZHMuJTBBJTIzJTIwTXVsdGlwbGUlMjB0b2tlbiUyMGNsYXNzZXMlMjBtaWdodCUyMGFjY291bnQlMjBmb3IlMjB0aGUlMjBzYW1lJTIwd29yZCUwQXByZWRpY3RlZF90b2tlbnNfY2xhc3NlcyUyMCUzRCUyMCU1Qm1vZGVsLmNvbmZpZy5pZDJsYWJlbCU1QnQuaXRlbSgpJTVEJTIwZm9yJTIwdCUyMGluJTIwcHJlZGljdGVkX3Rva2VuX2NsYXNzX2lkcyU1QjAlNUQlNUQlMEElMEFsYWJlbHMlMjAlM0QlMjBwcmVkaWN0ZWRfdG9rZW5fY2xhc3NfaWRzJTBBbG9zcyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzJTJDJTIwbGFiZWxzJTNEbGFiZWxzKS5sb3Nz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, DebertaV2ForTokenClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;microsoft/deberta-v2-xlarge&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = DebertaV2ForTokenClassification.from_pretrained(<span class="hljs-string">&quot;microsoft/deberta-v2-xlarge&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;HuggingFace is a company based in Paris and New York&quot;</span>, add_special_tokens=<span class="hljs-literal">False</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_token_class_ids = logits.argmax(-<span class="hljs-number">1</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Note that tokens are classified rather then input words which means that</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># there might be more predicted token classes than words.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Multiple token classes might account for the same word</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_tokens_classes = [model.config.id2label[t.item()] <span class="hljs-keyword">for</span> t <span class="hljs-keyword">in</span> predicted_token_class_ids[<span class="hljs-number">0</span>]]

<span class="hljs-meta">&gt;&gt;&gt; </span>labels = predicted_token_class_ids
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = model(**inputs, labels=labels).loss`}}),{c(){d=a("p"),y=n("Example:"),m=p(),w(f.$$.fragment)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Example:"),c.forEach(t),m=h(l),v(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,m,c),k(f,l,c),T=!0},p:Qe,i(l){T||(M(f.$$.fragment,l),T=!0)},o(l){$(f.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(m),E(f,l)}}}function dT(F){let d,y,m,f,T;return{c(){d=a("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),m=a("code"),f=n("Module"),T=n(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),m=r(c,"CODE",{});var J=i(m);f=s(J,"Module"),J.forEach(t),T=s(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,m),e(m,f),e(d,T)},d(l){l&&t(d)}}}function cT(F){let d,y,m,f,T;return f=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBEZWJlcnRhVjJGb3JRdWVzdGlvbkFuc3dlcmluZyUwQWltcG9ydCUyMHRvcmNoJTBBJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIybWljcm9zb2Z0JTJGZGViZXJ0YS12Mi14bGFyZ2UlMjIpJTBBbW9kZWwlMjAlM0QlMjBEZWJlcnRhVjJGb3JRdWVzdGlvbkFuc3dlcmluZy5mcm9tX3ByZXRyYWluZWQoJTIybWljcm9zb2Z0JTJGZGViZXJ0YS12Mi14bGFyZ2UlMjIpJTBBJTBBcXVlc3Rpb24lMkMlMjB0ZXh0JTIwJTNEJTIwJTIyV2hvJTIwd2FzJTIwSmltJTIwSGVuc29uJTNGJTIyJTJDJTIwJTIySmltJTIwSGVuc29uJTIwd2FzJTIwYSUyMG5pY2UlMjBwdXBwZXQlMjIlMEElMEFpbnB1dHMlMjAlM0QlMjB0b2tlbml6ZXIocXVlc3Rpb24lMkMlMjB0ZXh0JTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEF3aXRoJTIwdG9yY2gubm9fZ3JhZCgpJTNBJTBBJTIwJTIwJTIwJTIwb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQSUwQWFuc3dlcl9zdGFydF9pbmRleCUyMCUzRCUyMG91dHB1dHMuc3RhcnRfbG9naXRzLmFyZ21heCgpJTBBYW5zd2VyX2VuZF9pbmRleCUyMCUzRCUyMG91dHB1dHMuZW5kX2xvZ2l0cy5hcmdtYXgoKSUwQSUwQXByZWRpY3RfYW5zd2VyX3Rva2VucyUyMCUzRCUyMGlucHV0cy5pbnB1dF9pZHMlNUIwJTJDJTIwYW5zd2VyX3N0YXJ0X2luZGV4JTIwJTNBJTIwYW5zd2VyX2VuZF9pbmRleCUyMCUyQiUyMDElNUQlMEElMEElMjMlMjB0YXJnZXQlMjBpcyUyMCUyMm5pY2UlMjBwdXBwZXQlMjIlMEF0YXJnZXRfc3RhcnRfaW5kZXglMjAlM0QlMjB0b3JjaC50ZW5zb3IoJTVCMiU1RCklMEF0YXJnZXRfZW5kX2luZGV4JTIwJTNEJTIwdG9yY2gudGVuc29yKCU1QjklNUQpJTBBJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzJTJDJTIwc3RhcnRfcG9zaXRpb25zJTNEdGFyZ2V0X3N0YXJ0X2luZGV4JTJDJTIwZW5kX3Bvc2l0aW9ucyUzRHRhcmdldF9lbmRfaW5kZXgpJTBBbG9zcyUyMCUzRCUyMG91dHB1dHMubG9zcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, DebertaV2ForQuestionAnswering
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;microsoft/deberta-v2-xlarge&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = DebertaV2ForQuestionAnswering.from_pretrained(<span class="hljs-string">&quot;microsoft/deberta-v2-xlarge&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>question, text = <span class="hljs-string">&quot;Who was Jim Henson?&quot;</span>, <span class="hljs-string">&quot;Jim Henson was a nice puppet&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(question, text, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    outputs = model(**inputs)

<span class="hljs-meta">&gt;&gt;&gt; </span>answer_start_index = outputs.start_logits.argmax()
<span class="hljs-meta">&gt;&gt;&gt; </span>answer_end_index = outputs.end_logits.argmax()

<span class="hljs-meta">&gt;&gt;&gt; </span>predict_answer_tokens = inputs.input_ids[<span class="hljs-number">0</span>, answer_start_index : answer_end_index + <span class="hljs-number">1</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># target is &quot;nice puppet&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>target_start_index = torch.tensor([<span class="hljs-number">2</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>target_end_index = torch.tensor([<span class="hljs-number">9</span>])

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs, start_positions=target_start_index, end_positions=target_end_index)
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = outputs.loss`}}),{c(){d=a("p"),y=n("Example:"),m=p(),w(f.$$.fragment)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Example:"),c.forEach(t),m=h(l),v(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,m,c),k(f,l,c),T=!0},p:Qe,i(l){T||(M(f.$$.fragment,l),T=!0)},o(l){$(f.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(m),E(f,l)}}}function pT(F){let d,y,m,f,T;return{c(){d=a("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),m=a("code"),f=n("Module"),T=n(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),m=r(c,"CODE",{});var J=i(m);f=s(J,"Module"),J.forEach(t),T=s(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,m),e(m,f),e(d,T)},d(l){l&&t(d)}}}function hT(F){let d,y,m,f,T;return f=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBEZWJlcnRhVjJGb3JNdWx0aXBsZUNob2ljZSUwQWltcG9ydCUyMHRvcmNoJTBBJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIybWljcm9zb2Z0JTJGZGViZXJ0YS12Mi14bGFyZ2UlMjIpJTBBbW9kZWwlMjAlM0QlMjBEZWJlcnRhVjJGb3JNdWx0aXBsZUNob2ljZS5mcm9tX3ByZXRyYWluZWQoJTIybWljcm9zb2Z0JTJGZGViZXJ0YS12Mi14bGFyZ2UlMjIpJTBBJTBBcHJvbXB0JTIwJTNEJTIwJTIySW4lMjBJdGFseSUyQyUyMHBpenphJTIwc2VydmVkJTIwaW4lMjBmb3JtYWwlMjBzZXR0aW5ncyUyQyUyMHN1Y2glMjBhcyUyMGF0JTIwYSUyMHJlc3RhdXJhbnQlMkMlMjBpcyUyMHByZXNlbnRlZCUyMHVuc2xpY2VkLiUyMiUwQWNob2ljZTAlMjAlM0QlMjAlMjJJdCUyMGlzJTIwZWF0ZW4lMjB3aXRoJTIwYSUyMGZvcmslMjBhbmQlMjBhJTIwa25pZmUuJTIyJTBBY2hvaWNlMSUyMCUzRCUyMCUyMkl0JTIwaXMlMjBlYXRlbiUyMHdoaWxlJTIwaGVsZCUyMGluJTIwdGhlJTIwaGFuZC4lMjIlMEFsYWJlbHMlMjAlM0QlMjB0b3JjaC50ZW5zb3IoMCkudW5zcXVlZXplKDApJTIwJTIwJTIzJTIwY2hvaWNlMCUyMGlzJTIwY29ycmVjdCUyMChhY2NvcmRpbmclMjB0byUyMFdpa2lwZWRpYSUyMCUzQikpJTJDJTIwYmF0Y2glMjBzaXplJTIwMSUwQSUwQWVuY29kaW5nJTIwJTNEJTIwdG9rZW5pemVyKCU1QnByb21wdCUyQyUyMHByb21wdCU1RCUyQyUyMCU1QmNob2ljZTAlMkMlMjBjaG9pY2UxJTVEJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiUyQyUyMHBhZGRpbmclM0RUcnVlKSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKiU3QmslM0ElMjB2LnVuc3F1ZWV6ZSgwKSUyMGZvciUyMGslMkMlMjB2JTIwaW4lMjBlbmNvZGluZy5pdGVtcygpJTdEJTJDJTIwbGFiZWxzJTNEbGFiZWxzKSUyMCUyMCUyMyUyMGJhdGNoJTIwc2l6ZSUyMGlzJTIwMSUwQSUwQSUyMyUyMHRoZSUyMGxpbmVhciUyMGNsYXNzaWZpZXIlMjBzdGlsbCUyMG5lZWRzJTIwdG8lMjBiZSUyMHRyYWluZWQlMEFsb3NzJTIwJTNEJTIwb3V0cHV0cy5sb3NzJTBBbG9naXRzJTIwJTNEJTIwb3V0cHV0cy5sb2dpdHM=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, DebertaV2ForMultipleChoice
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;microsoft/deberta-v2-xlarge&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = DebertaV2ForMultipleChoice.from_pretrained(<span class="hljs-string">&quot;microsoft/deberta-v2-xlarge&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;In Italy, pizza served in formal settings, such as at a restaurant, is presented unsliced.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>choice0 = <span class="hljs-string">&quot;It is eaten with a fork and a knife.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>choice1 = <span class="hljs-string">&quot;It is eaten while held in the hand.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>labels = torch.tensor(<span class="hljs-number">0</span>).unsqueeze(<span class="hljs-number">0</span>)  <span class="hljs-comment"># choice0 is correct (according to Wikipedia ;)), batch size 1</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>encoding = tokenizer([prompt, prompt], [choice0, choice1], return_tensors=<span class="hljs-string">&quot;pt&quot;</span>, padding=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**{k: v.unsqueeze(<span class="hljs-number">0</span>) <span class="hljs-keyword">for</span> k, v <span class="hljs-keyword">in</span> encoding.items()}, labels=labels)  <span class="hljs-comment"># batch size is 1</span>

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># the linear classifier still needs to be trained</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = outputs.loss
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits`}}),{c(){d=a("p"),y=n("Example:"),m=p(),w(f.$$.fragment)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Example:"),c.forEach(t),m=h(l),v(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,m,c),k(f,l,c),T=!0},p:Qe,i(l){T||(M(f.$$.fragment,l),T=!0)},o(l){$(f.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(m),E(f,l)}}}function mT(F){let d,y,m,f,T,l,c,J,ye,pe,W,ae,oe,D,Te,X,we,he,G,ve,ie,L,ke,me,N,Me,ue,A,$e,fe,ee,C,B,le,Y,Ee,ge,x,De,de,z,je,q,Ve,_e,S,Fe,be,U,re,P,Je,ne,R,Ce,I,Re,ce;return{c(){d=a("p"),y=n("TensorFlow models and layers in "),m=a("code"),f=n("transformers"),T=n(" accept two formats as input:"),l=p(),c=a("ul"),J=a("li"),ye=n("having all inputs as keyword arguments (like PyTorch models), or"),pe=p(),W=a("li"),ae=n("having all inputs as a list, tuple or dict in the first positional argument."),oe=p(),D=a("p"),Te=n(`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),X=a("code"),we=n("model.fit()"),he=n(` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),G=a("code"),ve=n("model.fit()"),ie=n(` supports! If, however, you want to use the second
format outside of Keras methods like `),L=a("code"),ke=n("fit()"),me=n(" and "),N=a("code"),Me=n("predict()"),ue=n(`, such as when creating your own layers or models with
the Keras `),A=a("code"),$e=n("Functional"),fe=n(` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),ee=p(),C=a("ul"),B=a("li"),le=n("a single Tensor with "),Y=a("code"),Ee=n("input_ids"),ge=n(" only and nothing else: "),x=a("code"),De=n("model(input_ids)"),de=p(),z=a("li"),je=n(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),q=a("code"),Ve=n("model([input_ids, attention_mask])"),_e=n(" or "),S=a("code"),Fe=n("model([input_ids, attention_mask, token_type_ids])"),be=p(),U=a("li"),re=n(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),P=a("code"),Je=n('model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),ne=p(),R=a("p"),Ce=n(`Note that when creating models and layers with
`),I=a("a"),Re=n("subclassing"),ce=n(` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),this.h()},l(_){d=r(_,"P",{});var j=i(d);y=s(j,"TensorFlow models and layers in "),m=r(j,"CODE",{});var Ge=i(m);f=s(Ge,"transformers"),Ge.forEach(t),T=s(j," accept two formats as input:"),j.forEach(t),l=h(_),c=r(_,"UL",{});var se=i(c);J=r(se,"LI",{});var Be=i(J);ye=s(Be,"having all inputs as keyword arguments (like PyTorch models), or"),Be.forEach(t),pe=h(se),W=r(se,"LI",{});var Ie=i(W);ae=s(Ie,"having all inputs as a list, tuple or dict in the first positional argument."),Ie.forEach(t),se.forEach(t),oe=h(_),D=r(_,"P",{});var V=i(D);Te=s(V,`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),X=r(V,"CODE",{});var qe=i(X);we=s(qe,"model.fit()"),qe.forEach(t),he=s(V,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),G=r(V,"CODE",{});var Ne=i(G);ve=s(Ne,"model.fit()"),Ne.forEach(t),ie=s(V,` supports! If, however, you want to use the second
format outside of Keras methods like `),L=r(V,"CODE",{});var ze=i(L);ke=s(ze,"fit()"),ze.forEach(t),me=s(V," and "),N=r(V,"CODE",{});var We=i(N);Me=s(We,"predict()"),We.forEach(t),ue=s(V,`, such as when creating your own layers or models with
the Keras `),A=r(V,"CODE",{});var Ae=i(A);$e=s(Ae,"Functional"),Ae.forEach(t),fe=s(V,` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),V.forEach(t),ee=h(_),C=r(_,"UL",{});var Z=i(C);B=r(Z,"LI",{});var Q=i(B);le=s(Q,"a single Tensor with "),Y=r(Q,"CODE",{});var Ue=i(Y);Ee=s(Ue,"input_ids"),Ue.forEach(t),ge=s(Q," only and nothing else: "),x=r(Q,"CODE",{});var xe=i(x);De=s(xe,"model(input_ids)"),xe.forEach(t),Q.forEach(t),de=h(Z),z=r(Z,"LI",{});var O=i(z);je=s(O,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),q=r(O,"CODE",{});var Se=i(q);Ve=s(Se,"model([input_ids, attention_mask])"),Se.forEach(t),_e=s(O," or "),S=r(O,"CODE",{});var Ze=i(S);Fe=s(Ze,"model([input_ids, attention_mask, token_type_ids])"),Ze.forEach(t),O.forEach(t),be=h(Z),U=r(Z,"LI",{});var te=i(U);re=s(te,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),P=r(te,"CODE",{});var Xe=i(P);Je=s(Xe,'model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),Xe.forEach(t),te.forEach(t),Z.forEach(t),ne=h(_),R=r(_,"P",{});var H=i(R);Ce=s(H,`Note that when creating models and layers with
`),I=r(H,"A",{href:!0,rel:!0});var Pe=i(I);Re=s(Pe,"subclassing"),Pe.forEach(t),ce=s(H,` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),H.forEach(t),this.h()},h(){u(I,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),u(I,"rel","nofollow")},m(_,j){g(_,d,j),e(d,y),e(d,m),e(m,f),e(d,T),g(_,l,j),g(_,c,j),e(c,J),e(J,ye),e(c,pe),e(c,W),e(W,ae),g(_,oe,j),g(_,D,j),e(D,Te),e(D,X),e(X,we),e(D,he),e(D,G),e(G,ve),e(D,ie),e(D,L),e(L,ke),e(D,me),e(D,N),e(N,Me),e(D,ue),e(D,A),e(A,$e),e(D,fe),g(_,ee,j),g(_,C,j),e(C,B),e(B,le),e(B,Y),e(Y,Ee),e(B,ge),e(B,x),e(x,De),e(C,de),e(C,z),e(z,je),e(z,q),e(q,Ve),e(z,_e),e(z,S),e(S,Fe),e(C,be),e(C,U),e(U,re),e(U,P),e(P,Je),g(_,ne,j),g(_,R,j),e(R,Ce),e(R,I),e(I,Re),e(R,ce)},d(_){_&&t(d),_&&t(l),_&&t(c),_&&t(oe),_&&t(D),_&&t(ee),_&&t(C),_&&t(ne),_&&t(R)}}}function uT(F){let d,y,m,f,T;return{c(){d=a("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),m=a("code"),f=n("Module"),T=n(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),m=r(c,"CODE",{});var J=i(m);f=s(J,"Module"),J.forEach(t),T=s(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,m),e(m,f),e(d,T)},d(l){l&&t(d)}}}function fT(F){let d,y,m,f,T;return f=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBURkRlYmVydGFWMk1vZGVsJTBBaW1wb3J0JTIwdGVuc29yZmxvdyUyMGFzJTIwdGYlMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJrYW1hbGtyYWolMkZkZWJlcnRhLXYyLXhsYXJnZSUyMiklMEFtb2RlbCUyMCUzRCUyMFRGRGViZXJ0YVYyTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmthbWFsa3JhaiUyRmRlYmVydGEtdjIteGxhcmdlJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMHRva2VuaXplciglMjJIZWxsbyUyQyUyMG15JTIwZG9nJTIwaXMlMjBjdXRlJTIyJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJ0ZiUyMiklMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoaW5wdXRzKSUwQSUwQWxhc3RfaGlkZGVuX3N0YXRlcyUyMCUzRCUyMG91dHB1dHMubGFzdF9oaWRkZW5fc3RhdGU=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, TFDebertaV2Model
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;kamalkraj/deberta-v2-xlarge&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFDebertaV2Model.from_pretrained(<span class="hljs-string">&quot;kamalkraj/deberta-v2-xlarge&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;Hello, my dog is cute&quot;</span>, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(inputs)

<span class="hljs-meta">&gt;&gt;&gt; </span>last_hidden_states = outputs.last_hidden_state`}}),{c(){d=a("p"),y=n("Example:"),m=p(),w(f.$$.fragment)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Example:"),c.forEach(t),m=h(l),v(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,m,c),k(f,l,c),T=!0},p:Qe,i(l){T||(M(f.$$.fragment,l),T=!0)},o(l){$(f.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(m),E(f,l)}}}function gT(F){let d,y,m,f,T,l,c,J,ye,pe,W,ae,oe,D,Te,X,we,he,G,ve,ie,L,ke,me,N,Me,ue,A,$e,fe,ee,C,B,le,Y,Ee,ge,x,De,de,z,je,q,Ve,_e,S,Fe,be,U,re,P,Je,ne,R,Ce,I,Re,ce;return{c(){d=a("p"),y=n("TensorFlow models and layers in "),m=a("code"),f=n("transformers"),T=n(" accept two formats as input:"),l=p(),c=a("ul"),J=a("li"),ye=n("having all inputs as keyword arguments (like PyTorch models), or"),pe=p(),W=a("li"),ae=n("having all inputs as a list, tuple or dict in the first positional argument."),oe=p(),D=a("p"),Te=n(`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),X=a("code"),we=n("model.fit()"),he=n(` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),G=a("code"),ve=n("model.fit()"),ie=n(` supports! If, however, you want to use the second
format outside of Keras methods like `),L=a("code"),ke=n("fit()"),me=n(" and "),N=a("code"),Me=n("predict()"),ue=n(`, such as when creating your own layers or models with
the Keras `),A=a("code"),$e=n("Functional"),fe=n(` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),ee=p(),C=a("ul"),B=a("li"),le=n("a single Tensor with "),Y=a("code"),Ee=n("input_ids"),ge=n(" only and nothing else: "),x=a("code"),De=n("model(input_ids)"),de=p(),z=a("li"),je=n(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),q=a("code"),Ve=n("model([input_ids, attention_mask])"),_e=n(" or "),S=a("code"),Fe=n("model([input_ids, attention_mask, token_type_ids])"),be=p(),U=a("li"),re=n(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),P=a("code"),Je=n('model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),ne=p(),R=a("p"),Ce=n(`Note that when creating models and layers with
`),I=a("a"),Re=n("subclassing"),ce=n(` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),this.h()},l(_){d=r(_,"P",{});var j=i(d);y=s(j,"TensorFlow models and layers in "),m=r(j,"CODE",{});var Ge=i(m);f=s(Ge,"transformers"),Ge.forEach(t),T=s(j," accept two formats as input:"),j.forEach(t),l=h(_),c=r(_,"UL",{});var se=i(c);J=r(se,"LI",{});var Be=i(J);ye=s(Be,"having all inputs as keyword arguments (like PyTorch models), or"),Be.forEach(t),pe=h(se),W=r(se,"LI",{});var Ie=i(W);ae=s(Ie,"having all inputs as a list, tuple or dict in the first positional argument."),Ie.forEach(t),se.forEach(t),oe=h(_),D=r(_,"P",{});var V=i(D);Te=s(V,`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),X=r(V,"CODE",{});var qe=i(X);we=s(qe,"model.fit()"),qe.forEach(t),he=s(V,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),G=r(V,"CODE",{});var Ne=i(G);ve=s(Ne,"model.fit()"),Ne.forEach(t),ie=s(V,` supports! If, however, you want to use the second
format outside of Keras methods like `),L=r(V,"CODE",{});var ze=i(L);ke=s(ze,"fit()"),ze.forEach(t),me=s(V," and "),N=r(V,"CODE",{});var We=i(N);Me=s(We,"predict()"),We.forEach(t),ue=s(V,`, such as when creating your own layers or models with
the Keras `),A=r(V,"CODE",{});var Ae=i(A);$e=s(Ae,"Functional"),Ae.forEach(t),fe=s(V,` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),V.forEach(t),ee=h(_),C=r(_,"UL",{});var Z=i(C);B=r(Z,"LI",{});var Q=i(B);le=s(Q,"a single Tensor with "),Y=r(Q,"CODE",{});var Ue=i(Y);Ee=s(Ue,"input_ids"),Ue.forEach(t),ge=s(Q," only and nothing else: "),x=r(Q,"CODE",{});var xe=i(x);De=s(xe,"model(input_ids)"),xe.forEach(t),Q.forEach(t),de=h(Z),z=r(Z,"LI",{});var O=i(z);je=s(O,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),q=r(O,"CODE",{});var Se=i(q);Ve=s(Se,"model([input_ids, attention_mask])"),Se.forEach(t),_e=s(O," or "),S=r(O,"CODE",{});var Ze=i(S);Fe=s(Ze,"model([input_ids, attention_mask, token_type_ids])"),Ze.forEach(t),O.forEach(t),be=h(Z),U=r(Z,"LI",{});var te=i(U);re=s(te,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),P=r(te,"CODE",{});var Xe=i(P);Je=s(Xe,'model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),Xe.forEach(t),te.forEach(t),Z.forEach(t),ne=h(_),R=r(_,"P",{});var H=i(R);Ce=s(H,`Note that when creating models and layers with
`),I=r(H,"A",{href:!0,rel:!0});var Pe=i(I);Re=s(Pe,"subclassing"),Pe.forEach(t),ce=s(H,` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),H.forEach(t),this.h()},h(){u(I,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),u(I,"rel","nofollow")},m(_,j){g(_,d,j),e(d,y),e(d,m),e(m,f),e(d,T),g(_,l,j),g(_,c,j),e(c,J),e(J,ye),e(c,pe),e(c,W),e(W,ae),g(_,oe,j),g(_,D,j),e(D,Te),e(D,X),e(X,we),e(D,he),e(D,G),e(G,ve),e(D,ie),e(D,L),e(L,ke),e(D,me),e(D,N),e(N,Me),e(D,ue),e(D,A),e(A,$e),e(D,fe),g(_,ee,j),g(_,C,j),e(C,B),e(B,le),e(B,Y),e(Y,Ee),e(B,ge),e(B,x),e(x,De),e(C,de),e(C,z),e(z,je),e(z,q),e(q,Ve),e(z,_e),e(z,S),e(S,Fe),e(C,be),e(C,U),e(U,re),e(U,P),e(P,Je),g(_,ne,j),g(_,R,j),e(R,Ce),e(R,I),e(I,Re),e(R,ce)},d(_){_&&t(d),_&&t(l),_&&t(c),_&&t(oe),_&&t(D),_&&t(ee),_&&t(C),_&&t(ne),_&&t(R)}}}function _T(F){let d,y,m,f,T;return{c(){d=a("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),m=a("code"),f=n("Module"),T=n(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),m=r(c,"CODE",{});var J=i(m);f=s(J,"Module"),J.forEach(t),T=s(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,m),e(m,f),e(d,T)},d(l){l&&t(d)}}}function bT(F){let d,y,m,f,T;return f=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBURkRlYmVydGFWMkZvck1hc2tlZExNJTBBaW1wb3J0JTIwdGVuc29yZmxvdyUyMGFzJTIwdGYlMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJrYW1hbGtyYWolMkZkZWJlcnRhLXYyLXhsYXJnZSUyMiklMEFtb2RlbCUyMCUzRCUyMFRGRGViZXJ0YVYyRm9yTWFza2VkTE0uZnJvbV9wcmV0cmFpbmVkKCUyMmthbWFsa3JhaiUyRmRlYmVydGEtdjIteGxhcmdlJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMHRva2VuaXplciglMjJUaGUlMjBjYXBpdGFsJTIwb2YlMjBGcmFuY2UlMjBpcyUyMCU1Qk1BU0slNUQuJTIyJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJ0ZiUyMiklMEFsb2dpdHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cykubG9naXRzJTBBJTBBJTIzJTIwcmV0cmlldmUlMjBpbmRleCUyMG9mJTIwJTVCTUFTSyU1RCUwQW1hc2tfdG9rZW5faW5kZXglMjAlM0QlMjB0Zi53aGVyZSgoaW5wdXRzLmlucHV0X2lkcyUyMCUzRCUzRCUyMHRva2VuaXplci5tYXNrX3Rva2VuX2lkKSU1QjAlNUQpJTBBc2VsZWN0ZWRfbG9naXRzJTIwJTNEJTIwdGYuZ2F0aGVyX25kKGxvZ2l0cyU1QjAlNUQlMkMlMjBpbmRpY2VzJTNEbWFza190b2tlbl9pbmRleCklMEElMEFwcmVkaWN0ZWRfdG9rZW5faWQlMjAlM0QlMjB0Zi5tYXRoLmFyZ21heChzZWxlY3RlZF9sb2dpdHMlMkMlMjBheGlzJTNELTEp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, TFDebertaV2ForMaskedLM
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;kamalkraj/deberta-v2-xlarge&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFDebertaV2ForMaskedLM.from_pretrained(<span class="hljs-string">&quot;kamalkraj/deberta-v2-xlarge&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(<span class="hljs-string">&quot;The capital of France is [MASK].&quot;</span>, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># retrieve index of [MASK]</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>mask_token_index = tf.where((inputs.input_ids == tokenizer.mask_token_id)[<span class="hljs-number">0</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>selected_logits = tf.gather_nd(logits[<span class="hljs-number">0</span>], indices=mask_token_index)

<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_token_id = tf.math.argmax(selected_logits, axis=-<span class="hljs-number">1</span>)`}}),{c(){d=a("p"),y=n("Example:"),m=p(),w(f.$$.fragment)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Example:"),c.forEach(t),m=h(l),v(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,m,c),k(f,l,c),T=!0},p:Qe,i(l){T||(M(f.$$.fragment,l),T=!0)},o(l){$(f.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(m),E(f,l)}}}function yT(F){let d,y;return d=new Oe({props:{code:"bGFiZWxzJTIwJTNEJTIwdG9rZW5pemVyKCUyMlRoZSUyMGNhcGl0YWwlMjBvZiUyMEZyYW5jZSUyMGlzJTIwUGFyaXMuJTIyJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJ0ZiUyMiklNUIlMjJpbnB1dF9pZHMlMjIlNUQlMEElMjMlMjBtYXNrJTIwbGFiZWxzJTIwb2YlMjBub24tJTVCTUFTSyU1RCUyMHRva2VucyUwQWxhYmVscyUyMCUzRCUyMHRmLndoZXJlKGlucHV0cy5pbnB1dF9pZHMlMjAlM0QlM0QlMjB0b2tlbml6ZXIubWFza190b2tlbl9pZCUyQyUyMGxhYmVscyUyQyUyMC0xMDApJTBBJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzJTJDJTIwbGFiZWxzJTNEbGFiZWxzKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>labels = tokenizer(<span class="hljs-string">&quot;The capital of France is Paris.&quot;</span>, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)[<span class="hljs-string">&quot;input_ids&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># mask labels of non-[MASK] tokens</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>labels = tf.where(inputs.input_ids == tokenizer.mask_token_id, labels, -<span class="hljs-number">100</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs, labels=labels)`}}),{c(){w(d.$$.fragment)},l(m){v(d.$$.fragment,m)},m(m,f){k(d,m,f),y=!0},p:Qe,i(m){y||(M(d.$$.fragment,m),y=!0)},o(m){$(d.$$.fragment,m),y=!1},d(m){E(d,m)}}}function TT(F){let d,y,m,f,T,l,c,J,ye,pe,W,ae,oe,D,Te,X,we,he,G,ve,ie,L,ke,me,N,Me,ue,A,$e,fe,ee,C,B,le,Y,Ee,ge,x,De,de,z,je,q,Ve,_e,S,Fe,be,U,re,P,Je,ne,R,Ce,I,Re,ce;return{c(){d=a("p"),y=n("TensorFlow models and layers in "),m=a("code"),f=n("transformers"),T=n(" accept two formats as input:"),l=p(),c=a("ul"),J=a("li"),ye=n("having all inputs as keyword arguments (like PyTorch models), or"),pe=p(),W=a("li"),ae=n("having all inputs as a list, tuple or dict in the first positional argument."),oe=p(),D=a("p"),Te=n(`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),X=a("code"),we=n("model.fit()"),he=n(` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),G=a("code"),ve=n("model.fit()"),ie=n(` supports! If, however, you want to use the second
format outside of Keras methods like `),L=a("code"),ke=n("fit()"),me=n(" and "),N=a("code"),Me=n("predict()"),ue=n(`, such as when creating your own layers or models with
the Keras `),A=a("code"),$e=n("Functional"),fe=n(` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),ee=p(),C=a("ul"),B=a("li"),le=n("a single Tensor with "),Y=a("code"),Ee=n("input_ids"),ge=n(" only and nothing else: "),x=a("code"),De=n("model(input_ids)"),de=p(),z=a("li"),je=n(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),q=a("code"),Ve=n("model([input_ids, attention_mask])"),_e=n(" or "),S=a("code"),Fe=n("model([input_ids, attention_mask, token_type_ids])"),be=p(),U=a("li"),re=n(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),P=a("code"),Je=n('model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),ne=p(),R=a("p"),Ce=n(`Note that when creating models and layers with
`),I=a("a"),Re=n("subclassing"),ce=n(` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),this.h()},l(_){d=r(_,"P",{});var j=i(d);y=s(j,"TensorFlow models and layers in "),m=r(j,"CODE",{});var Ge=i(m);f=s(Ge,"transformers"),Ge.forEach(t),T=s(j," accept two formats as input:"),j.forEach(t),l=h(_),c=r(_,"UL",{});var se=i(c);J=r(se,"LI",{});var Be=i(J);ye=s(Be,"having all inputs as keyword arguments (like PyTorch models), or"),Be.forEach(t),pe=h(se),W=r(se,"LI",{});var Ie=i(W);ae=s(Ie,"having all inputs as a list, tuple or dict in the first positional argument."),Ie.forEach(t),se.forEach(t),oe=h(_),D=r(_,"P",{});var V=i(D);Te=s(V,`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),X=r(V,"CODE",{});var qe=i(X);we=s(qe,"model.fit()"),qe.forEach(t),he=s(V,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),G=r(V,"CODE",{});var Ne=i(G);ve=s(Ne,"model.fit()"),Ne.forEach(t),ie=s(V,` supports! If, however, you want to use the second
format outside of Keras methods like `),L=r(V,"CODE",{});var ze=i(L);ke=s(ze,"fit()"),ze.forEach(t),me=s(V," and "),N=r(V,"CODE",{});var We=i(N);Me=s(We,"predict()"),We.forEach(t),ue=s(V,`, such as when creating your own layers or models with
the Keras `),A=r(V,"CODE",{});var Ae=i(A);$e=s(Ae,"Functional"),Ae.forEach(t),fe=s(V,` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),V.forEach(t),ee=h(_),C=r(_,"UL",{});var Z=i(C);B=r(Z,"LI",{});var Q=i(B);le=s(Q,"a single Tensor with "),Y=r(Q,"CODE",{});var Ue=i(Y);Ee=s(Ue,"input_ids"),Ue.forEach(t),ge=s(Q," only and nothing else: "),x=r(Q,"CODE",{});var xe=i(x);De=s(xe,"model(input_ids)"),xe.forEach(t),Q.forEach(t),de=h(Z),z=r(Z,"LI",{});var O=i(z);je=s(O,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),q=r(O,"CODE",{});var Se=i(q);Ve=s(Se,"model([input_ids, attention_mask])"),Se.forEach(t),_e=s(O," or "),S=r(O,"CODE",{});var Ze=i(S);Fe=s(Ze,"model([input_ids, attention_mask, token_type_ids])"),Ze.forEach(t),O.forEach(t),be=h(Z),U=r(Z,"LI",{});var te=i(U);re=s(te,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),P=r(te,"CODE",{});var Xe=i(P);Je=s(Xe,'model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),Xe.forEach(t),te.forEach(t),Z.forEach(t),ne=h(_),R=r(_,"P",{});var H=i(R);Ce=s(H,`Note that when creating models and layers with
`),I=r(H,"A",{href:!0,rel:!0});var Pe=i(I);Re=s(Pe,"subclassing"),Pe.forEach(t),ce=s(H,` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),H.forEach(t),this.h()},h(){u(I,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),u(I,"rel","nofollow")},m(_,j){g(_,d,j),e(d,y),e(d,m),e(m,f),e(d,T),g(_,l,j),g(_,c,j),e(c,J),e(J,ye),e(c,pe),e(c,W),e(W,ae),g(_,oe,j),g(_,D,j),e(D,Te),e(D,X),e(X,we),e(D,he),e(D,G),e(G,ve),e(D,ie),e(D,L),e(L,ke),e(D,me),e(D,N),e(N,Me),e(D,ue),e(D,A),e(A,$e),e(D,fe),g(_,ee,j),g(_,C,j),e(C,B),e(B,le),e(B,Y),e(Y,Ee),e(B,ge),e(B,x),e(x,De),e(C,de),e(C,z),e(z,je),e(z,q),e(q,Ve),e(z,_e),e(z,S),e(S,Fe),e(C,be),e(C,U),e(U,re),e(U,P),e(P,Je),g(_,ne,j),g(_,R,j),e(R,Ce),e(R,I),e(I,Re),e(R,ce)},d(_){_&&t(d),_&&t(l),_&&t(c),_&&t(oe),_&&t(D),_&&t(ee),_&&t(C),_&&t(ne),_&&t(R)}}}function wT(F){let d,y,m,f,T;return{c(){d=a("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),m=a("code"),f=n("Module"),T=n(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),m=r(c,"CODE",{});var J=i(m);f=s(J,"Module"),J.forEach(t),T=s(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,m),e(m,f),e(d,T)},d(l){l&&t(d)}}}function vT(F){let d,y,m,f,T;return f=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBURkRlYmVydGFWMkZvclNlcXVlbmNlQ2xhc3NpZmljYXRpb24lMEFpbXBvcnQlMjB0ZW5zb3JmbG93JTIwYXMlMjB0ZiUwQSUwQXRva2VuaXplciUyMCUzRCUyMEF1dG9Ub2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKCUyMmthbWFsa3JhaiUyRmRlYmVydGEtdjIteGxhcmdlJTIyKSUwQW1vZGVsJTIwJTNEJTIwVEZEZWJlcnRhVjJGb3JTZXF1ZW5jZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJrYW1hbGtyYWolMkZkZWJlcnRhLXYyLXhsYXJnZSUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjB0b2tlbml6ZXIoJTIySGVsbG8lMkMlMjBteSUyMGRvZyUyMGlzJTIwY3V0ZSUyMiUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIydGYlMjIpJTBBJTBBbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cyUwQSUwQXByZWRpY3RlZF9jbGFzc19pZCUyMCUzRCUyMGludCh0Zi5tYXRoLmFyZ21heChsb2dpdHMlMkMlMjBheGlzJTNELTEpJTVCMCU1RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, TFDebertaV2ForSequenceClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;kamalkraj/deberta-v2-xlarge&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFDebertaV2ForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;kamalkraj/deberta-v2-xlarge&quot;</span>)

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

<span class="hljs-meta">&gt;&gt;&gt; </span>logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_class_id = <span class="hljs-built_in">int</span>(tf.math.argmax(logits, axis=-<span class="hljs-number">1</span>)[<span class="hljs-number">0</span>])`}}),{c(){d=a("p"),y=n("Example:"),m=p(),w(f.$$.fragment)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Example:"),c.forEach(t),m=h(l),v(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,m,c),k(f,l,c),T=!0},p:Qe,i(l){T||(M(f.$$.fragment,l),T=!0)},o(l){$(f.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(m),E(f,l)}}}function kT(F){let d,y;return d=new Oe({props:{code:"JTIzJTIwVG8lMjB0cmFpbiUyMGElMjBtb2RlbCUyMG9uJTIwJTYwbnVtX2xhYmVscyU2MCUyMGNsYXNzZXMlMkMlMjB5b3UlMjBjYW4lMjBwYXNzJTIwJTYwbnVtX2xhYmVscyUzRG51bV9sYWJlbHMlNjAlMjB0byUyMCU2MC5mcm9tX3ByZXRyYWluZWQoLi4uKSU2MCUwQW51bV9sYWJlbHMlMjAlM0QlMjBsZW4obW9kZWwuY29uZmlnLmlkMmxhYmVsKSUwQW1vZGVsJTIwJTNEJTIwVEZEZWJlcnRhVjJGb3JTZXF1ZW5jZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJrYW1hbGtyYWolMkZkZWJlcnRhLXYyLXhsYXJnZSUyMiUyQyUyMG51bV9sYWJlbHMlM0RudW1fbGFiZWxzKSUwQSUwQWxhYmVscyUyMCUzRCUyMHRmLmNvbnN0YW50KDEpJTBBbG9zcyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzJTJDJTIwbGFiZWxzJTNEbGFiZWxzKS5sb3Nz",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># To train a model on `num_labels` classes, you can pass `num_labels=num_labels` to `.from_pretrained(...)`</span>\n<span class="hljs-meta">&gt;&gt;&gt; </span>num_labels = <span class="hljs-built_in">len</span>(model.config.id2label)\n<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFDebertaV2ForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;kamalkraj/deberta-v2-xlarge&quot;</span>, num_labels=num_labels)\n\n<span class="hljs-meta">&gt;&gt;&gt; </span>labels = tf.constant(<span class="hljs-number">1</span>)\n<span class="hljs-meta">&gt;&gt;&gt; </span>loss = model(**inputs, labels=labels).loss'}}),{c(){w(d.$$.fragment)},l(m){v(d.$$.fragment,m)},m(m,f){k(d,m,f),y=!0},p:Qe,i(m){y||(M(d.$$.fragment,m),y=!0)},o(m){$(d.$$.fragment,m),y=!1},d(m){E(d,m)}}}function MT(F){let d,y,m,f,T,l,c,J,ye,pe,W,ae,oe,D,Te,X,we,he,G,ve,ie,L,ke,me,N,Me,ue,A,$e,fe,ee,C,B,le,Y,Ee,ge,x,De,de,z,je,q,Ve,_e,S,Fe,be,U,re,P,Je,ne,R,Ce,I,Re,ce;return{c(){d=a("p"),y=n("TensorFlow models and layers in "),m=a("code"),f=n("transformers"),T=n(" accept two formats as input:"),l=p(),c=a("ul"),J=a("li"),ye=n("having all inputs as keyword arguments (like PyTorch models), or"),pe=p(),W=a("li"),ae=n("having all inputs as a list, tuple or dict in the first positional argument."),oe=p(),D=a("p"),Te=n(`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),X=a("code"),we=n("model.fit()"),he=n(` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),G=a("code"),ve=n("model.fit()"),ie=n(` supports! If, however, you want to use the second
format outside of Keras methods like `),L=a("code"),ke=n("fit()"),me=n(" and "),N=a("code"),Me=n("predict()"),ue=n(`, such as when creating your own layers or models with
the Keras `),A=a("code"),$e=n("Functional"),fe=n(` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),ee=p(),C=a("ul"),B=a("li"),le=n("a single Tensor with "),Y=a("code"),Ee=n("input_ids"),ge=n(" only and nothing else: "),x=a("code"),De=n("model(input_ids)"),de=p(),z=a("li"),je=n(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),q=a("code"),Ve=n("model([input_ids, attention_mask])"),_e=n(" or "),S=a("code"),Fe=n("model([input_ids, attention_mask, token_type_ids])"),be=p(),U=a("li"),re=n(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),P=a("code"),Je=n('model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),ne=p(),R=a("p"),Ce=n(`Note that when creating models and layers with
`),I=a("a"),Re=n("subclassing"),ce=n(` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),this.h()},l(_){d=r(_,"P",{});var j=i(d);y=s(j,"TensorFlow models and layers in "),m=r(j,"CODE",{});var Ge=i(m);f=s(Ge,"transformers"),Ge.forEach(t),T=s(j," accept two formats as input:"),j.forEach(t),l=h(_),c=r(_,"UL",{});var se=i(c);J=r(se,"LI",{});var Be=i(J);ye=s(Be,"having all inputs as keyword arguments (like PyTorch models), or"),Be.forEach(t),pe=h(se),W=r(se,"LI",{});var Ie=i(W);ae=s(Ie,"having all inputs as a list, tuple or dict in the first positional argument."),Ie.forEach(t),se.forEach(t),oe=h(_),D=r(_,"P",{});var V=i(D);Te=s(V,`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),X=r(V,"CODE",{});var qe=i(X);we=s(qe,"model.fit()"),qe.forEach(t),he=s(V,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),G=r(V,"CODE",{});var Ne=i(G);ve=s(Ne,"model.fit()"),Ne.forEach(t),ie=s(V,` supports! If, however, you want to use the second
format outside of Keras methods like `),L=r(V,"CODE",{});var ze=i(L);ke=s(ze,"fit()"),ze.forEach(t),me=s(V," and "),N=r(V,"CODE",{});var We=i(N);Me=s(We,"predict()"),We.forEach(t),ue=s(V,`, such as when creating your own layers or models with
the Keras `),A=r(V,"CODE",{});var Ae=i(A);$e=s(Ae,"Functional"),Ae.forEach(t),fe=s(V,` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),V.forEach(t),ee=h(_),C=r(_,"UL",{});var Z=i(C);B=r(Z,"LI",{});var Q=i(B);le=s(Q,"a single Tensor with "),Y=r(Q,"CODE",{});var Ue=i(Y);Ee=s(Ue,"input_ids"),Ue.forEach(t),ge=s(Q," only and nothing else: "),x=r(Q,"CODE",{});var xe=i(x);De=s(xe,"model(input_ids)"),xe.forEach(t),Q.forEach(t),de=h(Z),z=r(Z,"LI",{});var O=i(z);je=s(O,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),q=r(O,"CODE",{});var Se=i(q);Ve=s(Se,"model([input_ids, attention_mask])"),Se.forEach(t),_e=s(O," or "),S=r(O,"CODE",{});var Ze=i(S);Fe=s(Ze,"model([input_ids, attention_mask, token_type_ids])"),Ze.forEach(t),O.forEach(t),be=h(Z),U=r(Z,"LI",{});var te=i(U);re=s(te,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),P=r(te,"CODE",{});var Xe=i(P);Je=s(Xe,'model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),Xe.forEach(t),te.forEach(t),Z.forEach(t),ne=h(_),R=r(_,"P",{});var H=i(R);Ce=s(H,`Note that when creating models and layers with
`),I=r(H,"A",{href:!0,rel:!0});var Pe=i(I);Re=s(Pe,"subclassing"),Pe.forEach(t),ce=s(H,` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),H.forEach(t),this.h()},h(){u(I,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),u(I,"rel","nofollow")},m(_,j){g(_,d,j),e(d,y),e(d,m),e(m,f),e(d,T),g(_,l,j),g(_,c,j),e(c,J),e(J,ye),e(c,pe),e(c,W),e(W,ae),g(_,oe,j),g(_,D,j),e(D,Te),e(D,X),e(X,we),e(D,he),e(D,G),e(G,ve),e(D,ie),e(D,L),e(L,ke),e(D,me),e(D,N),e(N,Me),e(D,ue),e(D,A),e(A,$e),e(D,fe),g(_,ee,j),g(_,C,j),e(C,B),e(B,le),e(B,Y),e(Y,Ee),e(B,ge),e(B,x),e(x,De),e(C,de),e(C,z),e(z,je),e(z,q),e(q,Ve),e(z,_e),e(z,S),e(S,Fe),e(C,be),e(C,U),e(U,re),e(U,P),e(P,Je),g(_,ne,j),g(_,R,j),e(R,Ce),e(R,I),e(I,Re),e(R,ce)},d(_){_&&t(d),_&&t(l),_&&t(c),_&&t(oe),_&&t(D),_&&t(ee),_&&t(C),_&&t(ne),_&&t(R)}}}function $T(F){let d,y,m,f,T;return{c(){d=a("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),m=a("code"),f=n("Module"),T=n(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),m=r(c,"CODE",{});var J=i(m);f=s(J,"Module"),J.forEach(t),T=s(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,m),e(m,f),e(d,T)},d(l){l&&t(d)}}}function ET(F){let d,y,m,f,T;return f=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBURkRlYmVydGFWMkZvclRva2VuQ2xhc3NpZmljYXRpb24lMEFpbXBvcnQlMjB0ZW5zb3JmbG93JTIwYXMlMjB0ZiUwQSUwQXRva2VuaXplciUyMCUzRCUyMEF1dG9Ub2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKCUyMmthbWFsa3JhaiUyRmRlYmVydGEtdjIteGxhcmdlJTIyKSUwQW1vZGVsJTIwJTNEJTIwVEZEZWJlcnRhVjJGb3JUb2tlbkNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJrYW1hbGtyYWolMkZkZWJlcnRhLXYyLXhsYXJnZSUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjB0b2tlbml6ZXIoJTBBJTIwJTIwJTIwJTIwJTIySHVnZ2luZ0ZhY2UlMjBpcyUyMGElMjBjb21wYW55JTIwYmFzZWQlMjBpbiUyMFBhcmlzJTIwYW5kJTIwTmV3JTIwWW9yayUyMiUyQyUyMGFkZF9zcGVjaWFsX3Rva2VucyUzREZhbHNlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJ0ZiUyMiUwQSklMEElMEFsb2dpdHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cykubG9naXRzJTBBcHJlZGljdGVkX3Rva2VuX2NsYXNzX2lkcyUyMCUzRCUyMHRmLm1hdGguYXJnbWF4KGxvZ2l0cyUyQyUyMGF4aXMlM0QtMSklMEElMEElMjMlMjBOb3RlJTIwdGhhdCUyMHRva2VucyUyMGFyZSUyMGNsYXNzaWZpZWQlMjByYXRoZXIlMjB0aGVuJTIwaW5wdXQlMjB3b3JkcyUyMHdoaWNoJTIwbWVhbnMlMjB0aGF0JTBBJTIzJTIwdGhlcmUlMjBtaWdodCUyMGJlJTIwbW9yZSUyMHByZWRpY3RlZCUyMHRva2VuJTIwY2xhc3NlcyUyMHRoYW4lMjB3b3Jkcy4lMEElMjMlMjBNdWx0aXBsZSUyMHRva2VuJTIwY2xhc3NlcyUyMG1pZ2h0JTIwYWNjb3VudCUyMGZvciUyMHRoZSUyMHNhbWUlMjB3b3JkJTBBcHJlZGljdGVkX3Rva2Vuc19jbGFzc2VzJTIwJTNEJTIwJTVCbW9kZWwuY29uZmlnLmlkMmxhYmVsJTVCdCU1RCUyMGZvciUyMHQlMjBpbiUyMHByZWRpY3RlZF90b2tlbl9jbGFzc19pZHMlNUIwJTVELm51bXB5KCkudG9saXN0KCklNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, TFDebertaV2ForTokenClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;kamalkraj/deberta-v2-xlarge&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFDebertaV2ForTokenClassification.from_pretrained(<span class="hljs-string">&quot;kamalkraj/deberta-v2-xlarge&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;HuggingFace is a company based in Paris and New York&quot;</span>, add_special_tokens=<span class="hljs-literal">False</span>, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>logits = model(**inputs).logits
<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_token_class_ids = tf.math.argmax(logits, axis=-<span class="hljs-number">1</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Note that tokens are classified rather then input words which means that</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># there might be more predicted token classes than words.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Multiple token classes might account for the same word</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_tokens_classes = [model.config.id2label[t] <span class="hljs-keyword">for</span> t <span class="hljs-keyword">in</span> predicted_token_class_ids[<span class="hljs-number">0</span>].numpy().tolist()]`}}),{c(){d=a("p"),y=n("Example:"),m=p(),w(f.$$.fragment)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Example:"),c.forEach(t),m=h(l),v(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,m,c),k(f,l,c),T=!0},p:Qe,i(l){T||(M(f.$$.fragment,l),T=!0)},o(l){$(f.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(m),E(f,l)}}}function DT(F){let d,y;return d=new Oe({props:{code:"bGFiZWxzJTIwJTNEJTIwcHJlZGljdGVkX3Rva2VuX2NsYXNzX2lkcyUwQWxvc3MlMjAlM0QlMjB0Zi5tYXRoLnJlZHVjZV9tZWFuKG1vZGVsKCoqaW5wdXRzJTJDJTIwbGFiZWxzJTNEbGFiZWxzKS5sb3NzKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>labels = predicted_token_class_ids
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = tf.math.reduce_mean(model(**inputs, labels=labels).loss)`}}),{c(){w(d.$$.fragment)},l(m){v(d.$$.fragment,m)},m(m,f){k(d,m,f),y=!0},p:Qe,i(m){y||(M(d.$$.fragment,m),y=!0)},o(m){$(d.$$.fragment,m),y=!1},d(m){E(d,m)}}}function jT(F){let d,y,m,f,T,l,c,J,ye,pe,W,ae,oe,D,Te,X,we,he,G,ve,ie,L,ke,me,N,Me,ue,A,$e,fe,ee,C,B,le,Y,Ee,ge,x,De,de,z,je,q,Ve,_e,S,Fe,be,U,re,P,Je,ne,R,Ce,I,Re,ce;return{c(){d=a("p"),y=n("TensorFlow models and layers in "),m=a("code"),f=n("transformers"),T=n(" accept two formats as input:"),l=p(),c=a("ul"),J=a("li"),ye=n("having all inputs as keyword arguments (like PyTorch models), or"),pe=p(),W=a("li"),ae=n("having all inputs as a list, tuple or dict in the first positional argument."),oe=p(),D=a("p"),Te=n(`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),X=a("code"),we=n("model.fit()"),he=n(` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),G=a("code"),ve=n("model.fit()"),ie=n(` supports! If, however, you want to use the second
format outside of Keras methods like `),L=a("code"),ke=n("fit()"),me=n(" and "),N=a("code"),Me=n("predict()"),ue=n(`, such as when creating your own layers or models with
the Keras `),A=a("code"),$e=n("Functional"),fe=n(` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),ee=p(),C=a("ul"),B=a("li"),le=n("a single Tensor with "),Y=a("code"),Ee=n("input_ids"),ge=n(" only and nothing else: "),x=a("code"),De=n("model(input_ids)"),de=p(),z=a("li"),je=n(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),q=a("code"),Ve=n("model([input_ids, attention_mask])"),_e=n(" or "),S=a("code"),Fe=n("model([input_ids, attention_mask, token_type_ids])"),be=p(),U=a("li"),re=n(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),P=a("code"),Je=n('model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),ne=p(),R=a("p"),Ce=n(`Note that when creating models and layers with
`),I=a("a"),Re=n("subclassing"),ce=n(` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),this.h()},l(_){d=r(_,"P",{});var j=i(d);y=s(j,"TensorFlow models and layers in "),m=r(j,"CODE",{});var Ge=i(m);f=s(Ge,"transformers"),Ge.forEach(t),T=s(j," accept two formats as input:"),j.forEach(t),l=h(_),c=r(_,"UL",{});var se=i(c);J=r(se,"LI",{});var Be=i(J);ye=s(Be,"having all inputs as keyword arguments (like PyTorch models), or"),Be.forEach(t),pe=h(se),W=r(se,"LI",{});var Ie=i(W);ae=s(Ie,"having all inputs as a list, tuple or dict in the first positional argument."),Ie.forEach(t),se.forEach(t),oe=h(_),D=r(_,"P",{});var V=i(D);Te=s(V,`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),X=r(V,"CODE",{});var qe=i(X);we=s(qe,"model.fit()"),qe.forEach(t),he=s(V,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),G=r(V,"CODE",{});var Ne=i(G);ve=s(Ne,"model.fit()"),Ne.forEach(t),ie=s(V,` supports! If, however, you want to use the second
format outside of Keras methods like `),L=r(V,"CODE",{});var ze=i(L);ke=s(ze,"fit()"),ze.forEach(t),me=s(V," and "),N=r(V,"CODE",{});var We=i(N);Me=s(We,"predict()"),We.forEach(t),ue=s(V,`, such as when creating your own layers or models with
the Keras `),A=r(V,"CODE",{});var Ae=i(A);$e=s(Ae,"Functional"),Ae.forEach(t),fe=s(V,` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),V.forEach(t),ee=h(_),C=r(_,"UL",{});var Z=i(C);B=r(Z,"LI",{});var Q=i(B);le=s(Q,"a single Tensor with "),Y=r(Q,"CODE",{});var Ue=i(Y);Ee=s(Ue,"input_ids"),Ue.forEach(t),ge=s(Q," only and nothing else: "),x=r(Q,"CODE",{});var xe=i(x);De=s(xe,"model(input_ids)"),xe.forEach(t),Q.forEach(t),de=h(Z),z=r(Z,"LI",{});var O=i(z);je=s(O,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),q=r(O,"CODE",{});var Se=i(q);Ve=s(Se,"model([input_ids, attention_mask])"),Se.forEach(t),_e=s(O," or "),S=r(O,"CODE",{});var Ze=i(S);Fe=s(Ze,"model([input_ids, attention_mask, token_type_ids])"),Ze.forEach(t),O.forEach(t),be=h(Z),U=r(Z,"LI",{});var te=i(U);re=s(te,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),P=r(te,"CODE",{});var Xe=i(P);Je=s(Xe,'model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),Xe.forEach(t),te.forEach(t),Z.forEach(t),ne=h(_),R=r(_,"P",{});var H=i(R);Ce=s(H,`Note that when creating models and layers with
`),I=r(H,"A",{href:!0,rel:!0});var Pe=i(I);Re=s(Pe,"subclassing"),Pe.forEach(t),ce=s(H,` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),H.forEach(t),this.h()},h(){u(I,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),u(I,"rel","nofollow")},m(_,j){g(_,d,j),e(d,y),e(d,m),e(m,f),e(d,T),g(_,l,j),g(_,c,j),e(c,J),e(J,ye),e(c,pe),e(c,W),e(W,ae),g(_,oe,j),g(_,D,j),e(D,Te),e(D,X),e(X,we),e(D,he),e(D,G),e(G,ve),e(D,ie),e(D,L),e(L,ke),e(D,me),e(D,N),e(N,Me),e(D,ue),e(D,A),e(A,$e),e(D,fe),g(_,ee,j),g(_,C,j),e(C,B),e(B,le),e(B,Y),e(Y,Ee),e(B,ge),e(B,x),e(x,De),e(C,de),e(C,z),e(z,je),e(z,q),e(q,Ve),e(z,_e),e(z,S),e(S,Fe),e(C,be),e(C,U),e(U,re),e(U,P),e(P,Je),g(_,ne,j),g(_,R,j),e(R,Ce),e(R,I),e(I,Re),e(R,ce)},d(_){_&&t(d),_&&t(l),_&&t(c),_&&t(oe),_&&t(D),_&&t(ee),_&&t(C),_&&t(ne),_&&t(R)}}}function VT(F){let d,y,m,f,T;return{c(){d=a("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),m=a("code"),f=n("Module"),T=n(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),m=r(c,"CODE",{});var J=i(m);f=s(J,"Module"),J.forEach(t),T=s(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,m),e(m,f),e(d,T)},d(l){l&&t(d)}}}function FT(F){let d,y,m,f,T;return f=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBURkRlYmVydGFWMkZvclF1ZXN0aW9uQW5zd2VyaW5nJTBBaW1wb3J0JTIwdGVuc29yZmxvdyUyMGFzJTIwdGYlMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJrYW1hbGtyYWolMkZkZWJlcnRhLXYyLXhsYXJnZSUyMiklMEFtb2RlbCUyMCUzRCUyMFRGRGViZXJ0YVYyRm9yUXVlc3Rpb25BbnN3ZXJpbmcuZnJvbV9wcmV0cmFpbmVkKCUyMmthbWFsa3JhaiUyRmRlYmVydGEtdjIteGxhcmdlJTIyKSUwQSUwQXF1ZXN0aW9uJTJDJTIwdGV4dCUyMCUzRCUyMCUyMldobyUyMHdhcyUyMEppbSUyMEhlbnNvbiUzRiUyMiUyQyUyMCUyMkppbSUyMEhlbnNvbiUyMHdhcyUyMGElMjBuaWNlJTIwcHVwcGV0JTIyJTBBJTBBaW5wdXRzJTIwJTNEJTIwdG9rZW5pemVyKHF1ZXN0aW9uJTJDJTIwdGV4dCUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIydGYlMjIpJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQSUwQWFuc3dlcl9zdGFydF9pbmRleCUyMCUzRCUyMGludCh0Zi5tYXRoLmFyZ21heChvdXRwdXRzLnN0YXJ0X2xvZ2l0cyUyQyUyMGF4aXMlM0QtMSklNUIwJTVEKSUwQWFuc3dlcl9lbmRfaW5kZXglMjAlM0QlMjBpbnQodGYubWF0aC5hcmdtYXgob3V0cHV0cy5lbmRfbG9naXRzJTJDJTIwYXhpcyUzRC0xKSU1QjAlNUQpJTBBJTBBcHJlZGljdF9hbnN3ZXJfdG9rZW5zJTIwJTNEJTIwaW5wdXRzLmlucHV0X2lkcyU1QjAlMkMlMjBhbnN3ZXJfc3RhcnRfaW5kZXglMjAlM0ElMjBhbnN3ZXJfZW5kX2luZGV4JTIwJTJCJTIwMSU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, TFDebertaV2ForQuestionAnswering
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;kamalkraj/deberta-v2-xlarge&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFDebertaV2ForQuestionAnswering.from_pretrained(<span class="hljs-string">&quot;kamalkraj/deberta-v2-xlarge&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>question, text = <span class="hljs-string">&quot;Who was Jim Henson?&quot;</span>, <span class="hljs-string">&quot;Jim Henson was a nice puppet&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(question, text, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)

<span class="hljs-meta">&gt;&gt;&gt; </span>answer_start_index = <span class="hljs-built_in">int</span>(tf.math.argmax(outputs.start_logits, axis=-<span class="hljs-number">1</span>)[<span class="hljs-number">0</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>answer_end_index = <span class="hljs-built_in">int</span>(tf.math.argmax(outputs.end_logits, axis=-<span class="hljs-number">1</span>)[<span class="hljs-number">0</span>])

<span class="hljs-meta">&gt;&gt;&gt; </span>predict_answer_tokens = inputs.input_ids[<span class="hljs-number">0</span>, answer_start_index : answer_end_index + <span class="hljs-number">1</span>]`}}),{c(){d=a("p"),y=n("Example:"),m=p(),w(f.$$.fragment)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Example:"),c.forEach(t),m=h(l),v(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,m,c),k(f,l,c),T=!0},p:Qe,i(l){T||(M(f.$$.fragment,l),T=!0)},o(l){$(f.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(m),E(f,l)}}}function JT(F){let d,y;return d=new Oe({props:{code:"JTIzJTIwdGFyZ2V0JTIwaXMlMjAlMjJuaWNlJTIwcHVwcGV0JTIyJTBBdGFyZ2V0X3N0YXJ0X2luZGV4JTIwJTNEJTIwdGYuY29uc3RhbnQoJTVCMTQlNUQpJTBBdGFyZ2V0X2VuZF9pbmRleCUyMCUzRCUyMHRmLmNvbnN0YW50KCU1QjE1JTVEKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyUyQyUyMHN0YXJ0X3Bvc2l0aW9ucyUzRHRhcmdldF9zdGFydF9pbmRleCUyQyUyMGVuZF9wb3NpdGlvbnMlM0R0YXJnZXRfZW5kX2luZGV4KSUwQWxvc3MlMjAlM0QlMjB0Zi5tYXRoLnJlZHVjZV9tZWFuKG91dHB1dHMubG9zcyk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># target is &quot;nice puppet&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>target_start_index = tf.constant([<span class="hljs-number">14</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>target_end_index = tf.constant([<span class="hljs-number">15</span>])

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs, start_positions=target_start_index, end_positions=target_end_index)
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = tf.math.reduce_mean(outputs.loss)`}}),{c(){w(d.$$.fragment)},l(m){v(d.$$.fragment,m)},m(m,f){k(d,m,f),y=!0},p:Qe,i(m){y||(M(d.$$.fragment,m),y=!0)},o(m){$(d.$$.fragment,m),y=!1},d(m){E(d,m)}}}function CT(F){let d,y,m,f,T,l,c,J,ye,pe,W,ae,oe,D,Te,X,we,he,G,ve,ie,L,ke,me,N,Me,ue,A,$e,fe,ee,C,B,le,Y,Ee,ge,x,De,de,z,je,q,Ve,_e,S,Fe,be,U,re,P,Je,ne,R,Ce,I,Re,ce;return{c(){d=a("p"),y=n("TensorFlow models and layers in "),m=a("code"),f=n("transformers"),T=n(" accept two formats as input:"),l=p(),c=a("ul"),J=a("li"),ye=n("having all inputs as keyword arguments (like PyTorch models), or"),pe=p(),W=a("li"),ae=n("having all inputs as a list, tuple or dict in the first positional argument."),oe=p(),D=a("p"),Te=n(`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),X=a("code"),we=n("model.fit()"),he=n(` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),G=a("code"),ve=n("model.fit()"),ie=n(` supports! If, however, you want to use the second
format outside of Keras methods like `),L=a("code"),ke=n("fit()"),me=n(" and "),N=a("code"),Me=n("predict()"),ue=n(`, such as when creating your own layers or models with
the Keras `),A=a("code"),$e=n("Functional"),fe=n(` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),ee=p(),C=a("ul"),B=a("li"),le=n("a single Tensor with "),Y=a("code"),Ee=n("input_ids"),ge=n(" only and nothing else: "),x=a("code"),De=n("model(input_ids)"),de=p(),z=a("li"),je=n(`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),q=a("code"),Ve=n("model([input_ids, attention_mask])"),_e=n(" or "),S=a("code"),Fe=n("model([input_ids, attention_mask, token_type_ids])"),be=p(),U=a("li"),re=n(`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),P=a("code"),Je=n('model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),ne=p(),R=a("p"),Ce=n(`Note that when creating models and layers with
`),I=a("a"),Re=n("subclassing"),ce=n(` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),this.h()},l(_){d=r(_,"P",{});var j=i(d);y=s(j,"TensorFlow models and layers in "),m=r(j,"CODE",{});var Ge=i(m);f=s(Ge,"transformers"),Ge.forEach(t),T=s(j," accept two formats as input:"),j.forEach(t),l=h(_),c=r(_,"UL",{});var se=i(c);J=r(se,"LI",{});var Be=i(J);ye=s(Be,"having all inputs as keyword arguments (like PyTorch models), or"),Be.forEach(t),pe=h(se),W=r(se,"LI",{});var Ie=i(W);ae=s(Ie,"having all inputs as a list, tuple or dict in the first positional argument."),Ie.forEach(t),se.forEach(t),oe=h(_),D=r(_,"P",{});var V=i(D);Te=s(V,`The reason the second format is supported is that Keras methods prefer this format when passing inputs to models
and layers. Because of this support, when using methods like `),X=r(V,"CODE",{});var qe=i(X);we=s(qe,"model.fit()"),qe.forEach(t),he=s(V,` things should \u201Cjust work\u201D for you - just
pass your inputs and labels in any format that `),G=r(V,"CODE",{});var Ne=i(G);ve=s(Ne,"model.fit()"),Ne.forEach(t),ie=s(V,` supports! If, however, you want to use the second
format outside of Keras methods like `),L=r(V,"CODE",{});var ze=i(L);ke=s(ze,"fit()"),ze.forEach(t),me=s(V," and "),N=r(V,"CODE",{});var We=i(N);Me=s(We,"predict()"),We.forEach(t),ue=s(V,`, such as when creating your own layers or models with
the Keras `),A=r(V,"CODE",{});var Ae=i(A);$e=s(Ae,"Functional"),Ae.forEach(t),fe=s(V,` API, there are three possibilities you can use to gather all the input Tensors in the first
positional argument:`),V.forEach(t),ee=h(_),C=r(_,"UL",{});var Z=i(C);B=r(Z,"LI",{});var Q=i(B);le=s(Q,"a single Tensor with "),Y=r(Q,"CODE",{});var Ue=i(Y);Ee=s(Ue,"input_ids"),Ue.forEach(t),ge=s(Q," only and nothing else: "),x=r(Q,"CODE",{});var xe=i(x);De=s(xe,"model(input_ids)"),xe.forEach(t),Q.forEach(t),de=h(Z),z=r(Z,"LI",{});var O=i(z);je=s(O,`a list of varying length with one or several input Tensors IN THE ORDER given in the docstring:
`),q=r(O,"CODE",{});var Se=i(q);Ve=s(Se,"model([input_ids, attention_mask])"),Se.forEach(t),_e=s(O," or "),S=r(O,"CODE",{});var Ze=i(S);Fe=s(Ze,"model([input_ids, attention_mask, token_type_ids])"),Ze.forEach(t),O.forEach(t),be=h(Z),U=r(Z,"LI",{});var te=i(U);re=s(te,`a dictionary with one or several input Tensors associated to the input names given in the docstring:
`),P=r(te,"CODE",{});var Xe=i(P);Je=s(Xe,'model({"input_ids": input_ids, "token_type_ids": token_type_ids})'),Xe.forEach(t),te.forEach(t),Z.forEach(t),ne=h(_),R=r(_,"P",{});var H=i(R);Ce=s(H,`Note that when creating models and layers with
`),I=r(H,"A",{href:!0,rel:!0});var Pe=i(I);Re=s(Pe,"subclassing"),Pe.forEach(t),ce=s(H,` then you don\u2019t need to worry
about any of this, as you can just pass inputs like you would to any other Python function!`),H.forEach(t),this.h()},h(){u(I,"href","https://keras.io/guides/making_new_layers_and_models_via_subclassing/"),u(I,"rel","nofollow")},m(_,j){g(_,d,j),e(d,y),e(d,m),e(m,f),e(d,T),g(_,l,j),g(_,c,j),e(c,J),e(J,ye),e(c,pe),e(c,W),e(W,ae),g(_,oe,j),g(_,D,j),e(D,Te),e(D,X),e(X,we),e(D,he),e(D,G),e(G,ve),e(D,ie),e(D,L),e(L,ke),e(D,me),e(D,N),e(N,Me),e(D,ue),e(D,A),e(A,$e),e(D,fe),g(_,ee,j),g(_,C,j),e(C,B),e(B,le),e(B,Y),e(Y,Ee),e(B,ge),e(B,x),e(x,De),e(C,de),e(C,z),e(z,je),e(z,q),e(q,Ve),e(z,_e),e(z,S),e(S,Fe),e(C,be),e(C,U),e(U,re),e(U,P),e(P,Je),g(_,ne,j),g(_,R,j),e(R,Ce),e(R,I),e(I,Re),e(R,ce)},d(_){_&&t(d),_&&t(l),_&&t(c),_&&t(oe),_&&t(D),_&&t(ee),_&&t(C),_&&t(ne),_&&t(R)}}}function RT(F){let d,y,m,f,T;return{c(){d=a("p"),y=n("Although the recipe for forward pass needs to be defined within this function, one should call the "),m=a("code"),f=n("Module"),T=n(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Although the recipe for forward pass needs to be defined within this function, one should call the "),m=r(c,"CODE",{});var J=i(m);f=s(J,"Module"),J.forEach(t),T=s(c,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),c.forEach(t)},m(l,c){g(l,d,c),e(d,y),e(d,m),e(m,f),e(d,T)},d(l){l&&t(d)}}}function BT(F){let d,y,m,f,T;return f=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBURkRlYmVydGFWMkZvck11bHRpcGxlQ2hvaWNlJTBBaW1wb3J0JTIwdGVuc29yZmxvdyUyMGFzJTIwdGYlMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJrYW1hbGtyYWolMkZkZWJlcnRhLXYyLXhsYXJnZSUyMiklMEFtb2RlbCUyMCUzRCUyMFRGRGViZXJ0YVYyRm9yTXVsdGlwbGVDaG9pY2UuZnJvbV9wcmV0cmFpbmVkKCUyMmthbWFsa3JhaiUyRmRlYmVydGEtdjIteGxhcmdlJTIyKSUwQSUwQXByb21wdCUyMCUzRCUyMCUyMkluJTIwSXRhbHklMkMlMjBwaXp6YSUyMHNlcnZlZCUyMGluJTIwZm9ybWFsJTIwc2V0dGluZ3MlMkMlMjBzdWNoJTIwYXMlMjBhdCUyMGElMjByZXN0YXVyYW50JTJDJTIwaXMlMjBwcmVzZW50ZWQlMjB1bnNsaWNlZC4lMjIlMEFjaG9pY2UwJTIwJTNEJTIwJTIySXQlMjBpcyUyMGVhdGVuJTIwd2l0aCUyMGElMjBmb3JrJTIwYW5kJTIwYSUyMGtuaWZlLiUyMiUwQWNob2ljZTElMjAlM0QlMjAlMjJJdCUyMGlzJTIwZWF0ZW4lMjB3aGlsZSUyMGhlbGQlMjBpbiUyMHRoZSUyMGhhbmQuJTIyJTBBJTBBZW5jb2RpbmclMjAlM0QlMjB0b2tlbml6ZXIoJTVCcHJvbXB0JTJDJTIwcHJvbXB0JTVEJTJDJTIwJTVCY2hvaWNlMCUyQyUyMGNob2ljZTElNUQlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnRmJTIyJTJDJTIwcGFkZGluZyUzRFRydWUpJTBBaW5wdXRzJTIwJTNEJTIwJTdCayUzQSUyMHRmLmV4cGFuZF9kaW1zKHYlMkMlMjAwKSUyMGZvciUyMGslMkMlMjB2JTIwaW4lMjBlbmNvZGluZy5pdGVtcygpJTdEJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKGlucHV0cyklMjAlMjAlMjMlMjBiYXRjaCUyMHNpemUlMjBpcyUyMDElMEElMEElMjMlMjB0aGUlMjBsaW5lYXIlMjBjbGFzc2lmaWVyJTIwc3RpbGwlMjBuZWVkcyUyMHRvJTIwYmUlMjB0cmFpbmVkJTBBbG9naXRzJTIwJTNEJTIwb3V0cHV0cy5sb2dpdHM=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, TFDebertaV2ForMultipleChoice
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;kamalkraj/deberta-v2-xlarge&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFDebertaV2ForMultipleChoice.from_pretrained(<span class="hljs-string">&quot;kamalkraj/deberta-v2-xlarge&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;In Italy, pizza served in formal settings, such as at a restaurant, is presented unsliced.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>choice0 = <span class="hljs-string">&quot;It is eaten with a fork and a knife.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>choice1 = <span class="hljs-string">&quot;It is eaten while held in the hand.&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>encoding = tokenizer([prompt, prompt], [choice0, choice1], return_tensors=<span class="hljs-string">&quot;tf&quot;</span>, padding=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = {k: tf.expand_dims(v, <span class="hljs-number">0</span>) <span class="hljs-keyword">for</span> k, v <span class="hljs-keyword">in</span> encoding.items()}
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(inputs)  <span class="hljs-comment"># batch size is 1</span>

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># the linear classifier still needs to be trained</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits`}}),{c(){d=a("p"),y=n("Example:"),m=p(),w(f.$$.fragment)},l(l){d=r(l,"P",{});var c=i(d);y=s(c,"Example:"),c.forEach(t),m=h(l),v(f.$$.fragment,l)},m(l,c){g(l,d,c),e(d,y),g(l,m,c),k(f,l,c),T=!0},p:Qe,i(l){T||(M(f.$$.fragment,l),T=!0)},o(l){$(f.$$.fragment,l),T=!1},d(l){l&&t(d),l&&t(m),E(f,l)}}}function zT(F){let d,y,m,f,T,l,c,J,ye,pe,W,ae,oe,D,Te,X,we,he,G,ve,ie,L,ke,me,N,Me,ue,A,$e,fe,ee,C,B,le,Y,Ee,ge,x,De,de,z,je,q,Ve,_e,S,Fe,be,U,re,P,Je,ne,R,Ce,I,Re,ce,_,j,Ge,se,Be,Ie,V,qe,Ne,ze,We,Ae,Z,Q,Ue,xe,O,Se,Ze,te,Xe,H,Pe,Yc,cs,Qc,Oc,ps,Hc,Kc,wd,oo,qo,ui,hs,ep,fi,tp,vd,ct,gi,br,op,np,_i,yr,sp,ap,bi,Tr,rp,ip,yi,wr,lp,dp,Ti,vr,cp,kd,no,No,wi,ms,pp,vi,hp,Md,gt,us,mp,so,up,kr,fp,gp,fs,_p,bp,yp,ao,Tp,Mr,wp,vp,$r,kp,Mp,$p,Ao,$d,ro,So,ki,gs,Ep,Mi,Dp,Ed,Ke,_s,jp,bs,Vp,ys,Fp,Jp,Cp,Gt,Ts,Rp,$i,Bp,zp,ws,Ei,Up,Ip,Di,Wp,xp,Xo,vs,Zp,io,Gp,ji,qp,Np,Vi,Ap,Sp,Xp,vt,ks,Pp,Fi,Lp,Yp,Po,Qp,lo,Op,Ji,Hp,Kp,Ci,eh,th,oh,Er,Ms,Dd,co,Lo,Ri,$s,nh,Bi,sh,jd,_t,Es,ah,Ds,rh,js,ih,lh,dh,qt,Vs,ch,zi,ph,hh,Fs,Ui,mh,uh,Ii,fh,gh,kt,Js,_h,Wi,bh,yh,Yo,Th,po,wh,xi,vh,kh,Zi,Mh,$h,Vd,ho,Qo,Gi,Cs,Eh,qi,Dh,Fd,bt,Rs,jh,Bs,Vh,zs,Fh,Jh,Ch,Us,Rh,Is,Bh,zh,Uh,Mt,Ws,Ih,mo,Wh,Dr,xh,Zh,Ni,Gh,qh,Nh,Oo,Ah,Ho,Jd,uo,Ko,Ai,xs,Sh,Si,Xh,Cd,Wt,Zs,Ph,Xi,Lh,Yh,$t,Gs,Qh,Pi,Oh,Hh,Li,Kh,em,en,Rd,fo,tn,Yi,qs,tm,Qi,om,Bd,yt,Ns,nm,go,sm,Oi,am,rm,As,im,lm,dm,Ss,cm,Xs,pm,hm,mm,Et,Ps,um,_o,fm,jr,gm,_m,Hi,bm,ym,Tm,on,wm,nn,zd,bo,sn,Ki,Ls,vm,el,km,Ud,st,Ys,Mm,tl,$m,Em,Qs,Dm,Os,jm,Vm,Fm,Hs,Jm,Ks,Cm,Rm,Bm,pt,ea,zm,yo,Um,Vr,Im,Wm,ol,xm,Zm,Gm,an,qm,rn,Nm,ln,Id,To,dn,nl,ta,Am,sl,Sm,Wd,at,oa,Xm,al,Pm,Lm,na,Ym,sa,Qm,Om,Hm,aa,Km,ra,eu,tu,ou,Dt,ia,nu,wo,su,Fr,au,ru,rl,iu,lu,du,cn,cu,pn,xd,vo,hn,il,la,pu,ll,hu,Zd,rt,da,mu,ko,uu,dl,fu,gu,cl,_u,bu,yu,ca,Tu,pa,wu,vu,ku,ha,Mu,ma,$u,Eu,Du,jt,ua,ju,Mo,Vu,Jr,Fu,Ju,pl,Cu,Ru,Bu,mn,zu,un,Gd,$o,fn,hl,fa,Uu,ml,Iu,qd,it,ga,Wu,ul,xu,Zu,_a,Gu,ba,qu,Nu,Au,ya,Su,Ta,Xu,Pu,Lu,Vt,wa,Yu,Eo,Qu,Cr,Ou,Hu,fl,Ku,ef,tf,gn,of,_n,Nd,Do,bn,gl,va,nf,_l,sf,Ad,lt,ka,af,Ma,rf,$a,lf,df,cf,Ea,pf,Da,hf,mf,uf,yn,ff,Ft,ja,gf,jo,_f,Rr,bf,yf,bl,Tf,wf,vf,Tn,kf,wn,Sd,Vo,vn,yl,Va,Mf,Tl,$f,Xd,xt,Fa,Ef,wl,Df,jf,Jt,Ja,Vf,vl,Ff,Jf,Ca,Cf,kl,Rf,Bf,zf,Tt,Uf,Ml,If,Wf,$l,xf,Zf,El,Gf,qf,Dl,Nf,Af,Pd,Fo,kn,jl,Ra,Sf,Vl,Xf,Ld,dt,Ba,Pf,Jo,Lf,Fl,Yf,Qf,za,Of,Hf,Kf,Ua,eg,Ia,tg,og,ng,Mn,sg,ht,Wa,ag,Co,rg,Br,ig,lg,Jl,dg,cg,pg,$n,hg,En,mg,Dn,Yd,Ro,jn,Cl,xa,ug,Rl,fg,Qd,et,Za,gg,Bl,_g,bg,Ga,yg,qa,Tg,wg,vg,Na,kg,Aa,Mg,$g,Eg,Vn,Dg,mt,Sa,jg,Bo,Vg,zr,Fg,Jg,zl,Cg,Rg,Bg,Fn,zg,Jn,Ug,Cn,Od,zo,Rn,Ul,Xa,Ig,Il,Wg,Hd,tt,Pa,xg,Wl,Zg,Gg,La,qg,Ya,Ng,Ag,Sg,Qa,Xg,Oa,Pg,Lg,Yg,Bn,Qg,ut,Ha,Og,Uo,Hg,Ur,Kg,e_,xl,t_,o_,n_,zn,s_,Un,a_,In,Kd,Io,Wn,Zl,Ka,r_,Gl,i_,ec,ot,er,l_,Wo,d_,ql,c_,p_,Nl,h_,m_,u_,tr,f_,or,g_,__,b_,nr,y_,sr,T_,w_,v_,xn,k_,ft,ar,M_,xo,$_,Ir,E_,D_,Al,j_,V_,F_,Zn,J_,Gn,C_,qn,tc,Zo,Nn,Sl,rr,R_,Xl,B_,oc,nt,ir,z_,Pl,U_,I_,lr,W_,dr,x_,Z_,G_,cr,q_,pr,N_,A_,S_,An,X_,Ct,hr,P_,Go,L_,Wr,Y_,Q_,Ll,O_,H_,K_,Sn,eb,Xn,nc;return l=new Le({}),D=new Le({}),hs=new Le({}),ms=new Le({}),us=new K({props:{name:"class transformers.DebertaV2Config",anchor:"transformers.DebertaV2Config",parameters:[{name:"vocab_size",val:" = 128100"},{name:"hidden_size",val:" = 1536"},{name:"num_hidden_layers",val:" = 24"},{name:"num_attention_heads",val:" = 24"},{name:"intermediate_size",val:" = 6144"},{name:"hidden_act",val:" = 'gelu'"},{name:"hidden_dropout_prob",val:" = 0.1"},{name:"attention_probs_dropout_prob",val:" = 0.1"},{name:"max_position_embeddings",val:" = 512"},{name:"type_vocab_size",val:" = 0"},{name:"initializer_range",val:" = 0.02"},{name:"layer_norm_eps",val:" = 1e-07"},{name:"relative_attention",val:" = False"},{name:"max_relative_positions",val:" = -1"},{name:"pad_token_id",val:" = 0"},{name:"position_biased_input",val:" = True"},{name:"pos_att_type",val:" = None"},{name:"pooler_dropout",val:" = 0"},{name:"pooler_hidden_act",val:" = 'gelu'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DebertaV2Config.vocab_size",description:`<strong>vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 128100) &#x2014;
Vocabulary size of the DeBERTa-v2 model. Defines the number of different tokens that can be represented by
the <code>inputs_ids</code> passed when calling <a href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Model">DebertaV2Model</a>.`,name:"vocab_size"},{anchor:"transformers.DebertaV2Config.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1536) &#x2014;
Dimensionality of the encoder layers and the pooler layer.`,name:"hidden_size"},{anchor:"transformers.DebertaV2Config.num_hidden_layers",description:`<strong>num_hidden_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 24) &#x2014;
Number of hidden layers in the Transformer encoder.`,name:"num_hidden_layers"},{anchor:"transformers.DebertaV2Config.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 24) &#x2014;
Number of attention heads for each attention layer in the Transformer encoder.`,name:"num_attention_heads"},{anchor:"transformers.DebertaV2Config.intermediate_size",description:`<strong>intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 6144) &#x2014;
Dimensionality of the &#x201C;intermediate&#x201D; (often named feed-forward) layer in the Transformer encoder.`,name:"intermediate_size"},{anchor:"transformers.DebertaV2Config.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>Callable</code>, <em>optional</em>, defaults to <code>&quot;gelu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the encoder and pooler. If string, <code>&quot;gelu&quot;</code>,
<code>&quot;relu&quot;</code>, <code>&quot;silu&quot;</code>, <code>&quot;gelu&quot;</code>, <code>&quot;tanh&quot;</code>, <code>&quot;gelu_fast&quot;</code>, <code>&quot;mish&quot;</code>, <code>&quot;linear&quot;</code>, <code>&quot;sigmoid&quot;</code> and <code>&quot;gelu_new&quot;</code>
are supported.`,name:"hidden_act"},{anchor:"transformers.DebertaV2Config.hidden_dropout_prob",description:`<strong>hidden_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.`,name:"hidden_dropout_prob"},{anchor:"transformers.DebertaV2Config.attention_probs_dropout_prob",description:`<strong>attention_probs_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout ratio for the attention probabilities.`,name:"attention_probs_dropout_prob"},{anchor:"transformers.DebertaV2Config.max_position_embeddings",description:`<strong>max_position_embeddings</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
The maximum sequence length that this model might ever be used with. Typically set this to something large
just in case (e.g., 512 or 1024 or 2048).`,name:"max_position_embeddings"},{anchor:"transformers.DebertaV2Config.type_vocab_size",description:`<strong>type_vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
The vocabulary size of the <code>token_type_ids</code> passed when calling <a href="/docs/transformers/main/en/model_doc/deberta#transformers.DebertaModel">DebertaModel</a> or <a href="/docs/transformers/main/en/model_doc/deberta#transformers.TFDebertaModel">TFDebertaModel</a>.`,name:"type_vocab_size"},{anchor:"transformers.DebertaV2Config.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to 0.02) &#x2014;
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.`,name:"initializer_range"},{anchor:"transformers.DebertaV2Config.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-7) &#x2014;
The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.DebertaV2Config.relative_attention",description:`<strong>relative_attention</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether use relative position encoding.`,name:"relative_attention"},{anchor:"transformers.DebertaV2Config.max_relative_positions",description:`<strong>max_relative_positions</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
The range of relative positions <code>[-max_position_embeddings, max_position_embeddings]</code>. Use the same value
as <code>max_position_embeddings</code>.`,name:"max_relative_positions"},{anchor:"transformers.DebertaV2Config.pad_token_id",description:`<strong>pad_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
The value used to pad input_ids.`,name:"pad_token_id"},{anchor:"transformers.DebertaV2Config.position_biased_input",description:`<strong>position_biased_input</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether add absolute position embedding to content embedding.`,name:"position_biased_input"},{anchor:"transformers.DebertaV2Config.pos_att_type",description:`<strong>pos_att_type</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
The type of relative position attention, it can be a combination of <code>[&quot;p2c&quot;, &quot;c2p&quot;]</code>, e.g. <code>[&quot;p2c&quot;]</code>,
<code>[&quot;p2c&quot;, &quot;c2p&quot;]</code>, <code>[&quot;p2c&quot;, &quot;c2p&quot;]</code>.`,name:"pos_att_type"},{anchor:"transformers.DebertaV2Config.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, optional, defaults to 1e-12) &#x2014;
The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/configuration_deberta_v2.py#L42"}}),Ao=new Ye({props:{anchor:"transformers.DebertaV2Config.example",$$slots:{default:[Q2]},$$scope:{ctx:F}}}),gs=new Le({}),_s=new K({props:{name:"class transformers.DebertaV2Tokenizer",anchor:"transformers.DebertaV2Tokenizer",parameters:[{name:"vocab_file",val:""},{name:"do_lower_case",val:" = False"},{name:"split_by_punct",val:" = False"},{name:"bos_token",val:" = '[CLS]'"},{name:"eos_token",val:" = '[SEP]'"},{name:"unk_token",val:" = '[UNK]'"},{name:"sep_token",val:" = '[SEP]'"},{name:"pad_token",val:" = '[PAD]'"},{name:"cls_token",val:" = '[CLS]'"},{name:"mask_token",val:" = '[MASK]'"},{name:"sp_model_kwargs",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DebertaV2Tokenizer.vocab_file",description:`<strong>vocab_file</strong> (<code>str</code>) &#x2014;
<a href="https://github.com/google/sentencepiece" rel="nofollow">SentencePiece</a> file (generally has a <em>.spm</em> extension) that
contains the vocabulary necessary to instantiate a tokenizer.`,name:"vocab_file"},{anchor:"transformers.DebertaV2Tokenizer.do_lower_case",description:`<strong>do_lower_case</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to lowercase the input when tokenizing.`,name:"do_lower_case"},{anchor:"transformers.DebertaV2Tokenizer.bos_token",description:`<strong>bos_token</strong> (<code>string</code>, <em>optional</em>, defaults to <code>&quot;[CLS]&quot;</code>) &#x2014;
The beginning of sequence token that was used during pre-training. Can be used a sequence classifier token.
When building a sequence using special tokens, this is not the token that is used for the beginning of
sequence. The token used is the <code>cls_token</code>.`,name:"bos_token"},{anchor:"transformers.DebertaV2Tokenizer.eos_token",description:`<strong>eos_token</strong> (<code>string</code>, <em>optional</em>, defaults to <code>&quot;[SEP]&quot;</code>) &#x2014;
The end of sequence token. When building a sequence using special tokens, this is not the token that is
used for the end of sequence. The token used is the <code>sep_token</code>.`,name:"eos_token"},{anchor:"transformers.DebertaV2Tokenizer.unk_token",description:`<strong>unk_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[UNK]&quot;</code>) &#x2014;
The unknown token. A token that is not in the vocabulary cannot be converted to an ID and is set to be this
token instead.`,name:"unk_token"},{anchor:"transformers.DebertaV2Tokenizer.sep_token",description:`<strong>sep_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[SEP]&quot;</code>) &#x2014;
The separator token, which is used when building a sequence from multiple sequences, e.g. two sequences for
sequence classification or for a text and a question for question answering. It is also used as the last
token of a sequence built with special tokens.`,name:"sep_token"},{anchor:"transformers.DebertaV2Tokenizer.pad_token",description:`<strong>pad_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[PAD]&quot;</code>) &#x2014;
The token used for padding, for example when batching sequences of different lengths.`,name:"pad_token"},{anchor:"transformers.DebertaV2Tokenizer.cls_token",description:`<strong>cls_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[CLS]&quot;</code>) &#x2014;
The classifier token which is used when doing sequence classification (classification of the whole sequence
instead of per-token classification). It is the first token of the sequence when built with special tokens.`,name:"cls_token"},{anchor:"transformers.DebertaV2Tokenizer.mask_token",description:`<strong>mask_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[MASK]&quot;</code>) &#x2014;
The token used for masking values. This is the token used when training this model with masked language
modeling. This is the token which the model will try to predict.`,name:"mask_token"},{anchor:"transformers.DebertaV2Tokenizer.sp_model_kwargs",description:`<strong>sp_model_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Will be passed to the <code>SentencePieceProcessor.__init__()</code> method. The <a href="https://github.com/google/sentencepiece/tree/master/python" rel="nofollow">Python wrapper for
SentencePiece</a> can be used, among other things,
to set:</p>
<ul>
<li>
<p><code>enable_sampling</code>: Enable subword regularization.</p>
</li>
<li>
<p><code>nbest_size</code>: Sampling parameters for unigram. Invalid for BPE-Dropout.</p>
<ul>
<li><code>nbest_size = {0,1}</code>: No sampling is performed.</li>
<li><code>nbest_size &gt; 1</code>: samples from the nbest_size results.</li>
<li><code>nbest_size &lt; 0</code>: assuming that nbest_size is infinite and samples from the all hypothesis (lattice)
using forward-filtering-and-backward-sampling algorithm.</li>
</ul>
</li>
<li>
<p><code>alpha</code>: Smoothing parameter for unigram sampling, and dropout probability of merge operations for
BPE-dropout.</p>
</li>
</ul>`,name:"sp_model_kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/tokenization_deberta_v2.py#L56"}}),Ts=new K({props:{name:"build_inputs_with_special_tokens",anchor:"transformers.DebertaV2Tokenizer.build_inputs_with_special_tokens",parameters:[{name:"token_ids_0",val:""},{name:"token_ids_1",val:" = None"}],parametersDescription:[{anchor:"transformers.DebertaV2Tokenizer.build_inputs_with_special_tokens.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs to which the special tokens will be added.`,name:"token_ids_0"},{anchor:"transformers.DebertaV2Tokenizer.build_inputs_with_special_tokens.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/tokenization_deberta_v2.py#L184",returnDescription:`
<p>List of <a href="../glossary#input-ids">input IDs</a> with the appropriate special tokens.</p>
`,returnType:`
<p><code>List[int]</code></p>
`}}),vs=new K({props:{name:"get_special_tokens_mask",anchor:"transformers.DebertaV2Tokenizer.get_special_tokens_mask",parameters:[{name:"token_ids_0",val:""},{name:"token_ids_1",val:" = None"},{name:"already_has_special_tokens",val:" = False"}],parametersDescription:[{anchor:"transformers.DebertaV2Tokenizer.get_special_tokens_mask.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs.`,name:"token_ids_0"},{anchor:"transformers.DebertaV2Tokenizer.get_special_tokens_mask.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"},{anchor:"transformers.DebertaV2Tokenizer.get_special_tokens_mask.already_has_special_tokens",description:`<strong>already_has_special_tokens</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the token list is already formatted with special tokens for the model.`,name:"already_has_special_tokens"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/tokenization_deberta_v2.py#L208",returnDescription:`
<p>A list of integers in the range [0, 1]: 1 for a special token, 0 for a sequence token.</p>
`,returnType:`
<p><code>List[int]</code></p>
`}}),ks=new K({props:{name:"create_token_type_ids_from_sequences",anchor:"transformers.DebertaV2Tokenizer.create_token_type_ids_from_sequences",parameters:[{name:"token_ids_0",val:""},{name:"token_ids_1",val:" = None"}],parametersDescription:[{anchor:"transformers.DebertaV2Tokenizer.create_token_type_ids_from_sequences.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs.`,name:"token_ids_0"},{anchor:"transformers.DebertaV2Tokenizer.create_token_type_ids_from_sequences.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/tokenization_deberta_v2.py#L234",returnDescription:`
<p>List of <a href="../glossary#token-type-ids">token type IDs</a> according to the given sequence(s).</p>
`,returnType:`
<p><code>List[int]</code></p>
`}}),Po=new Ye({props:{anchor:"transformers.DebertaV2Tokenizer.create_token_type_ids_from_sequences.example",$$slots:{default:[O2]},$$scope:{ctx:F}}}),Ms=new K({props:{name:"save_vocabulary",anchor:"transformers.DebertaV2Tokenizer.save_vocabulary",parameters:[{name:"save_directory",val:": str"},{name:"filename_prefix",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/tokenization_deberta_v2.py#L267"}}),$s=new Le({}),Es=new K({props:{name:"class transformers.DebertaV2TokenizerFast",anchor:"transformers.DebertaV2TokenizerFast",parameters:[{name:"vocab_file",val:" = None"},{name:"tokenizer_file",val:" = None"},{name:"do_lower_case",val:" = False"},{name:"split_by_punct",val:" = False"},{name:"bos_token",val:" = '[CLS]'"},{name:"eos_token",val:" = '[SEP]'"},{name:"unk_token",val:" = '[UNK]'"},{name:"sep_token",val:" = '[SEP]'"},{name:"pad_token",val:" = '[PAD]'"},{name:"cls_token",val:" = '[CLS]'"},{name:"mask_token",val:" = '[MASK]'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DebertaV2TokenizerFast.vocab_file",description:`<strong>vocab_file</strong> (<code>str</code>) &#x2014;
<a href="https://github.com/google/sentencepiece" rel="nofollow">SentencePiece</a> file (generally has a <em>.spm</em> extension) that
contains the vocabulary necessary to instantiate a tokenizer.`,name:"vocab_file"},{anchor:"transformers.DebertaV2TokenizerFast.do_lower_case",description:`<strong>do_lower_case</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to lowercase the input when tokenizing.`,name:"do_lower_case"},{anchor:"transformers.DebertaV2TokenizerFast.bos_token",description:`<strong>bos_token</strong> (<code>string</code>, <em>optional</em>, defaults to <code>&quot;[CLS]&quot;</code>) &#x2014;
The beginning of sequence token that was used during pre-training. Can be used a sequence classifier token.
When building a sequence using special tokens, this is not the token that is used for the beginning of
sequence. The token used is the <code>cls_token</code>.`,name:"bos_token"},{anchor:"transformers.DebertaV2TokenizerFast.eos_token",description:`<strong>eos_token</strong> (<code>string</code>, <em>optional</em>, defaults to <code>&quot;[SEP]&quot;</code>) &#x2014;
The end of sequence token. When building a sequence using special tokens, this is not the token that is
used for the end of sequence. The token used is the <code>sep_token</code>.`,name:"eos_token"},{anchor:"transformers.DebertaV2TokenizerFast.unk_token",description:`<strong>unk_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[UNK]&quot;</code>) &#x2014;
The unknown token. A token that is not in the vocabulary cannot be converted to an ID and is set to be this
token instead.`,name:"unk_token"},{anchor:"transformers.DebertaV2TokenizerFast.sep_token",description:`<strong>sep_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[SEP]&quot;</code>) &#x2014;
The separator token, which is used when building a sequence from multiple sequences, e.g. two sequences for
sequence classification or for a text and a question for question answering. It is also used as the last
token of a sequence built with special tokens.`,name:"sep_token"},{anchor:"transformers.DebertaV2TokenizerFast.pad_token",description:`<strong>pad_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[PAD]&quot;</code>) &#x2014;
The token used for padding, for example when batching sequences of different lengths.`,name:"pad_token"},{anchor:"transformers.DebertaV2TokenizerFast.cls_token",description:`<strong>cls_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[CLS]&quot;</code>) &#x2014;
The classifier token which is used when doing sequence classification (classification of the whole sequence
instead of per-token classification). It is the first token of the sequence when built with special tokens.`,name:"cls_token"},{anchor:"transformers.DebertaV2TokenizerFast.mask_token",description:`<strong>mask_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[MASK]&quot;</code>) &#x2014;
The token used for masking values. This is the token used when training this model with masked language
modeling. This is the token which the model will try to predict.`,name:"mask_token"},{anchor:"transformers.DebertaV2TokenizerFast.sp_model_kwargs",description:`<strong>sp_model_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Will be passed to the <code>SentencePieceProcessor.__init__()</code> method. The <a href="https://github.com/google/sentencepiece/tree/master/python" rel="nofollow">Python wrapper for
SentencePiece</a> can be used, among other things,
to set:</p>
<ul>
<li>
<p><code>enable_sampling</code>: Enable subword regularization.</p>
</li>
<li>
<p><code>nbest_size</code>: Sampling parameters for unigram. Invalid for BPE-Dropout.</p>
<ul>
<li><code>nbest_size = {0,1}</code>: No sampling is performed.</li>
<li><code>nbest_size &gt; 1</code>: samples from the nbest_size results.</li>
<li><code>nbest_size &lt; 0</code>: assuming that nbest_size is infinite and samples from the all hypothesis (lattice)
using forward-filtering-and-backward-sampling algorithm.</li>
</ul>
</li>
<li>
<p><code>alpha</code>: Smoothing parameter for unigram sampling, and dropout probability of merge operations for
BPE-dropout.</p>
</li>
</ul>`,name:"sp_model_kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/tokenization_deberta_v2_fast.py#L63"}}),Vs=new K({props:{name:"build_inputs_with_special_tokens",anchor:"transformers.DebertaV2TokenizerFast.build_inputs_with_special_tokens",parameters:[{name:"token_ids_0",val:""},{name:"token_ids_1",val:" = None"}],parametersDescription:[{anchor:"transformers.DebertaV2TokenizerFast.build_inputs_with_special_tokens.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs to which the special tokens will be added.`,name:"token_ids_0"},{anchor:"transformers.DebertaV2TokenizerFast.build_inputs_with_special_tokens.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/tokenization_deberta_v2_fast.py#L156",returnDescription:`
<p>List of <a href="../glossary#input-ids">input IDs</a> with the appropriate special tokens.</p>
`,returnType:`
<p><code>List[int]</code></p>
`}}),Js=new K({props:{name:"create_token_type_ids_from_sequences",anchor:"transformers.DebertaV2TokenizerFast.create_token_type_ids_from_sequences",parameters:[{name:"token_ids_0",val:""},{name:"token_ids_1",val:" = None"}],parametersDescription:[{anchor:"transformers.DebertaV2TokenizerFast.create_token_type_ids_from_sequences.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs.`,name:"token_ids_0"},{anchor:"transformers.DebertaV2TokenizerFast.create_token_type_ids_from_sequences.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/tokenization_deberta_v2_fast.py#L206",returnDescription:`
<p>List of <a href="../glossary#token-type-ids">token type IDs</a> according to the given sequence(s).</p>
`,returnType:`
<p><code>List[int]</code></p>
`}}),Yo=new Ye({props:{anchor:"transformers.DebertaV2TokenizerFast.create_token_type_ids_from_sequences.example",$$slots:{default:[H2]},$$scope:{ctx:F}}}),Cs=new Le({}),Rs=new K({props:{name:"class transformers.DebertaV2Model",anchor:"transformers.DebertaV2Model",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.DebertaV2Model.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config">DebertaV2Config</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_deberta_v2.py#L1012"}}),Ws=new K({props:{name:"forward",anchor:"transformers.DebertaV2Model.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"token_type_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.DebertaV2Model.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.DebertaV2Model.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.DebertaV2Model.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.DebertaV2Model.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.DebertaV2Model.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.DebertaV2Model.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.DebertaV2Model.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.DebertaV2Model.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_deberta_v2.py#L1036",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.BaseModelOutput"
>transformers.modeling_outputs.BaseModelOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config"
>DebertaV2Config</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) \u2014 Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.BaseModelOutput"
>transformers.modeling_outputs.BaseModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Oo=new He({props:{$$slots:{default:[K2]},$$scope:{ctx:F}}}),Ho=new Ye({props:{anchor:"transformers.DebertaV2Model.forward.example",$$slots:{default:[eT]},$$scope:{ctx:F}}}),xs=new Le({}),Zs=new K({props:{name:"class transformers.DebertaV2PreTrainedModel",anchor:"transformers.DebertaV2PreTrainedModel",parameters:[{name:"config",val:": PretrainedConfig"},{name:"*inputs",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_deberta_v2.py#L917"}}),Gs=new K({props:{name:"_forward_unimplemented",anchor:"transformers.DebertaV2PreTrainedModel.forward",parameters:[{name:"*input",val:": typing.Any"}],source:"https://github.com/huggingface/transformers/blob/main/src/torch/nn/modules/module.py#L352"}}),en=new He({props:{$$slots:{default:[tT]},$$scope:{ctx:F}}}),qs=new Le({}),Ns=new K({props:{name:"class transformers.DebertaV2ForMaskedLM",anchor:"transformers.DebertaV2ForMaskedLM",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.DebertaV2ForMaskedLM.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config">DebertaV2Config</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_deberta_v2.py#L1124"}}),Ps=new K({props:{name:"forward",anchor:"transformers.DebertaV2ForMaskedLM.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"token_type_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.DebertaV2ForMaskedLM.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.DebertaV2ForMaskedLM.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.DebertaV2ForMaskedLM.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.DebertaV2ForMaskedLM.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.DebertaV2ForMaskedLM.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.DebertaV2ForMaskedLM.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.DebertaV2ForMaskedLM.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.DebertaV2ForMaskedLM.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.DebertaV2ForMaskedLM.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Labels for computing the masked language modeling loss. Indices should be in <code>[-100, 0, ..., config.vocab_size]</code> (see <code>input_ids</code> docstring) Tokens with indices set to <code>-100</code> are ignored (masked), the
loss is only computed for the tokens with labels in <code>[0, ..., config.vocab_size]</code>`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_deberta_v2.py#L1142",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.MaskedLMOutput"
>transformers.modeling_outputs.MaskedLMOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config"
>DebertaV2Config</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Masked language modeling (MLM) loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.vocab_size)</code>) \u2014 Prediction scores of the language modeling head (scores for each vocabulary token before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.MaskedLMOutput"
>transformers.modeling_outputs.MaskedLMOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),on=new He({props:{$$slots:{default:[oT]},$$scope:{ctx:F}}}),nn=new Ye({props:{anchor:"transformers.DebertaV2ForMaskedLM.forward.example",$$slots:{default:[nT]},$$scope:{ctx:F}}}),Ls=new Le({}),Ys=new K({props:{name:"class transformers.DebertaV2ForSequenceClassification",anchor:"transformers.DebertaV2ForSequenceClassification",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.DebertaV2ForSequenceClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config">DebertaV2Config</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_deberta_v2.py#L1262"}}),ea=new K({props:{name:"forward",anchor:"transformers.DebertaV2ForSequenceClassification.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"token_type_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.DebertaV2ForSequenceClassification.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.DebertaV2ForSequenceClassification.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.DebertaV2ForSequenceClassification.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.DebertaV2ForSequenceClassification.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.DebertaV2ForSequenceClassification.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.DebertaV2ForSequenceClassification.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.DebertaV2ForSequenceClassification.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.DebertaV2ForSequenceClassification.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.DebertaV2ForSequenceClassification.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the sequence classification/regression loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>. If <code>config.num_labels == 1</code> a regression loss is computed (Mean-Square loss), If
<code>config.num_labels &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_deberta_v2.py#L1287",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.SequenceClassifierOutput"
>transformers.modeling_outputs.SequenceClassifierOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config"
>DebertaV2Config</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Classification (or regression if config.num_labels==1) loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.num_labels)</code>) \u2014 Classification (or regression if config.num_labels==1) scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.SequenceClassifierOutput"
>transformers.modeling_outputs.SequenceClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),an=new He({props:{$$slots:{default:[sT]},$$scope:{ctx:F}}}),rn=new Ye({props:{anchor:"transformers.DebertaV2ForSequenceClassification.forward.example",$$slots:{default:[aT]},$$scope:{ctx:F}}}),ln=new Ye({props:{anchor:"transformers.DebertaV2ForSequenceClassification.forward.example-2",$$slots:{default:[rT]},$$scope:{ctx:F}}}),ta=new Le({}),oa=new K({props:{name:"class transformers.DebertaV2ForTokenClassification",anchor:"transformers.DebertaV2ForTokenClassification",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.DebertaV2ForTokenClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config">DebertaV2Config</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_deberta_v2.py#L1382"}}),ia=new K({props:{name:"forward",anchor:"transformers.DebertaV2ForTokenClassification.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"token_type_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.DebertaV2ForTokenClassification.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.DebertaV2ForTokenClassification.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.DebertaV2ForTokenClassification.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.DebertaV2ForTokenClassification.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.DebertaV2ForTokenClassification.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.DebertaV2ForTokenClassification.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.DebertaV2ForTokenClassification.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.DebertaV2ForTokenClassification.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.DebertaV2ForTokenClassification.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Labels for computing the token classification loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>.`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_deberta_v2.py#L1394",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.TokenClassifierOutput"
>transformers.modeling_outputs.TokenClassifierOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config"
>DebertaV2Config</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided)  \u2014 Classification loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.num_labels)</code>) \u2014 Classification scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.TokenClassifierOutput"
>transformers.modeling_outputs.TokenClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),cn=new He({props:{$$slots:{default:[iT]},$$scope:{ctx:F}}}),pn=new Ye({props:{anchor:"transformers.DebertaV2ForTokenClassification.forward.example",$$slots:{default:[lT]},$$scope:{ctx:F}}}),la=new Le({}),da=new K({props:{name:"class transformers.DebertaV2ForQuestionAnswering",anchor:"transformers.DebertaV2ForQuestionAnswering",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.DebertaV2ForQuestionAnswering.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config">DebertaV2Config</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_deberta_v2.py#L1455"}}),ua=new K({props:{name:"forward",anchor:"transformers.DebertaV2ForQuestionAnswering.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"token_type_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"start_positions",val:": typing.Optional[torch.Tensor] = None"},{name:"end_positions",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.DebertaV2ForQuestionAnswering.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.DebertaV2ForQuestionAnswering.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.DebertaV2ForQuestionAnswering.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.DebertaV2ForQuestionAnswering.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.DebertaV2ForQuestionAnswering.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.DebertaV2ForQuestionAnswering.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.DebertaV2ForQuestionAnswering.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.DebertaV2ForQuestionAnswering.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.DebertaV2ForQuestionAnswering.forward.start_positions",description:`<strong>start_positions</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for position (index) of the start of the labelled span for computing the token classification loss.
Positions are clamped to the length of the sequence (<code>sequence_length</code>). Position outside of the sequence
are not taken into account for computing the loss.`,name:"start_positions"},{anchor:"transformers.DebertaV2ForQuestionAnswering.forward.end_positions",description:`<strong>end_positions</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for position (index) of the end of the labelled span for computing the token classification loss.
Positions are clamped to the length of the sequence (<code>sequence_length</code>). Position outside of the sequence
are not taken into account for computing the loss.`,name:"end_positions"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_deberta_v2.py#L1466",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.QuestionAnsweringModelOutput"
>transformers.modeling_outputs.QuestionAnsweringModelOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config"
>DebertaV2Config</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Total span extraction loss is the sum of a Cross-Entropy for the start and end positions.</p>
</li>
<li>
<p><strong>start_logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Span-start scores (before SoftMax).</p>
</li>
<li>
<p><strong>end_logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Span-end scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.QuestionAnsweringModelOutput"
>transformers.modeling_outputs.QuestionAnsweringModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),mn=new He({props:{$$slots:{default:[dT]},$$scope:{ctx:F}}}),un=new Ye({props:{anchor:"transformers.DebertaV2ForQuestionAnswering.forward.example",$$slots:{default:[cT]},$$scope:{ctx:F}}}),fa=new Le({}),ga=new K({props:{name:"class transformers.DebertaV2ForMultipleChoice",anchor:"transformers.DebertaV2ForMultipleChoice",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.DebertaV2ForMultipleChoice.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config">DebertaV2Config</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_deberta_v2.py#L1555"}}),wa=new K({props:{name:"forward",anchor:"transformers.DebertaV2ForMultipleChoice.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"token_type_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.DebertaV2ForMultipleChoice.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.DebertaV2ForMultipleChoice.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.DebertaV2ForMultipleChoice.forward.token_type_ids",description:`<strong>token_type_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.DebertaV2ForMultipleChoice.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.DebertaV2ForMultipleChoice.forward.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.DebertaV2ForMultipleChoice.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.DebertaV2ForMultipleChoice.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.DebertaV2ForMultipleChoice.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.DebertaV2ForMultipleChoice.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the multiple choice classification loss. Indices should be in <code>[0, ..., num_choices-1]</code> where <code>num_choices</code> is the size of the second dimension of the input tensors. (See
<code>input_ids</code> above)`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_deberta_v2.py#L1579",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.MultipleChoiceModelOutput"
>transformers.modeling_outputs.MultipleChoiceModelOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config"
>DebertaV2Config</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <em>(1,)</em>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Classification loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_choices)</code>) \u2014 <em>num_choices</em> is the second dimension of the input tensors. (see <em>input_ids</em> above).</p>
<p>Classification scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_outputs.MultipleChoiceModelOutput"
>transformers.modeling_outputs.MultipleChoiceModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),gn=new He({props:{$$slots:{default:[pT]},$$scope:{ctx:F}}}),_n=new Ye({props:{anchor:"transformers.DebertaV2ForMultipleChoice.forward.example",$$slots:{default:[hT]},$$scope:{ctx:F}}}),va=new Le({}),ka=new K({props:{name:"class transformers.TFDebertaV2Model",anchor:"transformers.TFDebertaV2Model",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFDebertaV2Model.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config">DebertaV2Config</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_tf_deberta_v2.py#L1183"}}),yn=new He({props:{$$slots:{default:[mT]},$$scope:{ctx:F}}}),ja=new K({props:{name:"call",anchor:"transformers.TFDebertaV2Model.call",parameters:[{name:"input_ids",val:": TFModelInputType | None = None"},{name:"attention_mask",val:": np.ndarray | tf.Tensor | None = None"},{name:"token_type_ids",val:": np.ndarray | tf.Tensor | None = None"},{name:"position_ids",val:": np.ndarray | tf.Tensor | None = None"},{name:"inputs_embeds",val:": np.ndarray | tf.Tensor | None = None"},{name:"output_attentions",val:": Optional[bool] = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"training",val:": Optional[bool] = False"}],parametersDescription:[{anchor:"transformers.TFDebertaV2Model.call.input_ids",description:`<strong>input_ids</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code> \`<code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFDebertaV2Model.call.attention_mask",description:`<strong>attention_mask</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.TFDebertaV2Model.call.token_type_ids",description:`<strong>token_type_ids</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.TFDebertaV2Model.call.position_ids",description:`<strong>position_ids</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.TFDebertaV2Model.call.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.TFDebertaV2Model.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.TFDebertaV2Model.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.TFDebertaV2Model.call.return_dict",description:"<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;\nWhether or not to return a [`~utils.ModelOutput&#x201C;] instead of a plain tuple.",name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_tf_deberta_v2.py#L1189",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_tf_outputs.TFBaseModelOutput"
>transformers.modeling_tf_outputs.TFBaseModelOutput</a> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<a
  href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config"
>DebertaV2Config</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) \u2014 Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_tf_outputs.TFBaseModelOutput"
>transformers.modeling_tf_outputs.TFBaseModelOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),Tn=new He({props:{$$slots:{default:[uT]},$$scope:{ctx:F}}}),wn=new Ye({props:{anchor:"transformers.TFDebertaV2Model.call.example",$$slots:{default:[fT]},$$scope:{ctx:F}}}),Va=new Le({}),Fa=new K({props:{name:"class transformers.TFDebertaV2PreTrainedModel",anchor:"transformers.TFDebertaV2PreTrainedModel",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_tf_deberta_v2.py#L1082"}}),Ja=new K({props:{name:"call",anchor:"transformers.TFDebertaV2PreTrainedModel.call",parameters:[{name:"inputs",val:""},{name:"training",val:" = None"},{name:"mask",val:" = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/keras/src/engine/training.py#L571",returnDescription:`
<p>A tensor if there is a single output, or
a list of tensors if there are more than one outputs.</p>
`}}),Ra=new Le({}),Ba=new K({props:{name:"class transformers.TFDebertaV2ForMaskedLM",anchor:"transformers.TFDebertaV2ForMaskedLM",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFDebertaV2ForMaskedLM.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config">DebertaV2Config</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_tf_deberta_v2.py#L1225"}}),Mn=new He({props:{$$slots:{default:[gT]},$$scope:{ctx:F}}}),Wa=new K({props:{name:"call",anchor:"transformers.TFDebertaV2ForMaskedLM.call",parameters:[{name:"input_ids",val:": TFModelInputType | None = None"},{name:"attention_mask",val:": np.ndarray | tf.Tensor | None = None"},{name:"token_type_ids",val:": np.ndarray | tf.Tensor | None = None"},{name:"position_ids",val:": np.ndarray | tf.Tensor | None = None"},{name:"inputs_embeds",val:": np.ndarray | tf.Tensor | None = None"},{name:"output_attentions",val:": Optional[bool] = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"labels",val:": np.ndarray | tf.Tensor | None = None"},{name:"training",val:": Optional[bool] = False"}],parametersDescription:[{anchor:"transformers.TFDebertaV2ForMaskedLM.call.input_ids",description:`<strong>input_ids</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code> \`<code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFDebertaV2ForMaskedLM.call.attention_mask",description:`<strong>attention_mask</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.TFDebertaV2ForMaskedLM.call.token_type_ids",description:`<strong>token_type_ids</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.TFDebertaV2ForMaskedLM.call.position_ids",description:`<strong>position_ids</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.TFDebertaV2ForMaskedLM.call.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.TFDebertaV2ForMaskedLM.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.TFDebertaV2ForMaskedLM.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.TFDebertaV2ForMaskedLM.call.return_dict",description:"<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;\nWhether or not to return a [`~utils.ModelOutput&#x201C;] instead of a plain tuple.",name:"return_dict"},{anchor:"transformers.TFDebertaV2ForMaskedLM.call.labels",description:`<strong>labels</strong> (<code>tf.Tensor</code> or <code>np.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Labels for computing the masked language modeling loss. Indices should be in <code>[-100, 0, ..., config.vocab_size]</code> (see <code>input_ids</code> docstring) Tokens with indices set to <code>-100</code> are ignored (masked), the
loss is only computed for the tokens with labels in <code>[0, ..., config.vocab_size]</code>`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_tf_deberta_v2.py#L1241",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_tf_outputs.TFMaskedLMOutput"
>transformers.modeling_tf_outputs.TFMaskedLMOutput</a> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<a
  href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config"
>DebertaV2Config</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>tf.Tensor</code> of shape <code>(n,)</code>, <em>optional</em>, where n is the number of non-masked labels, returned when <code>labels</code> is provided) \u2014 Masked language modeling (MLM) loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, config.vocab_size)</code>) \u2014 Prediction scores of the language modeling head (scores for each vocabulary token before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_tf_outputs.TFMaskedLMOutput"
>transformers.modeling_tf_outputs.TFMaskedLMOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),$n=new He({props:{$$slots:{default:[_T]},$$scope:{ctx:F}}}),En=new Ye({props:{anchor:"transformers.TFDebertaV2ForMaskedLM.call.example",$$slots:{default:[bT]},$$scope:{ctx:F}}}),Dn=new Ye({props:{anchor:"transformers.TFDebertaV2ForMaskedLM.call.example-2",$$slots:{default:[yT]},$$scope:{ctx:F}}}),xa=new Le({}),Za=new K({props:{name:"class transformers.TFDebertaV2ForSequenceClassification",anchor:"transformers.TFDebertaV2ForSequenceClassification",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFDebertaV2ForSequenceClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config">DebertaV2Config</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_tf_deberta_v2.py#L1302"}}),Vn=new He({props:{$$slots:{default:[TT]},$$scope:{ctx:F}}}),Sa=new K({props:{name:"call",anchor:"transformers.TFDebertaV2ForSequenceClassification.call",parameters:[{name:"input_ids",val:": TFModelInputType | None = None"},{name:"attention_mask",val:": np.ndarray | tf.Tensor | None = None"},{name:"token_type_ids",val:": np.ndarray | tf.Tensor | None = None"},{name:"position_ids",val:": np.ndarray | tf.Tensor | None = None"},{name:"inputs_embeds",val:": np.ndarray | tf.Tensor | None = None"},{name:"output_attentions",val:": Optional[bool] = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"labels",val:": np.ndarray | tf.Tensor | None = None"},{name:"training",val:": Optional[bool] = False"}],parametersDescription:[{anchor:"transformers.TFDebertaV2ForSequenceClassification.call.input_ids",description:`<strong>input_ids</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code> \`<code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFDebertaV2ForSequenceClassification.call.attention_mask",description:`<strong>attention_mask</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.TFDebertaV2ForSequenceClassification.call.token_type_ids",description:`<strong>token_type_ids</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.TFDebertaV2ForSequenceClassification.call.position_ids",description:`<strong>position_ids</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.TFDebertaV2ForSequenceClassification.call.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.TFDebertaV2ForSequenceClassification.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.TFDebertaV2ForSequenceClassification.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.TFDebertaV2ForSequenceClassification.call.return_dict",description:"<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;\nWhether or not to return a [`~utils.ModelOutput&#x201C;] instead of a plain tuple.",name:"return_dict"},{anchor:"transformers.TFDebertaV2ForSequenceClassification.call.labels",description:`<strong>labels</strong> (<code>tf.Tensor</code> or <code>np.ndarray</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the sequence classification/regression loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>. If <code>config.num_labels == 1</code> a regression loss is computed (Mean-Square loss), If
<code>config.num_labels &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_tf_deberta_v2.py#L1320",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_tf_outputs.TFSequenceClassifierOutput"
>transformers.modeling_tf_outputs.TFSequenceClassifierOutput</a> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<a
  href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config"
>DebertaV2Config</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, )</code>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Classification (or regression if config.num_labels==1) loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, config.num_labels)</code>) \u2014 Classification (or regression if config.num_labels==1) scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_tf_outputs.TFSequenceClassifierOutput"
>transformers.modeling_tf_outputs.TFSequenceClassifierOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),Fn=new He({props:{$$slots:{default:[wT]},$$scope:{ctx:F}}}),Jn=new Ye({props:{anchor:"transformers.TFDebertaV2ForSequenceClassification.call.example",$$slots:{default:[vT]},$$scope:{ctx:F}}}),Cn=new Ye({props:{anchor:"transformers.TFDebertaV2ForSequenceClassification.call.example-2",$$slots:{default:[kT]},$$scope:{ctx:F}}}),Xa=new Le({}),Pa=new K({props:{name:"class transformers.TFDebertaV2ForTokenClassification",anchor:"transformers.TFDebertaV2ForTokenClassification",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFDebertaV2ForTokenClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config">DebertaV2Config</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_tf_deberta_v2.py#L1384"}}),Bn=new He({props:{$$slots:{default:[MT]},$$scope:{ctx:F}}}),Ha=new K({props:{name:"call",anchor:"transformers.TFDebertaV2ForTokenClassification.call",parameters:[{name:"input_ids",val:": TFModelInputType | None = None"},{name:"attention_mask",val:": np.ndarray | tf.Tensor | None = None"},{name:"token_type_ids",val:": np.ndarray | tf.Tensor | None = None"},{name:"position_ids",val:": np.ndarray | tf.Tensor | None = None"},{name:"inputs_embeds",val:": np.ndarray | tf.Tensor | None = None"},{name:"output_attentions",val:": Optional[bool] = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"labels",val:": np.ndarray | tf.Tensor | None = None"},{name:"training",val:": Optional[bool] = False"}],parametersDescription:[{anchor:"transformers.TFDebertaV2ForTokenClassification.call.input_ids",description:`<strong>input_ids</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code> \`<code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFDebertaV2ForTokenClassification.call.attention_mask",description:`<strong>attention_mask</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.TFDebertaV2ForTokenClassification.call.token_type_ids",description:`<strong>token_type_ids</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.TFDebertaV2ForTokenClassification.call.position_ids",description:`<strong>position_ids</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.TFDebertaV2ForTokenClassification.call.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.TFDebertaV2ForTokenClassification.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.TFDebertaV2ForTokenClassification.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.TFDebertaV2ForTokenClassification.call.return_dict",description:"<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;\nWhether or not to return a [`~utils.ModelOutput&#x201C;] instead of a plain tuple.",name:"return_dict"},{anchor:"transformers.TFDebertaV2ForTokenClassification.call.labels",description:`<strong>labels</strong> (<code>tf.Tensor</code> or <code>np.ndarray</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Labels for computing the token classification loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>.`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_tf_deberta_v2.py#L1396",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_tf_outputs.TFTokenClassifierOutput"
>transformers.modeling_tf_outputs.TFTokenClassifierOutput</a> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<a
  href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config"
>DebertaV2Config</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>tf.Tensor</code> of shape <code>(n,)</code>, <em>optional</em>, where n is the number of unmasked labels, returned when <code>labels</code> is provided)  \u2014 Classification loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, config.num_labels)</code>) \u2014 Classification scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_tf_outputs.TFTokenClassifierOutput"
>transformers.modeling_tf_outputs.TFTokenClassifierOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),zn=new He({props:{$$slots:{default:[$T]},$$scope:{ctx:F}}}),Un=new Ye({props:{anchor:"transformers.TFDebertaV2ForTokenClassification.call.example",$$slots:{default:[ET]},$$scope:{ctx:F}}}),In=new Ye({props:{anchor:"transformers.TFDebertaV2ForTokenClassification.call.example-2",$$slots:{default:[DT]},$$scope:{ctx:F}}}),Ka=new Le({}),er=new K({props:{name:"class transformers.TFDebertaV2ForQuestionAnswering",anchor:"transformers.TFDebertaV2ForQuestionAnswering",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFDebertaV2ForQuestionAnswering.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config">DebertaV2Config</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_tf_deberta_v2.py#L1456"}}),xn=new He({props:{$$slots:{default:[jT]},$$scope:{ctx:F}}}),ar=new K({props:{name:"call",anchor:"transformers.TFDebertaV2ForQuestionAnswering.call",parameters:[{name:"input_ids",val:": TFModelInputType | None = None"},{name:"attention_mask",val:": np.ndarray | tf.Tensor | None = None"},{name:"token_type_ids",val:": np.ndarray | tf.Tensor | None = None"},{name:"position_ids",val:": np.ndarray | tf.Tensor | None = None"},{name:"inputs_embeds",val:": np.ndarray | tf.Tensor | None = None"},{name:"output_attentions",val:": Optional[bool] = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"start_positions",val:": np.ndarray | tf.Tensor | None = None"},{name:"end_positions",val:": np.ndarray | tf.Tensor | None = None"},{name:"training",val:": Optional[bool] = False"}],parametersDescription:[{anchor:"transformers.TFDebertaV2ForQuestionAnswering.call.input_ids",description:`<strong>input_ids</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code> \`<code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFDebertaV2ForQuestionAnswering.call.attention_mask",description:`<strong>attention_mask</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.TFDebertaV2ForQuestionAnswering.call.token_type_ids",description:`<strong>token_type_ids</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.TFDebertaV2ForQuestionAnswering.call.position_ids",description:`<strong>position_ids</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.TFDebertaV2ForQuestionAnswering.call.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.TFDebertaV2ForQuestionAnswering.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.TFDebertaV2ForQuestionAnswering.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.TFDebertaV2ForQuestionAnswering.call.return_dict",description:"<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;\nWhether or not to return a [`~utils.ModelOutput&#x201C;] instead of a plain tuple.",name:"return_dict"},{anchor:"transformers.TFDebertaV2ForQuestionAnswering.call.start_positions",description:`<strong>start_positions</strong> (<code>tf.Tensor</code> or <code>np.ndarray</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for position (index) of the start of the labelled span for computing the token classification loss.
Positions are clamped to the length of the sequence (<code>sequence_length</code>). Position outside of the sequence
are not taken into account for computing the loss.`,name:"start_positions"},{anchor:"transformers.TFDebertaV2ForQuestionAnswering.call.end_positions",description:`<strong>end_positions</strong> (<code>tf.Tensor</code> or <code>np.ndarray</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for position (index) of the end of the labelled span for computing the token classification loss.
Positions are clamped to the length of the sequence (<code>sequence_length</code>). Position outside of the sequence
are not taken into account for computing the loss.`,name:"end_positions"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_tf_deberta_v2.py#L1467",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_tf_outputs.TFQuestionAnsweringModelOutput"
>transformers.modeling_tf_outputs.TFQuestionAnsweringModelOutput</a> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<a
  href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config"
>DebertaV2Config</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, )</code>, <em>optional</em>, returned when <code>start_positions</code> and <code>end_positions</code> are provided) \u2014 Total span extraction loss is the sum of a Cross-Entropy for the start and end positions.</p>
</li>
<li>
<p><strong>start_logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Span-start scores (before SoftMax).</p>
</li>
<li>
<p><strong>end_logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, sequence_length)</code>) \u2014 Span-end scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_tf_outputs.TFQuestionAnsweringModelOutput"
>transformers.modeling_tf_outputs.TFQuestionAnsweringModelOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),Zn=new He({props:{$$slots:{default:[VT]},$$scope:{ctx:F}}}),Gn=new Ye({props:{anchor:"transformers.TFDebertaV2ForQuestionAnswering.call.example",$$slots:{default:[FT]},$$scope:{ctx:F}}}),qn=new Ye({props:{anchor:"transformers.TFDebertaV2ForQuestionAnswering.call.example-2",$$slots:{default:[JT]},$$scope:{ctx:F}}}),rr=new Le({}),ir=new K({props:{name:"class transformers.TFDebertaV2ForMultipleChoice",anchor:"transformers.TFDebertaV2ForMultipleChoice",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFDebertaV2ForMultipleChoice.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config">DebertaV2Config</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_tf_deberta_v2.py#L1541"}}),An=new He({props:{$$slots:{default:[CT]},$$scope:{ctx:F}}}),hr=new K({props:{name:"call",anchor:"transformers.TFDebertaV2ForMultipleChoice.call",parameters:[{name:"input_ids",val:": TFModelInputType | None = None"},{name:"attention_mask",val:": np.ndarray | tf.Tensor | None = None"},{name:"token_type_ids",val:": np.ndarray | tf.Tensor | None = None"},{name:"position_ids",val:": np.ndarray | tf.Tensor | None = None"},{name:"inputs_embeds",val:": np.ndarray | tf.Tensor | None = None"},{name:"output_attentions",val:": Optional[bool] = None"},{name:"output_hidden_states",val:": Optional[bool] = None"},{name:"return_dict",val:": Optional[bool] = None"},{name:"labels",val:": np.ndarray | tf.Tensor | None = None"},{name:"training",val:": Optional[bool] = False"}],parametersDescription:[{anchor:"transformers.TFDebertaV2ForMultipleChoice.call.input_ids",description:`<strong>input_ids</strong> (<code>np.ndarray</code>, <code>tf.Tensor</code>, <code>List[tf.Tensor]</code> \`<code>Dict[str, tf.Tensor]</code> or <code>Dict[str, np.ndarray]</code> and each example must have the shape <code>(batch_size, num_choices, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.TFDebertaV2ForMultipleChoice.call.attention_mask",description:`<strong>attention_mask</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, num_choices, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.TFDebertaV2ForMultipleChoice.call.token_type_ids",description:`<strong>token_type_ids</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, num_choices, sequence_length)</code>, <em>optional</em>) &#x2014;
Segment token indices to indicate first and second portions of the inputs. Indices are selected in <code>[0, 1]</code>:</p>
<ul>
<li>0 corresponds to a <em>sentence A</em> token,</li>
<li>1 corresponds to a <em>sentence B</em> token.</li>
</ul>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"token_type_ids"},{anchor:"transformers.TFDebertaV2ForMultipleChoice.call.position_ids",description:`<strong>position_ids</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, num_choices, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.TFDebertaV2ForMultipleChoice.call.inputs_embeds",description:`<strong>inputs_embeds</strong> (<code>np.ndarray</code> or <code>tf.Tensor</code> of shape <code>(batch_size, num_choices, sequence_length, hidden_size)</code>, <em>optional</em>) &#x2014;
Optionally, instead of passing <code>input_ids</code> you can choose to directly pass an embedded representation. This
is useful if you want more control over how to convert <em>input_ids</em> indices into associated vectors than the
model&#x2019;s internal embedding lookup matrix.`,name:"inputs_embeds"},{anchor:"transformers.TFDebertaV2ForMultipleChoice.call.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.TFDebertaV2ForMultipleChoice.call.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.TFDebertaV2ForMultipleChoice.call.return_dict",description:"<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;\nWhether or not to return a [`~utils.ModelOutput&#x201C;] instead of a plain tuple.",name:"return_dict"},{anchor:"transformers.TFDebertaV2ForMultipleChoice.call.labels",description:`<strong>labels</strong> (<code>tf.Tensor</code> or <code>np.ndarray</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the multiple choice classification loss. Indices should be in <code>[0, ..., num_choices]</code>
where <code>num_choices</code> is the size of the second dimension of the input tensors. (See <code>input_ids</code> above)`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deberta_v2/modeling_tf_deberta_v2.py#L1556",returnDescription:`
<p>A <a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_tf_outputs.TFMultipleChoiceModelOutput"
>transformers.modeling_tf_outputs.TFMultipleChoiceModelOutput</a> or a tuple of <code>tf.Tensor</code> (if
<code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various elements depending on the
configuration (<a
  href="/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Config"
>DebertaV2Config</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>tf.Tensor</code> of shape <em>(batch_size, )</em>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Classification loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, num_choices)</code>) \u2014 <em>num_choices</em> is the second dimension of the input tensors. (see <em>input_ids</em> above).</p>
<p>Classification scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) of shape
<code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>tf.Tensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/main/en/main_classes/output#transformers.modeling_tf_outputs.TFMultipleChoiceModelOutput"
>transformers.modeling_tf_outputs.TFMultipleChoiceModelOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),Sn=new He({props:{$$slots:{default:[RT]},$$scope:{ctx:F}}}),Xn=new Ye({props:{anchor:"transformers.TFDebertaV2ForMultipleChoice.call.example",$$slots:{default:[BT]},$$scope:{ctx:F}}}),{c(){d=a("meta"),y=p(),m=a("h1"),f=a("a"),T=a("span"),w(l.$$.fragment),c=p(),J=a("span"),ye=n("DeBERTa-v2"),pe=p(),W=a("h2"),ae=a("a"),oe=a("span"),w(D.$$.fragment),Te=p(),X=a("span"),we=n("Overview"),he=p(),G=a("p"),ve=n("The DeBERTa model was proposed in "),ie=a("a"),L=n("DeBERTa: Decoding-enhanced BERT with Disentangled Attention"),ke=n(` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen It is based on Google\u2019s
BERT model released in 2018 and Facebook\u2019s RoBERTa model released in 2019.`),me=p(),N=a("p"),Me=n(`It builds on RoBERTa with disentangled attention and enhanced mask decoder training with half of the data used in
RoBERTa.`),ue=p(),A=a("p"),$e=n("The abstract from the paper is the following:"),fe=p(),ee=a("p"),C=a("em"),B=n(`Recent progress in pre-trained neural language models has significantly improved the performance of many natural
language processing (NLP) tasks. In this paper we propose a new model architecture DeBERTa (Decoding-enhanced BERT with
disentangled attention) that improves the BERT and RoBERTa models using two novel techniques. The first is the
disentangled attention mechanism, where each word is represented using two vectors that encode its content and
position, respectively, and the attention weights among words are computed using disentangled matrices on their
contents and relative positions. Second, an enhanced mask decoder is used to replace the output softmax layer to
predict the masked tokens for model pretraining. We show that these two techniques significantly improve the efficiency
of model pretraining and performance of downstream tasks. Compared to RoBERTa-Large, a DeBERTa model trained on half of
the training data performs consistently better on a wide range of NLP tasks, achieving improvements on MNLI by +0.9%
(90.2% vs. 91.1%), on SQuAD v2.0 by +2.3% (88.4% vs. 90.7%) and RACE by +3.6% (83.2% vs. 86.8%). The DeBERTa code and
pre-trained models will be made publicly available at `),le=a("a"),Y=n("https://github.com/microsoft/DeBERTa"),Ee=n("."),ge=p(),x=a("p"),De=n("The following information is visible directly on the "),de=a("a"),z=n(`original implementation
repository`),je=n(`. DeBERTa v2 is the second version of the DeBERTa model. It includes
the 1.5B model used for the SuperGLUE single-model submission and achieving 89.9, versus human baseline 89.8. You can
find more details about this submission in the authors\u2019
`),q=a("a"),Ve=n("blog"),_e=p(),S=a("p"),Fe=n("New in v2:"),be=p(),U=a("ul"),re=a("li"),P=a("strong"),Je=n("Vocabulary"),ne=n(` In v2 the tokenizer is changed to use a new vocabulary of size 128K built from the training data.
Instead of a GPT2-based tokenizer, the tokenizer is now
`),R=a("a"),Ce=n("sentencepiece-based"),I=n(" tokenizer."),Re=p(),ce=a("li"),_=a("strong"),j=n("nGiE(nGram Induced Input Encoding)"),Ge=n(` The DeBERTa-v2 model uses an additional convolution layer aside with the first
transformer layer to better learn the local dependency of input tokens.`),se=p(),Be=a("li"),Ie=a("strong"),V=n("Sharing position projection matrix with content projection matrix in attention layer"),qe=n(` Based on previous
experiments, this can save parameters without affecting the performance.`),Ne=p(),ze=a("li"),We=a("strong"),Ae=n("Apply bucket to encode relative positions"),Z=n(` The DeBERTa-v2 model uses log bucket to encode relative positions
similar to T5.`),Q=p(),Ue=a("li"),xe=a("strong"),O=n("900M model & 1.5B model"),Se=n(` Two additional model sizes are available: 900M and 1.5B, which significantly improves the
performance of downstream tasks.`),Ze=p(),te=a("p"),Xe=n("This model was contributed by "),H=a("a"),Pe=n("DeBERTa"),Yc=n(`. This model TF 2.0 implementation was
contributed by `),cs=a("a"),Qc=n("kamalkraj"),Oc=n(". The original code can be found "),ps=a("a"),Hc=n("here"),Kc=n("."),wd=p(),oo=a("h2"),qo=a("a"),ui=a("span"),w(hs.$$.fragment),ep=p(),fi=a("span"),tp=n("Documentation resources"),vd=p(),ct=a("ul"),gi=a("li"),br=a("a"),op=n("Text classification task guide"),np=p(),_i=a("li"),yr=a("a"),sp=n("Token classification task guide"),ap=p(),bi=a("li"),Tr=a("a"),rp=n("Question answering task guide"),ip=p(),yi=a("li"),wr=a("a"),lp=n("Masked language modeling task guide"),dp=p(),Ti=a("li"),vr=a("a"),cp=n("Multiple choice task guide"),kd=p(),no=a("h2"),No=a("a"),wi=a("span"),w(ms.$$.fragment),pp=p(),vi=a("span"),hp=n("DebertaV2Config"),Md=p(),gt=a("div"),w(us.$$.fragment),mp=p(),so=a("p"),up=n("This is the configuration class to store the configuration of a "),kr=a("a"),fp=n("DebertaV2Model"),gp=n(`. It is used to instantiate a
DeBERTa-v2 model according to the specified arguments, defining the model architecture. Instantiating a
configuration with the defaults will yield a similar configuration to that of the DeBERTa
`),fs=a("a"),_p=n("microsoft/deberta-v2-xlarge"),bp=n(" architecture."),yp=p(),ao=a("p"),Tp=n("Configuration objects inherit from "),Mr=a("a"),wp=n("PretrainedConfig"),vp=n(` and can be used to control the model outputs. Read the
documentation from `),$r=a("a"),kp=n("PretrainedConfig"),Mp=n(" for more information."),$p=p(),w(Ao.$$.fragment),$d=p(),ro=a("h2"),So=a("a"),ki=a("span"),w(gs.$$.fragment),Ep=p(),Mi=a("span"),Dp=n("DebertaV2Tokenizer"),Ed=p(),Ke=a("div"),w(_s.$$.fragment),jp=p(),bs=a("p"),Vp=n("Constructs a DeBERTa-v2 tokenizer. Based on "),ys=a("a"),Fp=n("SentencePiece"),Jp=n("."),Cp=p(),Gt=a("div"),w(Ts.$$.fragment),Rp=p(),$i=a("p"),Bp=n(`Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
adding special tokens. A DeBERTa sequence has the following format:`),zp=p(),ws=a("ul"),Ei=a("li"),Up=n("single sequence: [CLS] X [SEP]"),Ip=p(),Di=a("li"),Wp=n("pair of sequences: [CLS] A [SEP] B [SEP]"),xp=p(),Xo=a("div"),w(vs.$$.fragment),Zp=p(),io=a("p"),Gp=n(`Retrieves sequence ids from a token list that has no special tokens added. This method is called when adding
special tokens using the tokenizer `),ji=a("code"),qp=n("prepare_for_model"),Np=n(" or "),Vi=a("code"),Ap=n("encode_plus"),Sp=n(" methods."),Xp=p(),vt=a("div"),w(ks.$$.fragment),Pp=p(),Fi=a("p"),Lp=n("Create a mask from the two sequences passed to be used in a sequence-pair classification task. A DeBERTa"),Yp=p(),w(Po.$$.fragment),Qp=p(),lo=a("p"),Op=n("If "),Ji=a("code"),Hp=n("token_ids_1"),Kp=n(" is "),Ci=a("code"),eh=n("None"),th=n(", this method only returns the first portion of the mask (0s)."),oh=p(),Er=a("div"),w(Ms.$$.fragment),Dd=p(),co=a("h2"),Lo=a("a"),Ri=a("span"),w($s.$$.fragment),nh=p(),Bi=a("span"),sh=n("DebertaV2TokenizerFast"),jd=p(),_t=a("div"),w(Es.$$.fragment),ah=p(),Ds=a("p"),rh=n("Constructs a DeBERTa-v2 fast tokenizer. Based on "),js=a("a"),ih=n("SentencePiece"),lh=n("."),dh=p(),qt=a("div"),w(Vs.$$.fragment),ch=p(),zi=a("p"),ph=n(`Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
adding special tokens. A DeBERTa sequence has the following format:`),hh=p(),Fs=a("ul"),Ui=a("li"),mh=n("single sequence: [CLS] X [SEP]"),uh=p(),Ii=a("li"),fh=n("pair of sequences: [CLS] A [SEP] B [SEP]"),gh=p(),kt=a("div"),w(Js.$$.fragment),_h=p(),Wi=a("p"),bh=n("Create a mask from the two sequences passed to be used in a sequence-pair classification task. A DeBERTa"),yh=p(),w(Yo.$$.fragment),Th=p(),po=a("p"),wh=n("If "),xi=a("code"),vh=n("token_ids_1"),kh=n(" is "),Zi=a("code"),Mh=n("None"),$h=n(", this method only returns the first portion of the mask (0s)."),Vd=p(),ho=a("h2"),Qo=a("a"),Gi=a("span"),w(Cs.$$.fragment),Eh=p(),qi=a("span"),Dh=n("DebertaV2Model"),Fd=p(),bt=a("div"),w(Rs.$$.fragment),jh=p(),Bs=a("p"),Vh=n(`The bare DeBERTa Model transformer outputting raw hidden-states without any specific head on top.
The DeBERTa model was proposed in `),zs=a("a"),Fh=n(`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),Jh=n(` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),Ch=p(),Us=a("p"),Rh=n("This model is also a PyTorch "),Is=a("a"),Bh=n("torch.nn.Module"),zh=n(` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),Uh=p(),Mt=a("div"),w(Ws.$$.fragment),Ih=p(),mo=a("p"),Wh=n("The "),Dr=a("a"),xh=n("DebertaV2Model"),Zh=n(" forward method, overrides the "),Ni=a("code"),Gh=n("__call__"),qh=n(" special method."),Nh=p(),w(Oo.$$.fragment),Ah=p(),w(Ho.$$.fragment),Jd=p(),uo=a("h2"),Ko=a("a"),Ai=a("span"),w(xs.$$.fragment),Sh=p(),Si=a("span"),Xh=n("DebertaV2PreTrainedModel"),Cd=p(),Wt=a("div"),w(Zs.$$.fragment),Ph=p(),Xi=a("p"),Lh=n(`An abstract class to handle weights initialization and a simple interface for downloading and loading pretrained
models.`),Yh=p(),$t=a("div"),w(Gs.$$.fragment),Qh=p(),Pi=a("p"),Oh=n("Defines the computation performed at every call."),Hh=p(),Li=a("p"),Kh=n("Should be overridden by all subclasses."),em=p(),w(en.$$.fragment),Rd=p(),fo=a("h2"),tn=a("a"),Yi=a("span"),w(qs.$$.fragment),tm=p(),Qi=a("span"),om=n("DebertaV2ForMaskedLM"),Bd=p(),yt=a("div"),w(Ns.$$.fragment),nm=p(),go=a("p"),sm=n("DeBERTa Model with a "),Oi=a("code"),am=n("language modeling"),rm=n(` head on top.
The DeBERTa model was proposed in `),As=a("a"),im=n(`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),lm=n(` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),dm=p(),Ss=a("p"),cm=n("This model is also a PyTorch "),Xs=a("a"),pm=n("torch.nn.Module"),hm=n(` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),mm=p(),Et=a("div"),w(Ps.$$.fragment),um=p(),_o=a("p"),fm=n("The "),jr=a("a"),gm=n("DebertaV2ForMaskedLM"),_m=n(" forward method, overrides the "),Hi=a("code"),bm=n("__call__"),ym=n(" special method."),Tm=p(),w(on.$$.fragment),wm=p(),w(nn.$$.fragment),zd=p(),bo=a("h2"),sn=a("a"),Ki=a("span"),w(Ls.$$.fragment),vm=p(),el=a("span"),km=n("DebertaV2ForSequenceClassification"),Ud=p(),st=a("div"),w(Ys.$$.fragment),Mm=p(),tl=a("p"),$m=n(`DeBERTa Model transformer with a sequence classification/regression head on top (a linear layer on top of the
pooled output) e.g. for GLUE tasks.`),Em=p(),Qs=a("p"),Dm=n("The DeBERTa model was proposed in "),Os=a("a"),jm=n(`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),Vm=n(` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),Fm=p(),Hs=a("p"),Jm=n("This model is also a PyTorch "),Ks=a("a"),Cm=n("torch.nn.Module"),Rm=n(` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),Bm=p(),pt=a("div"),w(ea.$$.fragment),zm=p(),yo=a("p"),Um=n("The "),Vr=a("a"),Im=n("DebertaV2ForSequenceClassification"),Wm=n(" forward method, overrides the "),ol=a("code"),xm=n("__call__"),Zm=n(" special method."),Gm=p(),w(an.$$.fragment),qm=p(),w(rn.$$.fragment),Nm=p(),w(ln.$$.fragment),Id=p(),To=a("h2"),dn=a("a"),nl=a("span"),w(ta.$$.fragment),Am=p(),sl=a("span"),Sm=n("DebertaV2ForTokenClassification"),Wd=p(),at=a("div"),w(oa.$$.fragment),Xm=p(),al=a("p"),Pm=n(`DeBERTa 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.`),Lm=p(),na=a("p"),Ym=n("The DeBERTa model was proposed in "),sa=a("a"),Qm=n(`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),Om=n(` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),Hm=p(),aa=a("p"),Km=n("This model is also a PyTorch "),ra=a("a"),eu=n("torch.nn.Module"),tu=n(` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),ou=p(),Dt=a("div"),w(ia.$$.fragment),nu=p(),wo=a("p"),su=n("The "),Fr=a("a"),au=n("DebertaV2ForTokenClassification"),ru=n(" forward method, overrides the "),rl=a("code"),iu=n("__call__"),lu=n(" special method."),du=p(),w(cn.$$.fragment),cu=p(),w(pn.$$.fragment),xd=p(),vo=a("h2"),hn=a("a"),il=a("span"),w(la.$$.fragment),pu=p(),ll=a("span"),hu=n("DebertaV2ForQuestionAnswering"),Zd=p(),rt=a("div"),w(da.$$.fragment),mu=p(),ko=a("p"),uu=n(`DeBERTa Model with a span classification head on top for extractive question-answering tasks like SQuAD (a linear
layers on top of the hidden-states output to compute `),dl=a("code"),fu=n("span start logits"),gu=n(" and "),cl=a("code"),_u=n("span end logits"),bu=n(")."),yu=p(),ca=a("p"),Tu=n("The DeBERTa model was proposed in "),pa=a("a"),wu=n(`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),vu=n(` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),ku=p(),ha=a("p"),Mu=n("This model is also a PyTorch "),ma=a("a"),$u=n("torch.nn.Module"),Eu=n(` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),Du=p(),jt=a("div"),w(ua.$$.fragment),ju=p(),Mo=a("p"),Vu=n("The "),Jr=a("a"),Fu=n("DebertaV2ForQuestionAnswering"),Ju=n(" forward method, overrides the "),pl=a("code"),Cu=n("__call__"),Ru=n(" special method."),Bu=p(),w(mn.$$.fragment),zu=p(),w(un.$$.fragment),Gd=p(),$o=a("h2"),fn=a("a"),hl=a("span"),w(fa.$$.fragment),Uu=p(),ml=a("span"),Iu=n("DebertaV2ForMultipleChoice"),qd=p(),it=a("div"),w(ga.$$.fragment),Wu=p(),ul=a("p"),xu=n(`DeBERTa 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.`),Zu=p(),_a=a("p"),Gu=n("The DeBERTa model was proposed in "),ba=a("a"),qu=n(`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),Nu=n(` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),Au=p(),ya=a("p"),Su=n("This model is also a PyTorch "),Ta=a("a"),Xu=n("torch.nn.Module"),Pu=n(` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),Lu=p(),Vt=a("div"),w(wa.$$.fragment),Yu=p(),Eo=a("p"),Qu=n("The "),Cr=a("a"),Ou=n("DebertaV2ForMultipleChoice"),Hu=n(" forward method, overrides the "),fl=a("code"),Ku=n("__call__"),ef=n(" special method."),tf=p(),w(gn.$$.fragment),of=p(),w(_n.$$.fragment),Nd=p(),Do=a("h2"),bn=a("a"),gl=a("span"),w(va.$$.fragment),nf=p(),_l=a("span"),sf=n("TFDebertaV2Model"),Ad=p(),lt=a("div"),w(ka.$$.fragment),af=p(),Ma=a("p"),rf=n(`The bare DeBERTa Model transformer outputting raw hidden-states without any specific head on top.
The DeBERTa model was proposed in `),$a=a("a"),lf=n(`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),df=n(` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),cf=p(),Ea=a("p"),pf=n("This model is also a "),Da=a("a"),hf=n("tf.keras.Model"),mf=n(` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),uf=p(),w(yn.$$.fragment),ff=p(),Ft=a("div"),w(ja.$$.fragment),gf=p(),jo=a("p"),_f=n("The "),Rr=a("a"),bf=n("TFDebertaV2Model"),yf=n(" forward method, overrides the "),bl=a("code"),Tf=n("__call__"),wf=n(" special method."),vf=p(),w(Tn.$$.fragment),kf=p(),w(wn.$$.fragment),Sd=p(),Vo=a("h2"),vn=a("a"),yl=a("span"),w(Va.$$.fragment),Mf=p(),Tl=a("span"),$f=n("TFDebertaV2PreTrainedModel"),Xd=p(),xt=a("div"),w(Fa.$$.fragment),Ef=p(),wl=a("p"),Df=n(`An abstract class to handle weights initialization and a simple interface for downloading and loading pretrained
models.`),jf=p(),Jt=a("div"),w(Ja.$$.fragment),Vf=p(),vl=a("p"),Ff=n("Calls the model on new inputs and returns the outputs as tensors."),Jf=p(),Ca=a("p"),Cf=n("In this case "),kl=a("code"),Rf=n("call()"),Bf=n(` just reapplies
all ops in the graph to the new inputs
(e.g. build a new computational graph from the provided inputs).`),zf=p(),Tt=a("p"),Uf=n(`Note: This method should not be called directly. It is only meant to be
overridden when subclassing `),Ml=a("code"),If=n("tf.keras.Model"),Wf=n(`.
To call a model on an input, always use the `),$l=a("code"),xf=n("__call__()"),Zf=n(` method,
i.e. `),El=a("code"),Gf=n("model(inputs)"),qf=n(", which relies on the underlying "),Dl=a("code"),Nf=n("call()"),Af=n(" method."),Pd=p(),Fo=a("h2"),kn=a("a"),jl=a("span"),w(Ra.$$.fragment),Sf=p(),Vl=a("span"),Xf=n("TFDebertaV2ForMaskedLM"),Ld=p(),dt=a("div"),w(Ba.$$.fragment),Pf=p(),Jo=a("p"),Lf=n("DeBERTa Model with a "),Fl=a("code"),Yf=n("language modeling"),Qf=n(` head on top.
The DeBERTa model was proposed in `),za=a("a"),Of=n(`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),Hf=n(` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),Kf=p(),Ua=a("p"),eg=n("This model is also a "),Ia=a("a"),tg=n("tf.keras.Model"),og=n(` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),ng=p(),w(Mn.$$.fragment),sg=p(),ht=a("div"),w(Wa.$$.fragment),ag=p(),Co=a("p"),rg=n("The "),Br=a("a"),ig=n("TFDebertaV2ForMaskedLM"),lg=n(" forward method, overrides the "),Jl=a("code"),dg=n("__call__"),cg=n(" special method."),pg=p(),w($n.$$.fragment),hg=p(),w(En.$$.fragment),mg=p(),w(Dn.$$.fragment),Yd=p(),Ro=a("h2"),jn=a("a"),Cl=a("span"),w(xa.$$.fragment),ug=p(),Rl=a("span"),fg=n("TFDebertaV2ForSequenceClassification"),Qd=p(),et=a("div"),w(Za.$$.fragment),gg=p(),Bl=a("p"),_g=n(`DeBERTa Model transformer with a sequence classification/regression head on top (a linear layer on top of the
pooled output) e.g. for GLUE tasks.`),bg=p(),Ga=a("p"),yg=n("The DeBERTa model was proposed in "),qa=a("a"),Tg=n(`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),wg=n(` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),vg=p(),Na=a("p"),kg=n("This model is also a "),Aa=a("a"),Mg=n("tf.keras.Model"),$g=n(` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),Eg=p(),w(Vn.$$.fragment),Dg=p(),mt=a("div"),w(Sa.$$.fragment),jg=p(),Bo=a("p"),Vg=n("The "),zr=a("a"),Fg=n("TFDebertaV2ForSequenceClassification"),Jg=n(" forward method, overrides the "),zl=a("code"),Cg=n("__call__"),Rg=n(" special method."),Bg=p(),w(Fn.$$.fragment),zg=p(),w(Jn.$$.fragment),Ug=p(),w(Cn.$$.fragment),Od=p(),zo=a("h2"),Rn=a("a"),Ul=a("span"),w(Xa.$$.fragment),Ig=p(),Il=a("span"),Wg=n("TFDebertaV2ForTokenClassification"),Hd=p(),tt=a("div"),w(Pa.$$.fragment),xg=p(),Wl=a("p"),Zg=n(`DeBERTa 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.`),Gg=p(),La=a("p"),qg=n("The DeBERTa model was proposed in "),Ya=a("a"),Ng=n(`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),Ag=n(` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),Sg=p(),Qa=a("p"),Xg=n("This model is also a "),Oa=a("a"),Pg=n("tf.keras.Model"),Lg=n(` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),Yg=p(),w(Bn.$$.fragment),Qg=p(),ut=a("div"),w(Ha.$$.fragment),Og=p(),Uo=a("p"),Hg=n("The "),Ur=a("a"),Kg=n("TFDebertaV2ForTokenClassification"),e_=n(" forward method, overrides the "),xl=a("code"),t_=n("__call__"),o_=n(" special method."),n_=p(),w(zn.$$.fragment),s_=p(),w(Un.$$.fragment),a_=p(),w(In.$$.fragment),Kd=p(),Io=a("h2"),Wn=a("a"),Zl=a("span"),w(Ka.$$.fragment),r_=p(),Gl=a("span"),i_=n("TFDebertaV2ForQuestionAnswering"),ec=p(),ot=a("div"),w(er.$$.fragment),l_=p(),Wo=a("p"),d_=n(`DeBERTa Model with a span classification head on top for extractive question-answering tasks like SQuAD (a linear
layers on top of the hidden-states output to compute `),ql=a("code"),c_=n("span start logits"),p_=n(" and "),Nl=a("code"),h_=n("span end logits"),m_=n(")."),u_=p(),tr=a("p"),f_=n("The DeBERTa model was proposed in "),or=a("a"),g_=n(`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),__=n(` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),b_=p(),nr=a("p"),y_=n("This model is also a "),sr=a("a"),T_=n("tf.keras.Model"),w_=n(` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),v_=p(),w(xn.$$.fragment),k_=p(),ft=a("div"),w(ar.$$.fragment),M_=p(),xo=a("p"),$_=n("The "),Ir=a("a"),E_=n("TFDebertaV2ForQuestionAnswering"),D_=n(" forward method, overrides the "),Al=a("code"),j_=n("__call__"),V_=n(" special method."),F_=p(),w(Zn.$$.fragment),J_=p(),w(Gn.$$.fragment),C_=p(),w(qn.$$.fragment),tc=p(),Zo=a("h2"),Nn=a("a"),Sl=a("span"),w(rr.$$.fragment),R_=p(),Xl=a("span"),B_=n("TFDebertaV2ForMultipleChoice"),oc=p(),nt=a("div"),w(ir.$$.fragment),z_=p(),Pl=a("p"),U_=n(`DeBERTa 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.`),I_=p(),lr=a("p"),W_=n("The DeBERTa model was proposed in "),dr=a("a"),x_=n(`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),Z_=n(` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),G_=p(),cr=a("p"),q_=n("This model is also a "),pr=a("a"),N_=n("tf.keras.Model"),A_=n(` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),S_=p(),w(An.$$.fragment),X_=p(),Ct=a("div"),w(hr.$$.fragment),P_=p(),Go=a("p"),L_=n("The "),Wr=a("a"),Y_=n("TFDebertaV2ForMultipleChoice"),Q_=n(" forward method, overrides the "),Ll=a("code"),O_=n("__call__"),H_=n(" special method."),K_=p(),w(Sn.$$.fragment),eb=p(),w(Xn.$$.fragment),this.h()},l(o){const b=L2('[data-svelte="svelte-1phssyn"]',document.head);d=r(b,"META",{name:!0,content:!0}),b.forEach(t),y=h(o),m=r(o,"H1",{class:!0});var mr=i(m);f=r(mr,"A",{id:!0,class:!0,href:!0});var Yl=i(f);T=r(Yl,"SPAN",{});var Ql=i(T);v(l.$$.fragment,Ql),Ql.forEach(t),Yl.forEach(t),c=h(mr),J=r(mr,"SPAN",{});var Ol=i(J);ye=s(Ol,"DeBERTa-v2"),Ol.forEach(t),mr.forEach(t),pe=h(o),W=r(o,"H2",{class:!0});var ur=i(W);ae=r(ur,"A",{id:!0,class:!0,href:!0});var Hl=i(ae);oe=r(Hl,"SPAN",{});var Kl=i(oe);v(D.$$.fragment,Kl),Kl.forEach(t),Hl.forEach(t),Te=h(ur),X=r(ur,"SPAN",{});var ed=i(X);we=s(ed,"Overview"),ed.forEach(t),ur.forEach(t),he=h(o),G=r(o,"P",{});var fr=i(G);ve=s(fr,"The DeBERTa model was proposed in "),ie=r(fr,"A",{href:!0,rel:!0});var td=i(ie);L=s(td,"DeBERTa: Decoding-enhanced BERT with Disentangled Attention"),td.forEach(t),ke=s(fr,` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen It is based on Google\u2019s
BERT model released in 2018 and Facebook\u2019s RoBERTa model released in 2019.`),fr.forEach(t),me=h(o),N=r(o,"P",{});var od=i(N);Me=s(od,`It builds on RoBERTa with disentangled attention and enhanced mask decoder training with half of the data used in
RoBERTa.`),od.forEach(t),ue=h(o),A=r(o,"P",{});var nd=i(A);$e=s(nd,"The abstract from the paper is the following:"),nd.forEach(t),fe=h(o),ee=r(o,"P",{});var sd=i(ee);C=r(sd,"EM",{});var gr=i(C);B=s(gr,`Recent progress in pre-trained neural language models has significantly improved the performance of many natural
language processing (NLP) tasks. In this paper we propose a new model architecture DeBERTa (Decoding-enhanced BERT with
disentangled attention) that improves the BERT and RoBERTa models using two novel techniques. The first is the
disentangled attention mechanism, where each word is represented using two vectors that encode its content and
position, respectively, and the attention weights among words are computed using disentangled matrices on their
contents and relative positions. Second, an enhanced mask decoder is used to replace the output softmax layer to
predict the masked tokens for model pretraining. We show that these two techniques significantly improve the efficiency
of model pretraining and performance of downstream tasks. Compared to RoBERTa-Large, a DeBERTa model trained on half of
the training data performs consistently better on a wide range of NLP tasks, achieving improvements on MNLI by +0.9%
(90.2% vs. 91.1%), on SQuAD v2.0 by +2.3% (88.4% vs. 90.7%) and RACE by +3.6% (83.2% vs. 86.8%). The DeBERTa code and
pre-trained models will be made publicly available at `),le=r(gr,"A",{href:!0,rel:!0});var ad=i(le);Y=s(ad,"https://github.com/microsoft/DeBERTa"),ad.forEach(t),Ee=s(gr,"."),gr.forEach(t),sd.forEach(t),ge=h(o),x=r(o,"P",{});var Pn=i(x);De=s(Pn,"The following information is visible directly on the "),de=r(Pn,"A",{href:!0,rel:!0});var rd=i(de);z=s(rd,`original implementation
repository`),rd.forEach(t),je=s(Pn,`. DeBERTa v2 is the second version of the DeBERTa model. It includes
the 1.5B model used for the SuperGLUE single-model submission and achieving 89.9, versus human baseline 89.8. You can
find more details about this submission in the authors\u2019
`),q=r(Pn,"A",{href:!0,rel:!0});var id=i(q);Ve=s(id,"blog"),id.forEach(t),Pn.forEach(t),_e=h(o),S=r(o,"P",{});var ld=i(S);Fe=s(ld,"New in v2:"),ld.forEach(t),be=h(o),U=r(o,"UL",{});var wt=i(U);re=r(wt,"LI",{});var Ln=i(re);P=r(Ln,"STRONG",{});var dd=i(P);Je=s(dd,"Vocabulary"),dd.forEach(t),ne=s(Ln,` In v2 the tokenizer is changed to use a new vocabulary of size 128K built from the training data.
Instead of a GPT2-based tokenizer, the tokenizer is now
`),R=r(Ln,"A",{href:!0,rel:!0});var cd=i(R);Ce=s(cd,"sentencepiece-based"),cd.forEach(t),I=s(Ln," tokenizer."),Ln.forEach(t),Re=h(wt),ce=r(wt,"LI",{});var xr=i(ce);_=r(xr,"STRONG",{});var pd=i(_);j=s(pd,"nGiE(nGram Induced Input Encoding)"),pd.forEach(t),Ge=s(xr,` The DeBERTa-v2 model uses an additional convolution layer aside with the first
transformer layer to better learn the local dependency of input tokens.`),xr.forEach(t),se=h(wt),Be=r(wt,"LI",{});var Zr=i(Be);Ie=r(Zr,"STRONG",{});var hd=i(Ie);V=s(hd,"Sharing position projection matrix with content projection matrix in attention layer"),hd.forEach(t),qe=s(Zr,` Based on previous
experiments, this can save parameters without affecting the performance.`),Zr.forEach(t),Ne=h(wt),ze=r(wt,"LI",{});var Gr=i(ze);We=r(Gr,"STRONG",{});var md=i(We);Ae=s(md,"Apply bucket to encode relative positions"),md.forEach(t),Z=s(Gr,` The DeBERTa-v2 model uses log bucket to encode relative positions
similar to T5.`),Gr.forEach(t),Q=h(wt),Ue=r(wt,"LI",{});var qr=i(Ue);xe=r(qr,"STRONG",{});var ud=i(xe);O=s(ud,"900M model & 1.5B model"),ud.forEach(t),Se=s(qr,` Two additional model sizes are available: 900M and 1.5B, which significantly improves the
performance of downstream tasks.`),qr.forEach(t),wt.forEach(t),Ze=h(o),te=r(o,"P",{});var Zt=i(te);Xe=s(Zt,"This model was contributed by "),H=r(Zt,"A",{href:!0,rel:!0});var fd=i(H);Pe=s(fd,"DeBERTa"),fd.forEach(t),Yc=s(Zt,`. This model TF 2.0 implementation was
contributed by `),cs=r(Zt,"A",{href:!0,rel:!0});var gd=i(cs);Qc=s(gd,"kamalkraj"),gd.forEach(t),Oc=s(Zt,". The original code can be found "),ps=r(Zt,"A",{href:!0,rel:!0});var _d=i(ps);Hc=s(_d,"here"),_d.forEach(t),Kc=s(Zt,"."),Zt.forEach(t),wd=h(o),oo=r(o,"H2",{class:!0});var _r=i(oo);qo=r(_r,"A",{id:!0,class:!0,href:!0});var bd=i(qo);ui=r(bd,"SPAN",{});var yd=i(ui);v(hs.$$.fragment,yd),yd.forEach(t),bd.forEach(t),ep=h(_r),fi=r(_r,"SPAN",{});var Td=i(fi);tp=s(Td,"Documentation resources"),Td.forEach(t),_r.forEach(t),vd=h(o),ct=r(o,"UL",{});var Nt=i(ct);gi=r(Nt,"LI",{});var tb=i(gi);br=r(tb,"A",{href:!0});var ob=i(br);op=s(ob,"Text classification task guide"),ob.forEach(t),tb.forEach(t),np=h(Nt),_i=r(Nt,"LI",{});var nb=i(_i);yr=r(nb,"A",{href:!0});var sb=i(yr);sp=s(sb,"Token classification task guide"),sb.forEach(t),nb.forEach(t),ap=h(Nt),bi=r(Nt,"LI",{});var ab=i(bi);Tr=r(ab,"A",{href:!0});var rb=i(Tr);rp=s(rb,"Question answering task guide"),rb.forEach(t),ab.forEach(t),ip=h(Nt),yi=r(Nt,"LI",{});var ib=i(yi);wr=r(ib,"A",{href:!0});var lb=i(wr);lp=s(lb,"Masked language modeling task guide"),lb.forEach(t),ib.forEach(t),dp=h(Nt),Ti=r(Nt,"LI",{});var db=i(Ti);vr=r(db,"A",{href:!0});var cb=i(vr);cp=s(cb,"Multiple choice task guide"),cb.forEach(t),db.forEach(t),Nt.forEach(t),kd=h(o),no=r(o,"H2",{class:!0});var sc=i(no);No=r(sc,"A",{id:!0,class:!0,href:!0});var pb=i(No);wi=r(pb,"SPAN",{});var hb=i(wi);v(ms.$$.fragment,hb),hb.forEach(t),pb.forEach(t),pp=h(sc),vi=r(sc,"SPAN",{});var mb=i(vi);hp=s(mb,"DebertaV2Config"),mb.forEach(t),sc.forEach(t),Md=h(o),gt=r(o,"DIV",{class:!0});var Yn=i(gt);v(us.$$.fragment,Yn),mp=h(Yn),so=r(Yn,"P",{});var Nr=i(so);up=s(Nr,"This is the configuration class to store the configuration of a "),kr=r(Nr,"A",{href:!0});var ub=i(kr);fp=s(ub,"DebertaV2Model"),ub.forEach(t),gp=s(Nr,`. It is used to instantiate a
DeBERTa-v2 model according to the specified arguments, defining the model architecture. Instantiating a
configuration with the defaults will yield a similar configuration to that of the DeBERTa
`),fs=r(Nr,"A",{href:!0,rel:!0});var fb=i(fs);_p=s(fb,"microsoft/deberta-v2-xlarge"),fb.forEach(t),bp=s(Nr," architecture."),Nr.forEach(t),yp=h(Yn),ao=r(Yn,"P",{});var Ar=i(ao);Tp=s(Ar,"Configuration objects inherit from "),Mr=r(Ar,"A",{href:!0});var gb=i(Mr);wp=s(gb,"PretrainedConfig"),gb.forEach(t),vp=s(Ar,` and can be used to control the model outputs. Read the
documentation from `),$r=r(Ar,"A",{href:!0});var _b=i($r);kp=s(_b,"PretrainedConfig"),_b.forEach(t),Mp=s(Ar," for more information."),Ar.forEach(t),$p=h(Yn),v(Ao.$$.fragment,Yn),Yn.forEach(t),$d=h(o),ro=r(o,"H2",{class:!0});var ac=i(ro);So=r(ac,"A",{id:!0,class:!0,href:!0});var bb=i(So);ki=r(bb,"SPAN",{});var yb=i(ki);v(gs.$$.fragment,yb),yb.forEach(t),bb.forEach(t),Ep=h(ac),Mi=r(ac,"SPAN",{});var Tb=i(Mi);Dp=s(Tb,"DebertaV2Tokenizer"),Tb.forEach(t),ac.forEach(t),Ed=h(o),Ke=r(o,"DIV",{class:!0});var Rt=i(Ke);v(_s.$$.fragment,Rt),jp=h(Rt),bs=r(Rt,"P",{});var rc=i(bs);Vp=s(rc,"Constructs a DeBERTa-v2 tokenizer. Based on "),ys=r(rc,"A",{href:!0,rel:!0});var wb=i(ys);Fp=s(wb,"SentencePiece"),wb.forEach(t),Jp=s(rc,"."),rc.forEach(t),Cp=h(Rt),Gt=r(Rt,"DIV",{class:!0});var Sr=i(Gt);v(Ts.$$.fragment,Sr),Rp=h(Sr),$i=r(Sr,"P",{});var vb=i($i);Bp=s(vb,`Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
adding special tokens. A DeBERTa sequence has the following format:`),vb.forEach(t),zp=h(Sr),ws=r(Sr,"UL",{});var ic=i(ws);Ei=r(ic,"LI",{});var kb=i(Ei);Up=s(kb,"single sequence: [CLS] X [SEP]"),kb.forEach(t),Ip=h(ic),Di=r(ic,"LI",{});var Mb=i(Di);Wp=s(Mb,"pair of sequences: [CLS] A [SEP] B [SEP]"),Mb.forEach(t),ic.forEach(t),Sr.forEach(t),xp=h(Rt),Xo=r(Rt,"DIV",{class:!0});var lc=i(Xo);v(vs.$$.fragment,lc),Zp=h(lc),io=r(lc,"P",{});var Xr=i(io);Gp=s(Xr,`Retrieves sequence ids from a token list that has no special tokens added. This method is called when adding
special tokens using the tokenizer `),ji=r(Xr,"CODE",{});var $b=i(ji);qp=s($b,"prepare_for_model"),$b.forEach(t),Np=s(Xr," or "),Vi=r(Xr,"CODE",{});var Eb=i(Vi);Ap=s(Eb,"encode_plus"),Eb.forEach(t),Sp=s(Xr," methods."),Xr.forEach(t),lc.forEach(t),Xp=h(Rt),vt=r(Rt,"DIV",{class:!0});var Qn=i(vt);v(ks.$$.fragment,Qn),Pp=h(Qn),Fi=r(Qn,"P",{});var Db=i(Fi);Lp=s(Db,"Create a mask from the two sequences passed to be used in a sequence-pair classification task. A DeBERTa"),Db.forEach(t),Yp=h(Qn),v(Po.$$.fragment,Qn),Qp=h(Qn),lo=r(Qn,"P",{});var Pr=i(lo);Op=s(Pr,"If "),Ji=r(Pr,"CODE",{});var jb=i(Ji);Hp=s(jb,"token_ids_1"),jb.forEach(t),Kp=s(Pr," is "),Ci=r(Pr,"CODE",{});var Vb=i(Ci);eh=s(Vb,"None"),Vb.forEach(t),th=s(Pr,", this method only returns the first portion of the mask (0s)."),Pr.forEach(t),Qn.forEach(t),oh=h(Rt),Er=r(Rt,"DIV",{class:!0});var Fb=i(Er);v(Ms.$$.fragment,Fb),Fb.forEach(t),Rt.forEach(t),Dd=h(o),co=r(o,"H2",{class:!0});var dc=i(co);Lo=r(dc,"A",{id:!0,class:!0,href:!0});var Jb=i(Lo);Ri=r(Jb,"SPAN",{});var Cb=i(Ri);v($s.$$.fragment,Cb),Cb.forEach(t),Jb.forEach(t),nh=h(dc),Bi=r(dc,"SPAN",{});var Rb=i(Bi);sh=s(Rb,"DebertaV2TokenizerFast"),Rb.forEach(t),dc.forEach(t),jd=h(o),_t=r(o,"DIV",{class:!0});var On=i(_t);v(Es.$$.fragment,On),ah=h(On),Ds=r(On,"P",{});var cc=i(Ds);rh=s(cc,"Constructs a DeBERTa-v2 fast tokenizer. Based on "),js=r(cc,"A",{href:!0,rel:!0});var Bb=i(js);ih=s(Bb,"SentencePiece"),Bb.forEach(t),lh=s(cc,"."),cc.forEach(t),dh=h(On),qt=r(On,"DIV",{class:!0});var Lr=i(qt);v(Vs.$$.fragment,Lr),ch=h(Lr),zi=r(Lr,"P",{});var zb=i(zi);ph=s(zb,`Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
adding special tokens. A DeBERTa sequence has the following format:`),zb.forEach(t),hh=h(Lr),Fs=r(Lr,"UL",{});var pc=i(Fs);Ui=r(pc,"LI",{});var Ub=i(Ui);mh=s(Ub,"single sequence: [CLS] X [SEP]"),Ub.forEach(t),uh=h(pc),Ii=r(pc,"LI",{});var Ib=i(Ii);fh=s(Ib,"pair of sequences: [CLS] A [SEP] B [SEP]"),Ib.forEach(t),pc.forEach(t),Lr.forEach(t),gh=h(On),kt=r(On,"DIV",{class:!0});var Hn=i(kt);v(Js.$$.fragment,Hn),_h=h(Hn),Wi=r(Hn,"P",{});var Wb=i(Wi);bh=s(Wb,"Create a mask from the two sequences passed to be used in a sequence-pair classification task. A DeBERTa"),Wb.forEach(t),yh=h(Hn),v(Yo.$$.fragment,Hn),Th=h(Hn),po=r(Hn,"P",{});var Yr=i(po);wh=s(Yr,"If "),xi=r(Yr,"CODE",{});var xb=i(xi);vh=s(xb,"token_ids_1"),xb.forEach(t),kh=s(Yr," is "),Zi=r(Yr,"CODE",{});var Zb=i(Zi);Mh=s(Zb,"None"),Zb.forEach(t),$h=s(Yr,", this method only returns the first portion of the mask (0s)."),Yr.forEach(t),Hn.forEach(t),On.forEach(t),Vd=h(o),ho=r(o,"H2",{class:!0});var hc=i(ho);Qo=r(hc,"A",{id:!0,class:!0,href:!0});var Gb=i(Qo);Gi=r(Gb,"SPAN",{});var qb=i(Gi);v(Cs.$$.fragment,qb),qb.forEach(t),Gb.forEach(t),Eh=h(hc),qi=r(hc,"SPAN",{});var Nb=i(qi);Dh=s(Nb,"DebertaV2Model"),Nb.forEach(t),hc.forEach(t),Fd=h(o),bt=r(o,"DIV",{class:!0});var Kn=i(bt);v(Rs.$$.fragment,Kn),jh=h(Kn),Bs=r(Kn,"P",{});var mc=i(Bs);Vh=s(mc,`The bare DeBERTa Model transformer outputting raw hidden-states without any specific head on top.
The DeBERTa model was proposed in `),zs=r(mc,"A",{href:!0,rel:!0});var Ab=i(zs);Fh=s(Ab,`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),Ab.forEach(t),Jh=s(mc,` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),mc.forEach(t),Ch=h(Kn),Us=r(Kn,"P",{});var uc=i(Us);Rh=s(uc,"This model is also a PyTorch "),Is=r(uc,"A",{href:!0,rel:!0});var Sb=i(Is);Bh=s(Sb,"torch.nn.Module"),Sb.forEach(t),zh=s(uc,` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),uc.forEach(t),Uh=h(Kn),Mt=r(Kn,"DIV",{class:!0});var es=i(Mt);v(Ws.$$.fragment,es),Ih=h(es),mo=r(es,"P",{});var Qr=i(mo);Wh=s(Qr,"The "),Dr=r(Qr,"A",{href:!0});var Xb=i(Dr);xh=s(Xb,"DebertaV2Model"),Xb.forEach(t),Zh=s(Qr," forward method, overrides the "),Ni=r(Qr,"CODE",{});var Pb=i(Ni);Gh=s(Pb,"__call__"),Pb.forEach(t),qh=s(Qr," special method."),Qr.forEach(t),Nh=h(es),v(Oo.$$.fragment,es),Ah=h(es),v(Ho.$$.fragment,es),es.forEach(t),Kn.forEach(t),Jd=h(o),uo=r(o,"H2",{class:!0});var fc=i(uo);Ko=r(fc,"A",{id:!0,class:!0,href:!0});var Lb=i(Ko);Ai=r(Lb,"SPAN",{});var Yb=i(Ai);v(xs.$$.fragment,Yb),Yb.forEach(t),Lb.forEach(t),Sh=h(fc),Si=r(fc,"SPAN",{});var Qb=i(Si);Xh=s(Qb,"DebertaV2PreTrainedModel"),Qb.forEach(t),fc.forEach(t),Cd=h(o),Wt=r(o,"DIV",{class:!0});var Or=i(Wt);v(Zs.$$.fragment,Or),Ph=h(Or),Xi=r(Or,"P",{});var Ob=i(Xi);Lh=s(Ob,`An abstract class to handle weights initialization and a simple interface for downloading and loading pretrained
models.`),Ob.forEach(t),Yh=h(Or),$t=r(Or,"DIV",{class:!0});var ts=i($t);v(Gs.$$.fragment,ts),Qh=h(ts),Pi=r(ts,"P",{});var Hb=i(Pi);Oh=s(Hb,"Defines the computation performed at every call."),Hb.forEach(t),Hh=h(ts),Li=r(ts,"P",{});var Kb=i(Li);Kh=s(Kb,"Should be overridden by all subclasses."),Kb.forEach(t),em=h(ts),v(en.$$.fragment,ts),ts.forEach(t),Or.forEach(t),Rd=h(o),fo=r(o,"H2",{class:!0});var gc=i(fo);tn=r(gc,"A",{id:!0,class:!0,href:!0});var ey=i(tn);Yi=r(ey,"SPAN",{});var ty=i(Yi);v(qs.$$.fragment,ty),ty.forEach(t),ey.forEach(t),tm=h(gc),Qi=r(gc,"SPAN",{});var oy=i(Qi);om=s(oy,"DebertaV2ForMaskedLM"),oy.forEach(t),gc.forEach(t),Bd=h(o),yt=r(o,"DIV",{class:!0});var os=i(yt);v(Ns.$$.fragment,os),nm=h(os),go=r(os,"P",{});var Hr=i(go);sm=s(Hr,"DeBERTa Model with a "),Oi=r(Hr,"CODE",{});var ny=i(Oi);am=s(ny,"language modeling"),ny.forEach(t),rm=s(Hr,` head on top.
The DeBERTa model was proposed in `),As=r(Hr,"A",{href:!0,rel:!0});var sy=i(As);im=s(sy,`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),sy.forEach(t),lm=s(Hr,` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),Hr.forEach(t),dm=h(os),Ss=r(os,"P",{});var _c=i(Ss);cm=s(_c,"This model is also a PyTorch "),Xs=r(_c,"A",{href:!0,rel:!0});var ay=i(Xs);pm=s(ay,"torch.nn.Module"),ay.forEach(t),hm=s(_c,` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),_c.forEach(t),mm=h(os),Et=r(os,"DIV",{class:!0});var ns=i(Et);v(Ps.$$.fragment,ns),um=h(ns),_o=r(ns,"P",{});var Kr=i(_o);fm=s(Kr,"The "),jr=r(Kr,"A",{href:!0});var ry=i(jr);gm=s(ry,"DebertaV2ForMaskedLM"),ry.forEach(t),_m=s(Kr," forward method, overrides the "),Hi=r(Kr,"CODE",{});var iy=i(Hi);bm=s(iy,"__call__"),iy.forEach(t),ym=s(Kr," special method."),Kr.forEach(t),Tm=h(ns),v(on.$$.fragment,ns),wm=h(ns),v(nn.$$.fragment,ns),ns.forEach(t),os.forEach(t),zd=h(o),bo=r(o,"H2",{class:!0});var bc=i(bo);sn=r(bc,"A",{id:!0,class:!0,href:!0});var ly=i(sn);Ki=r(ly,"SPAN",{});var dy=i(Ki);v(Ls.$$.fragment,dy),dy.forEach(t),ly.forEach(t),vm=h(bc),el=r(bc,"SPAN",{});var cy=i(el);km=s(cy,"DebertaV2ForSequenceClassification"),cy.forEach(t),bc.forEach(t),Ud=h(o),st=r(o,"DIV",{class:!0});var At=i(st);v(Ys.$$.fragment,At),Mm=h(At),tl=r(At,"P",{});var py=i(tl);$m=s(py,`DeBERTa Model transformer with a sequence classification/regression head on top (a linear layer on top of the
pooled output) e.g. for GLUE tasks.`),py.forEach(t),Em=h(At),Qs=r(At,"P",{});var yc=i(Qs);Dm=s(yc,"The DeBERTa model was proposed in "),Os=r(yc,"A",{href:!0,rel:!0});var hy=i(Os);jm=s(hy,`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),hy.forEach(t),Vm=s(yc,` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),yc.forEach(t),Fm=h(At),Hs=r(At,"P",{});var Tc=i(Hs);Jm=s(Tc,"This model is also a PyTorch "),Ks=r(Tc,"A",{href:!0,rel:!0});var my=i(Ks);Cm=s(my,"torch.nn.Module"),my.forEach(t),Rm=s(Tc,` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),Tc.forEach(t),Bm=h(At),pt=r(At,"DIV",{class:!0});var St=i(pt);v(ea.$$.fragment,St),zm=h(St),yo=r(St,"P",{});var ei=i(yo);Um=s(ei,"The "),Vr=r(ei,"A",{href:!0});var uy=i(Vr);Im=s(uy,"DebertaV2ForSequenceClassification"),uy.forEach(t),Wm=s(ei," forward method, overrides the "),ol=r(ei,"CODE",{});var fy=i(ol);xm=s(fy,"__call__"),fy.forEach(t),Zm=s(ei," special method."),ei.forEach(t),Gm=h(St),v(an.$$.fragment,St),qm=h(St),v(rn.$$.fragment,St),Nm=h(St),v(ln.$$.fragment,St),St.forEach(t),At.forEach(t),Id=h(o),To=r(o,"H2",{class:!0});var wc=i(To);dn=r(wc,"A",{id:!0,class:!0,href:!0});var gy=i(dn);nl=r(gy,"SPAN",{});var _y=i(nl);v(ta.$$.fragment,_y),_y.forEach(t),gy.forEach(t),Am=h(wc),sl=r(wc,"SPAN",{});var by=i(sl);Sm=s(by,"DebertaV2ForTokenClassification"),by.forEach(t),wc.forEach(t),Wd=h(o),at=r(o,"DIV",{class:!0});var Xt=i(at);v(oa.$$.fragment,Xt),Xm=h(Xt),al=r(Xt,"P",{});var yy=i(al);Pm=s(yy,`DeBERTa 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.`),yy.forEach(t),Lm=h(Xt),na=r(Xt,"P",{});var vc=i(na);Ym=s(vc,"The DeBERTa model was proposed in "),sa=r(vc,"A",{href:!0,rel:!0});var Ty=i(sa);Qm=s(Ty,`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),Ty.forEach(t),Om=s(vc,` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),vc.forEach(t),Hm=h(Xt),aa=r(Xt,"P",{});var kc=i(aa);Km=s(kc,"This model is also a PyTorch "),ra=r(kc,"A",{href:!0,rel:!0});var wy=i(ra);eu=s(wy,"torch.nn.Module"),wy.forEach(t),tu=s(kc,` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),kc.forEach(t),ou=h(Xt),Dt=r(Xt,"DIV",{class:!0});var ss=i(Dt);v(ia.$$.fragment,ss),nu=h(ss),wo=r(ss,"P",{});var ti=i(wo);su=s(ti,"The "),Fr=r(ti,"A",{href:!0});var vy=i(Fr);au=s(vy,"DebertaV2ForTokenClassification"),vy.forEach(t),ru=s(ti," forward method, overrides the "),rl=r(ti,"CODE",{});var ky=i(rl);iu=s(ky,"__call__"),ky.forEach(t),lu=s(ti," special method."),ti.forEach(t),du=h(ss),v(cn.$$.fragment,ss),cu=h(ss),v(pn.$$.fragment,ss),ss.forEach(t),Xt.forEach(t),xd=h(o),vo=r(o,"H2",{class:!0});var Mc=i(vo);hn=r(Mc,"A",{id:!0,class:!0,href:!0});var My=i(hn);il=r(My,"SPAN",{});var $y=i(il);v(la.$$.fragment,$y),$y.forEach(t),My.forEach(t),pu=h(Mc),ll=r(Mc,"SPAN",{});var Ey=i(ll);hu=s(Ey,"DebertaV2ForQuestionAnswering"),Ey.forEach(t),Mc.forEach(t),Zd=h(o),rt=r(o,"DIV",{class:!0});var Pt=i(rt);v(da.$$.fragment,Pt),mu=h(Pt),ko=r(Pt,"P",{});var oi=i(ko);uu=s(oi,`DeBERTa Model with a span classification head on top for extractive question-answering tasks like SQuAD (a linear
layers on top of the hidden-states output to compute `),dl=r(oi,"CODE",{});var Dy=i(dl);fu=s(Dy,"span start logits"),Dy.forEach(t),gu=s(oi," and "),cl=r(oi,"CODE",{});var jy=i(cl);_u=s(jy,"span end logits"),jy.forEach(t),bu=s(oi,")."),oi.forEach(t),yu=h(Pt),ca=r(Pt,"P",{});var $c=i(ca);Tu=s($c,"The DeBERTa model was proposed in "),pa=r($c,"A",{href:!0,rel:!0});var Vy=i(pa);wu=s(Vy,`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),Vy.forEach(t),vu=s($c,` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),$c.forEach(t),ku=h(Pt),ha=r(Pt,"P",{});var Ec=i(ha);Mu=s(Ec,"This model is also a PyTorch "),ma=r(Ec,"A",{href:!0,rel:!0});var Fy=i(ma);$u=s(Fy,"torch.nn.Module"),Fy.forEach(t),Eu=s(Ec,` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),Ec.forEach(t),Du=h(Pt),jt=r(Pt,"DIV",{class:!0});var as=i(jt);v(ua.$$.fragment,as),ju=h(as),Mo=r(as,"P",{});var ni=i(Mo);Vu=s(ni,"The "),Jr=r(ni,"A",{href:!0});var Jy=i(Jr);Fu=s(Jy,"DebertaV2ForQuestionAnswering"),Jy.forEach(t),Ju=s(ni," forward method, overrides the "),pl=r(ni,"CODE",{});var Cy=i(pl);Cu=s(Cy,"__call__"),Cy.forEach(t),Ru=s(ni," special method."),ni.forEach(t),Bu=h(as),v(mn.$$.fragment,as),zu=h(as),v(un.$$.fragment,as),as.forEach(t),Pt.forEach(t),Gd=h(o),$o=r(o,"H2",{class:!0});var Dc=i($o);fn=r(Dc,"A",{id:!0,class:!0,href:!0});var Ry=i(fn);hl=r(Ry,"SPAN",{});var By=i(hl);v(fa.$$.fragment,By),By.forEach(t),Ry.forEach(t),Uu=h(Dc),ml=r(Dc,"SPAN",{});var zy=i(ml);Iu=s(zy,"DebertaV2ForMultipleChoice"),zy.forEach(t),Dc.forEach(t),qd=h(o),it=r(o,"DIV",{class:!0});var Lt=i(it);v(ga.$$.fragment,Lt),Wu=h(Lt),ul=r(Lt,"P",{});var Uy=i(ul);xu=s(Uy,`DeBERTa 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.`),Uy.forEach(t),Zu=h(Lt),_a=r(Lt,"P",{});var jc=i(_a);Gu=s(jc,"The DeBERTa model was proposed in "),ba=r(jc,"A",{href:!0,rel:!0});var Iy=i(ba);qu=s(Iy,`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),Iy.forEach(t),Nu=s(jc,` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),jc.forEach(t),Au=h(Lt),ya=r(Lt,"P",{});var Vc=i(ya);Su=s(Vc,"This model is also a PyTorch "),Ta=r(Vc,"A",{href:!0,rel:!0});var Wy=i(Ta);Xu=s(Wy,"torch.nn.Module"),Wy.forEach(t),Pu=s(Vc,` subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`),Vc.forEach(t),Lu=h(Lt),Vt=r(Lt,"DIV",{class:!0});var rs=i(Vt);v(wa.$$.fragment,rs),Yu=h(rs),Eo=r(rs,"P",{});var si=i(Eo);Qu=s(si,"The "),Cr=r(si,"A",{href:!0});var xy=i(Cr);Ou=s(xy,"DebertaV2ForMultipleChoice"),xy.forEach(t),Hu=s(si," forward method, overrides the "),fl=r(si,"CODE",{});var Zy=i(fl);Ku=s(Zy,"__call__"),Zy.forEach(t),ef=s(si," special method."),si.forEach(t),tf=h(rs),v(gn.$$.fragment,rs),of=h(rs),v(_n.$$.fragment,rs),rs.forEach(t),Lt.forEach(t),Nd=h(o),Do=r(o,"H2",{class:!0});var Fc=i(Do);bn=r(Fc,"A",{id:!0,class:!0,href:!0});var Gy=i(bn);gl=r(Gy,"SPAN",{});var qy=i(gl);v(va.$$.fragment,qy),qy.forEach(t),Gy.forEach(t),nf=h(Fc),_l=r(Fc,"SPAN",{});var Ny=i(_l);sf=s(Ny,"TFDebertaV2Model"),Ny.forEach(t),Fc.forEach(t),Ad=h(o),lt=r(o,"DIV",{class:!0});var Yt=i(lt);v(ka.$$.fragment,Yt),af=h(Yt),Ma=r(Yt,"P",{});var Jc=i(Ma);rf=s(Jc,`The bare DeBERTa Model transformer outputting raw hidden-states without any specific head on top.
The DeBERTa model was proposed in `),$a=r(Jc,"A",{href:!0,rel:!0});var Ay=i($a);lf=s(Ay,`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),Ay.forEach(t),df=s(Jc,` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),Jc.forEach(t),cf=h(Yt),Ea=r(Yt,"P",{});var Cc=i(Ea);pf=s(Cc,"This model is also a "),Da=r(Cc,"A",{href:!0,rel:!0});var Sy=i(Da);hf=s(Sy,"tf.keras.Model"),Sy.forEach(t),mf=s(Cc,` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),Cc.forEach(t),uf=h(Yt),v(yn.$$.fragment,Yt),ff=h(Yt),Ft=r(Yt,"DIV",{class:!0});var is=i(Ft);v(ja.$$.fragment,is),gf=h(is),jo=r(is,"P",{});var ai=i(jo);_f=s(ai,"The "),Rr=r(ai,"A",{href:!0});var Xy=i(Rr);bf=s(Xy,"TFDebertaV2Model"),Xy.forEach(t),yf=s(ai," forward method, overrides the "),bl=r(ai,"CODE",{});var Py=i(bl);Tf=s(Py,"__call__"),Py.forEach(t),wf=s(ai," special method."),ai.forEach(t),vf=h(is),v(Tn.$$.fragment,is),kf=h(is),v(wn.$$.fragment,is),is.forEach(t),Yt.forEach(t),Sd=h(o),Vo=r(o,"H2",{class:!0});var Rc=i(Vo);vn=r(Rc,"A",{id:!0,class:!0,href:!0});var Ly=i(vn);yl=r(Ly,"SPAN",{});var Yy=i(yl);v(Va.$$.fragment,Yy),Yy.forEach(t),Ly.forEach(t),Mf=h(Rc),Tl=r(Rc,"SPAN",{});var Qy=i(Tl);$f=s(Qy,"TFDebertaV2PreTrainedModel"),Qy.forEach(t),Rc.forEach(t),Xd=h(o),xt=r(o,"DIV",{class:!0});var ri=i(xt);v(Fa.$$.fragment,ri),Ef=h(ri),wl=r(ri,"P",{});var Oy=i(wl);Df=s(Oy,`An abstract class to handle weights initialization and a simple interface for downloading and loading pretrained
models.`),Oy.forEach(t),jf=h(ri),Jt=r(ri,"DIV",{class:!0});var ls=i(Jt);v(Ja.$$.fragment,ls),Vf=h(ls),vl=r(ls,"P",{});var Hy=i(vl);Ff=s(Hy,"Calls the model on new inputs and returns the outputs as tensors."),Hy.forEach(t),Jf=h(ls),Ca=r(ls,"P",{});var Bc=i(Ca);Cf=s(Bc,"In this case "),kl=r(Bc,"CODE",{});var Ky=i(kl);Rf=s(Ky,"call()"),Ky.forEach(t),Bf=s(Bc,` just reapplies
all ops in the graph to the new inputs
(e.g. build a new computational graph from the provided inputs).`),Bc.forEach(t),zf=h(ls),Tt=r(ls,"P",{});var Qt=i(Tt);Uf=s(Qt,`Note: This method should not be called directly. It is only meant to be
overridden when subclassing `),Ml=r(Qt,"CODE",{});var e2=i(Ml);If=s(e2,"tf.keras.Model"),e2.forEach(t),Wf=s(Qt,`.
To call a model on an input, always use the `),$l=r(Qt,"CODE",{});var t2=i($l);xf=s(t2,"__call__()"),t2.forEach(t),Zf=s(Qt,` method,
i.e. `),El=r(Qt,"CODE",{});var o2=i(El);Gf=s(o2,"model(inputs)"),o2.forEach(t),qf=s(Qt,", which relies on the underlying "),Dl=r(Qt,"CODE",{});var n2=i(Dl);Nf=s(n2,"call()"),n2.forEach(t),Af=s(Qt," method."),Qt.forEach(t),ls.forEach(t),ri.forEach(t),Pd=h(o),Fo=r(o,"H2",{class:!0});var zc=i(Fo);kn=r(zc,"A",{id:!0,class:!0,href:!0});var s2=i(kn);jl=r(s2,"SPAN",{});var a2=i(jl);v(Ra.$$.fragment,a2),a2.forEach(t),s2.forEach(t),Sf=h(zc),Vl=r(zc,"SPAN",{});var r2=i(Vl);Xf=s(r2,"TFDebertaV2ForMaskedLM"),r2.forEach(t),zc.forEach(t),Ld=h(o),dt=r(o,"DIV",{class:!0});var Ot=i(dt);v(Ba.$$.fragment,Ot),Pf=h(Ot),Jo=r(Ot,"P",{});var ii=i(Jo);Lf=s(ii,"DeBERTa Model with a "),Fl=r(ii,"CODE",{});var i2=i(Fl);Yf=s(i2,"language modeling"),i2.forEach(t),Qf=s(ii,` head on top.
The DeBERTa model was proposed in `),za=r(ii,"A",{href:!0,rel:!0});var l2=i(za);Of=s(l2,`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),l2.forEach(t),Hf=s(ii,` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),ii.forEach(t),Kf=h(Ot),Ua=r(Ot,"P",{});var Uc=i(Ua);eg=s(Uc,"This model is also a "),Ia=r(Uc,"A",{href:!0,rel:!0});var d2=i(Ia);tg=s(d2,"tf.keras.Model"),d2.forEach(t),og=s(Uc,` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),Uc.forEach(t),ng=h(Ot),v(Mn.$$.fragment,Ot),sg=h(Ot),ht=r(Ot,"DIV",{class:!0});var Ht=i(ht);v(Wa.$$.fragment,Ht),ag=h(Ht),Co=r(Ht,"P",{});var li=i(Co);rg=s(li,"The "),Br=r(li,"A",{href:!0});var c2=i(Br);ig=s(c2,"TFDebertaV2ForMaskedLM"),c2.forEach(t),lg=s(li," forward method, overrides the "),Jl=r(li,"CODE",{});var p2=i(Jl);dg=s(p2,"__call__"),p2.forEach(t),cg=s(li," special method."),li.forEach(t),pg=h(Ht),v($n.$$.fragment,Ht),hg=h(Ht),v(En.$$.fragment,Ht),mg=h(Ht),v(Dn.$$.fragment,Ht),Ht.forEach(t),Ot.forEach(t),Yd=h(o),Ro=r(o,"H2",{class:!0});var Ic=i(Ro);jn=r(Ic,"A",{id:!0,class:!0,href:!0});var h2=i(jn);Cl=r(h2,"SPAN",{});var m2=i(Cl);v(xa.$$.fragment,m2),m2.forEach(t),h2.forEach(t),ug=h(Ic),Rl=r(Ic,"SPAN",{});var u2=i(Rl);fg=s(u2,"TFDebertaV2ForSequenceClassification"),u2.forEach(t),Ic.forEach(t),Qd=h(o),et=r(o,"DIV",{class:!0});var Bt=i(et);v(Za.$$.fragment,Bt),gg=h(Bt),Bl=r(Bt,"P",{});var f2=i(Bl);_g=s(f2,`DeBERTa Model transformer with a sequence classification/regression head on top (a linear layer on top of the
pooled output) e.g. for GLUE tasks.`),f2.forEach(t),bg=h(Bt),Ga=r(Bt,"P",{});var Wc=i(Ga);yg=s(Wc,"The DeBERTa model was proposed in "),qa=r(Wc,"A",{href:!0,rel:!0});var g2=i(qa);Tg=s(g2,`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),g2.forEach(t),wg=s(Wc,` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),Wc.forEach(t),vg=h(Bt),Na=r(Bt,"P",{});var xc=i(Na);kg=s(xc,"This model is also a "),Aa=r(xc,"A",{href:!0,rel:!0});var _2=i(Aa);Mg=s(_2,"tf.keras.Model"),_2.forEach(t),$g=s(xc,` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),xc.forEach(t),Eg=h(Bt),v(Vn.$$.fragment,Bt),Dg=h(Bt),mt=r(Bt,"DIV",{class:!0});var Kt=i(mt);v(Sa.$$.fragment,Kt),jg=h(Kt),Bo=r(Kt,"P",{});var di=i(Bo);Vg=s(di,"The "),zr=r(di,"A",{href:!0});var b2=i(zr);Fg=s(b2,"TFDebertaV2ForSequenceClassification"),b2.forEach(t),Jg=s(di," forward method, overrides the "),zl=r(di,"CODE",{});var y2=i(zl);Cg=s(y2,"__call__"),y2.forEach(t),Rg=s(di," special method."),di.forEach(t),Bg=h(Kt),v(Fn.$$.fragment,Kt),zg=h(Kt),v(Jn.$$.fragment,Kt),Ug=h(Kt),v(Cn.$$.fragment,Kt),Kt.forEach(t),Bt.forEach(t),Od=h(o),zo=r(o,"H2",{class:!0});var Zc=i(zo);Rn=r(Zc,"A",{id:!0,class:!0,href:!0});var T2=i(Rn);Ul=r(T2,"SPAN",{});var w2=i(Ul);v(Xa.$$.fragment,w2),w2.forEach(t),T2.forEach(t),Ig=h(Zc),Il=r(Zc,"SPAN",{});var v2=i(Il);Wg=s(v2,"TFDebertaV2ForTokenClassification"),v2.forEach(t),Zc.forEach(t),Hd=h(o),tt=r(o,"DIV",{class:!0});var zt=i(tt);v(Pa.$$.fragment,zt),xg=h(zt),Wl=r(zt,"P",{});var k2=i(Wl);Zg=s(k2,`DeBERTa 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.`),k2.forEach(t),Gg=h(zt),La=r(zt,"P",{});var Gc=i(La);qg=s(Gc,"The DeBERTa model was proposed in "),Ya=r(Gc,"A",{href:!0,rel:!0});var M2=i(Ya);Ng=s(M2,`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),M2.forEach(t),Ag=s(Gc,` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),Gc.forEach(t),Sg=h(zt),Qa=r(zt,"P",{});var qc=i(Qa);Xg=s(qc,"This model is also a "),Oa=r(qc,"A",{href:!0,rel:!0});var $2=i(Oa);Pg=s($2,"tf.keras.Model"),$2.forEach(t),Lg=s(qc,` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),qc.forEach(t),Yg=h(zt),v(Bn.$$.fragment,zt),Qg=h(zt),ut=r(zt,"DIV",{class:!0});var eo=i(ut);v(Ha.$$.fragment,eo),Og=h(eo),Uo=r(eo,"P",{});var ci=i(Uo);Hg=s(ci,"The "),Ur=r(ci,"A",{href:!0});var E2=i(Ur);Kg=s(E2,"TFDebertaV2ForTokenClassification"),E2.forEach(t),e_=s(ci," forward method, overrides the "),xl=r(ci,"CODE",{});var D2=i(xl);t_=s(D2,"__call__"),D2.forEach(t),o_=s(ci," special method."),ci.forEach(t),n_=h(eo),v(zn.$$.fragment,eo),s_=h(eo),v(Un.$$.fragment,eo),a_=h(eo),v(In.$$.fragment,eo),eo.forEach(t),zt.forEach(t),Kd=h(o),Io=r(o,"H2",{class:!0});var Nc=i(Io);Wn=r(Nc,"A",{id:!0,class:!0,href:!0});var j2=i(Wn);Zl=r(j2,"SPAN",{});var V2=i(Zl);v(Ka.$$.fragment,V2),V2.forEach(t),j2.forEach(t),r_=h(Nc),Gl=r(Nc,"SPAN",{});var F2=i(Gl);i_=s(F2,"TFDebertaV2ForQuestionAnswering"),F2.forEach(t),Nc.forEach(t),ec=h(o),ot=r(o,"DIV",{class:!0});var Ut=i(ot);v(er.$$.fragment,Ut),l_=h(Ut),Wo=r(Ut,"P",{});var pi=i(Wo);d_=s(pi,`DeBERTa Model with a span classification head on top for extractive question-answering tasks like SQuAD (a linear
layers on top of the hidden-states output to compute `),ql=r(pi,"CODE",{});var J2=i(ql);c_=s(J2,"span start logits"),J2.forEach(t),p_=s(pi," and "),Nl=r(pi,"CODE",{});var C2=i(Nl);h_=s(C2,"span end logits"),C2.forEach(t),m_=s(pi,")."),pi.forEach(t),u_=h(Ut),tr=r(Ut,"P",{});var Ac=i(tr);f_=s(Ac,"The DeBERTa model was proposed in "),or=r(Ac,"A",{href:!0,rel:!0});var R2=i(or);g_=s(R2,`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),R2.forEach(t),__=s(Ac,` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),Ac.forEach(t),b_=h(Ut),nr=r(Ut,"P",{});var Sc=i(nr);y_=s(Sc,"This model is also a "),sr=r(Sc,"A",{href:!0,rel:!0});var B2=i(sr);T_=s(B2,"tf.keras.Model"),B2.forEach(t),w_=s(Sc,` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),Sc.forEach(t),v_=h(Ut),v(xn.$$.fragment,Ut),k_=h(Ut),ft=r(Ut,"DIV",{class:!0});var to=i(ft);v(ar.$$.fragment,to),M_=h(to),xo=r(to,"P",{});var hi=i(xo);$_=s(hi,"The "),Ir=r(hi,"A",{href:!0});var z2=i(Ir);E_=s(z2,"TFDebertaV2ForQuestionAnswering"),z2.forEach(t),D_=s(hi," forward method, overrides the "),Al=r(hi,"CODE",{});var U2=i(Al);j_=s(U2,"__call__"),U2.forEach(t),V_=s(hi," special method."),hi.forEach(t),F_=h(to),v(Zn.$$.fragment,to),J_=h(to),v(Gn.$$.fragment,to),C_=h(to),v(qn.$$.fragment,to),to.forEach(t),Ut.forEach(t),tc=h(o),Zo=r(o,"H2",{class:!0});var Xc=i(Zo);Nn=r(Xc,"A",{id:!0,class:!0,href:!0});var I2=i(Nn);Sl=r(I2,"SPAN",{});var W2=i(Sl);v(rr.$$.fragment,W2),W2.forEach(t),I2.forEach(t),R_=h(Xc),Xl=r(Xc,"SPAN",{});var x2=i(Xl);B_=s(x2,"TFDebertaV2ForMultipleChoice"),x2.forEach(t),Xc.forEach(t),oc=h(o),nt=r(o,"DIV",{class:!0});var It=i(nt);v(ir.$$.fragment,It),z_=h(It),Pl=r(It,"P",{});var Z2=i(Pl);U_=s(Z2,`DeBERTa 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.`),Z2.forEach(t),I_=h(It),lr=r(It,"P",{});var Pc=i(lr);W_=s(Pc,"The DeBERTa model was proposed in "),dr=r(Pc,"A",{href:!0,rel:!0});var G2=i(dr);x_=s(G2,`DeBERTa: Decoding-enhanced BERT with Disentangled
Attention`),G2.forEach(t),Z_=s(Pc,` by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. It\u2019s build
on top of BERT/RoBERTa with two improvements, i.e. disentangled attention and enhanced mask decoder. With those two
improvements, it out perform BERT/RoBERTa on a majority of tasks with 80GB pretraining data.`),Pc.forEach(t),G_=h(It),cr=r(It,"P",{});var Lc=i(cr);q_=s(Lc,"This model is also a "),pr=r(Lc,"A",{href:!0,rel:!0});var q2=i(pr);N_=s(q2,"tf.keras.Model"),q2.forEach(t),A_=s(Lc,` subclass. Use it
as a regular TF 2.0 Keras Model and refer to the TF 2.0 documentation for all matter related to general usage and
behavior.`),Lc.forEach(t),S_=h(It),v(An.$$.fragment,It),X_=h(It),Ct=r(It,"DIV",{class:!0});var ds=i(Ct);v(hr.$$.fragment,ds),P_=h(ds),Go=r(ds,"P",{});var mi=i(Go);L_=s(mi,"The "),Wr=r(mi,"A",{href:!0});var N2=i(Wr);Y_=s(N2,"TFDebertaV2ForMultipleChoice"),N2.forEach(t),Q_=s(mi," forward method, overrides the "),Ll=r(mi,"CODE",{});var A2=i(Ll);O_=s(A2,"__call__"),A2.forEach(t),H_=s(mi," special method."),mi.forEach(t),K_=h(ds),v(Sn.$$.fragment,ds),eb=h(ds),v(Xn.$$.fragment,ds),ds.forEach(t),It.forEach(t),this.h()},h(){u(d,"name","hf:doc:metadata"),u(d,"content",JSON.stringify(UT)),u(f,"id","debertav2"),u(f,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(f,"href","#debertav2"),u(m,"class","relative group"),u(ae,"id","overview"),u(ae,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(ae,"href","#overview"),u(W,"class","relative group"),u(ie,"href","https://arxiv.org/abs/2006.03654"),u(ie,"rel","nofollow"),u(le,"href","https://github.com/microsoft/DeBERTa"),u(le,"rel","nofollow"),u(de,"href","https://github.com/microsoft/DeBERTa"),u(de,"rel","nofollow"),u(q,"href","https://www.microsoft.com/en-us/research/blog/microsoft-deberta-surpasses-human-performance-on-the-superglue-benchmark/"),u(q,"rel","nofollow"),u(R,"href","https://github.com/google/sentencepiece"),u(R,"rel","nofollow"),u(H,"href","https://huggingface.co/DeBERTa"),u(H,"rel","nofollow"),u(cs,"href","https://huggingface.co/kamalkraj"),u(cs,"rel","nofollow"),u(ps,"href","https://github.com/microsoft/DeBERTa"),u(ps,"rel","nofollow"),u(qo,"id","documentation-resources"),u(qo,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(qo,"href","#documentation-resources"),u(oo,"class","relative group"),u(br,"href","../tasks/sequence_classification"),u(yr,"href","../tasks/token_classification"),u(Tr,"href","../tasks/question_answering"),u(wr,"href","../tasks/masked_language_modeling"),u(vr,"href","../tasks/multiple_choice"),u(No,"id","transformers.DebertaV2Config"),u(No,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(No,"href","#transformers.DebertaV2Config"),u(no,"class","relative group"),u(kr,"href","/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Model"),u(fs,"href","https://huggingface.co/microsoft/deberta-v2-xlarge"),u(fs,"rel","nofollow"),u(Mr,"href","/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig"),u($r,"href","/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig"),u(gt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(So,"id","transformers.DebertaV2Tokenizer"),u(So,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(So,"href","#transformers.DebertaV2Tokenizer"),u(ro,"class","relative group"),u(ys,"href","https://github.com/google/sentencepiece"),u(ys,"rel","nofollow"),u(Gt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Xo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Er,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Lo,"id","transformers.DebertaV2TokenizerFast"),u(Lo,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Lo,"href","#transformers.DebertaV2TokenizerFast"),u(co,"class","relative group"),u(js,"href","https://github.com/google/sentencepiece"),u(js,"rel","nofollow"),u(qt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(kt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(_t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Qo,"id","transformers.DebertaV2Model"),u(Qo,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Qo,"href","#transformers.DebertaV2Model"),u(ho,"class","relative group"),u(zs,"href","https://arxiv.org/abs/2006.03654"),u(zs,"rel","nofollow"),u(Is,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),u(Is,"rel","nofollow"),u(Dr,"href","/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2Model"),u(Mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(bt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Ko,"id","transformers.DebertaV2PreTrainedModel"),u(Ko,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Ko,"href","#transformers.DebertaV2PreTrainedModel"),u(uo,"class","relative group"),u($t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Wt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(tn,"id","transformers.DebertaV2ForMaskedLM"),u(tn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(tn,"href","#transformers.DebertaV2ForMaskedLM"),u(fo,"class","relative group"),u(As,"href","https://arxiv.org/abs/2006.03654"),u(As,"rel","nofollow"),u(Xs,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),u(Xs,"rel","nofollow"),u(jr,"href","/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2ForMaskedLM"),u(Et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(sn,"id","transformers.DebertaV2ForSequenceClassification"),u(sn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(sn,"href","#transformers.DebertaV2ForSequenceClassification"),u(bo,"class","relative group"),u(Os,"href","https://arxiv.org/abs/2006.03654"),u(Os,"rel","nofollow"),u(Ks,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),u(Ks,"rel","nofollow"),u(Vr,"href","/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2ForSequenceClassification"),u(pt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(st,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(dn,"id","transformers.DebertaV2ForTokenClassification"),u(dn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(dn,"href","#transformers.DebertaV2ForTokenClassification"),u(To,"class","relative group"),u(sa,"href","https://arxiv.org/abs/2006.03654"),u(sa,"rel","nofollow"),u(ra,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),u(ra,"rel","nofollow"),u(Fr,"href","/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2ForTokenClassification"),u(Dt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(at,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(hn,"id","transformers.DebertaV2ForQuestionAnswering"),u(hn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(hn,"href","#transformers.DebertaV2ForQuestionAnswering"),u(vo,"class","relative group"),u(pa,"href","https://arxiv.org/abs/2006.03654"),u(pa,"rel","nofollow"),u(ma,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),u(ma,"rel","nofollow"),u(Jr,"href","/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2ForQuestionAnswering"),u(jt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(fn,"id","transformers.DebertaV2ForMultipleChoice"),u(fn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(fn,"href","#transformers.DebertaV2ForMultipleChoice"),u($o,"class","relative group"),u(ba,"href","https://arxiv.org/abs/2006.03654"),u(ba,"rel","nofollow"),u(Ta,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),u(Ta,"rel","nofollow"),u(Cr,"href","/docs/transformers/main/en/model_doc/deberta-v2#transformers.DebertaV2ForMultipleChoice"),u(Vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(it,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(bn,"id","transformers.TFDebertaV2Model"),u(bn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(bn,"href","#transformers.TFDebertaV2Model"),u(Do,"class","relative group"),u($a,"href","https://arxiv.org/abs/2006.03654"),u($a,"rel","nofollow"),u(Da,"href","https://www.tensorflow.org/api_docs/python/tf/keras/Model"),u(Da,"rel","nofollow"),u(Rr,"href","/docs/transformers/main/en/model_doc/deberta-v2#transformers.TFDebertaV2Model"),u(Ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(vn,"id","transformers.TFDebertaV2PreTrainedModel"),u(vn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(vn,"href","#transformers.TFDebertaV2PreTrainedModel"),u(Vo,"class","relative group"),u(Jt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(xt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(kn,"id","transformers.TFDebertaV2ForMaskedLM"),u(kn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(kn,"href","#transformers.TFDebertaV2ForMaskedLM"),u(Fo,"class","relative group"),u(za,"href","https://arxiv.org/abs/2006.03654"),u(za,"rel","nofollow"),u(Ia,"href","https://www.tensorflow.org/api_docs/python/tf/keras/Model"),u(Ia,"rel","nofollow"),u(Br,"href","/docs/transformers/main/en/model_doc/deberta-v2#transformers.TFDebertaV2ForMaskedLM"),u(ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(dt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(jn,"id","transformers.TFDebertaV2ForSequenceClassification"),u(jn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(jn,"href","#transformers.TFDebertaV2ForSequenceClassification"),u(Ro,"class","relative group"),u(qa,"href","https://arxiv.org/abs/2006.03654"),u(qa,"rel","nofollow"),u(Aa,"href","https://www.tensorflow.org/api_docs/python/tf/keras/Model"),u(Aa,"rel","nofollow"),u(zr,"href","/docs/transformers/main/en/model_doc/deberta-v2#transformers.TFDebertaV2ForSequenceClassification"),u(mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Rn,"id","transformers.TFDebertaV2ForTokenClassification"),u(Rn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Rn,"href","#transformers.TFDebertaV2ForTokenClassification"),u(zo,"class","relative group"),u(Ya,"href","https://arxiv.org/abs/2006.03654"),u(Ya,"rel","nofollow"),u(Oa,"href","https://www.tensorflow.org/api_docs/python/tf/keras/Model"),u(Oa,"rel","nofollow"),u(Ur,"href","/docs/transformers/main/en/model_doc/deberta-v2#transformers.TFDebertaV2ForTokenClassification"),u(ut,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(tt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Wn,"id","transformers.TFDebertaV2ForQuestionAnswering"),u(Wn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Wn,"href","#transformers.TFDebertaV2ForQuestionAnswering"),u(Io,"class","relative group"),u(or,"href","https://arxiv.org/abs/2006.03654"),u(or,"rel","nofollow"),u(sr,"href","https://www.tensorflow.org/api_docs/python/tf/keras/Model"),u(sr,"rel","nofollow"),u(Ir,"href","/docs/transformers/main/en/model_doc/deberta-v2#transformers.TFDebertaV2ForQuestionAnswering"),u(ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(Nn,"id","transformers.TFDebertaV2ForMultipleChoice"),u(Nn,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Nn,"href","#transformers.TFDebertaV2ForMultipleChoice"),u(Zo,"class","relative group"),u(dr,"href","https://arxiv.org/abs/2006.03654"),u(dr,"rel","nofollow"),u(pr,"href","https://www.tensorflow.org/api_docs/python/tf/keras/Model"),u(pr,"rel","nofollow"),u(Wr,"href","/docs/transformers/main/en/model_doc/deberta-v2#transformers.TFDebertaV2ForMultipleChoice"),u(Ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),u(nt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(o,b){e(document.head,d),g(o,y,b),g(o,m,b),e(m,f),e(f,T),k(l,T,null),e(m,c),e(m,J),e(J,ye),g(o,pe,b),g(o,W,b),e(W,ae),e(ae,oe),k(D,oe,null),e(W,Te),e(W,X),e(X,we),g(o,he,b),g(o,G,b),e(G,ve),e(G,ie),e(ie,L),e(G,ke),g(o,me,b),g(o,N,b),e(N,Me),g(o,ue,b),g(o,A,b),e(A,$e),g(o,fe,b),g(o,ee,b),e(ee,C),e(C,B),e(C,le),e(le,Y),e(C,Ee),g(o,ge,b),g(o,x,b),e(x,De),e(x,de),e(de,z),e(x,je),e(x,q),e(q,Ve),g(o,_e,b),g(o,S,b),e(S,Fe),g(o,be,b),g(o,U,b),e(U,re),e(re,P),e(P,Je),e(re,ne),e(re,R),e(R,Ce),e(re,I),e(U,Re),e(U,ce),e(ce,_),e(_,j),e(ce,Ge),e(U,se),e(U,Be),e(Be,Ie),e(Ie,V),e(Be,qe),e(U,Ne),e(U,ze),e(ze,We),e(We,Ae),e(ze,Z),e(U,Q),e(U,Ue),e(Ue,xe),e(xe,O),e(Ue,Se),g(o,Ze,b),g(o,te,b),e(te,Xe),e(te,H),e(H,Pe),e(te,Yc),e(te,cs),e(cs,Qc),e(te,Oc),e(te,ps),e(ps,Hc),e(te,Kc),g(o,wd,b),g(o,oo,b),e(oo,qo),e(qo,ui),k(hs,ui,null),e(oo,ep),e(oo,fi),e(fi,tp),g(o,vd,b),g(o,ct,b),e(ct,gi),e(gi,br),e(br,op),e(ct,np),e(ct,_i),e(_i,yr),e(yr,sp),e(ct,ap),e(ct,bi),e(bi,Tr),e(Tr,rp),e(ct,ip),e(ct,yi),e(yi,wr),e(wr,lp),e(ct,dp),e(ct,Ti),e(Ti,vr),e(vr,cp),g(o,kd,b),g(o,no,b),e(no,No),e(No,wi),k(ms,wi,null),e(no,pp),e(no,vi),e(vi,hp),g(o,Md,b),g(o,gt,b),k(us,gt,null),e(gt,mp),e(gt,so),e(so,up),e(so,kr),e(kr,fp),e(so,gp),e(so,fs),e(fs,_p),e(so,bp),e(gt,yp),e(gt,ao),e(ao,Tp),e(ao,Mr),e(Mr,wp),e(ao,vp),e(ao,$r),e($r,kp),e(ao,Mp),e(gt,$p),k(Ao,gt,null),g(o,$d,b),g(o,ro,b),e(ro,So),e(So,ki),k(gs,ki,null),e(ro,Ep),e(ro,Mi),e(Mi,Dp),g(o,Ed,b),g(o,Ke,b),k(_s,Ke,null),e(Ke,jp),e(Ke,bs),e(bs,Vp),e(bs,ys),e(ys,Fp),e(bs,Jp),e(Ke,Cp),e(Ke,Gt),k(Ts,Gt,null),e(Gt,Rp),e(Gt,$i),e($i,Bp),e(Gt,zp),e(Gt,ws),e(ws,Ei),e(Ei,Up),e(ws,Ip),e(ws,Di),e(Di,Wp),e(Ke,xp),e(Ke,Xo),k(vs,Xo,null),e(Xo,Zp),e(Xo,io),e(io,Gp),e(io,ji),e(ji,qp),e(io,Np),e(io,Vi),e(Vi,Ap),e(io,Sp),e(Ke,Xp),e(Ke,vt),k(ks,vt,null),e(vt,Pp),e(vt,Fi),e(Fi,Lp),e(vt,Yp),k(Po,vt,null),e(vt,Qp),e(vt,lo),e(lo,Op),e(lo,Ji),e(Ji,Hp),e(lo,Kp),e(lo,Ci),e(Ci,eh),e(lo,th),e(Ke,oh),e(Ke,Er),k(Ms,Er,null),g(o,Dd,b),g(o,co,b),e(co,Lo),e(Lo,Ri),k($s,Ri,null),e(co,nh),e(co,Bi),e(Bi,sh),g(o,jd,b),g(o,_t,b),k(Es,_t,null),e(_t,ah),e(_t,Ds),e(Ds,rh),e(Ds,js),e(js,ih),e(Ds,lh),e(_t,dh),e(_t,qt),k(Vs,qt,null),e(qt,ch),e(qt,zi),e(zi,ph),e(qt,hh),e(qt,Fs),e(Fs,Ui),e(Ui,mh),e(Fs,uh),e(Fs,Ii),e(Ii,fh),e(_t,gh),e(_t,kt),k(Js,kt,null),e(kt,_h),e(kt,Wi),e(Wi,bh),e(kt,yh),k(Yo,kt,null),e(kt,Th),e(kt,po),e(po,wh),e(po,xi),e(xi,vh),e(po,kh),e(po,Zi),e(Zi,Mh),e(po,$h),g(o,Vd,b),g(o,ho,b),e(ho,Qo),e(Qo,Gi),k(Cs,Gi,null),e(ho,Eh),e(ho,qi),e(qi,Dh),g(o,Fd,b),g(o,bt,b),k(Rs,bt,null),e(bt,jh),e(bt,Bs),e(Bs,Vh),e(Bs,zs),e(zs,Fh),e(Bs,Jh),e(bt,Ch),e(bt,Us),e(Us,Rh),e(Us,Is),e(Is,Bh),e(Us,zh),e(bt,Uh),e(bt,Mt),k(Ws,Mt,null),e(Mt,Ih),e(Mt,mo),e(mo,Wh),e(mo,Dr),e(Dr,xh),e(mo,Zh),e(mo,Ni),e(Ni,Gh),e(mo,qh),e(Mt,Nh),k(Oo,Mt,null),e(Mt,Ah),k(Ho,Mt,null),g(o,Jd,b),g(o,uo,b),e(uo,Ko),e(Ko,Ai),k(xs,Ai,null),e(uo,Sh),e(uo,Si),e(Si,Xh),g(o,Cd,b),g(o,Wt,b),k(Zs,Wt,null),e(Wt,Ph),e(Wt,Xi),e(Xi,Lh),e(Wt,Yh),e(Wt,$t),k(Gs,$t,null),e($t,Qh),e($t,Pi),e(Pi,Oh),e($t,Hh),e($t,Li),e(Li,Kh),e($t,em),k(en,$t,null),g(o,Rd,b),g(o,fo,b),e(fo,tn),e(tn,Yi),k(qs,Yi,null),e(fo,tm),e(fo,Qi),e(Qi,om),g(o,Bd,b),g(o,yt,b),k(Ns,yt,null),e(yt,nm),e(yt,go),e(go,sm),e(go,Oi),e(Oi,am),e(go,rm),e(go,As),e(As,im),e(go,lm),e(yt,dm),e(yt,Ss),e(Ss,cm),e(Ss,Xs),e(Xs,pm),e(Ss,hm),e(yt,mm),e(yt,Et),k(Ps,Et,null),e(Et,um),e(Et,_o),e(_o,fm),e(_o,jr),e(jr,gm),e(_o,_m),e(_o,Hi),e(Hi,bm),e(_o,ym),e(Et,Tm),k(on,Et,null),e(Et,wm),k(nn,Et,null),g(o,zd,b),g(o,bo,b),e(bo,sn),e(sn,Ki),k(Ls,Ki,null),e(bo,vm),e(bo,el),e(el,km),g(o,Ud,b),g(o,st,b),k(Ys,st,null),e(st,Mm),e(st,tl),e(tl,$m),e(st,Em),e(st,Qs),e(Qs,Dm),e(Qs,Os),e(Os,jm),e(Qs,Vm),e(st,Fm),e(st,Hs),e(Hs,Jm),e(Hs,Ks),e(Ks,Cm),e(Hs,Rm),e(st,Bm),e(st,pt),k(ea,pt,null),e(pt,zm),e(pt,yo),e(yo,Um),e(yo,Vr),e(Vr,Im),e(yo,Wm),e(yo,ol),e(ol,xm),e(yo,Zm),e(pt,Gm),k(an,pt,null),e(pt,qm),k(rn,pt,null),e(pt,Nm),k(ln,pt,null),g(o,Id,b),g(o,To,b),e(To,dn),e(dn,nl),k(ta,nl,null),e(To,Am),e(To,sl),e(sl,Sm),g(o,Wd,b),g(o,at,b),k(oa,at,null),e(at,Xm),e(at,al),e(al,Pm),e(at,Lm),e(at,na),e(na,Ym),e(na,sa),e(sa,Qm),e(na,Om),e(at,Hm),e(at,aa),e(aa,Km),e(aa,ra),e(ra,eu),e(aa,tu),e(at,ou),e(at,Dt),k(ia,Dt,null),e(Dt,nu),e(Dt,wo),e(wo,su),e(wo,Fr),e(Fr,au),e(wo,ru),e(wo,rl),e(rl,iu),e(wo,lu),e(Dt,du),k(cn,Dt,null),e(Dt,cu),k(pn,Dt,null),g(o,xd,b),g(o,vo,b),e(vo,hn),e(hn,il),k(la,il,null),e(vo,pu),e(vo,ll),e(ll,hu),g(o,Zd,b),g(o,rt,b),k(da,rt,null),e(rt,mu),e(rt,ko),e(ko,uu),e(ko,dl),e(dl,fu),e(ko,gu),e(ko,cl),e(cl,_u),e(ko,bu),e(rt,yu),e(rt,ca),e(ca,Tu),e(ca,pa),e(pa,wu),e(ca,vu),e(rt,ku),e(rt,ha),e(ha,Mu),e(ha,ma),e(ma,$u),e(ha,Eu),e(rt,Du),e(rt,jt),k(ua,jt,null),e(jt,ju),e(jt,Mo),e(Mo,Vu),e(Mo,Jr),e(Jr,Fu),e(Mo,Ju),e(Mo,pl),e(pl,Cu),e(Mo,Ru),e(jt,Bu),k(mn,jt,null),e(jt,zu),k(un,jt,null),g(o,Gd,b),g(o,$o,b),e($o,fn),e(fn,hl),k(fa,hl,null),e($o,Uu),e($o,ml),e(ml,Iu),g(o,qd,b),g(o,it,b),k(ga,it,null),e(it,Wu),e(it,ul),e(ul,xu),e(it,Zu),e(it,_a),e(_a,Gu),e(_a,ba),e(ba,qu),e(_a,Nu),e(it,Au),e(it,ya),e(ya,Su),e(ya,Ta),e(Ta,Xu),e(ya,Pu),e(it,Lu),e(it,Vt),k(wa,Vt,null),e(Vt,Yu),e(Vt,Eo),e(Eo,Qu),e(Eo,Cr),e(Cr,Ou),e(Eo,Hu),e(Eo,fl),e(fl,Ku),e(Eo,ef),e(Vt,tf),k(gn,Vt,null),e(Vt,of),k(_n,Vt,null),g(o,Nd,b),g(o,Do,b),e(Do,bn),e(bn,gl),k(va,gl,null),e(Do,nf),e(Do,_l),e(_l,sf),g(o,Ad,b),g(o,lt,b),k(ka,lt,null),e(lt,af),e(lt,Ma),e(Ma,rf),e(Ma,$a),e($a,lf),e(Ma,df),e(lt,cf),e(lt,Ea),e(Ea,pf),e(Ea,Da),e(Da,hf),e(Ea,mf),e(lt,uf),k(yn,lt,null),e(lt,ff),e(lt,Ft),k(ja,Ft,null),e(Ft,gf),e(Ft,jo),e(jo,_f),e(jo,Rr),e(Rr,bf),e(jo,yf),e(jo,bl),e(bl,Tf),e(jo,wf),e(Ft,vf),k(Tn,Ft,null),e(Ft,kf),k(wn,Ft,null),g(o,Sd,b),g(o,Vo,b),e(Vo,vn),e(vn,yl),k(Va,yl,null),e(Vo,Mf),e(Vo,Tl),e(Tl,$f),g(o,Xd,b),g(o,xt,b),k(Fa,xt,null),e(xt,Ef),e(xt,wl),e(wl,Df),e(xt,jf),e(xt,Jt),k(Ja,Jt,null),e(Jt,Vf),e(Jt,vl),e(vl,Ff),e(Jt,Jf),e(Jt,Ca),e(Ca,Cf),e(Ca,kl),e(kl,Rf),e(Ca,Bf),e(Jt,zf),e(Jt,Tt),e(Tt,Uf),e(Tt,Ml),e(Ml,If),e(Tt,Wf),e(Tt,$l),e($l,xf),e(Tt,Zf),e(Tt,El),e(El,Gf),e(Tt,qf),e(Tt,Dl),e(Dl,Nf),e(Tt,Af),g(o,Pd,b),g(o,Fo,b),e(Fo,kn),e(kn,jl),k(Ra,jl,null),e(Fo,Sf),e(Fo,Vl),e(Vl,Xf),g(o,Ld,b),g(o,dt,b),k(Ba,dt,null),e(dt,Pf),e(dt,Jo),e(Jo,Lf),e(Jo,Fl),e(Fl,Yf),e(Jo,Qf),e(Jo,za),e(za,Of),e(Jo,Hf),e(dt,Kf),e(dt,Ua),e(Ua,eg),e(Ua,Ia),e(Ia,tg),e(Ua,og),e(dt,ng),k(Mn,dt,null),e(dt,sg),e(dt,ht),k(Wa,ht,null),e(ht,ag),e(ht,Co),e(Co,rg),e(Co,Br),e(Br,ig),e(Co,lg),e(Co,Jl),e(Jl,dg),e(Co,cg),e(ht,pg),k($n,ht,null),e(ht,hg),k(En,ht,null),e(ht,mg),k(Dn,ht,null),g(o,Yd,b),g(o,Ro,b),e(Ro,jn),e(jn,Cl),k(xa,Cl,null),e(Ro,ug),e(Ro,Rl),e(Rl,fg),g(o,Qd,b),g(o,et,b),k(Za,et,null),e(et,gg),e(et,Bl),e(Bl,_g),e(et,bg),e(et,Ga),e(Ga,yg),e(Ga,qa),e(qa,Tg),e(Ga,wg),e(et,vg),e(et,Na),e(Na,kg),e(Na,Aa),e(Aa,Mg),e(Na,$g),e(et,Eg),k(Vn,et,null),e(et,Dg),e(et,mt),k(Sa,mt,null),e(mt,jg),e(mt,Bo),e(Bo,Vg),e(Bo,zr),e(zr,Fg),e(Bo,Jg),e(Bo,zl),e(zl,Cg),e(Bo,Rg),e(mt,Bg),k(Fn,mt,null),e(mt,zg),k(Jn,mt,null),e(mt,Ug),k(Cn,mt,null),g(o,Od,b),g(o,zo,b),e(zo,Rn),e(Rn,Ul),k(Xa,Ul,null),e(zo,Ig),e(zo,Il),e(Il,Wg),g(o,Hd,b),g(o,tt,b),k(Pa,tt,null),e(tt,xg),e(tt,Wl),e(Wl,Zg),e(tt,Gg),e(tt,La),e(La,qg),e(La,Ya),e(Ya,Ng),e(La,Ag),e(tt,Sg),e(tt,Qa),e(Qa,Xg),e(Qa,Oa),e(Oa,Pg),e(Qa,Lg),e(tt,Yg),k(Bn,tt,null),e(tt,Qg),e(tt,ut),k(Ha,ut,null),e(ut,Og),e(ut,Uo),e(Uo,Hg),e(Uo,Ur),e(Ur,Kg),e(Uo,e_),e(Uo,xl),e(xl,t_),e(Uo,o_),e(ut,n_),k(zn,ut,null),e(ut,s_),k(Un,ut,null),e(ut,a_),k(In,ut,null),g(o,Kd,b),g(o,Io,b),e(Io,Wn),e(Wn,Zl),k(Ka,Zl,null),e(Io,r_),e(Io,Gl),e(Gl,i_),g(o,ec,b),g(o,ot,b),k(er,ot,null),e(ot,l_),e(ot,Wo),e(Wo,d_),e(Wo,ql),e(ql,c_),e(Wo,p_),e(Wo,Nl),e(Nl,h_),e(Wo,m_),e(ot,u_),e(ot,tr),e(tr,f_),e(tr,or),e(or,g_),e(tr,__),e(ot,b_),e(ot,nr),e(nr,y_),e(nr,sr),e(sr,T_),e(nr,w_),e(ot,v_),k(xn,ot,null),e(ot,k_),e(ot,ft),k(ar,ft,null),e(ft,M_),e(ft,xo),e(xo,$_),e(xo,Ir),e(Ir,E_),e(xo,D_),e(xo,Al),e(Al,j_),e(xo,V_),e(ft,F_),k(Zn,ft,null),e(ft,J_),k(Gn,ft,null),e(ft,C_),k(qn,ft,null),g(o,tc,b),g(o,Zo,b),e(Zo,Nn),e(Nn,Sl),k(rr,Sl,null),e(Zo,R_),e(Zo,Xl),e(Xl,B_),g(o,oc,b),g(o,nt,b),k(ir,nt,null),e(nt,z_),e(nt,Pl),e(Pl,U_),e(nt,I_),e(nt,lr),e(lr,W_),e(lr,dr),e(dr,x_),e(lr,Z_),e(nt,G_),e(nt,cr),e(cr,q_),e(cr,pr),e(pr,N_),e(cr,A_),e(nt,S_),k(An,nt,null),e(nt,X_),e(nt,Ct),k(hr,Ct,null),e(Ct,P_),e(Ct,Go),e(Go,L_),e(Go,Wr),e(Wr,Y_),e(Go,Q_),e(Go,Ll),e(Ll,O_),e(Go,H_),e(Ct,K_),k(Sn,Ct,null),e(Ct,eb),k(Xn,Ct,null),nc=!0},p(o,[b]){const mr={};b&2&&(mr.$$scope={dirty:b,ctx:o}),Ao.$set(mr);const Yl={};b&2&&(Yl.$$scope={dirty:b,ctx:o}),Po.$set(Yl);const Ql={};b&2&&(Ql.$$scope={dirty:b,ctx:o}),Yo.$set(Ql);const Ol={};b&2&&(Ol.$$scope={dirty:b,ctx:o}),Oo.$set(Ol);const ur={};b&2&&(ur.$$scope={dirty:b,ctx:o}),Ho.$set(ur);const Hl={};b&2&&(Hl.$$scope={dirty:b,ctx:o}),en.$set(Hl);const Kl={};b&2&&(Kl.$$scope={dirty:b,ctx:o}),on.$set(Kl);const ed={};b&2&&(ed.$$scope={dirty:b,ctx:o}),nn.$set(ed);const fr={};b&2&&(fr.$$scope={dirty:b,ctx:o}),an.$set(fr);const td={};b&2&&(td.$$scope={dirty:b,ctx:o}),rn.$set(td);const od={};b&2&&(od.$$scope={dirty:b,ctx:o}),ln.$set(od);const nd={};b&2&&(nd.$$scope={dirty:b,ctx:o}),cn.$set(nd);const sd={};b&2&&(sd.$$scope={dirty:b,ctx:o}),pn.$set(sd);const gr={};b&2&&(gr.$$scope={dirty:b,ctx:o}),mn.$set(gr);const ad={};b&2&&(ad.$$scope={dirty:b,ctx:o}),un.$set(ad);const Pn={};b&2&&(Pn.$$scope={dirty:b,ctx:o}),gn.$set(Pn);const rd={};b&2&&(rd.$$scope={dirty:b,ctx:o}),_n.$set(rd);const id={};b&2&&(id.$$scope={dirty:b,ctx:o}),yn.$set(id);const ld={};b&2&&(ld.$$scope={dirty:b,ctx:o}),Tn.$set(ld);const wt={};b&2&&(wt.$$scope={dirty:b,ctx:o}),wn.$set(wt);const Ln={};b&2&&(Ln.$$scope={dirty:b,ctx:o}),Mn.$set(Ln);const dd={};b&2&&(dd.$$scope={dirty:b,ctx:o}),$n.$set(dd);const cd={};b&2&&(cd.$$scope={dirty:b,ctx:o}),En.$set(cd);const xr={};b&2&&(xr.$$scope={dirty:b,ctx:o}),Dn.$set(xr);const pd={};b&2&&(pd.$$scope={dirty:b,ctx:o}),Vn.$set(pd);const Zr={};b&2&&(Zr.$$scope={dirty:b,ctx:o}),Fn.$set(Zr);const hd={};b&2&&(hd.$$scope={dirty:b,ctx:o}),Jn.$set(hd);const Gr={};b&2&&(Gr.$$scope={dirty:b,ctx:o}),Cn.$set(Gr);const md={};b&2&&(md.$$scope={dirty:b,ctx:o}),Bn.$set(md);const qr={};b&2&&(qr.$$scope={dirty:b,ctx:o}),zn.$set(qr);const ud={};b&2&&(ud.$$scope={dirty:b,ctx:o}),Un.$set(ud);const Zt={};b&2&&(Zt.$$scope={dirty:b,ctx:o}),In.$set(Zt);const fd={};b&2&&(fd.$$scope={dirty:b,ctx:o}),xn.$set(fd);const gd={};b&2&&(gd.$$scope={dirty:b,ctx:o}),Zn.$set(gd);const _d={};b&2&&(_d.$$scope={dirty:b,ctx:o}),Gn.$set(_d);const _r={};b&2&&(_r.$$scope={dirty:b,ctx:o}),qn.$set(_r);const bd={};b&2&&(bd.$$scope={dirty:b,ctx:o}),An.$set(bd);const yd={};b&2&&(yd.$$scope={dirty:b,ctx:o}),Sn.$set(yd);const Td={};b&2&&(Td.$$scope={dirty:b,ctx:o}),Xn.$set(Td)},i(o){nc||(M(l.$$.fragment,o),M(D.$$.fragment,o),M(hs.$$.fragment,o),M(ms.$$.fragment,o),M(us.$$.fragment,o),M(Ao.$$.fragment,o),M(gs.$$.fragment,o),M(_s.$$.fragment,o),M(Ts.$$.fragment,o),M(vs.$$.fragment,o),M(ks.$$.fragment,o),M(Po.$$.fragment,o),M(Ms.$$.fragment,o),M($s.$$.fragment,o),M(Es.$$.fragment,o),M(Vs.$$.fragment,o),M(Js.$$.fragment,o),M(Yo.$$.fragment,o),M(Cs.$$.fragment,o),M(Rs.$$.fragment,o),M(Ws.$$.fragment,o),M(Oo.$$.fragment,o),M(Ho.$$.fragment,o),M(xs.$$.fragment,o),M(Zs.$$.fragment,o),M(Gs.$$.fragment,o),M(en.$$.fragment,o),M(qs.$$.fragment,o),M(Ns.$$.fragment,o),M(Ps.$$.fragment,o),M(on.$$.fragment,o),M(nn.$$.fragment,o),M(Ls.$$.fragment,o),M(Ys.$$.fragment,o),M(ea.$$.fragment,o),M(an.$$.fragment,o),M(rn.$$.fragment,o),M(ln.$$.fragment,o),M(ta.$$.fragment,o),M(oa.$$.fragment,o),M(ia.$$.fragment,o),M(cn.$$.fragment,o),M(pn.$$.fragment,o),M(la.$$.fragment,o),M(da.$$.fragment,o),M(ua.$$.fragment,o),M(mn.$$.fragment,o),M(un.$$.fragment,o),M(fa.$$.fragment,o),M(ga.$$.fragment,o),M(wa.$$.fragment,o),M(gn.$$.fragment,o),M(_n.$$.fragment,o),M(va.$$.fragment,o),M(ka.$$.fragment,o),M(yn.$$.fragment,o),M(ja.$$.fragment,o),M(Tn.$$.fragment,o),M(wn.$$.fragment,o),M(Va.$$.fragment,o),M(Fa.$$.fragment,o),M(Ja.$$.fragment,o),M(Ra.$$.fragment,o),M(Ba.$$.fragment,o),M(Mn.$$.fragment,o),M(Wa.$$.fragment,o),M($n.$$.fragment,o),M(En.$$.fragment,o),M(Dn.$$.fragment,o),M(xa.$$.fragment,o),M(Za.$$.fragment,o),M(Vn.$$.fragment,o),M(Sa.$$.fragment,o),M(Fn.$$.fragment,o),M(Jn.$$.fragment,o),M(Cn.$$.fragment,o),M(Xa.$$.fragment,o),M(Pa.$$.fragment,o),M(Bn.$$.fragment,o),M(Ha.$$.fragment,o),M(zn.$$.fragment,o),M(Un.$$.fragment,o),M(In.$$.fragment,o),M(Ka.$$.fragment,o),M(er.$$.fragment,o),M(xn.$$.fragment,o),M(ar.$$.fragment,o),M(Zn.$$.fragment,o),M(Gn.$$.fragment,o),M(qn.$$.fragment,o),M(rr.$$.fragment,o),M(ir.$$.fragment,o),M(An.$$.fragment,o),M(hr.$$.fragment,o),M(Sn.$$.fragment,o),M(Xn.$$.fragment,o),nc=!0)},o(o){$(l.$$.fragment,o),$(D.$$.fragment,o),$(hs.$$.fragment,o),$(ms.$$.fragment,o),$(us.$$.fragment,o),$(Ao.$$.fragment,o),$(gs.$$.fragment,o),$(_s.$$.fragment,o),$(Ts.$$.fragment,o),$(vs.$$.fragment,o),$(ks.$$.fragment,o),$(Po.$$.fragment,o),$(Ms.$$.fragment,o),$($s.$$.fragment,o),$(Es.$$.fragment,o),$(Vs.$$.fragment,o),$(Js.$$.fragment,o),$(Yo.$$.fragment,o),$(Cs.$$.fragment,o),$(Rs.$$.fragment,o),$(Ws.$$.fragment,o),$(Oo.$$.fragment,o),$(Ho.$$.fragment,o),$(xs.$$.fragment,o),$(Zs.$$.fragment,o),$(Gs.$$.fragment,o),$(en.$$.fragment,o),$(qs.$$.fragment,o),$(Ns.$$.fragment,o),$(Ps.$$.fragment,o),$(on.$$.fragment,o),$(nn.$$.fragment,o),$(Ls.$$.fragment,o),$(Ys.$$.fragment,o),$(ea.$$.fragment,o),$(an.$$.fragment,o),$(rn.$$.fragment,o),$(ln.$$.fragment,o),$(ta.$$.fragment,o),$(oa.$$.fragment,o),$(ia.$$.fragment,o),$(cn.$$.fragment,o),$(pn.$$.fragment,o),$(la.$$.fragment,o),$(da.$$.fragment,o),$(ua.$$.fragment,o),$(mn.$$.fragment,o),$(un.$$.fragment,o),$(fa.$$.fragment,o),$(ga.$$.fragment,o),$(wa.$$.fragment,o),$(gn.$$.fragment,o),$(_n.$$.fragment,o),$(va.$$.fragment,o),$(ka.$$.fragment,o),$(yn.$$.fragment,o),$(ja.$$.fragment,o),$(Tn.$$.fragment,o),$(wn.$$.fragment,o),$(Va.$$.fragment,o),$(Fa.$$.fragment,o),$(Ja.$$.fragment,o),$(Ra.$$.fragment,o),$(Ba.$$.fragment,o),$(Mn.$$.fragment,o),$(Wa.$$.fragment,o),$($n.$$.fragment,o),$(En.$$.fragment,o),$(Dn.$$.fragment,o),$(xa.$$.fragment,o),$(Za.$$.fragment,o),$(Vn.$$.fragment,o),$(Sa.$$.fragment,o),$(Fn.$$.fragment,o),$(Jn.$$.fragment,o),$(Cn.$$.fragment,o),$(Xa.$$.fragment,o),$(Pa.$$.fragment,o),$(Bn.$$.fragment,o),$(Ha.$$.fragment,o),$(zn.$$.fragment,o),$(Un.$$.fragment,o),$(In.$$.fragment,o),$(Ka.$$.fragment,o),$(er.$$.fragment,o),$(xn.$$.fragment,o),$(ar.$$.fragment,o),$(Zn.$$.fragment,o),$(Gn.$$.fragment,o),$(qn.$$.fragment,o),$(rr.$$.fragment,o),$(ir.$$.fragment,o),$(An.$$.fragment,o),$(hr.$$.fragment,o),$(Sn.$$.fragment,o),$(Xn.$$.fragment,o),nc=!1},d(o){t(d),o&&t(y),o&&t(m),E(l),o&&t(pe),o&&t(W),E(D),o&&t(he),o&&t(G),o&&t(me),o&&t(N),o&&t(ue),o&&t(A),o&&t(fe),o&&t(ee),o&&t(ge),o&&t(x),o&&t(_e),o&&t(S),o&&t(be),o&&t(U),o&&t(Ze),o&&t(te),o&&t(wd),o&&t(oo),E(hs),o&&t(vd),o&&t(ct),o&&t(kd),o&&t(no),E(ms),o&&t(Md),o&&t(gt),E(us),E(Ao),o&&t($d),o&&t(ro),E(gs),o&&t(Ed),o&&t(Ke),E(_s),E(Ts),E(vs),E(ks),E(Po),E(Ms),o&&t(Dd),o&&t(co),E($s),o&&t(jd),o&&t(_t),E(Es),E(Vs),E(Js),E(Yo),o&&t(Vd),o&&t(ho),E(Cs),o&&t(Fd),o&&t(bt),E(Rs),E(Ws),E(Oo),E(Ho),o&&t(Jd),o&&t(uo),E(xs),o&&t(Cd),o&&t(Wt),E(Zs),E(Gs),E(en),o&&t(Rd),o&&t(fo),E(qs),o&&t(Bd),o&&t(yt),E(Ns),E(Ps),E(on),E(nn),o&&t(zd),o&&t(bo),E(Ls),o&&t(Ud),o&&t(st),E(Ys),E(ea),E(an),E(rn),E(ln),o&&t(Id),o&&t(To),E(ta),o&&t(Wd),o&&t(at),E(oa),E(ia),E(cn),E(pn),o&&t(xd),o&&t(vo),E(la),o&&t(Zd),o&&t(rt),E(da),E(ua),E(mn),E(un),o&&t(Gd),o&&t($o),E(fa),o&&t(qd),o&&t(it),E(ga),E(wa),E(gn),E(_n),o&&t(Nd),o&&t(Do),E(va),o&&t(Ad),o&&t(lt),E(ka),E(yn),E(ja),E(Tn),E(wn),o&&t(Sd),o&&t(Vo),E(Va),o&&t(Xd),o&&t(xt),E(Fa),E(Ja),o&&t(Pd),o&&t(Fo),E(Ra),o&&t(Ld),o&&t(dt),E(Ba),E(Mn),E(Wa),E($n),E(En),E(Dn),o&&t(Yd),o&&t(Ro),E(xa),o&&t(Qd),o&&t(et),E(Za),E(Vn),E(Sa),E(Fn),E(Jn),E(Cn),o&&t(Od),o&&t(zo),E(Xa),o&&t(Hd),o&&t(tt),E(Pa),E(Bn),E(Ha),E(zn),E(Un),E(In),o&&t(Kd),o&&t(Io),E(Ka),o&&t(ec),o&&t(ot),E(er),E(xn),E(ar),E(Zn),E(Gn),E(qn),o&&t(tc),o&&t(Zo),E(rr),o&&t(oc),o&&t(nt),E(ir),E(An),E(hr),E(Sn),E(Xn)}}}const UT={local:"debertav2",sections:[{local:"overview",title:"Overview"},{local:"documentation-resources",title:"Documentation resources"},{local:"transformers.DebertaV2Config",title:"DebertaV2Config"},{local:"transformers.DebertaV2Tokenizer",title:"DebertaV2Tokenizer"},{local:"transformers.DebertaV2TokenizerFast",title:"DebertaV2TokenizerFast"},{local:"transformers.DebertaV2Model",title:"DebertaV2Model"},{local:"transformers.DebertaV2PreTrainedModel",title:"DebertaV2PreTrainedModel"},{local:"transformers.DebertaV2ForMaskedLM",title:"DebertaV2ForMaskedLM"},{local:"transformers.DebertaV2ForSequenceClassification",title:"DebertaV2ForSequenceClassification"},{local:"transformers.DebertaV2ForTokenClassification",title:"DebertaV2ForTokenClassification"},{local:"transformers.DebertaV2ForQuestionAnswering",title:"DebertaV2ForQuestionAnswering"},{local:"transformers.DebertaV2ForMultipleChoice",title:"DebertaV2ForMultipleChoice"},{local:"transformers.TFDebertaV2Model",title:"TFDebertaV2Model"},{local:"transformers.TFDebertaV2PreTrainedModel",title:"TFDebertaV2PreTrainedModel"},{local:"transformers.TFDebertaV2ForMaskedLM",title:"TFDebertaV2ForMaskedLM"},{local:"transformers.TFDebertaV2ForSequenceClassification",title:"TFDebertaV2ForSequenceClassification"},{local:"transformers.TFDebertaV2ForTokenClassification",title:"TFDebertaV2ForTokenClassification"},{local:"transformers.TFDebertaV2ForQuestionAnswering",title:"TFDebertaV2ForQuestionAnswering"},{local:"transformers.TFDebertaV2ForMultipleChoice",title:"TFDebertaV2ForMultipleChoice"}],title:"DeBERTa-v2"};function IT(F){return Y2(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class AT extends S2{constructor(d){super();X2(this,d,IT,zT,P2,{})}}export{AT as default,UT as metadata};
