import{s as lh,c as ph,u as hh,g as fh,d as uh,o as dh,b as gh,n as Y}from"../chunks/scheduler.5c93273d.js";import{S as ch,i as mh,g as r,r as h,s as o,h as a,j as M,u as f,f as s,c as n,k as v,a as b,y as t,v as u,B as _h,d as m,t as p,w as g,A as bh,x as l}from"../chunks/index.3944bef6.js";import{T as yi}from"../chunks/Tip.9595e28c.js";import{D as T}from"../chunks/Docstring.21612d2a.js";import{C as V}from"../chunks/CodeBlock.39195187.js";import{g as yh}from"../chunks/globals.7f7f1b26.js";import{I as vh,H as kt}from"../chunks/Heading.cee1af11.js";const{window:Mh}=yh;function Th(P){let d,k,y,_,w,i,j,ye,L;_=new vh({props:{classNames:"text-smd"}});const R=P[4].default,H=ph(R,P,P[3],null);return{c(){d=r("div"),k=r("a"),y=r("span"),h(_.$$.fragment),i=o(),H&&H.c(),this.h()},l(z){d=a(z,"DIV",{class:!0});var G=M(d);k=a(G,"A",{id:!0,class:!0,href:!0});var Sa=M(k);y=a(Sa,"SPAN",{});var jt=M(y);f(_.$$.fragment,jt),jt.forEach(s),Sa.forEach(s),i=n(G),H&&H.l(G),G.forEach(s),this.h()},h(){v(k,"id",P[0]),v(k,"class","header-link block pr-0.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),v(k,"href",w=`#${P[0]}`),v(d,"class","relative group rounded-md")},m(z,G){b(z,d,G),t(d,k),t(k,y),u(_,y,null),t(d,i),H&&H.m(d,null),P[5](d),j=!0,ye||(L=_h(Mh,"hashchange",P[2]),ye=!0)},p(z,[G]){(!j||G&1)&&v(k,"id",z[0]),(!j||G&1&&w!==(w=`#${z[0]}`))&&v(k,"href",w),H&&H.p&&(!j||G&8)&&hh(H,R,z,z[3],j?uh(R,z[3],G,null):fh(z[3]),null)},i(z){j||(m(_.$$.fragment,z),m(H,z),j=!0)},o(z){p(_.$$.fragment,z),p(H,z),j=!1},d(z){z&&s(d),g(_),H&&H.d(z),P[5](null),ye=!1,L()}}}const ih="bg-yellow-50 dark:bg-[#494a3d]";function xh(P,d,k){let{$$slots:y={},$$scope:_}=d,{anchor:w}=d,i;function j(){const{hash:L}=window.location,R=L.substring(1);i&&i.classList.remove(...ih.split(" ")),R===w&&i.classList.add(...ih.split(" "))}dh(()=>{j()});function ye(L){gh[L?"unshift":"push"](()=>{i=L,k(1,i)})}return P.$$set=L=>{"anchor"in L&&k(0,w=L.anchor),"$$scope"in L&&k(3,_=L.$$scope)},[w,i,j,_,y,ye]}class ge extends ch{constructor(d){super(),mh(this,d,xh,Th,lh,{anchor:0})}}function wh(P){let d,k="Examples:",y,_,w;return _=new V({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbCUwQSUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsLmZyb21fcHJldHJhaW5lZCglMjJiZXJ0LWJhc2UtY2FzZWQlMjIpJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMG1vZGVsJTIwdG8lMjB5b3VyJTIwbmFtZXNwYWNlJTIwd2l0aCUyMHRoZSUyMG5hbWUlMjAlMjJteS1maW5ldHVuZWQtYmVydCUyMi4lMEFtb2RlbC5wdXNoX3RvX2h1YiglMjJteS1maW5ldHVuZWQtYmVydCUyMiklMEElMEElMjMlMjBQdXNoJTIwdGhlJTIwbW9kZWwlMjB0byUyMGFuJTIwb3JnYW5pemF0aW9uJTIwd2l0aCUyMHRoZSUyMG5hbWUlMjAlMjJteS1maW5ldHVuZWQtYmVydCUyMi4lMEFtb2RlbC5wdXNoX3RvX2h1YiglMjJodWdnaW5nZmFjZSUyRm15LWZpbmV0dW5lZC1iZXJ0JTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModel

model = AutoModel.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)

<span class="hljs-comment"># Push the model to your namespace with the name &quot;my-finetuned-bert&quot;.</span>
model.push_to_hub(<span class="hljs-string">&quot;my-finetuned-bert&quot;</span>)

<span class="hljs-comment"># Push the model to an organization with the name &quot;my-finetuned-bert&quot;.</span>
model.push_to_hub(<span class="hljs-string">&quot;huggingface/my-finetuned-bert&quot;</span>)`,wrap:!1}}),{c(){d=r("p"),d.textContent=k,y=o(),h(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=k),y=n(i),f(_.$$.fragment,i)},m(i,j){b(i,d,j),b(i,y,j),u(_,i,j),w=!0},p:Y,i(i){w||(m(_.$$.fragment,i),w=!0)},o(i){p(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(y)),g(_,i)}}}function $h(P){let d,k=`Activate the special <a href="https://huggingface.co/transformers/installation.html#offline-mode" rel="nofollow">“offline-mode”</a> to
use this method in a firewalled environment.`;return{c(){d=r("p"),d.innerHTML=k},l(y){d=a(y,"P",{"data-svelte-h":!0}),l(d)!=="svelte-13hahdn"&&(d.innerHTML=k)},m(y,_){b(y,d,_)},p:Y,d(y){y&&s(d)}}}function kh(P){let d,k="Examples:",y,_,w;return _=new V({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJlcnRDb25maWclMkMlMjBCZXJ0TW9kZWwlMEElMEElMjMlMjBEb3dubG9hZCUyMG1vZGVsJTIwYW5kJTIwY29uZmlndXJhdGlvbiUyMGZyb20lMjBodWdnaW5nZmFjZS5jbyUyMGFuZCUyMGNhY2hlLiUwQW1vZGVsJTIwJTNEJTIwQmVydE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJiZXJ0LWJhc2UtdW5jYXNlZCUyMiklMEElMjMlMjBNb2RlbCUyMHdhcyUyMHNhdmVkJTIwdXNpbmclMjAqc2F2ZV9wcmV0cmFpbmVkKCcuJTJGdGVzdCUyRnNhdmVkX21vZGVsJTJGJykqJTIwKGZvciUyMGV4YW1wbGUlMjBwdXJwb3NlcyUyQyUyMG5vdCUyMHJ1bm5hYmxlKS4lMEFtb2RlbCUyMCUzRCUyMEJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyLiUyRnRlc3QlMkZzYXZlZF9tb2RlbCUyRiUyMiklMEElMjMlMjBVcGRhdGUlMjBjb25maWd1cmF0aW9uJTIwZHVyaW5nJTIwbG9hZGluZy4lMEFtb2RlbCUyMCUzRCUyMEJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLXVuY2FzZWQlMjIlMkMlMjBvdXRwdXRfYXR0ZW50aW9ucyUzRFRydWUpJTBBYXNzZXJ0JTIwbW9kZWwuY29uZmlnLm91dHB1dF9hdHRlbnRpb25zJTIwJTNEJTNEJTIwVHJ1ZSUwQSUyMyUyMExvYWRpbmclMjBmcm9tJTIwYSUyMFRGJTIwY2hlY2twb2ludCUyMGZpbGUlMjBpbnN0ZWFkJTIwb2YlMjBhJTIwUHlUb3JjaCUyMG1vZGVsJTIwKHNsb3dlciUyQyUyMGZvciUyMGV4YW1wbGUlMjBwdXJwb3NlcyUyQyUyMG5vdCUyMHJ1bm5hYmxlKS4lMEFjb25maWclMjAlM0QlMjBCZXJ0Q29uZmlnLmZyb21fanNvbl9maWxlKCUyMi4lMkZ0Zl9tb2RlbCUyRm15X3RmX21vZGVsX2NvbmZpZy5qc29uJTIyKSUwQW1vZGVsJTIwJTNEJTIwQmVydE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjIuJTJGdGZfbW9kZWwlMkZteV90Zl9jaGVja3BvaW50LmNrcHQuaW5kZXglMjIlMkMlMjBmcm9tX3RmJTNEVHJ1ZSUyQyUyMGNvbmZpZyUzRGNvbmZpZyklMEElMjMlMjBMb2FkaW5nJTIwZnJvbSUyMGElMjBGbGF4JTIwY2hlY2twb2ludCUyMGZpbGUlMjBpbnN0ZWFkJTIwb2YlMjBhJTIwUHlUb3JjaCUyMG1vZGVsJTIwKHNsb3dlciklMEFtb2RlbCUyMCUzRCUyMEJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLXVuY2FzZWQlMjIlMkMlMjBmcm9tX2ZsYXglM0RUcnVlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BertConfig, BertModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Download model and configuration from huggingface.co and cache.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BertModel.from_pretrained(<span class="hljs-string">&quot;bert-base-uncased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Model was saved using *save_pretrained(&#x27;./test/saved_model/&#x27;)* (for example purposes, not runnable).</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BertModel.from_pretrained(<span class="hljs-string">&quot;./test/saved_model/&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Update configuration during loading.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BertModel.from_pretrained(<span class="hljs-string">&quot;bert-base-uncased&quot;</span>, output_attentions=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">assert</span> model.config.output_attentions == <span class="hljs-literal">True</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Loading from a TF checkpoint file instead of a PyTorch model (slower, for example purposes, not runnable).</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>config = BertConfig.from_json_file(<span class="hljs-string">&quot;./tf_model/my_tf_model_config.json&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BertModel.from_pretrained(<span class="hljs-string">&quot;./tf_model/my_tf_checkpoint.ckpt.index&quot;</span>, from_tf=<span class="hljs-literal">True</span>, config=config)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Loading from a Flax checkpoint file instead of a PyTorch model (slower)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = BertModel.from_pretrained(<span class="hljs-string">&quot;bert-base-uncased&quot;</span>, from_flax=<span class="hljs-literal">True</span>)`,wrap:!1}}),{c(){d=r("p"),d.textContent=k,y=o(),h(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=k),y=n(i),f(_.$$.fragment,i)},m(i,j){b(i,d,j),b(i,y,j),u(_,i,j),w=!0},p:Y,i(i){w||(m(_.$$.fragment,i),w=!0)},o(i){p(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(y)),g(_,i)}}}function jh(P){let d,k="This API is experimental and may have some slight breaking changes in the next releases.";return{c(){d=r("p"),d.textContent=k},l(y){d=a(y,"P",{"data-svelte-h":!0}),l(d)!=="svelte-15rpg4"&&(d.textContent=k)},m(y,_){b(y,d,_)},p:Y,d(y){y&&s(d)}}}function Ch(P){let d,k="Examples:",y,_,w;return _=new V({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJlcnRDb25maWclMkMlMjBURkJlcnRNb2RlbCUwQSUwQSUyMyUyMERvd25sb2FkJTIwbW9kZWwlMjBhbmQlMjBjb25maWd1cmF0aW9uJTIwZnJvbSUyMGh1Z2dpbmdmYWNlLmNvJTIwYW5kJTIwY2FjaGUuJTBBbW9kZWwlMjAlM0QlMjBURkJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLXVuY2FzZWQlMjIpJTBBJTIzJTIwTW9kZWwlMjB3YXMlMjBzYXZlZCUyMHVzaW5nJTIwKnNhdmVfcHJldHJhaW5lZCgnLiUyRnRlc3QlMkZzYXZlZF9tb2RlbCUyRicpKiUyMChmb3IlMjBleGFtcGxlJTIwcHVycG9zZXMlMkMlMjBub3QlMjBydW5uYWJsZSkuJTBBbW9kZWwlMjAlM0QlMjBURkJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyLiUyRnRlc3QlMkZzYXZlZF9tb2RlbCUyRiUyMiklMEElMjMlMjBVcGRhdGUlMjBjb25maWd1cmF0aW9uJTIwZHVyaW5nJTIwbG9hZGluZy4lMEFtb2RlbCUyMCUzRCUyMFRGQmVydE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJiZXJ0LWJhc2UtdW5jYXNlZCUyMiUyQyUyMG91dHB1dF9hdHRlbnRpb25zJTNEVHJ1ZSklMEFhc3NlcnQlMjBtb2RlbC5jb25maWcub3V0cHV0X2F0dGVudGlvbnMlMjAlM0QlM0QlMjBUcnVlJTBBJTIzJTIwTG9hZGluZyUyMGZyb20lMjBhJTIwUHl0b3JjaCUyMG1vZGVsJTIwZmlsZSUyMGluc3RlYWQlMjBvZiUyMGElMjBUZW5zb3JGbG93JTIwY2hlY2twb2ludCUyMChzbG93ZXIlMkMlMjBmb3IlMjBleGFtcGxlJTIwcHVycG9zZXMlMkMlMjBub3QlMjBydW5uYWJsZSkuJTBBY29uZmlnJTIwJTNEJTIwQmVydENvbmZpZy5mcm9tX2pzb25fZmlsZSglMjIuJTJGcHRfbW9kZWwlMkZteV9wdF9tb2RlbF9jb25maWcuanNvbiUyMiklMEFtb2RlbCUyMCUzRCUyMFRGQmVydE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjIuJTJGcHRfbW9kZWwlMkZteV9weXRvcmNoX21vZGVsLmJpbiUyMiUyQyUyMGZyb21fcHQlM0RUcnVlJTJDJTIwY29uZmlnJTNEY29uZmlnKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BertConfig, TFBertModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Download model and configuration from huggingface.co and cache.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFBertModel.from_pretrained(<span class="hljs-string">&quot;bert-base-uncased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Model was saved using *save_pretrained(&#x27;./test/saved_model/&#x27;)* (for example purposes, not runnable).</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFBertModel.from_pretrained(<span class="hljs-string">&quot;./test/saved_model/&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Update configuration during loading.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFBertModel.from_pretrained(<span class="hljs-string">&quot;bert-base-uncased&quot;</span>, output_attentions=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">assert</span> model.config.output_attentions == <span class="hljs-literal">True</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Loading from a Pytorch model file instead of a TensorFlow checkpoint (slower, for example purposes, not runnable).</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>config = BertConfig.from_json_file(<span class="hljs-string">&quot;./pt_model/my_pt_model_config.json&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFBertModel.from_pretrained(<span class="hljs-string">&quot;./pt_model/my_pytorch_model.bin&quot;</span>, from_pt=<span class="hljs-literal">True</span>, config=config)`,wrap:!1}}),{c(){d=r("p"),d.textContent=k,y=o(),h(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=k),y=n(i),f(_.$$.fragment,i)},m(i,j){b(i,d,j),b(i,y,j),u(_,i,j),w=!0},p:Y,i(i){w||(m(_.$$.fragment,i),w=!0)},o(i){p(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(y)),g(_,i)}}}function Jh(P){let d,k="Examples:",y,_,w;return _=new V({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRGQXV0b01vZGVsJTBBJTBBbW9kZWwlMjAlM0QlMjBURkF1dG9Nb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLWNhc2VkJTIyKSUwQSUwQSUyMyUyMFB1c2glMjB0aGUlMjBtb2RlbCUyMHRvJTIweW91ciUyMG5hbWVzcGFjZSUyMHdpdGglMjB0aGUlMjBuYW1lJTIwJTIybXktZmluZXR1bmVkLWJlcnQlMjIuJTBBbW9kZWwucHVzaF90b19odWIoJTIybXktZmluZXR1bmVkLWJlcnQlMjIpJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMG1vZGVsJTIwdG8lMjBhbiUyMG9yZ2FuaXphdGlvbiUyMHdpdGglMjB0aGUlMjBuYW1lJTIwJTIybXktZmluZXR1bmVkLWJlcnQlMjIuJTBBbW9kZWwucHVzaF90b19odWIoJTIyaHVnZ2luZ2ZhY2UlMkZteS1maW5ldHVuZWQtYmVydCUyMik=",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TFAutoModel

model = TFAutoModel.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)

<span class="hljs-comment"># Push the model to your namespace with the name &quot;my-finetuned-bert&quot;.</span>
model.push_to_hub(<span class="hljs-string">&quot;my-finetuned-bert&quot;</span>)

<span class="hljs-comment"># Push the model to an organization with the name &quot;my-finetuned-bert&quot;.</span>
model.push_to_hub(<span class="hljs-string">&quot;huggingface/my-finetuned-bert&quot;</span>)`,wrap:!1}}),{c(){d=r("p"),d.textContent=k,y=o(),h(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=k),y=n(i),f(_.$$.fragment,i)},m(i,j){b(i,d,j),b(i,y,j),u(_,i,j),w=!0},p:Y,i(i){w||(m(_.$$.fragment,i),w=!0)},o(i){p(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(y)),g(_,i)}}}function Ph(P){let d,k="This API is experimental and may have some slight breaking changes in the next releases.";return{c(){d=r("p"),d.textContent=k},l(y){d=a(y,"P",{"data-svelte-h":!0}),l(d)!=="svelte-15rpg4"&&(d.textContent=k)},m(y,_){b(y,d,_)},p:Y,d(y){y&&s(d)}}}function Uh(P){let d,k="Examples:",y,_,w;return _=new V({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJlcnRDb25maWclMkMlMjBGbGF4QmVydE1vZGVsJTBBJTBBJTIzJTIwRG93bmxvYWQlMjBtb2RlbCUyMGFuZCUyMGNvbmZpZ3VyYXRpb24lMjBmcm9tJTIwaHVnZ2luZ2ZhY2UuY28lMjBhbmQlMjBjYWNoZS4lMEFtb2RlbCUyMCUzRCUyMEZsYXhCZXJ0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmJlcnQtYmFzZS1jYXNlZCUyMiklMEElMjMlMjBNb2RlbCUyMHdhcyUyMHNhdmVkJTIwdXNpbmclMjAqc2F2ZV9wcmV0cmFpbmVkKCcuJTJGdGVzdCUyRnNhdmVkX21vZGVsJTJGJykqJTIwKGZvciUyMGV4YW1wbGUlMjBwdXJwb3NlcyUyQyUyMG5vdCUyMHJ1bm5hYmxlKS4lMEFtb2RlbCUyMCUzRCUyMEZsYXhCZXJ0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMi4lMkZ0ZXN0JTJGc2F2ZWRfbW9kZWwlMkYlMjIpJTBBJTIzJTIwTG9hZGluZyUyMGZyb20lMjBhJTIwUHlUb3JjaCUyMGNoZWNrcG9pbnQlMjBmaWxlJTIwaW5zdGVhZCUyMG9mJTIwYSUyMFB5VG9yY2glMjBtb2RlbCUyMChzbG93ZXIlMkMlMjBmb3IlMjBleGFtcGxlJTIwcHVycG9zZXMlMkMlMjBub3QlMjBydW5uYWJsZSkuJTBBY29uZmlnJTIwJTNEJTIwQmVydENvbmZpZy5mcm9tX2pzb25fZmlsZSglMjIuJTJGcHRfbW9kZWwlMkZjb25maWcuanNvbiUyMiklMEFtb2RlbCUyMCUzRCUyMEZsYXhCZXJ0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMi4lMkZwdF9tb2RlbCUyRnB5dG9yY2hfbW9kZWwuYmluJTIyJTJDJTIwZnJvbV9wdCUzRFRydWUlMkMlMjBjb25maWclM0Rjb25maWcp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BertConfig, FlaxBertModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Download model and configuration from huggingface.co and cache.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxBertModel.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Model was saved using *save_pretrained(&#x27;./test/saved_model/&#x27;)* (for example purposes, not runnable).</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxBertModel.from_pretrained(<span class="hljs-string">&quot;./test/saved_model/&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Loading from a PyTorch checkpoint file instead of a PyTorch model (slower, for example purposes, not runnable).</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>config = BertConfig.from_json_file(<span class="hljs-string">&quot;./pt_model/config.json&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxBertModel.from_pretrained(<span class="hljs-string">&quot;./pt_model/pytorch_model.bin&quot;</span>, from_pt=<span class="hljs-literal">True</span>, config=config)`,wrap:!1}}),{c(){d=r("p"),d.textContent=k,y=o(),h(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=k),y=n(i),f(_.$$.fragment,i)},m(i,j){b(i,d,j),b(i,y,j),u(_,i,j),w=!0},p:Y,i(i){w||(m(_.$$.fragment,i),w=!0)},o(i){p(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(y)),g(_,i)}}}function Fh(P){let d,k="Examples:",y,_,w;return _=new V({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEZsYXhBdXRvTW9kZWwlMEElMEFtb2RlbCUyMCUzRCUyMEZsYXhBdXRvTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmJlcnQtYmFzZS1jYXNlZCUyMiklMEElMEElMjMlMjBQdXNoJTIwdGhlJTIwbW9kZWwlMjB0byUyMHlvdXIlMjBuYW1lc3BhY2UlMjB3aXRoJTIwdGhlJTIwbmFtZSUyMCUyMm15LWZpbmV0dW5lZC1iZXJ0JTIyLiUwQW1vZGVsLnB1c2hfdG9faHViKCUyMm15LWZpbmV0dW5lZC1iZXJ0JTIyKSUwQSUwQSUyMyUyMFB1c2glMjB0aGUlMjBtb2RlbCUyMHRvJTIwYW4lMjBvcmdhbml6YXRpb24lMjB3aXRoJTIwdGhlJTIwbmFtZSUyMCUyMm15LWZpbmV0dW5lZC1iZXJ0JTIyLiUwQW1vZGVsLnB1c2hfdG9faHViKCUyMmh1Z2dpbmdmYWNlJTJGbXktZmluZXR1bmVkLWJlcnQlMjIp",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> FlaxAutoModel

model = FlaxAutoModel.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)

<span class="hljs-comment"># Push the model to your namespace with the name &quot;my-finetuned-bert&quot;.</span>
model.push_to_hub(<span class="hljs-string">&quot;my-finetuned-bert&quot;</span>)

<span class="hljs-comment"># Push the model to an organization with the name &quot;my-finetuned-bert&quot;.</span>
model.push_to_hub(<span class="hljs-string">&quot;huggingface/my-finetuned-bert&quot;</span>)`,wrap:!1}}),{c(){d=r("p"),d.textContent=k,y=o(),h(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=k),y=n(i),f(_.$$.fragment,i)},m(i,j){b(i,d,j),b(i,y,j),u(_,i,j),w=!0},p:Y,i(i){w||(m(_.$$.fragment,i),w=!0)},o(i){p(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(y)),g(_,i)}}}function Zh(P){let d,k="This API is experimental and may have some slight breaking changes in the next releases.";return{c(){d=r("p"),d.textContent=k},l(y){d=a(y,"P",{"data-svelte-h":!0}),l(d)!=="svelte-15rpg4"&&(d.textContent=k)},m(y,_){b(y,d,_)},p:Y,d(y){y&&s(d)}}}function Ih(P){let d,k="Examples:",y,_,w;return _=new V({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEZsYXhCZXJ0TW9kZWwlMEElMEElMjMlMjBsb2FkJTIwbW9kZWwlMEFtb2RlbCUyMCUzRCUyMEZsYXhCZXJ0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmJlcnQtYmFzZS1jYXNlZCUyMiklMEElMjMlMjBCeSUyMGRlZmF1bHQlMkMlMjB0aGUlMjBtb2RlbCUyMHBhcmFtZXRlcnMlMjB3aWxsJTIwYmUlMjBpbiUyMGZwMzIlMjBwcmVjaXNpb24lMkMlMjB0byUyMGNhc3QlMjB0aGVzZSUyMHRvJTIwYmZsb2F0MTYlMjBwcmVjaXNpb24lMEFtb2RlbC5wYXJhbXMlMjAlM0QlMjBtb2RlbC50b19iZjE2KG1vZGVsLnBhcmFtcyklMEElMjMlMjBJZiUyMHlvdSUyMHdhbnQlMjBkb24ndCUyMHdhbnQlMjB0byUyMGNhc3QlMjBjZXJ0YWluJTIwcGFyYW1ldGVycyUyMChmb3IlMjBleGFtcGxlJTIwbGF5ZXIlMjBub3JtJTIwYmlhcyUyMGFuZCUyMHNjYWxlKSUwQSUyMyUyMHRoZW4lMjBwYXNzJTIwdGhlJTIwbWFzayUyMGFzJTIwZm9sbG93cyUwQWZyb20lMjBmbGF4JTIwaW1wb3J0JTIwdHJhdmVyc2VfdXRpbCUwQSUwQW1vZGVsJTIwJTNEJTIwRmxheEJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLWNhc2VkJTIyKSUwQWZsYXRfcGFyYW1zJTIwJTNEJTIwdHJhdmVyc2VfdXRpbC5mbGF0dGVuX2RpY3QobW9kZWwucGFyYW1zKSUwQW1hc2slMjAlM0QlMjAlN0IlMEElMjAlMjAlMjAlMjBwYXRoJTNBJTIwKHBhdGglNUItMiU1RCUyMCElM0QlMjAoJTIyTGF5ZXJOb3JtJTIyJTJDJTIwJTIyYmlhcyUyMiklMjBhbmQlMjBwYXRoJTVCLTIlM0ElNUQlMjAhJTNEJTIwKCUyMkxheWVyTm9ybSUyMiUyQyUyMCUyMnNjYWxlJTIyKSklMEElMjAlMjAlMjAlMjBmb3IlMjBwYXRoJTIwaW4lMjBmbGF0X3BhcmFtcyUwQSU3RCUwQW1hc2slMjAlM0QlMjB0cmF2ZXJzZV91dGlsLnVuZmxhdHRlbl9kaWN0KG1hc2spJTBBbW9kZWwucGFyYW1zJTIwJTNEJTIwbW9kZWwudG9fYmYxNihtb2RlbC5wYXJhbXMlMkMlMjBtYXNrKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> FlaxBertModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># load model</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxBertModel.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># By default, the model parameters will be in fp32 precision, to cast these to bfloat16 precision</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model.params = model.to_bf16(model.params)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># If you want don&#x27;t want to cast certain parameters (for example layer norm bias and scale)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># then pass the mask as follows</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> flax <span class="hljs-keyword">import</span> traverse_util

<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxBertModel.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>flat_params = traverse_util.flatten_dict(model.params)
<span class="hljs-meta">&gt;&gt;&gt; </span>mask = {
<span class="hljs-meta">... </span>    path: (path[-<span class="hljs-number">2</span>] != (<span class="hljs-string">&quot;LayerNorm&quot;</span>, <span class="hljs-string">&quot;bias&quot;</span>) <span class="hljs-keyword">and</span> path[-<span class="hljs-number">2</span>:] != (<span class="hljs-string">&quot;LayerNorm&quot;</span>, <span class="hljs-string">&quot;scale&quot;</span>))
<span class="hljs-meta">... </span>    <span class="hljs-keyword">for</span> path <span class="hljs-keyword">in</span> flat_params
<span class="hljs-meta">... </span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>mask = traverse_util.unflatten_dict(mask)
<span class="hljs-meta">&gt;&gt;&gt; </span>model.params = model.to_bf16(model.params, mask)`,wrap:!1}}),{c(){d=r("p"),d.textContent=k,y=o(),h(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=k),y=n(i),f(_.$$.fragment,i)},m(i,j){b(i,d,j),b(i,y,j),u(_,i,j),w=!0},p:Y,i(i){w||(m(_.$$.fragment,i),w=!0)},o(i){p(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(y)),g(_,i)}}}function Wh(P){let d,k="Examples:",y,_,w;return _=new V({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEZsYXhCZXJ0TW9kZWwlMEElMEElMjMlMjBsb2FkJTIwbW9kZWwlMEFtb2RlbCUyMCUzRCUyMEZsYXhCZXJ0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmJlcnQtYmFzZS1jYXNlZCUyMiklMEElMjMlMjBCeSUyMGRlZmF1bHQlMkMlMjB0aGUlMjBtb2RlbCUyMHBhcmFtcyUyMHdpbGwlMjBiZSUyMGluJTIwZnAzMiUyQyUyMHRvJTIwY2FzdCUyMHRoZXNlJTIwdG8lMjBmbG9hdDE2JTBBbW9kZWwucGFyYW1zJTIwJTNEJTIwbW9kZWwudG9fZnAxNihtb2RlbC5wYXJhbXMpJTBBJTIzJTIwSWYlMjB5b3UlMjB3YW50JTIwZG9uJ3QlMjB3YW50JTIwdG8lMjBjYXN0JTIwY2VydGFpbiUyMHBhcmFtZXRlcnMlMjAoZm9yJTIwZXhhbXBsZSUyMGxheWVyJTIwbm9ybSUyMGJpYXMlMjBhbmQlMjBzY2FsZSklMEElMjMlMjB0aGVuJTIwcGFzcyUyMHRoZSUyMG1hc2slMjBhcyUyMGZvbGxvd3MlMEFmcm9tJTIwZmxheCUyMGltcG9ydCUyMHRyYXZlcnNlX3V0aWwlMEElMEFtb2RlbCUyMCUzRCUyMEZsYXhCZXJ0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmJlcnQtYmFzZS1jYXNlZCUyMiklMEFmbGF0X3BhcmFtcyUyMCUzRCUyMHRyYXZlcnNlX3V0aWwuZmxhdHRlbl9kaWN0KG1vZGVsLnBhcmFtcyklMEFtYXNrJTIwJTNEJTIwJTdCJTBBJTIwJTIwJTIwJTIwcGF0aCUzQSUyMChwYXRoJTVCLTIlNUQlMjAhJTNEJTIwKCUyMkxheWVyTm9ybSUyMiUyQyUyMCUyMmJpYXMlMjIpJTIwYW5kJTIwcGF0aCU1Qi0yJTNBJTVEJTIwISUzRCUyMCglMjJMYXllck5vcm0lMjIlMkMlMjAlMjJzY2FsZSUyMikpJTBBJTIwJTIwJTIwJTIwZm9yJTIwcGF0aCUyMGluJTIwZmxhdF9wYXJhbXMlMEElN0QlMEFtYXNrJTIwJTNEJTIwdHJhdmVyc2VfdXRpbC51bmZsYXR0ZW5fZGljdChtYXNrKSUwQW1vZGVsLnBhcmFtcyUyMCUzRCUyMG1vZGVsLnRvX2ZwMTYobW9kZWwucGFyYW1zJTJDJTIwbWFzayk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> FlaxBertModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># load model</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxBertModel.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># By default, the model params will be in fp32, to cast these to float16</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model.params = model.to_fp16(model.params)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># If you want don&#x27;t want to cast certain parameters (for example layer norm bias and scale)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># then pass the mask as follows</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> flax <span class="hljs-keyword">import</span> traverse_util

<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxBertModel.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>flat_params = traverse_util.flatten_dict(model.params)
<span class="hljs-meta">&gt;&gt;&gt; </span>mask = {
<span class="hljs-meta">... </span>    path: (path[-<span class="hljs-number">2</span>] != (<span class="hljs-string">&quot;LayerNorm&quot;</span>, <span class="hljs-string">&quot;bias&quot;</span>) <span class="hljs-keyword">and</span> path[-<span class="hljs-number">2</span>:] != (<span class="hljs-string">&quot;LayerNorm&quot;</span>, <span class="hljs-string">&quot;scale&quot;</span>))
<span class="hljs-meta">... </span>    <span class="hljs-keyword">for</span> path <span class="hljs-keyword">in</span> flat_params
<span class="hljs-meta">... </span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>mask = traverse_util.unflatten_dict(mask)
<span class="hljs-meta">&gt;&gt;&gt; </span>model.params = model.to_fp16(model.params, mask)`,wrap:!1}}),{c(){d=r("p"),d.textContent=k,y=o(),h(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=k),y=n(i),f(_.$$.fragment,i)},m(i,j){b(i,d,j),b(i,y,j),u(_,i,j),w=!0},p:Y,i(i){w||(m(_.$$.fragment,i),w=!0)},o(i){p(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(y)),g(_,i)}}}function zh(P){let d,k="Examples:",y,_,w;return _=new V({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEZsYXhCZXJ0TW9kZWwlMEElMEElMjMlMjBEb3dubG9hZCUyMG1vZGVsJTIwYW5kJTIwY29uZmlndXJhdGlvbiUyMGZyb20lMjBodWdnaW5nZmFjZS5jbyUwQW1vZGVsJTIwJTNEJTIwRmxheEJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLWNhc2VkJTIyKSUwQSUyMyUyMEJ5JTIwZGVmYXVsdCUyQyUyMHRoZSUyMG1vZGVsJTIwcGFyYW1zJTIwd2lsbCUyMGJlJTIwaW4lMjBmcDMyJTJDJTIwdG8lMjBpbGx1c3RyYXRlJTIwdGhlJTIwdXNlJTIwb2YlMjB0aGlzJTIwbWV0aG9kJTJDJTBBJTIzJTIwd2UnbGwlMjBmaXJzdCUyMGNhc3QlMjB0byUyMGZwMTYlMjBhbmQlMjBiYWNrJTIwdG8lMjBmcDMyJTBBbW9kZWwucGFyYW1zJTIwJTNEJTIwbW9kZWwudG9fZjE2KG1vZGVsLnBhcmFtcyklMEElMjMlMjBub3clMjBjYXN0JTIwYmFjayUyMHRvJTIwZnAzMiUwQW1vZGVsLnBhcmFtcyUyMCUzRCUyMG1vZGVsLnRvX2ZwMzIobW9kZWwucGFyYW1zKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> FlaxBertModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Download model and configuration from huggingface.co</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxBertModel.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># By default, the model params will be in fp32, to illustrate the use of this method,</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># we&#x27;ll first cast to fp16 and back to fp32</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model.params = model.to_f16(model.params)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># now cast back to fp32</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model.params = model.to_fp32(model.params)`,wrap:!1}}),{c(){d=r("p"),d.textContent=k,y=o(),h(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=k),y=n(i),f(_.$$.fragment,i)},m(i,j){b(i,d,j),b(i,y,j),u(_,i,j),w=!0},p:Y,i(i){w||(m(_.$$.fragment,i),w=!0)},o(i){p(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(y)),g(_,i)}}}function Bh(P){let d,k="Examples:",y,_,w;return _=new V({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMCU3Qm9iamVjdF9jbGFzcyU3RCUwQSUwQSU3Qm9iamVjdCU3RCUyMCUzRCUyMCU3Qm9iamVjdF9jbGFzcyU3RC5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLWNhc2VkJTIyKSUwQSUwQSUyMyUyMFB1c2glMjB0aGUlMjAlN0JvYmplY3QlN0QlMjB0byUyMHlvdXIlMjBuYW1lc3BhY2UlMjB3aXRoJTIwdGhlJTIwbmFtZSUyMCUyMm15LWZpbmV0dW5lZC1iZXJ0JTIyLiUwQSU3Qm9iamVjdCU3RC5wdXNoX3RvX2h1YiglMjJteS1maW5ldHVuZWQtYmVydCUyMiklMEElMEElMjMlMjBQdXNoJTIwdGhlJTIwJTdCb2JqZWN0JTdEJTIwdG8lMjBhbiUyMG9yZ2FuaXphdGlvbiUyMHdpdGglMjB0aGUlMjBuYW1lJTIwJTIybXktZmluZXR1bmVkLWJlcnQlMjIuJTBBJTdCb2JqZWN0JTdELnB1c2hfdG9faHViKCUyMmh1Z2dpbmdmYWNlJTJGbXktZmluZXR1bmVkLWJlcnQlMjIp",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> {object_class}

{<span class="hljs-built_in">object</span>} = {object_class}.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)

<span class="hljs-comment"># Push the {object} to your namespace with the name &quot;my-finetuned-bert&quot;.</span>
{<span class="hljs-built_in">object</span>}.push_to_hub(<span class="hljs-string">&quot;my-finetuned-bert&quot;</span>)

<span class="hljs-comment"># Push the {object} to an organization with the name &quot;my-finetuned-bert&quot;.</span>
{<span class="hljs-built_in">object</span>}.push_to_hub(<span class="hljs-string">&quot;huggingface/my-finetuned-bert&quot;</span>)`,wrap:!1}}),{c(){d=r("p"),d.textContent=k,y=o(),h(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=k),y=n(i),f(_.$$.fragment,i)},m(i,j){b(i,d,j),b(i,y,j),u(_,i,j),w=!0},p:Y,i(i){w||(m(_.$$.fragment,i),w=!0)},o(i){p(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(y)),g(_,i)}}}function Gh(P){let d,k,y,_,w,i,j,ye='基类 <a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>、<a href="/docs/transformers/main/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> 和 <a href="/docs/transformers/main/zh/main_classes/model#transformers.FlaxPreTrainedModel">FlaxPreTrainedModel</a> 实现了从本地文件或目录加载/保存模型的常用方法，或者从库上提供的预训练模型配置（从 HuggingFace 的 AWS S3 存储库下载）加载模型。',L,R,H='<a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> 和 <a href="/docs/transformers/main/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> 还实现了一些所有模型共有的方法：',z,G,Sa="<li>在向量词嵌入增加新词汇时调整输入标记（token）的大小</li> <li>对模型的注意力头进行修剪。</li>",jt,Ct,Rc='其他的通用方法在 <a href="/docs/transformers/main/zh/main_classes/model#transformers.modeling_utils.ModuleUtilsMixin">ModuleUtilsMixin</a>（用于 PyTorch 模型）和 <code>~modeling_tf_utils.TFModuleUtilsMixin</code>（用于 TensorFlow 模型）中定义；文本生成方面的方法则定义在 <code>GenerationMixin</code>（用于 PyTorch 模型）、<code>TFGenerationMixin</code>（用于 TensorFlow 模型）和 <code>FlaxGenerationMixin</code>（用于 Flax/JAX 模型）中。',Ka,Jt,es,C,Pt,vi,In,Xc="Base class for all models.",Mi,Wn,qc=`<a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> takes care of storing the configuration of the models and handles methods for loading,
downloading and saving models as well as a few methods common to all models to:`,Ti,zn,Dc="<li>resize the input embeddings,</li> <li>prune heads in the self-attention heads.</li>",xi,Bn,Ac="Class attributes (overridden by derived classes):",wi,Gn,Qc=`<li><p><strong>config_class</strong> (<code>PretrainedConfig</code>) — A subclass of <code>PretrainedConfig</code> to use as configuration class
for this model architecture.</p></li> <li><p><strong>load_tf_weights</strong> (<code>Callable</code>) — A python <em>method</em> for loading a TensorFlow checkpoint in a PyTorch model,
taking as arguments:</p> <ul><li><strong>model</strong> (<a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>) — An instance of the model on which to load the TensorFlow checkpoint.</li> <li><strong>config</strong> (<code>PreTrainedConfig</code>) — An instance of the configuration associated to the model.</li> <li><strong>path</strong> (<code>str</code>) — A path to the TensorFlow checkpoint.</li></ul></li> <li><p><strong>base_model_prefix</strong> (<code>str</code>) — A string indicating the attribute associated to the base model in derived
classes of the same architecture adding modules on top of the base model.</p></li> <li><p><strong>is_parallelizable</strong> (<code>bool</code>) — A flag indicating whether this model supports model parallelization.</p></li> <li><p><strong>main_input_name</strong> (<code>str</code>) — The name of the principal input to the model (often <code>input_ids</code> for NLP
models, <code>pixel_values</code> for vision models and <code>input_values</code> for speech models).</p></li>`,$i,K,Ut,ki,Ln,Sc="Upload the model file to the 🤗 Model Hub.",ji,ve,Ci,Me,Ft,Ji,Vn,Oc="Returns whether this model can generate sequences with <code>.generate()</code>.",Pi,Te,Zt,Ui,Hn,Kc="Removes the <code>_require_grads_hook</code>.",Fi,xe,It,Zi,En,em=`Enables the gradients for the input embeddings. This is useful for fine-tuning adapter weights while keeping
the model weights fixed.`,Ii,F,Wt,Wi,Nn,tm="Instantiate a pretrained pytorch model from a pre-trained model configuration.",zi,Yn,om=`The model is set in evaluation mode by default using <code>model.eval()</code> (Dropout modules are deactivated). To train
the model, you should first set it back in training mode with <code>model.train()</code>.`,Bi,Rn,nm=`The warning <em>Weights from XXX not initialized from pretrained model</em> means that the weights of XXX do not come
pretrained with the rest of the model. It is up to you to train those weights with a downstream fine-tuning
task.`,Gi,Xn,rm=`The warning <em>Weights from XXX not used in YYY</em> means that the layer XXX is not used by YYY, therefore those
weights are discarded.`,Li,we,Vi,$e,Hi,qn,am="<li><code>low_cpu_mem_usage</code> algorithm:</li>",Ei,Dn,sm="This is an experimental function that loads the model using ~1x model size CPU memory",Ni,An,im="Here is how it works:",Yi,Qn,lm=`<li>save which state_dict keys we have</li> <li>drop state_dict before the model is created, since the latter takes 1x model size CPU memory</li> <li>after the model has been instantiated switch to the meta device all params/buffers that
are going to be replaced from the loaded state_dict</li> <li>load state_dict 2nd time</li> <li>replace the params/buffers from the state_dict</li>`,Ri,Sn,dm="Currently, it can’t handle deepspeed ZeRO stage 3 and ignores loading errors",Xi,ke,zt,qi,On,cm="Returns the model’s input embeddings.",Di,je,Bt,Ai,Kn,mm=`Get the memory footprint of a model. This will return the memory footprint of the current model in bytes.
Useful to benchmark the memory footprint of the current model and design some tests. Solution inspired from the
PyTorch discussions: <a href="https://discuss.pytorch.org/t/gpu-memory-that-model-uses/56822/2" rel="nofollow">https://discuss.pytorch.org/t/gpu-memory-that-model-uses/56822/2</a>`,Qi,Ce,Gt,Si,er,pm="Returns the model’s output embeddings.",Oi,ee,Lt,Ki,tr,hm="Deactivates gradient checkpointing for the current model.",el,or,fm=`Note that in other frameworks this feature can be referred to as “activation checkpointing” or “checkpoint
activations”.`,tl,X,Vt,ol,nr,um="Activates gradient checkpointing for the current model.",nl,rr,gm=`Note that in other frameworks this feature can be referred to as “activation checkpointing” or “checkpoint
activations”.`,rl,ar,_m=`We pass the <code>__call__</code> method of the modules instead of <code>forward</code> because <code>__call__</code> attaches all the hooks of
the module. <a href="https://discuss.pytorch.org/t/any-different-between-model-input-and-model-forward-input/3690/2" rel="nofollow">https://discuss.pytorch.org/t/any-different-between-model-input-and-model-forward-input/3690/2</a>`,al,Je,Ht,sl,sr,bm=`If needed prunes and maybe initializes weights. If using a custom <code>PreTrainedModel</code>, you need to implement any
initialization logic in <code>_init_weights</code>.`,il,Pe,Et,ll,ir,ym=`A method executed at the end of each Transformer model initialization, to execute code that needs the model’s
modules properly initialized (such as weight initialization).`,dl,Ue,Nt,cl,lr,vm="Prunes heads of the base model.",ml,te,Yt,pl,dr,Mm=`Register this class with a given auto class. This should only be used for custom models as the ones in the
library are already mapped with an auto class.`,hl,Fe,fl,oe,Rt,ul,cr,Tm="Resizes input token embeddings matrix of the model if <code>new_num_tokens != config.vocab_size</code>.",gl,mr,xm="Takes care of tying weights embeddings afterwards if the model class has a <code>tie_weights()</code> method.",_l,Ze,Xt,bl,pr,wm=`Reverts the transformation from <a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel.to_bettertransformer">to_bettertransformer()</a> so that the original modeling is
used, for example in order to save the model.`,yl,Ie,qt,vl,hr,$m=`Save a model and its configuration file to a directory, so that it can be re-loaded using the
<a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> class method.`,Ml,We,Dt,Tl,fr,km="Set model’s input embeddings.",xl,ne,At,wl,ur,jm="Tie the weights between the input embeddings and the output embeddings.",$l,gr,Cm=`If the <code>torchscript</code> flag is set in the configuration, can’t handle parameter sharing so we are cloning the
weights instead.`,kl,re,Qt,jl,_r,Jm=`Converts the model to use <a href="https://pytorch.org/docs/stable/generated/torch.nn.MultiheadAttention.html" rel="nofollow">PyTorch’s native attention
implementation</a>, integrated to
Transformers through <a href="https://huggingface.co/docs/optimum/bettertransformer/overview" rel="nofollow">Optimum library</a>. Only a
subset of all Transformers models are supported.`,Cl,br,Pm=`PyTorch’s attention fastpath allows to speed up inference through kernel fusions and the use of <a href="https://pytorch.org/docs/stable/nested.html" rel="nofollow">nested
tensors</a>. Detailed benchmarks can be found in <a href="https://medium.com/pytorch/bettertransformer-out-of-the-box-performance-for-huggingface-transformers-3fbe27d50ab2" rel="nofollow">this blog
post</a>.`,Jl,ze,St,Pl,yr,Um="Shows a one-time warning if the input_ids appear to contain padding and no attention mask was given.",ts,vr,os,Ot,ns,Kt,Fm='在 Transformers 4.20.0 中，<a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> 方法已重新设计，以适应使用 <a href="https://huggingface.co/docs/accelerate/big_modeling" rel="nofollow">Accelerate</a> 加载大型模型的场景。这需要您使用的 Accelerate 和 PyTorch 版本满足： Accelerate &gt;= 0.9.0， PyTorch &gt;= 1.9.0。除了创建完整模型，然后在其中加载预训练权重（这会占用两倍于模型大小的内存空间，一个用于随机初始化模型，一个用于预训练权重），我们提供了一种选项，将模型创建为空壳，然后只有在加载预训练权重时才实例化其参数。',rs,eo,Zm="您可以使用 <code>low_cpu_mem_usage=True</code> 激活此选项。首先，在 Meta 设备上创建模型（带有空权重），然后将状态字典加载到其中（在分片检查点的情况下逐片加载）。这样，最大使用的内存占用仅为模型的完整大小。",as,to,ss,oo,Im="此外，如果内存不足以放下加载整个模型（目前仅适用于推理），您可以直接将模型放置在不同的设备上。使用 <code>device_map=&quot;auto&quot;</code>，Accelerate 将确定将每一层放置在哪个设备上，以最大化使用最快的设备（GPU），并将其余部分卸载到 CPU，甚至硬盘上（如果您没有足够的 GPU 内存 或 CPU 内存）。即使模型分布在几个设备上，它也将像您通常期望的那样运行。",is,no,Wm="在传递 <code>device_map</code> 时，<code>low_cpu_mem_usage</code> 会自动设置为 <code>True</code>，因此您不需要指定它：",ls,ro,ds,ao,zm="您可以通过 <code>hf_device_map</code> 属性来查看模型是如何在设备上分割的：",cs,so,ms,io,Bm="您还可以按照相同的格式（一个层名称到设备的映射关系的字典）编写自己的设备映射规则。它应该将模型的所有参数映射到给定的设备上，如果该层的所有子模块都在同一设备上，您不必详细说明其中所有子模块的位置。例如，以下设备映射对于 T0pp 将正常工作（只要您有 GPU 内存）：",ps,lo,hs,co,Gm="另一种减少模型内存影响的方法是以较低精度的 dtype（例如 <code>torch.float16</code>）实例化它，或者使用下面介绍的直接量化技术。",fs,mo,us,po,Lm="在 PyTorch 下，模型通常以 <code>torch.float32</code> 格式实例化。如果尝试加载权重为 fp16 的模型，这可能会导致问题，因为它将需要两倍的内存。为了克服此限制，您可以使用 <code>torch_dtype</code> 参数显式传递所需的 <code>dtype</code>：",gs,ho,_s,fo,Vm="或者，如果您希望模型始终以最优的内存模式加载，则可以使用特殊值 <code>&quot;auto&quot;</code>，然后 <code>dtype</code> 将自动从模型的权重中推导出：",bs,uo,ys,go,Hm="也可以通过以下方式告知从头开始实例化的模型要使用哪种 <code>dtype</code>：",vs,_o,Ms,bo,Em="由于 PyTorch 的设计，此功能仅适用于浮点类型。",Ts,yo,xs,W,vo,Ul,Mr,Nm="A few utilities for <code>torch.nn.Modules</code>, to be used as a mixin.",Fl,ae,Mo,Zl,Tr,Ym="Add a memory hook before and after each sub-module forward pass to record increase in memory consumption.",Il,xr,Rm=`Increase in memory consumption is stored in a <code>mem_rss_diff</code> attribute for each module and can be reset to zero
with <code>model.reset_memory_hooks_state()</code>.`,Wl,Be,To,zl,wr,Xm="Helper function to estimate the total number of tokens from the model inputs.",Bl,Ge,xo,Gl,$r,qm=`Get number of (optionally, non-embeddings) floating-point operations for the forward and backward passes of a
batch with this transformer model. Default approximation neglects the quadratic dependency on the number of
tokens (valid if <code>12 * d_model &lt;&lt; sequence_length</code>) as laid out in <a href="https://arxiv.org/pdf/2001.08361.pdf" rel="nofollow">this
paper</a> section 2.1. Should be overridden for transformers with parameter
re-use e.g. Albert or Universal Transformers, or if doing long-range modeling with very high sequence lengths.`,Ll,Le,wo,Vl,kr,Dm="Makes broadcastable attention and causal masks so that future and masked tokens are ignored.",Hl,Ve,$o,El,jr,Am="Prepare the head mask if needed.",Nl,He,ko,Yl,Cr,Qm="Invert an attention mask (e.g., switches 0. and 1.).",Rl,Ee,jo,Xl,Jr,Sm="Get number of (optionally, trainable or non-embeddings) parameters in the module.",ql,Ne,Co,Dl,Pr,Om='Reset the <code>mem_rss_diff</code> attribute of each module (see <a href="/docs/transformers/main/zh/main_classes/model#transformers.modeling_utils.ModuleUtilsMixin.add_memory_hooks">add_memory_hooks()</a>).',ws,Jo,Km="TFPreTrainedModel",$s,x,Po,Al,Ur,ep="Base class for all TF models.",Ql,Fr,tp=`<a href="/docs/transformers/main/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> takes care of storing the configuration of the models and handles methods for loading,
downloading and saving models as well as a few methods common to all models to:`,Sl,Zr,op="<li>resize the input embeddings,</li> <li>prune heads in the self-attention heads.</li>",Ol,Ir,np="Class attributes (overridden by derived classes):",Kl,Wr,rp=`<li><strong>config_class</strong> (<code>PretrainedConfig</code>) — A subclass of <code>PretrainedConfig</code> to use as configuration class
for this model architecture.</li> <li><strong>base_model_prefix</strong> (<code>str</code>) — A string indicating the attribute associated to the base model in derived
classes of the same architecture adding modules on top of the base model.</li> <li><strong>main_input_name</strong> (<code>str</code>) — The name of the principal input to the model (often <code>input_ids</code> for NLP
models, <code>pixel_values</code> for vision models and <code>input_values</code> for speech models).</li>`,ed,Ye,Uo,td,zr,ap="Returns whether this model can generate sequences with <code>.generate()</code>.",od,Re,Fo,nd,Br,sp=`This is a thin wrapper that sets the model’s loss output head as the loss if the user does not specify a loss
function themselves.`,rd,Xe,Zo,ad,Gr,ip="Creates a draft of a model card using the information available to the <code>Trainer</code>.",sd,qe,Io,id,Lr,lp="Method used for serving the model. This method is deprecated, and will be removed.",ld,E,Wo,dd,Vr,dp="Instantiate a pretrained TF 2.0 model from a pre-trained model configuration.",cd,Hr,cp=`The warning <em>Weights from XXX not initialized from pretrained model</em> means that the weights of XXX do not come
pretrained with the rest of the model. It is up to you to train those weights with a downstream fine-tuning
task.`,md,Er,mp=`The warning <em>Weights from XXX not used in YYY</em> means that the layer XXX is not used by YYY, therefore those
weights are discarded.`,pd,De,hd,Ae,zo,fd,Nr,pp="Dict of bias attached to an LM head. The key represents the name of the bias attribute.",ud,Qe,Bo,gd,Yr,hp="Prepare the head mask if needed.",_d,Se,Go,bd,Rr,fp="Returns the model’s input embeddings layer.",yd,Oe,Lo,vd,Xr,up="The LM Head layer. This method must be overwritten by all the models that have a lm head.",Md,Ke,Vo,Td,qr,gp="Returns the model’s output embeddings",xd,et,Ho,wd,Dr,_p=`Get the layer that handles a bias attribute in case the model has an LM head with weights tied to the
embeddings`,$d,tt,Eo,kd,Ar,bp="Get the concatenated _prefix name of the bias from the model name to the parent layer",jd,ot,No,Cd,Qr,yp=`Loads a saved checkpoint (model weights and optimizer state) from a repo. Returns the current epoch count when
the checkpoint was made.`,Jd,nt,Yo,Pd,Sr,vp=`Wraps a HuggingFace <code>Dataset</code> as a <code>tf.data.Dataset</code> with collation and batching. This method is
designed to create a “ready-to-use” dataset that can be passed directly to Keras methods like <code>fit()</code> without
further modification. The method will drop columns from the dataset if they don’t match input names for the
model. If you want to specify the column names to return rather than using the names that match this model, we
recommend using <code>Dataset.to_tf_dataset()</code> instead.`,Ud,rt,Ro,Fd,Or,Mp="Prunes heads of the base model.",Zd,se,Xo,Id,Kr,Tp="Upload the model files to the 🤗 Model Hub while synchronizing a local clone of the repo in <code>repo_path_or_name</code>.",Wd,at,zd,ie,qo,Bd,ea,xp=`Register this class with a given auto class. This should only be used for custom models as the ones in the
library are already mapped with an auto class.`,Gd,st,Ld,le,Do,Vd,ta,wp="Resizes input token embeddings matrix of the model if <code>new_num_tokens != config.vocab_size</code>.",Hd,oa,$p="Takes care of tying weights embeddings afterwards if the model class has a <code>tie_weights()</code> method.",Ed,it,Ao,Nd,na,kp=`Save a model and its configuration file to a directory, so that it can be re-loaded using the
<a href="/docs/transformers/main/zh/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">from_pretrained()</a> class method.`,Yd,ra,Qo,Rd,lt,So,Xd,aa,jp="Prepare the output of the saved model. Can be overridden if specific serving modifications are required.",qd,dt,Oo,Dd,sa,Cp="Set all the bias in the LM head.",Ad,ct,Ko,Qd,ia,Jp="Set model’s input embeddings",Sd,mt,en,Od,la,Pp="Set model’s output embeddings",Kd,pt,tn,ec,da,Up=`A modification of Keras’s default <code>train_step</code> that correctly handles matching outputs to labels for our models
and supports directly training on the loss output head. In addition, it ensures input keys are copied to the
labels where appropriate. It will also copy label keys into the input dict when using the dummy loss, to ensure
that they are available to the model during the forward pass.`,tc,ht,on,oc,ca,Fp=`A modification of Keras’s default <code>train_step</code> that correctly handles matching outputs to labels for our models
and supports directly training on the loss output head. In addition, it ensures input keys are copied to the
labels where appropriate. It will also copy label keys into the input dict when using the dummy loss, to ensure
that they are available to the model during the forward pass.`,ks,nn,Zp="<li>push_to_hub</li> <li>all</li>",js,rn,Cs,A,an,nc,ma,Ip="A few utilities for <code>tf.keras.Model</code>, to be used as a mixin.",rc,ft,sn,ac,pa,Wp="Get the number of (optionally, trainable) parameters in the model.",Js,ln,zp="FlaxPreTrainedModel",Ps,U,dn,sc,ha,Bp="Base class for all models.",ic,fa,Gp=`<a href="/docs/transformers/main/zh/main_classes/model#transformers.FlaxPreTrainedModel">FlaxPreTrainedModel</a> takes care of storing the configuration of the models and handles methods for loading,
downloading and saving models.`,lc,ua,Lp="Class attributes (overridden by derived classes):",dc,ga,Vp=`<li><strong>config_class</strong> (<code>PretrainedConfig</code>) — A subclass of <code>PretrainedConfig</code> to use as configuration class
for this model architecture.</li> <li><strong>base_model_prefix</strong> (<code>str</code>) — A string indicating the attribute associated to the base model in derived
classes of the same architecture adding modules on top of the base model.</li> <li><strong>main_input_name</strong> (<code>str</code>) — The name of the principal input to the model (often <code>input_ids</code> for NLP
models, <code>pixel_values</code> for vision models and <code>input_values</code> for speech models).</li>`,cc,ut,cn,mc,_a,Hp=`Returns whether this model can generate sequences with <code>.generate()</code>. Returns:
<code>bool</code>: Whether this model can generate sequences with <code>.generate()</code>.`,pc,N,mn,hc,ba,Ep="Instantiate a pretrained flax model from a pre-trained model configuration.",fc,ya,Np=`The warning <em>Weights from XXX not initialized from pretrained model</em> means that the weights of XXX do not come
pretrained with the rest of the model. It is up to you to train those weights with a downstream fine-tuning
task.`,uc,va,Yp=`The warning <em>Weights from XXX not used in YYY</em> means that the layer XXX is not used by YYY, therefore those
weights are discarded.`,gc,gt,_c,de,pn,bc,Ma,Rp=`This is the same as <code>flax.serialization.from_bytes</code>
(https:lax.readthedocs.io/en/latest/_modules/flax/serialization.html#from_bytes) but for a sharded checkpoint.`,yc,Ta,Xp=`This load is performed efficiently: each checkpoint shard is loaded one by one in RAM and deleted after being
loaded in the model.`,vc,ce,hn,Mc,xa,qp="Upload the model checkpoint to the 🤗 Model Hub.",Tc,_t,xc,me,fn,wc,wa,Dp=`Register this class with a given auto class. This should only be used for custom models as the ones in the
library are already mapped with an auto class.`,$c,bt,kc,yt,un,jc,$a,Ap=`Save a model and its configuration file to a directory, so that it can be re-loaded using the
<code>[from_pretrained()](/docs/transformers/main/zh/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained)</code> class method`,Cc,q,gn,Jc,ka,Qp=`Cast the floating-point <code>params</code> to <code>jax.numpy.bfloat16</code>. This returns a new <code>params</code> tree and does not cast
the <code>params</code> in place.`,Pc,ja,Sp=`This method can be used on TPU to explicitly convert the model parameters to bfloat16 precision to do full
half-precision training or to save weights in bfloat16 for inference in order to save memory and improve speed.`,Uc,vt,Fc,D,_n,Zc,Ca,Op=`Cast the floating-point <code>parmas</code> to <code>jax.numpy.float16</code>. This returns a new <code>params</code> tree and does not cast the
<code>params</code> in place.`,Ic,Ja,Kp=`This method can be used on GPU to explicitly convert the model parameters to float16 precision to do full
half-precision training or to save weights in float16 for inference in order to save memory and improve speed.`,Wc,Mt,zc,pe,bn,Bc,Pa,eh=`Cast the floating-point <code>parmas</code> to <code>jax.numpy.float32</code>. This method can be used to explicitly convert the
model parameters to fp32 precision. This returns a new <code>params</code> tree and does not cast the <code>params</code> in place.`,Gc,Tt,Us,yn,th="<li>push_to_hub</li> <li>all</li>",Fs,vn,Zs,Q,Mn,Lc,Ua,oh="A Mixin containing the functionality to push a model or tokenizer to the hub.",Vc,he,Tn,Hc,Fa,nh="Upload the {object_files} to the 🤗 Model Hub.",Ec,xt,Is,xn,Ws,S,wn,Nc,Za,rh=`This is the same as
<a href="https://pytorch.org/docs/stable/generated/torch.nn.Module.html?highlight=load_state_dict#torch.nn.Module.load_state_dict" rel="nofollow"><code>torch.nn.Module.load_state_dict</code></a>
but for a sharded checkpoint.`,Yc,Ia,ah=`This load is performed efficiently: each checkpoint shard is loaded one by one in RAM and deleted after being
loaded in the model.`,zs,Oa,Bs;return w=new kt({props:{title:"模型",local:"模型",headingTag:"h1"}}),Jt=new kt({props:{title:"PreTrainedModel",local:"transformers.PreTrainedModel",headingTag:"h2"}}),Pt=new T({props:{name:"class transformers.PreTrainedModel",anchor:"transformers.PreTrainedModel",parameters:[{name:"config",val:": PretrainedConfig"},{name:"*inputs",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1071"}}),Ut=new T({props:{name:"push_to_hub",anchor:"transformers.PreTrainedModel.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": typing.Optional[bool] = None"},{name:"commit_message",val:": typing.Optional[str] = None"},{name:"private",val:": typing.Optional[bool] = None"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"max_shard_size",val:": typing.Union[int, str, NoneType] = '5GB'"},{name:"create_pr",val:": bool = False"},{name:"safe_serialization",val:": bool = True"},{name:"revision",val:": str = None"},{name:"commit_description",val:": str = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.PreTrainedModel.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your model to. It should contain your organization name
when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.PreTrainedModel.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.PreTrainedModel.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload model&quot;</code>.`,name:"commit_message"},{anchor:"transformers.PreTrainedModel.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the repository created should be private.`,name:"private"},{anchor:"transformers.PreTrainedModel.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>). Will default to <code>True</code> if <code>repo_url</code>
is not specified.`,name:"token"},{anchor:"transformers.PreTrainedModel.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;5GB&quot;</code>) &#x2014;
Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard
will then be each of size lower than this size. If expressed as a string, needs to be digits followed
by a unit (like <code>&quot;5MB&quot;</code>). We default it to <code>&quot;5GB&quot;</code> so that users can easily load models on free-tier
Google Colab instances without any CPU OOM issues.`,name:"max_shard_size"},{anchor:"transformers.PreTrainedModel.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"transformers.PreTrainedModel.push_to_hub.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to convert the model weights in safetensors format for safer serialization.`,name:"safe_serialization"},{anchor:"transformers.PreTrainedModel.push_to_hub.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Branch to push the uploaded files to.`,name:"revision"},{anchor:"transformers.PreTrainedModel.push_to_hub.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created`,name:"commit_description"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py#L759"}}),ve=new ge({props:{anchor:"transformers.PreTrainedModel.push_to_hub.example",$$slots:{default:[wh]},$$scope:{ctx:P}}}),Ft=new T({props:{name:"can_generate",anchor:"transformers.PreTrainedModel.can_generate",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1241",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Whether this model can generate sequences with <code>.generate()</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>bool</code></p>
`}}),Zt=new T({props:{name:"disable_input_require_grads",anchor:"transformers.PreTrainedModel.disable_input_require_grads",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1344"}}),It=new T({props:{name:"enable_input_require_grads",anchor:"transformers.PreTrainedModel.enable_input_require_grads",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1333"}}),Wt=new T({props:{name:"from_pretrained",anchor:"transformers.PreTrainedModel.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike, NoneType]"},{name:"*model_args",val:""},{name:"config",val:": typing.Union[transformers.configuration_utils.PretrainedConfig, str, os.PathLike, NoneType] = None"},{name:"cache_dir",val:": typing.Union[str, os.PathLike, NoneType] = None"},{name:"ignore_mismatched_sizes",val:": bool = False"},{name:"force_download",val:": bool = False"},{name:"local_files_only",val:": bool = False"},{name:"token",val:": typing.Union[str, bool, NoneType] = None"},{name:"revision",val:": str = 'main'"},{name:"use_safetensors",val:": bool = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PreTrainedModel.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> of a pretrained model hosted inside a model repo on huggingface.co.
Valid model ids can be located at the root-level, like <code>bert-base-uncased</code>, or namespaced under a
user or organization name, like <code>dbmdz/bert-base-german-cased</code>.</li>
<li>A path to a <em>directory</em> containing model weights saved using
<a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel.save_pretrained">save_pretrained()</a>, e.g., <code>./my_model_directory/</code>.</li>
<li>A path or url to a <em>tensorflow index checkpoint file</em> (e.g, <code>./tf_model/model.ckpt.index</code>). In
this case, <code>from_tf</code> should be set to <code>True</code> and a configuration object should be provided as
<code>config</code> argument. This loading path is slower than converting the TensorFlow checkpoint in a
PyTorch model using the provided conversion scripts and loading the PyTorch model afterwards.</li>
<li>A path or url to a model folder containing a <em>flax checkpoint file</em> in <em>.msgpack</em> format (e.g,
<code>./flax_model/</code> containing <code>flax_model.msgpack</code>). In this case, <code>from_flax</code> should be set to
<code>True</code>.</li>
<li><code>None</code> if you are both providing the configuration and state dictionary (resp. with keyword
arguments <code>config</code> and <code>state_dict</code>).</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"transformers.PreTrainedModel.from_pretrained.model_args",description:`<strong>model_args</strong> (sequence of positional arguments, <em>optional</em>) &#x2014;
All remaining positional arguments will be passed to the underlying model&#x2019;s <code>__init__</code> method.`,name:"model_args"},{anchor:"transformers.PreTrainedModel.from_pretrained.config",description:`<strong>config</strong> (<code>Union[PretrainedConfig, str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>an instance of a class derived from <code>PretrainedConfig</code>,</li>
<li>a string or path valid as input to <code>from_pretrained()</code>.</li>
</ul>
<p>Configuration for the model to use instead of an automatically loaded configuration. Configuration can
be automatically loaded when:</p>
<ul>
<li>The model is a model provided by the library (loaded with the <em>model id</em> string of a pretrained
model).</li>
<li>The model was saved using <a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel.save_pretrained">save_pretrained()</a> and is reloaded by supplying the
save directory.</li>
<li>The model is loaded by supplying a local directory as <code>pretrained_model_name_or_path</code> and a
configuration JSON file named <em>config.json</em> is found in the directory.</li>
</ul>`,name:"config"},{anchor:"transformers.PreTrainedModel.from_pretrained.state_dict",description:`<strong>state_dict</strong> (<code>Dict[str, torch.Tensor]</code>, <em>optional</em>) &#x2014;
A state dictionary to use instead of a state dictionary loaded from saved weights file.</p>
<p>This option can be used if you want to create a model from a pretrained configuration but load your own
weights. In this case though, you should check if using <a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel.save_pretrained">save_pretrained()</a> and
<a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> is not a simpler option.`,name:"state_dict"},{anchor:"transformers.PreTrainedModel.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory in which a downloaded pretrained model configuration should be cached if the
standard cache should not be used.`,name:"cache_dir"},{anchor:"transformers.PreTrainedModel.from_pretrained.from_tf",description:`<strong>from_tf</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Load the model weights from a TensorFlow checkpoint save file (see docstring of
<code>pretrained_model_name_or_path</code> argument).`,name:"from_tf"},{anchor:"transformers.PreTrainedModel.from_pretrained.from_flax",description:`<strong>from_flax</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Load the model weights from a Flax checkpoint save file (see docstring of
<code>pretrained_model_name_or_path</code> argument).`,name:"from_flax"},{anchor:"transformers.PreTrainedModel.from_pretrained.ignore_mismatched_sizes",description:`<strong>ignore_mismatched_sizes</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to raise an error if some of the weights from the checkpoint do not have the same size
as the weights of the model (if for instance, you are instantiating a model with 10 labels from a
checkpoint with 3 labels).`,name:"ignore_mismatched_sizes"},{anchor:"transformers.PreTrainedModel.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"transformers.PreTrainedModel.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to delete incompletely received files. Will attempt to resume the download if such a
file exists.`,name:"resume_download"},{anchor:"transformers.PreTrainedModel.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, e.g., <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"transformers.PreTrainedModel.from_pretrained.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether ot not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"transformers.PreTrainedModel.from_pretrained.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (i.e., do not try to download the model).`,name:"local_files_only(bool,"},{anchor:"transformers.PreTrainedModel.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.PreTrainedModel.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>To test a pull request you made on the Hub, you can pass \`revision=&#x201C;refs/pr/<pr_number>&#x201C;.</pr_number></p>

					</div>`,name:"revision"},{anchor:"transformers.PreTrainedModel.from_pretrained.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to accelerate downloads in China. If you are from China and have an accessibility
problem, you can set this option to resolve it. Note that we do not guarantee the timeliness or safety.
Please refer to the mirror site for more information.`,name:"mirror"},{anchor:"transformers.PreTrainedModel.from_pretrained._fast_init(bool,",description:`<strong>_fast_init(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to disable fast initialization.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p>One should only disable <em>_fast_init</em> to ensure backwards compatibility with <code>transformers.__version__ &lt; 4.6.0</code> for seeded model initialization. This argument will be removed at the next major version. See
<a href="https://github.com/huggingface/transformers/pull/11471" rel="nofollow">pull request 11471</a> for more information.</p>

					</div>`,name:"_fast_init(bool,"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L2325",parameterGroups:[{title:"Parameters for big model inference",parametersDescription:[{anchor:"transformers.PreTrainedModel.from_pretrained.low_cpu_mem_usage(bool,",description:`<strong>low_cpu_mem_usage(<code>bool</code>,</strong> <em>optional</em>) &#x2014;
Tries to not use more than 1x model size in CPU memory (including peak memory) while loading the model.
This is an experimental feature and a subject to change at any moment.`,name:"low_cpu_mem_usage(bool,"},{anchor:"transformers.PreTrainedModel.from_pretrained.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) &#x2014;
Override the default <code>torch.dtype</code> and load the model under a specific <code>dtype</code>. The different options
are:</p>
<ol>
<li>
<p><code>torch.float16</code> or <code>torch.bfloat16</code> or <code>torch.float</code>: load in a specified
<code>dtype</code>, ignoring the model&#x2019;s <code>config.torch_dtype</code> if one exists. If not specified</p>
<ul>
<li>the model will get loaded in <code>torch.float</code> (fp32).</li>
</ul>
</li>
<li>
<p><code>&quot;auto&quot;</code> - A <code>torch_dtype</code> entry in the <code>config.json</code> file of the model will be
attempted to be used. If this entry isn&#x2019;t found then next check the <code>dtype</code> of the first weight in
the checkpoint that&#x2019;s of a floating point type and use that as <code>dtype</code>. This will load the model
using the <code>dtype</code> it was saved in at the end of the training. It can&#x2019;t be used as an indicator of how
the model was trained. Since it could be trained in one of half precision dtypes, but saved in fp32.</p>
</li>
</ol>
<tip>
<p>For some models the <code>dtype</code> they were trained in is unknown - you may try to check the model&#x2019;s paper or
reach out to the authors and ask them to add this information to the model&#x2019;s card and to insert the
<code>torch_dtype</code> entry in <code>config.json</code> on the hub.</p>
</tip>`,name:"torch_dtype"},{anchor:"transformers.PreTrainedModel.from_pretrained.device_map",description:`<strong>device_map</strong> (<code>str</code> or <code>Dict[str, Union[int, str, torch.device]]</code> or <code>int</code> or <code>torch.device</code>, <em>optional</em>) &#x2014;
A map that specifies where each submodule should go. It doesn&#x2019;t need to be refined to each
parameter/buffer name, once a given module name is inside, every submodule of it will be sent to the
same device. If we only pass the device (<em>e.g.</em>, <code>&quot;cpu&quot;</code>, <code>&quot;cuda:1&quot;</code>, <code>&quot;mps&quot;</code>, or a GPU ordinal rank
like <code>1</code>) on which the model will be allocated, the device map will map the entire model to this
device. Passing <code>device_map = 0</code> means put the whole model on GPU 0.</p>
<p>To have Accelerate compute the most optimized <code>device_map</code> automatically, set <code>device_map=&quot;auto&quot;</code>. For
more information about each option see <a href="https://hf.co/docs/accelerate/main/en/usage_guides/big_modeling#designing-a-device-map" rel="nofollow">designing a device
map</a>.`,name:"device_map"},{anchor:"transformers.PreTrainedModel.from_pretrained.max_memory",description:`<strong>max_memory</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
A dictionary device identifier to maximum memory. Will default to the maximum memory available for each
GPU and the available CPU RAM if unset.`,name:"max_memory"},{anchor:"transformers.PreTrainedModel.from_pretrained.offload_folder",description:`<strong>offload_folder</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
If the <code>device_map</code> contains any value <code>&quot;disk&quot;</code>, the folder where we will offload weights.`,name:"offload_folder"},{anchor:"transformers.PreTrainedModel.from_pretrained.offload_state_dict",description:`<strong>offload_state_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, will temporarily offload the CPU state dict to the hard drive to avoid getting out of CPU
RAM if the weight of the CPU state dict + the biggest shard of the checkpoint does not fit. Defaults to
<code>True</code> when there is some disk offload.`,name:"offload_state_dict"},{anchor:"transformers.PreTrainedModel.from_pretrained.load_in_8bit",description:`<strong>load_in_8bit</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, will convert the loaded model into mixed-8bit quantized model. To use this feature please
install <code>bitsandbytes</code> (<code>pip install -U bitsandbytes</code>).`,name:"load_in_8bit"},{anchor:"transformers.PreTrainedModel.from_pretrained.load_in_4bit",description:`<strong>load_in_4bit</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, will convert the loaded model into 4bit precision quantized model. To use this feature
install the latest version of <code>bitsandbytes</code> (<code>pip install -U bitsandbytes</code>).`,name:"load_in_4bit"},{anchor:"transformers.PreTrainedModel.from_pretrained.quantization_config",description:`<strong>quantization_config</strong> (<code>Union[QuantizationConfigMixin,Dict]</code>, <em>optional</em>) &#x2014;
A dictionary of configuration parameters or a QuantizationConfigMixin object for quantization (e.g
bitsandbytes, gptq)`,name:"quantization_config"},{anchor:"transformers.PreTrainedModel.from_pretrained.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
In case the relevant files are located inside a subfolder of the model repo on huggingface.co, you can
specify the folder name here.`,name:"subfolder"},{anchor:"transformers.PreTrainedModel.from_pretrained.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If specified load weights from <code>variant</code> filename, <em>e.g.</em> pytorch_model.<variant>.bin. <code>variant</code> is
ignored when using <code>from_tf</code> or <code>from_flax</code>.</variant>`,name:"variant"},{anchor:"transformers.PreTrainedModel.from_pretrained.use_safetensors",description:`<strong>use_safetensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Whether or not to use <code>safetensors</code> checkpoints. Defaults to <code>None</code>. If not specified and <code>safetensors</code>
is not installed, it will be set to <code>False</code>.`,name:"use_safetensors"},{anchor:"transformers.PreTrainedModel.from_pretrained.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to update the configuration object (after it being loaded) and initiate the model (e.g.,
<code>output_attentions=True</code>). Behaves differently depending on whether a <code>config</code> is provided or
automatically loaded:</p>
<ul>
<li>If a configuration is provided with <code>config</code>, <code>**kwargs</code> will be directly passed to the
underlying model&#x2019;s <code>__init__</code> method (we assume all relevant updates to the configuration have
already been done)</li>
<li>If a configuration is not provided, <code>kwargs</code> will be first passed to the configuration class
initialization function (<code>from_pretrained()</code>). Each key of <code>kwargs</code> that
corresponds to a configuration attribute will be used to override said attribute with the
supplied <code>kwargs</code> value. Remaining keys that do not correspond to any configuration attribute
will be passed to the underlying model&#x2019;s <code>__init__</code> function.</li>
</ul>`,name:"kwargs"}]}]}}),we=new yi({props:{$$slots:{default:[$h]},$$scope:{ctx:P}}}),$e=new ge({props:{anchor:"transformers.PreTrainedModel.from_pretrained.example",$$slots:{default:[kh]},$$scope:{ctx:P}}}),zt=new T({props:{name:"get_input_embeddings",anchor:"transformers.PreTrainedModel.get_input_embeddings",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1350",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A torch module mapping vocabulary to hidden states.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>nn.Module</code></p>
`}}),Bt=new T({props:{name:"get_memory_footprint",anchor:"transformers.PreTrainedModel.get_memory_footprint",parameters:[{name:"return_buffers",val:" = True"}],parametersDescription:[{anchor:"transformers.PreTrainedModel.get_memory_footprint.return_buffers",description:`<strong>return_buffers</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to return the size of the buffer tensors in the computation of the memory footprint. Buffers
are tensors that do not require gradients and not registered as parameters. E.g. mean and std in batch
norm layers. Please see: <a href="https://discuss.pytorch.org/t/what-pytorch-means-by-buffers/120266/2" rel="nofollow">https://discuss.pytorch.org/t/what-pytorch-means-by-buffers/120266/2</a>`,name:"return_buffers"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L2248"}}),Gt=new T({props:{name:"get_output_embeddings",anchor:"transformers.PreTrainedModel.get_output_embeddings",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1376",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A torch module mapping hidden states to vocabulary.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>nn.Module</code></p>
`}}),Lt=new T({props:{name:"gradient_checkpointing_disable",anchor:"transformers.PreTrainedModel.gradient_checkpointing_disable",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1925"}}),Vt=new T({props:{name:"gradient_checkpointing_enable",anchor:"transformers.PreTrainedModel.gradient_checkpointing_enable",parameters:[{name:"gradient_checkpointing_kwargs",val:" = None"}],parametersDescription:[{anchor:"transformers.PreTrainedModel.gradient_checkpointing_enable.gradient_checkpointing_kwargs",description:`<strong>gradient_checkpointing_kwargs</strong> (dict, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to the <code>torch.utils.checkpoint.checkpoint</code> function.`,name:"gradient_checkpointing_kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1861"}}),Ht=new T({props:{name:"init_weights",anchor:"transformers.PreTrainedModel.init_weights",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1827"}}),Et=new T({props:{name:"post_init",anchor:"transformers.PreTrainedModel.post_init",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1154"}}),Nt=new T({props:{name:"prune_heads",anchor:"transformers.PreTrainedModel.prune_heads",parameters:[{name:"heads_to_prune",val:": typing.Dict[int, typing.List[int]]"}],parametersDescription:[{anchor:"transformers.PreTrainedModel.prune_heads.heads_to_prune",description:`<strong>heads_to_prune</strong> (<code>Dict[int, List[int]]</code>) &#x2014;
Dictionary with keys being selected layer indices (<code>int</code>) and associated values being the list of heads
to prune in said layer (list of <code>int</code>). For instance {1: [0, 2], 2: [2, 3]} will prune heads 0 and 2 on
layer 1 and heads 2 and 3 on layer 2.`,name:"heads_to_prune"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1844"}}),Yt=new T({props:{name:"register_for_auto_class",anchor:"transformers.PreTrainedModel.register_for_auto_class",parameters:[{name:"auto_class",val:" = 'AutoModel'"}],parametersDescription:[{anchor:"transformers.PreTrainedModel.register_for_auto_class.auto_class",description:`<strong>auto_class</strong> (<code>str</code> or <code>type</code>, <em>optional</em>, defaults to <code>&quot;AutoModel&quot;</code>) &#x2014;
The auto class to register this new model with.`,name:"auto_class"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L4065"}}),Fe=new yi({props:{warning:!0,$$slots:{default:[jh]},$$scope:{ctx:P}}}),Rt=new T({props:{name:"resize_token_embeddings",anchor:"transformers.PreTrainedModel.resize_token_embeddings",parameters:[{name:"new_num_tokens",val:": typing.Optional[int] = None"},{name:"pad_to_multiple_of",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"transformers.PreTrainedModel.resize_token_embeddings.new_num_tokens",description:`<strong>new_num_tokens</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of new tokens in the embedding matrix. Increasing the size will add newly initialized
vectors at the end. Reducing the size will remove vectors from the end. If not provided or <code>None</code>, just
returns a pointer to the input tokens <code>torch.nn.Embedding</code> module of the model without doing anything.`,name:"new_num_tokens"},{anchor:"transformers.PreTrainedModel.resize_token_embeddings.pad_to_multiple_of",description:`<strong>pad_to_multiple_of</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If set will pad the embedding matrix to a multiple of the provided value.If <code>new_num_tokens</code> is set to
<code>None</code> will just pad the embedding to a multiple of <code>pad_to_multiple_of</code>.</p>
<p>This is especially useful to enable the use of Tensor Cores on NVIDIA hardware with compute capability
<code>&gt;= 7.5</code> (Volta), or on TPUs which benefit from having sequence lengths be a multiple of 128. For more
details about this, or help on choosing the correct value for resizing, refer to this guide:
<a href="https://docs.nvidia.com/deeplearning/performance/dl-performance-matrix-multiplication/index.html#requirements-tc" rel="nofollow">https://docs.nvidia.com/deeplearning/performance/dl-performance-matrix-multiplication/index.html#requirements-tc</a>`,name:"pad_to_multiple_of"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1545",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Pointer to the input tokens Embeddings Module of the model.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.nn.Embedding</code></p>
`}}),Xt=new T({props:{name:"reverse_bettertransformer",anchor:"transformers.PreTrainedModel.reverse_bettertransformer",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L4119",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The model converted back to the original modeling.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel"
>PreTrainedModel</a></p>
`}}),qt=new T({props:{name:"save_pretrained",anchor:"transformers.PreTrainedModel.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"is_main_process",val:": bool = True"},{name:"state_dict",val:": typing.Optional[dict] = None"},{name:"save_function",val:": typing.Callable = <function save at 0x7f0acb2daee0>"},{name:"push_to_hub",val:": bool = False"},{name:"max_shard_size",val:": typing.Union[int, str] = '5GB'"},{name:"safe_serialization",val:": bool = True"},{name:"variant",val:": typing.Optional[str] = None"},{name:"token",val:": typing.Union[str, bool, NoneType] = None"},{name:"save_peft_format",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PreTrainedModel.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to which to save. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"transformers.PreTrainedModel.save_pretrained.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful when in distributed training like
TPUs and need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on
the main process to avoid race conditions.`,name:"is_main_process"},{anchor:"transformers.PreTrainedModel.save_pretrained.state_dict",description:`<strong>state_dict</strong> (nested dictionary of <code>torch.Tensor</code>) &#x2014;
The state dictionary of the model to save. Will default to <code>self.state_dict()</code>, but can be used to only
save parts of the model or if special precautions need to be taken when recovering the state dictionary
of a model (like when using model parallelism).`,name:"state_dict"},{anchor:"transformers.PreTrainedModel.save_pretrained.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful on distributed training like TPUs when one
need to replace <code>torch.save</code> by another method.`,name:"save_function"},{anchor:"transformers.PreTrainedModel.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push your model to the Hugging Face model hub after saving it. You can specify the
repository you want to push to with <code>repo_id</code> (will default to the name of <code>save_directory</code> in your
namespace).`,name:"push_to_hub"},{anchor:"transformers.PreTrainedModel.save_pretrained.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;5GB&quot;</code>) &#x2014;
The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size
lower than this size. If expressed as a string, needs to be digits followed by a unit (like <code>&quot;5MB&quot;</code>).
We default it to 5GB in order for models to be able to run easily on free-tier google colab instances
without CPU OOM issues.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p>If a single weight of the model is bigger than <code>max_shard_size</code>, it will be in its own checkpoint shard
which will be bigger than <code>max_shard_size</code>.</p>

					</div>`,name:"max_shard_size"},{anchor:"transformers.PreTrainedModel.save_pretrained.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way (that uses <code>pickle</code>).`,name:"safe_serialization"},{anchor:"transformers.PreTrainedModel.save_pretrained.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If specified, weights are saved in the format pytorch_model.<variant>.bin.</variant>`,name:"variant"},{anchor:"transformers.PreTrainedModel.save_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.PreTrainedModel.save_pretrained.save_peft_format",description:`<strong>save_peft_format</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
For backward compatibility with PEFT library, in case adapter weights are attached to the model, all
keys of the state dict of adapters needs to be pre-pended with <code>base_model.model</code>. Advanced users can
disable this behaviours by setting <code>save_peft_format</code> to <code>False</code>.`,name:"save_peft_format"},{anchor:"transformers.PreTrainedModel.save_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional key word arguments passed along to the <a href="/docs/transformers/main/zh/main_classes/model#transformers.utils.PushToHubMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1958"}}),Dt=new T({props:{name:"set_input_embeddings",anchor:"transformers.PreTrainedModel.set_input_embeddings",parameters:[{name:"value",val:": Module"}],parametersDescription:[{anchor:"transformers.PreTrainedModel.set_input_embeddings.value",description:"<strong>value</strong> (<code>nn.Module</code>) &#x2014; A module mapping vocabulary to hidden states.",name:"value"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1363"}}),At=new T({props:{name:"tie_weights",anchor:"transformers.PreTrainedModel.tie_weights",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1400"}}),Qt=new T({props:{name:"to_bettertransformer",anchor:"transformers.PreTrainedModel.to_bettertransformer",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L4091",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The model converted to BetterTransformer.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel"
>PreTrainedModel</a></p>
`}}),St=new T({props:{name:"warn_if_padding_and_no_attention_mask",anchor:"transformers.PreTrainedModel.warn_if_padding_and_no_attention_mask",parameters:[{name:"input_ids",val:""},{name:"attention_mask",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L4141"}}),Ot=new kt({props:{title:"大模型加载",local:"大模型加载",headingTag:"h3"}}),to=new V({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvclNlcTJTZXFMTSUwQSUwQXQwcHAlMjAlM0QlMjBBdXRvTW9kZWxGb3JTZXEyU2VxTE0uZnJvbV9wcmV0cmFpbmVkKCUyMmJpZ3NjaWVuY2UlMkZUMHBwJTIyJTJDJTIwbG93X2NwdV9tZW1fdXNhZ2UlM0RUcnVlKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForSeq2SeqLM

t0pp = AutoModelForSeq2SeqLM.from_pretrained(<span class="hljs-string">&quot;bigscience/T0pp&quot;</span>, low_cpu_mem_usage=<span class="hljs-literal">True</span>)`,wrap:!1}}),ro=new V({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvclNlcTJTZXFMTSUwQSUwQXQwcHAlMjAlM0QlMjBBdXRvTW9kZWxGb3JTZXEyU2VxTE0uZnJvbV9wcmV0cmFpbmVkKCUyMmJpZ3NjaWVuY2UlMkZUMHBwJTIyJTJDJTIwZGV2aWNlX21hcCUzRCUyMmF1dG8lMjIp",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForSeq2SeqLM

t0pp = AutoModelForSeq2SeqLM.from_pretrained(<span class="hljs-string">&quot;bigscience/T0pp&quot;</span>, device_map=<span class="hljs-string">&quot;auto&quot;</span>)`,wrap:!1}}),so=new V({props:{code:"dDBwcC5oZl9kZXZpY2VfbWFwJTBBJTdCJ3NoYXJlZCclM0ElMjAwJTJDJTBBJTIwJ2RlY29kZXIuZW1iZWRfdG9rZW5zJyUzQSUyMDAlMkMlMEElMjAnZW5jb2RlciclM0ElMjAwJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMCclM0ElMjAwJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMSclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMiclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMyclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suNCclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suNSclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suNiclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suNyclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suOCclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suOSclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMTAnJTNBJTIwMSUyQyUwQSUyMCdkZWNvZGVyLmJsb2NrLjExJyUzQSUyMDElMkMlMEElMjAnZGVjb2Rlci5ibG9jay4xMiclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMTMnJTNBJTIwMSUyQyUwQSUyMCdkZWNvZGVyLmJsb2NrLjE0JyUzQSUyMDElMkMlMEElMjAnZGVjb2Rlci5ibG9jay4xNSclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMTYnJTNBJTIwMSUyQyUwQSUyMCdkZWNvZGVyLmJsb2NrLjE3JyUzQSUyMDElMkMlMEElMjAnZGVjb2Rlci5ibG9jay4xOCclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMTknJTNBJTIwMSUyQyUwQSUyMCdkZWNvZGVyLmJsb2NrLjIwJyUzQSUyMDElMkMlMEElMjAnZGVjb2Rlci5ibG9jay4yMSclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMjInJTNBJTIwJ2NwdSclMkMlMEElMjAnZGVjb2Rlci5ibG9jay4yMyclM0ElMjAnY3B1JyUyQyUwQSUyMCdkZWNvZGVyLmZpbmFsX2xheWVyX25vcm0nJTNBJTIwJ2NwdSclMkMlMEElMjAnZGVjb2Rlci5kcm9wb3V0JyUzQSUyMCdjcHUnJTJDJTBBJTIwJ2xtX2hlYWQnJTNBJTIwJ2NwdSclN0Q=",highlighted:`t0pp.hf_device_map
{<span class="hljs-string">&#x27;shared&#x27;</span>: <span class="hljs-number">0</span>,
 <span class="hljs-string">&#x27;decoder.embed_tokens&#x27;</span>: <span class="hljs-number">0</span>,
 <span class="hljs-string">&#x27;encoder&#x27;</span>: <span class="hljs-number">0</span>,
 <span class="hljs-string">&#x27;decoder.block.0&#x27;</span>: <span class="hljs-number">0</span>,
 <span class="hljs-string">&#x27;decoder.block.1&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.2&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.3&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.4&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.5&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.6&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.7&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.8&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.9&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.10&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.11&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.12&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.13&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.14&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.15&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.16&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.17&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.18&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.19&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.20&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.21&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.22&#x27;</span>: <span class="hljs-string">&#x27;cpu&#x27;</span>,
 <span class="hljs-string">&#x27;decoder.block.23&#x27;</span>: <span class="hljs-string">&#x27;cpu&#x27;</span>,
 <span class="hljs-string">&#x27;decoder.final_layer_norm&#x27;</span>: <span class="hljs-string">&#x27;cpu&#x27;</span>,
 <span class="hljs-string">&#x27;decoder.dropout&#x27;</span>: <span class="hljs-string">&#x27;cpu&#x27;</span>,
 <span class="hljs-string">&#x27;lm_head&#x27;</span>: <span class="hljs-string">&#x27;cpu&#x27;</span>}`,wrap:!1}}),lo=new V({props:{code:"ZGV2aWNlX21hcCUyMCUzRCUyMCU3QiUyMnNoYXJlZCUyMiUzQSUyMDAlMkMlMjAlMjJlbmNvZGVyJTIyJTNBJTIwMCUyQyUyMCUyMmRlY29kZXIlMjIlM0ElMjAxJTJDJTIwJTIybG1faGVhZCUyMiUzQSUyMDElN0Q=",highlighted:'device_map = {<span class="hljs-string">&quot;shared&quot;</span>: <span class="hljs-number">0</span>, <span class="hljs-string">&quot;encoder&quot;</span>: <span class="hljs-number">0</span>, <span class="hljs-string">&quot;decoder&quot;</span>: <span class="hljs-number">1</span>, <span class="hljs-string">&quot;lm_head&quot;</span>: <span class="hljs-number">1</span>}',wrap:!1}}),mo=new kt({props:{title:"模型实例化 dtype",local:"模型实例化-dtype",headingTag:"h3"}}),ho=new V({props:{code:"bW9kZWwlMjAlM0QlMjBUNUZvckNvbmRpdGlvbmFsR2VuZXJhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIydDUlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYp",highlighted:'model = T5ForConditionalGeneration.from_pretrained(<span class="hljs-string">&quot;t5&quot;</span>, torch_dtype=torch.float16)',wrap:!1}}),uo=new V({props:{code:"bW9kZWwlMjAlM0QlMjBUNUZvckNvbmRpdGlvbmFsR2VuZXJhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIydDUlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRCUyMmF1dG8lMjIp",highlighted:'model = T5ForConditionalGeneration.from_pretrained(<span class="hljs-string">&quot;t5&quot;</span>, torch_dtype=<span class="hljs-string">&quot;auto&quot;</span>)',wrap:!1}}),_o=new V({props:{code:"Y29uZmlnJTIwJTNEJTIwVDVDb25maWcuZnJvbV9wcmV0cmFpbmVkKCUyMnQ1JTIyKSUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsLmZyb21fY29uZmlnKGNvbmZpZyk=",highlighted:`config = T5Config.from_pretrained(<span class="hljs-string">&quot;t5&quot;</span>)
model = AutoModel.from_config(config)`,wrap:!1}}),yo=new kt({props:{title:"ModuleUtilsMixin",local:"transformers.modeling_utils.ModuleUtilsMixin",headingTag:"h2"}}),vo=new T({props:{name:"class transformers.modeling_utils.ModuleUtilsMixin",anchor:"transformers.modeling_utils.ModuleUtilsMixin",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L767"}}),Mo=new T({props:{name:"add_memory_hooks",anchor:"transformers.modeling_utils.ModuleUtilsMixin.add_memory_hooks",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L798"}}),To=new T({props:{name:"estimate_tokens",anchor:"transformers.modeling_utils.ModuleUtilsMixin.estimate_tokens",parameters:[{name:"input_dict",val:": typing.Dict[str, typing.Union[torch.Tensor, typing.Any]]"}],parametersDescription:[{anchor:"transformers.modeling_utils.ModuleUtilsMixin.estimate_tokens.inputs",description:"<strong>inputs</strong> (<code>dict</code>) &#x2014; The model inputs.",name:"inputs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1023",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The total number of tokens.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>int</code></p>
`}}),xo=new T({props:{name:"floating_point_ops",anchor:"transformers.modeling_utils.ModuleUtilsMixin.floating_point_ops",parameters:[{name:"input_dict",val:": typing.Dict[str, typing.Union[torch.Tensor, typing.Any]]"},{name:"exclude_embeddings",val:": bool = True"}],parametersDescription:[{anchor:"transformers.modeling_utils.ModuleUtilsMixin.floating_point_ops.batch_size",description:`<strong>batch_size</strong> (<code>int</code>) &#x2014;
The batch size for the forward pass.`,name:"batch_size"},{anchor:"transformers.modeling_utils.ModuleUtilsMixin.floating_point_ops.sequence_length",description:`<strong>sequence_length</strong> (<code>int</code>) &#x2014;
The number of tokens in each line of the batch.`,name:"sequence_length"},{anchor:"transformers.modeling_utils.ModuleUtilsMixin.floating_point_ops.exclude_embeddings",description:`<strong>exclude_embeddings</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to count embedding and softmax operations.`,name:"exclude_embeddings"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1044",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The number of floating-point operations.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>int</code></p>
`}}),wo=new T({props:{name:"get_extended_attention_mask",anchor:"transformers.modeling_utils.ModuleUtilsMixin.get_extended_attention_mask",parameters:[{name:"attention_mask",val:": Tensor"},{name:"input_shape",val:": typing.Tuple[int]"},{name:"device",val:": device = None"},{name:"dtype",val:": torch.float32 = None"}],parametersDescription:[{anchor:"transformers.modeling_utils.ModuleUtilsMixin.get_extended_attention_mask.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code>) &#x2014;
Mask with ones indicating tokens to attend to, zeros for tokens to ignore.`,name:"attention_mask"},{anchor:"transformers.modeling_utils.ModuleUtilsMixin.get_extended_attention_mask.input_shape",description:`<strong>input_shape</strong> (<code>Tuple[int]</code>) &#x2014;
The shape of the input to the model.`,name:"input_shape"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L886",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.Tensor</code> The extended attention mask, with a the same dtype as <code>attention_mask.dtype</code>.</p>
`}}),$o=new T({props:{name:"get_head_mask",anchor:"transformers.modeling_utils.ModuleUtilsMixin.get_head_mask",parameters:[{name:"head_mask",val:": typing.Optional[torch.Tensor]"},{name:"num_hidden_layers",val:": int"},{name:"is_attention_chunked",val:": bool = False"}],parametersDescription:[{anchor:"transformers.modeling_utils.ModuleUtilsMixin.get_head_mask.head_mask",description:`<strong>head_mask</strong> (<code>torch.Tensor</code> with shape <code>[num_heads]</code> or <code>[num_hidden_layers x num_heads]</code>, <em>optional</em>) &#x2014;
The mask indicating if we should keep the heads or not (1.0 for keep, 0.0 for discard).`,name:"head_mask"},{anchor:"transformers.modeling_utils.ModuleUtilsMixin.get_head_mask.num_hidden_layers",description:`<strong>num_hidden_layers</strong> (<code>int</code>) &#x2014;
The number of hidden layers in the model.`,name:"num_hidden_layers"},{anchor:"transformers.modeling_utils.ModuleUtilsMixin.get_head_mask.is_attention_chunked",description:`<strong>is_attention_chunked</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the attentions scores are computed by chunks or not.`,name:"is_attention_chunked"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L938",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.Tensor</code> with shape <code>[num_hidden_layers x batch x num_heads x seq_length x seq_length]</code> or list with
<code>[None]</code> for each layer.</p>
`}}),ko=new T({props:{name:"invert_attention_mask",anchor:"transformers.modeling_utils.ModuleUtilsMixin.invert_attention_mask",parameters:[{name:"encoder_attention_mask",val:": Tensor"}],parametersDescription:[{anchor:"transformers.modeling_utils.ModuleUtilsMixin.invert_attention_mask.encoder_attention_mask",description:"<strong>encoder_attention_mask</strong> (<code>torch.Tensor</code>) &#x2014; An attention mask.",name:"encoder_attention_mask"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L834",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The inverted attention mask.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.Tensor</code></p>
`}}),jo=new T({props:{name:"num_parameters",anchor:"transformers.modeling_utils.ModuleUtilsMixin.num_parameters",parameters:[{name:"only_trainable",val:": bool = False"},{name:"exclude_embeddings",val:": bool = False"}],parametersDescription:[{anchor:"transformers.modeling_utils.ModuleUtilsMixin.num_parameters.only_trainable",description:`<strong>only_trainable</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return only the number of trainable parameters`,name:"only_trainable"},{anchor:"transformers.modeling_utils.ModuleUtilsMixin.num_parameters.exclude_embeddings",description:`<strong>exclude_embeddings</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return only the number of non-embeddings parameters`,name:"exclude_embeddings"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L976",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The number of parameters.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>int</code></p>
`}}),Co=new T({props:{name:"reset_memory_hooks_state",anchor:"transformers.modeling_utils.ModuleUtilsMixin.reset_memory_hooks_state",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L810"}}),Po=new T({props:{name:"class transformers.TFPreTrainedModel",anchor:"transformers.TFPreTrainedModel",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1059"}}),Uo=new T({props:{name:"can_generate",anchor:"transformers.TFPreTrainedModel.can_generate",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1305",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Whether this model can generate sequences with <code>.generate()</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>bool</code></p>
`}}),Fo=new T({props:{name:"compile",anchor:"transformers.TFPreTrainedModel.compile",parameters:[{name:"optimizer",val:" = 'rmsprop'"},{name:"loss",val:" = 'auto_with_warning'"},{name:"metrics",val:" = None"},{name:"loss_weights",val:" = None"},{name:"weighted_metrics",val:" = None"},{name:"run_eagerly",val:" = None"},{name:"steps_per_execution",val:" = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1500"}}),Zo=new T({props:{name:"create_model_card",anchor:"transformers.TFPreTrainedModel.create_model_card",parameters:[{name:"output_dir",val:""},{name:"model_name",val:": str"},{name:"language",val:": Optional[str] = None"},{name:"license",val:": Optional[str] = None"},{name:"tags",val:": Optional[str] = None"},{name:"finetuned_from",val:": Optional[str] = None"},{name:"tasks",val:": Optional[str] = None"},{name:"dataset_tags",val:": Optional[Union[str, List[str]]] = None"},{name:"dataset",val:": Optional[Union[str, List[str]]] = None"},{name:"dataset_args",val:": Optional[Union[str, List[str]]] = None"}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.create_model_card.output_dir",description:`<strong>output_dir</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
The folder in which to create the model card.`,name:"output_dir"},{anchor:"transformers.TFPreTrainedModel.create_model_card.model_name",description:`<strong>model_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the model.`,name:"model_name"},{anchor:"transformers.TFPreTrainedModel.create_model_card.language",description:`<strong>language</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The language of the model (if applicable)`,name:"language"},{anchor:"transformers.TFPreTrainedModel.create_model_card.license",description:`<strong>license</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The license of the model. Will default to the license of the pretrained model used, if the original
model given to the <code>Trainer</code> comes from a repo on the Hub.`,name:"license"},{anchor:"transformers.TFPreTrainedModel.create_model_card.tags",description:`<strong>tags</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
Some tags to be included in the metadata of the model card.`,name:"tags"},{anchor:"transformers.TFPreTrainedModel.create_model_card.finetuned_from",description:`<strong>finetuned_from</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the model used to fine-tune this one (if applicable). Will default to the name of the repo
of the original model given to the <code>Trainer</code> (if it comes from the Hub).`,name:"finetuned_from"},{anchor:"transformers.TFPreTrainedModel.create_model_card.tasks",description:`<strong>tasks</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several task identifiers, to be included in the metadata of the model card.`,name:"tasks"},{anchor:"transformers.TFPreTrainedModel.create_model_card.dataset_tags",description:`<strong>dataset_tags</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several dataset tags, to be included in the metadata of the model card.`,name:"dataset_tags"},{anchor:"transformers.TFPreTrainedModel.create_model_card.dataset",description:`<strong>dataset</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several dataset identifiers, to be included in the metadata of the model card.`,name:"dataset"},{anchor:"transformers.TFPreTrainedModel.create_model_card.dataset_args",description:`<strong>dataset_args</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several dataset arguments, to be included in the metadata of the model card.`,name:"dataset_args"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1795"}}),Io=new T({props:{name:"eager_serving",anchor:"transformers.TFPreTrainedModel.eager_serving",parameters:[{name:"inputs",val:""}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.eager_serving.inputs",description:`<strong>inputs</strong> (<code>Dict[str, tf.Tensor]</code>) &#x2014;
The input of the saved model as a dictionary of tensors.`,name:"inputs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1217"}}),Wo=new T({props:{name:"from_pretrained",anchor:"transformers.TFPreTrainedModel.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": Optional[Union[str, os.PathLike]]"},{name:"*model_args",val:""},{name:"config",val:": Optional[Union[PretrainedConfig, str, os.PathLike]] = None"},{name:"cache_dir",val:": Optional[Union[str, os.PathLike]] = None"},{name:"ignore_mismatched_sizes",val:": bool = False"},{name:"force_download",val:": bool = False"},{name:"local_files_only",val:": bool = False"},{name:"token",val:": Optional[Union[str, bool]] = None"},{name:"revision",val:": str = 'main'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> of a pretrained model hosted inside a model repo on huggingface.co.
Valid model ids can be located at the root-level, like <code>bert-base-uncased</code>, or namespaced under a
user or organization name, like <code>dbmdz/bert-base-german-cased</code>.</li>
<li>A path to a <em>directory</em> containing model weights saved using
<a href="/docs/transformers/main/zh/main_classes/model#transformers.TFPreTrainedModel.save_pretrained">save_pretrained()</a>, e.g., <code>./my_model_directory/</code>.</li>
<li>A path or url to a <em>PyTorch state_dict save file</em> (e.g, <code>./pt_model/pytorch_model.bin</code>). In this
case, <code>from_pt</code> should be set to <code>True</code> and a configuration object should be provided as <code>config</code>
argument. This loading path is slower than converting the PyTorch model in a TensorFlow model
using the provided conversion scripts and loading the TensorFlow model afterwards.</li>
<li><code>None</code> if you are both providing the configuration and state dictionary (resp. with keyword
arguments <code>config</code> and <code>state_dict</code>).</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.model_args",description:`<strong>model_args</strong> (sequence of positional arguments, <em>optional</em>) &#x2014;
All remaining positional arguments will be passed to the underlying model&#x2019;s <code>__init__</code> method.`,name:"model_args"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.config",description:`<strong>config</strong> (<code>Union[PretrainedConfig, str]</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>an instance of a class derived from <code>PretrainedConfig</code>,</li>
<li>a string valid as input to <code>from_pretrained()</code>.</li>
</ul>
<p>Configuration for the model to use instead of an automatically loaded configuration. Configuration can
be automatically loaded when:</p>
<ul>
<li>The model is a model provided by the library (loaded with the <em>model id</em> string of a pretrained
model).</li>
<li>The model was saved using <a href="/docs/transformers/main/zh/main_classes/model#transformers.TFPreTrainedModel.save_pretrained">save_pretrained()</a> and is reloaded by supplying the
save directory.</li>
<li>The model is loaded by supplying a local directory as <code>pretrained_model_name_or_path</code> and a
configuration JSON file named <em>config.json</em> is found in the directory.</li>
</ul>`,name:"config"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.from_pt",description:`<strong>from_pt</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Load the model weights from a PyTorch state_dict save file (see docstring of
<code>pretrained_model_name_or_path</code> argument).`,name:"from_pt"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.ignore_mismatched_sizes",description:`<strong>ignore_mismatched_sizes</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to raise an error if some of the weights from the checkpoint do not have the same size
as the weights of the model (if for instance, you are instantiating a model with 10 labels from a
checkpoint with 3 labels).`,name:"ignore_mismatched_sizes"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Path to a directory in which a downloaded pretrained model configuration should be cached if the
standard cache should not be used.`,name:"cache_dir"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to delete incompletely received files. Will attempt to resume the download if such a
file exists.
proxies &#x2014;
(<code>Dict[str, str], </code>optional<code>): A dictionary of proxy servers to use by protocol or endpoint, e.g., </code>{&#x2018;http&#x2019;: &#x2018;foo.bar:3128&#x2019;, &#x2018;http://hostname&#x2019;: &#x2018;foo.bar:4012&#x2019;}<code>. The proxies are used on each request. output_loading_info(</code>bool<code>, *optional*, defaults to </code>False\`): Whether ot not to also return a
dictionary containing missing keys, unexpected keys and error messages.`,name:"resume_download"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (e.g., not try downloading the model).`,name:"local_files_only(bool,"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.`,name:"revision"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L2503"}}),De=new ge({props:{anchor:"transformers.TFPreTrainedModel.from_pretrained.example",$$slots:{default:[Ch]},$$scope:{ctx:P}}}),zo=new T({props:{name:"get_bias",anchor:"transformers.TFPreTrainedModel.get_bias",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1935",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The weights representing the bias, None if not an LM model.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>tf.Variable</code></p>
`}}),Bo=new T({props:{name:"get_head_mask",anchor:"transformers.TFPreTrainedModel.get_head_mask",parameters:[{name:"head_mask",val:": tf.Tensor | None"},{name:"num_hidden_layers",val:": int"}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.get_head_mask.head_mask",description:`<strong>head_mask</strong> (<code>tf.Tensor</code> with shape <code>[num_heads]</code> or <code>[num_hidden_layers x num_heads]</code>, <em>optional</em>) &#x2014;
The mask indicating if we should keep the heads or not (1.0 for keep, 0.0 for discard).`,name:"head_mask"},{anchor:"transformers.TFPreTrainedModel.get_head_mask.num_hidden_layers",description:`<strong>num_hidden_layers</strong> (<code>int</code>) &#x2014;
The number of hidden layers in the model.`,name:"num_hidden_layers"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1172",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>tf.Tensor</code> with shape <code>[num_hidden_layers x batch x num_heads x seq_length x seq_length]</code> or list with
<code>[None]</code> for each layer.</p>
`}}),Go=new T({props:{name:"get_input_embeddings",anchor:"transformers.TFPreTrainedModel.get_input_embeddings",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1319",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The embeddings layer mapping vocabulary to hidden states.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>tf.Variable</code></p>
`}}),Lo=new T({props:{name:"get_lm_head",anchor:"transformers.TFPreTrainedModel.get_lm_head",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1968",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The LM head layer if the model has one, None if not.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>tf.keras.layers.Layer</code></p>
`}}),Vo=new T({props:{name:"get_output_embeddings",anchor:"transformers.TFPreTrainedModel.get_output_embeddings",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1875",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The new weights mapping vocabulary to hidden states.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>tf.Variable</code></p>
`}}),Ho=new T({props:{name:"get_output_layer_with_bias",anchor:"transformers.TFPreTrainedModel.get_output_layer_with_bias",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1912",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The layer that handles the bias, None if not an LM model.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>tf.keras.layers.Layer</code></p>
`}}),Eo=new T({props:{name:"get_prefix_bias_name",anchor:"transformers.TFPreTrainedModel.get_prefix_bias_name",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1925",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The _prefix name of the bias.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>str</code></p>
`}}),No=new T({props:{name:"load_repo_checkpoint",anchor:"transformers.TFPreTrainedModel.load_repo_checkpoint",parameters:[{name:"repo_path_or_name",val:""}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.load_repo_checkpoint.repo_path_or_name",description:`<strong>repo_path_or_name</strong> (<code>str</code>) &#x2014;
Can either be a repository name for your {object} in the Hub or a path to a local folder (in which case
the repository will have the name of that local folder).`,name:"repo_path_or_name"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1346",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary of extra metadata from the checkpoint, most commonly an “epoch” count.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code></p>
`}}),Yo=new T({props:{name:"prepare_tf_dataset",anchor:"transformers.TFPreTrainedModel.prepare_tf_dataset",parameters:[{name:"dataset",val:": 'datasets.Dataset'"},{name:"batch_size",val:": int = 8"},{name:"shuffle",val:": bool = True"},{name:"tokenizer",val:": Optional['PreTrainedTokenizerBase'] = None"},{name:"collate_fn",val:": Optional[Callable] = None"},{name:"collate_fn_args",val:": Optional[Dict[str, Any]] = None"},{name:"drop_remainder",val:": Optional[bool] = None"},{name:"prefetch",val:": bool = True"}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.prepare_tf_dataset.dataset",description:`<strong>dataset</strong> (<code>Any</code>) &#x2014;
A [~<code>datasets.Dataset</code>] to be wrapped as a <code>tf.data.Dataset</code>.`,name:"dataset"},{anchor:"transformers.TFPreTrainedModel.prepare_tf_dataset.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, defaults to 8) &#x2014;
The size of batches to return.`,name:"batch_size"},{anchor:"transformers.TFPreTrainedModel.prepare_tf_dataset.shuffle",description:`<strong>shuffle</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to return samples from the dataset in random order. Usually <code>True</code> for training datasets and
<code>False</code> for validation/test datasets.`,name:"shuffle"},{anchor:"transformers.TFPreTrainedModel.prepare_tf_dataset.tokenizer",description:`<strong>tokenizer</strong> (<code>PreTrainedTokenizerBase</code>, <em>optional</em>) &#x2014;
A <code>PreTrainedTokenizer</code> that will be used to pad samples to create batches. Has no effect if a specific
<code>collate_fn</code> is passed instead.`,name:"tokenizer"},{anchor:"transformers.TFPreTrainedModel.prepare_tf_dataset.collate_fn",description:`<strong>collate_fn</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that collates samples from the dataset into a single batch. Defaults to
<code>DefaultDataCollator</code> if no <code>tokenizer</code> is supplied or <code>DataCollatorWithPadding</code> if a <code>tokenizer</code> is
passed.`,name:"collate_fn"},{anchor:"transformers.TFPreTrainedModel.prepare_tf_dataset.collate_fn_args",description:`<strong>collate_fn_args</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
A dict of arguments to pass to the <code>collate_fn</code> alongside the list of samples.`,name:"collate_fn_args"},{anchor:"transformers.TFPreTrainedModel.prepare_tf_dataset.drop_remainder",description:`<strong>drop_remainder</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to drop the final batch, if the batch_size does not evenly divide the dataset length. Defaults
to the same setting as <code>shuffle</code>.`,name:"drop_remainder"},{anchor:"transformers.TFPreTrainedModel.prepare_tf_dataset.prefetch",description:`<strong>prefetch</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to add prefetching to the end of the <code>tf.data</code> pipeline. This is almost always beneficial for
performance, but can be disabled in edge cases.`,name:"prefetch"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1395",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>tf.data.Dataset</code> which is ready to pass to the Keras API.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Dataset</code></p>
`}}),Ro=new T({props:{name:"prune_heads",anchor:"transformers.TFPreTrainedModel.prune_heads",parameters:[{name:"heads_to_prune",val:""}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.prune_heads.heads_to_prune",description:`<strong>heads_to_prune</strong> (<code>Dict[int, List[int]]</code>) &#x2014;
Dictionary with keys being selected layer indices (<code>int</code>) and associated values being the list of heads
to prune in said layer (list of <code>int</code>). For instance {1: [0, 2], 2: [2, 3]} will prune heads 0 and 2 on
layer 1 and heads 2 and 3 on layer 2.`,name:"heads_to_prune"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L2315"}}),Xo=new T({props:{name:"push_to_hub",anchor:"transformers.TFPreTrainedModel.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": Optional[bool] = None"},{name:"commit_message",val:": Optional[str] = None"},{name:"private",val:": Optional[bool] = None"},{name:"max_shard_size",val:": Optional[Union[int, str]] = '10GB'"},{name:"token",val:": Optional[Union[bool, str]] = None"},{name:"use_auth_token",val:": Optional[Union[bool, str]] = None"},{name:"create_pr",val:": bool = False"},{name:"**base_model_card_args",val:""}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your model to. It should contain your organization name
when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.TFPreTrainedModel.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.TFPreTrainedModel.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload model&quot;</code>.`,name:"commit_message"},{anchor:"transformers.TFPreTrainedModel.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the repository created should be private.`,name:"private"},{anchor:"transformers.TFPreTrainedModel.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>). Will default to <code>True</code> if <code>repo_url</code>
is not specified.`,name:"token"},{anchor:"transformers.TFPreTrainedModel.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;10GB&quot;</code>) &#x2014;
Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard
will then be each of size lower than this size. If expressed as a string, needs to be digits followed
by a unit (like <code>&quot;5MB&quot;</code>).`,name:"max_shard_size"},{anchor:"transformers.TFPreTrainedModel.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L3052"}}),at=new ge({props:{anchor:"transformers.TFPreTrainedModel.push_to_hub.example",$$slots:{default:[Jh]},$$scope:{ctx:P}}}),qo=new T({props:{name:"register_for_auto_class",anchor:"transformers.TFPreTrainedModel.register_for_auto_class",parameters:[{name:"auto_class",val:" = 'TFAutoModel'"}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.register_for_auto_class.auto_class",description:`<strong>auto_class</strong> (<code>str</code> or <code>type</code>, <em>optional</em>, defaults to <code>&quot;TFAutoModel&quot;</code>) &#x2014;
The auto class to register this new model with.`,name:"auto_class"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L3161"}}),st=new yi({props:{warning:!0,$$slots:{default:[Ph]},$$scope:{ctx:P}}}),Do=new T({props:{name:"resize_token_embeddings",anchor:"transformers.TFPreTrainedModel.resize_token_embeddings",parameters:[{name:"new_num_tokens",val:": Optional[int] = None"}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.resize_token_embeddings.new_num_tokens",description:`<strong>new_num_tokens</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of new tokens in the embedding matrix. Increasing the size will add newly initialized
vectors at the end. Reducing the size will remove vectors from the end. If not provided or <code>None</code>, just
returns a pointer to the input tokens without doing anything.`,name:"new_num_tokens"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1977",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Pointer to the input tokens of the model.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>tf.Variable</code> or <code>tf.keras.layers.Embedding</code></p>
`}}),Ao=new T({props:{name:"save_pretrained",anchor:"transformers.TFPreTrainedModel.save_pretrained",parameters:[{name:"save_directory",val:""},{name:"saved_model",val:" = False"},{name:"version",val:" = 1"},{name:"push_to_hub",val:" = False"},{name:"signatures",val:" = None"},{name:"max_shard_size",val:": Union[int, str] = '10GB'"},{name:"create_pr",val:": bool = False"},{name:"safe_serialization",val:": bool = False"},{name:"token",val:": Optional[Union[str, bool]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code>) &#x2014;
Directory to which to save. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"transformers.TFPreTrainedModel.save_pretrained.saved_model",description:`<strong>saved_model</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If the model has to be saved in saved model format as well or not.`,name:"saved_model"},{anchor:"transformers.TFPreTrainedModel.save_pretrained.version",description:`<strong>version</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The version of the saved model. A saved model needs to be versioned in order to be properly loaded by
TensorFlow Serving as detailed in the official documentation
<a href="https://www.tensorflow.org/tfx/serving/serving_basic" rel="nofollow">https://www.tensorflow.org/tfx/serving/serving_basic</a>`,name:"version"},{anchor:"transformers.TFPreTrainedModel.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push your model to the Hugging Face model hub after saving it. You can specify the
repository you want to push to with <code>repo_id</code> (will default to the name of <code>save_directory</code> in your
namespace).`,name:"push_to_hub"},{anchor:"transformers.TFPreTrainedModel.save_pretrained.signatures",description:`<strong>signatures</strong> (<code>dict</code> or <code>tf.function</code>, <em>optional</em>) &#x2014;
Model&#x2019;s signature used for serving. This will be passed to the <code>signatures</code> argument of model.save().`,name:"signatures"},{anchor:"transformers.TFPreTrainedModel.save_pretrained.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;10GB&quot;</code>) &#x2014;
The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size
lower than this size. If expressed as a string, needs to be digits followed by a unit (like <code>&quot;5MB&quot;</code>).</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p>If a single weight of the model is bigger than <code>max_shard_size</code>, it will be in its own checkpoint shard
which will be bigger than <code>max_shard_size</code>.</p>

					</div>`,name:"max_shard_size"},{anchor:"transformers.TFPreTrainedModel.save_pretrained.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"transformers.TFPreTrainedModel.save_pretrained.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional TensorFlow way (that uses <code>h5</code>).`,name:"safe_serialization"},{anchor:"transformers.TFPreTrainedModel.save_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.TFPreTrainedModel.save_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional key word arguments passed along to the <a href="/docs/transformers/main/zh/main_classes/model#transformers.utils.PushToHubMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L2327"}}),Qo=new T({props:{name:"serving",anchor:"transformers.TFPreTrainedModel.serving",parameters:[{name:"inputs",val:""}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.serving.Method",description:"<strong>Method</strong> used for serving the model. Does not have a specific signature, but will be specialized as concrete &#x2014;",name:"Method"},{anchor:"transformers.TFPreTrainedModel.serving.functions",description:`<strong>functions</strong> when saving with <code>save_pretrained</code>. &#x2014;
inputs (<code>Dict[str, tf.Tensor]</code>):
The input of the saved model as a dictionary of tensors.`,name:"functions"}]}}),So=new T({props:{name:"serving_output",anchor:"transformers.TFPreTrainedModel.serving_output",parameters:[{name:"output",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1281"}}),Oo=new T({props:{name:"set_bias",anchor:"transformers.TFPreTrainedModel.set_bias",parameters:[{name:"value",val:""}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.set_bias.value",description:`<strong>value</strong> (<code>Dict[tf.Variable]</code>) &#x2014;
All the new bias attached to an LM head.`,name:"value"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1952"}}),Ko=new T({props:{name:"set_input_embeddings",anchor:"transformers.TFPreTrainedModel.set_input_embeddings",parameters:[{name:"value",val:""}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.set_input_embeddings.value",description:`<strong>value</strong> (<code>tf.Variable</code>) &#x2014;
The new weights mapping hidden states to vocabulary.`,name:"value"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1855"}}),en=new T({props:{name:"set_output_embeddings",anchor:"transformers.TFPreTrainedModel.set_output_embeddings",parameters:[{name:"value",val:""}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.set_output_embeddings.value",description:`<strong>value</strong> (<code>tf.Variable</code>) &#x2014;
The new weights mapping hidden states to vocabulary.`,name:"value"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1895"}}),tn=new T({props:{name:"test_step",anchor:"transformers.TFPreTrainedModel.test_step",parameters:[{name:"data",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1691"}}),on=new T({props:{name:"train_step",anchor:"transformers.TFPreTrainedModel.train_step",parameters:[{name:"data",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1583"}}),rn=new kt({props:{title:"TFModelUtilsMixin",local:"transformers.modeling_tf_utils.TFModelUtilsMixin",headingTag:"h2"}}),an=new T({props:{name:"class transformers.modeling_tf_utils.TFModelUtilsMixin",anchor:"transformers.modeling_tf_utils.TFModelUtilsMixin",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L105"}}),sn=new T({props:{name:"num_parameters",anchor:"transformers.modeling_tf_utils.TFModelUtilsMixin.num_parameters",parameters:[{name:"only_trainable",val:": bool = False"}],parametersDescription:[{anchor:"transformers.modeling_tf_utils.TFModelUtilsMixin.num_parameters.only_trainable",description:`<strong>only_trainable</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return only the number of trainable parameters`,name:"only_trainable"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L110",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The number of parameters.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>int</code></p>
`}}),dn=new T({props:{name:"class transformers.FlaxPreTrainedModel",anchor:"transformers.FlaxPreTrainedModel",parameters:[{name:"config",val:": PretrainedConfig"},{name:"module",val:": Module"},{name:"input_shape",val:": typing.Tuple = (1, 1)"},{name:"seed",val:": int = 0"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"_do_init",val:": bool = True"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L166"}}),cn=new T({props:{name:"can_generate",anchor:"transformers.FlaxPreTrainedModel.can_generate",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L506"}}),mn=new T({props:{name:"from_pretrained",anchor:"transformers.FlaxPreTrainedModel.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike]"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"*model_args",val:""},{name:"config",val:": typing.Union[transformers.configuration_utils.PretrainedConfig, str, os.PathLike, NoneType] = None"},{name:"cache_dir",val:": typing.Union[str, os.PathLike, NoneType] = None"},{name:"ignore_mismatched_sizes",val:": bool = False"},{name:"force_download",val:": bool = False"},{name:"local_files_only",val:": bool = False"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"revision",val:": str = 'main'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> of a pretrained model hosted inside a model repo on huggingface.co.
Valid model ids can be located at the root-level, like <code>bert-base-uncased</code>, or namespaced under a
user or organization name, like <code>dbmdz/bert-base-german-cased</code>.</li>
<li>A path to a <em>directory</em> containing model weights saved using
<a href="/docs/transformers/main/zh/main_classes/model#transformers.FlaxPreTrainedModel.save_pretrained">save_pretrained()</a>, e.g., <code>./my_model_directory/</code>.</li>
<li>A path or url to a <em>pt index checkpoint file</em> (e.g, <code>./tf_model/model.ckpt.index</code>). In this case,
<code>from_pt</code> should be set to <code>True</code>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.dtype",description:`<strong>dtype</strong> (<code>jax.numpy.dtype</code>, <em>optional</em>, defaults to <code>jax.numpy.float32</code>) &#x2014;
The data type of the computation. Can be one of <code>jax.numpy.float32</code>, <code>jax.numpy.float16</code> (on GPUs) and
<code>jax.numpy.bfloat16</code> (on TPUs).</p>
<p>This can be used to enable mixed-precision training or half-precision inference on GPUs or TPUs. If
specified all the computation will be performed with the given <code>dtype</code>.</p>
<p><strong>Note that this only specifies the dtype of the computation and does not influence the dtype of model
parameters.</strong></p>
<p>If you wish to change the dtype of the model parameters, see <a href="/docs/transformers/main/zh/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/main/zh/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.model_args",description:`<strong>model_args</strong> (sequence of positional arguments, <em>optional</em>) &#x2014;
All remaining positional arguments will be passed to the underlying model&#x2019;s <code>__init__</code> method.`,name:"model_args"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.config",description:`<strong>config</strong> (<code>Union[PretrainedConfig, str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>an instance of a class derived from <code>PretrainedConfig</code>,</li>
<li>a string or path valid as input to <code>from_pretrained()</code>.</li>
</ul>
<p>Configuration for the model to use instead of an automatically loaded configuration. Configuration can
be automatically loaded when:</p>
<ul>
<li>The model is a model provided by the library (loaded with the <em>model id</em> string of a pretrained
model).</li>
<li>The model was saved using <a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel.save_pretrained">save_pretrained()</a> and is reloaded by supplying the
save directory.</li>
<li>The model is loaded by supplying a local directory as <code>pretrained_model_name_or_path</code> and a
configuration JSON file named <em>config.json</em> is found in the directory.</li>
</ul>`,name:"config"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory in which a downloaded pretrained model configuration should be cached if the
standard cache should not be used.`,name:"cache_dir"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.from_pt",description:`<strong>from_pt</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Load the model weights from a PyTorch checkpoint save file (see docstring of
<code>pretrained_model_name_or_path</code> argument).`,name:"from_pt"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.ignore_mismatched_sizes",description:`<strong>ignore_mismatched_sizes</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to raise an error if some of the weights from the checkpoint do not have the same size
as the weights of the model (if for instance, you are instantiating a model with 10 labels from a
checkpoint with 3 labels).`,name:"ignore_mismatched_sizes"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to delete incompletely received files. Will attempt to resume the download if such a
file exists.`,name:"resume_download"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, e.g., <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (i.e., do not try to download the model).`,name:"local_files_only(bool,"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.`,name:"revision"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L518"}}),gt=new ge({props:{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.example",$$slots:{default:[Uh]},$$scope:{ctx:P}}}),pn=new T({props:{name:"load_flax_sharded_weights",anchor:"transformers.FlaxPreTrainedModel.load_flax_sharded_weights",parameters:[{name:"shard_files",val:""}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.load_flax_sharded_weights.shard_files",description:`<strong>shard_files</strong> (<code>List[str]</code> &#x2014;
The list of shard files to load.`,name:"shard_files"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L459",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A nested dictionary of the model parameters, in the expected format for flax models : <code>&#123;'model': &#123;'params': &#123;'...'&#125;&#125;&#125;</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Dict</code></p>
`}}),hn=new T({props:{name:"push_to_hub",anchor:"transformers.FlaxPreTrainedModel.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": typing.Optional[bool] = None"},{name:"commit_message",val:": typing.Optional[str] = None"},{name:"private",val:": typing.Optional[bool] = None"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"max_shard_size",val:": typing.Union[int, str, NoneType] = '5GB'"},{name:"create_pr",val:": bool = False"},{name:"safe_serialization",val:": bool = True"},{name:"revision",val:": str = None"},{name:"commit_description",val:": str = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your model to. It should contain your organization name
when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload model&quot;</code>.`,name:"commit_message"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the repository created should be private.`,name:"private"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>). Will default to <code>True</code> if <code>repo_url</code>
is not specified.`,name:"token"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;5GB&quot;</code>) &#x2014;
Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard
will then be each of size lower than this size. If expressed as a string, needs to be digits followed
by a unit (like <code>&quot;5MB&quot;</code>). We default it to <code>&quot;5GB&quot;</code> so that users can easily load models on free-tier
Google Colab instances without any CPU OOM issues.`,name:"max_shard_size"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to convert the model weights in safetensors format for safer serialization.`,name:"safe_serialization"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Branch to push the uploaded files to.`,name:"revision"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created`,name:"commit_description"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py#L759"}}),_t=new ge({props:{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.example",$$slots:{default:[Fh]},$$scope:{ctx:P}}}),fn=new T({props:{name:"register_for_auto_class",anchor:"transformers.FlaxPreTrainedModel.register_for_auto_class",parameters:[{name:"auto_class",val:" = 'FlaxAutoModel'"}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.register_for_auto_class.auto_class",description:`<strong>auto_class</strong> (<code>str</code> or <code>type</code>, <em>optional</em>, defaults to <code>&quot;FlaxAutoModel&quot;</code>) &#x2014;
The auto class to register this new model with.`,name:"auto_class"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L1226"}}),bt=new yi({props:{warning:!0,$$slots:{default:[Zh]},$$scope:{ctx:P}}}),un=new T({props:{name:"save_pretrained",anchor:"transformers.FlaxPreTrainedModel.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"params",val:" = None"},{name:"push_to_hub",val:" = False"},{name:"max_shard_size",val:" = '10GB'"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"safe_serialization",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to which to save. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"transformers.FlaxPreTrainedModel.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push your model to the Hugging Face model hub after saving it. You can specify the
repository you want to push to with <code>repo_id</code> (will default to the name of <code>save_directory</code> in your
namespace).`,name:"push_to_hub"},{anchor:"transformers.FlaxPreTrainedModel.save_pretrained.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;10GB&quot;</code>) &#x2014;
The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size
lower than this size. If expressed as a string, needs to be digits followed by a unit (like <code>&quot;5MB&quot;</code>).</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p>If a single weight of the model is bigger than <code>max_shard_size</code>, it will be in its own checkpoint shard
which will be bigger than <code>max_shard_size</code>.</p>

					</div>`,name:"max_shard_size"},{anchor:"transformers.FlaxPreTrainedModel.save_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.FlaxPreTrainedModel.save_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional key word arguments passed along to the <a href="/docs/transformers/main/zh/main_classes/model#transformers.utils.PushToHubMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"},{anchor:"transformers.FlaxPreTrainedModel.save_pretrained.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or through msgpack.`,name:"safe_serialization"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L1088"}}),gn=new T({props:{name:"to_bf16",anchor:"transformers.FlaxPreTrainedModel.to_bf16",parameters:[{name:"params",val:": typing.Union[typing.Dict, flax.core.frozen_dict.FrozenDict]"},{name:"mask",val:": typing.Any = None"}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.to_bf16.params",description:`<strong>params</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> of model parameters.`,name:"params"},{anchor:"transformers.FlaxPreTrainedModel.to_bf16.mask",description:`<strong>mask</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> with same structure as the <code>params</code> tree. The leaves should be booleans, <code>True</code> for params
you want to cast, and should be <code>False</code> for those you want to skip.`,name:"mask"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L329"}}),vt=new ge({props:{anchor:"transformers.FlaxPreTrainedModel.to_bf16.example",$$slots:{default:[Ih]},$$scope:{ctx:P}}}),_n=new T({props:{name:"to_fp16",anchor:"transformers.FlaxPreTrainedModel.to_fp16",parameters:[{name:"params",val:": typing.Union[typing.Dict, flax.core.frozen_dict.FrozenDict]"},{name:"mask",val:": typing.Any = None"}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.to_fp16.params",description:`<strong>params</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> of model parameters.`,name:"params"},{anchor:"transformers.FlaxPreTrainedModel.to_fp16.mask",description:`<strong>mask</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> with same structure as the <code>params</code> tree. The leaves should be booleans, <code>True</code> for params
you want to cast, and should be <code>False</code> for those you want to skip`,name:"mask"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L395"}}),Mt=new ge({props:{anchor:"transformers.FlaxPreTrainedModel.to_fp16.example",$$slots:{default:[Wh]},$$scope:{ctx:P}}}),bn=new T({props:{name:"to_fp32",anchor:"transformers.FlaxPreTrainedModel.to_fp32",parameters:[{name:"params",val:": typing.Union[typing.Dict, flax.core.frozen_dict.FrozenDict]"},{name:"mask",val:": typing.Any = None"}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.to_fp32.params",description:`<strong>params</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> of model parameters.`,name:"params"},{anchor:"transformers.FlaxPreTrainedModel.to_fp32.mask",description:`<strong>mask</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> with same structure as the <code>params</code> tree. The leaves should be booleans, <code>True</code> for params
you want to cast, and should be <code>False</code> for those you want to skip`,name:"mask"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L368"}}),Tt=new ge({props:{anchor:"transformers.FlaxPreTrainedModel.to_fp32.example",$$slots:{default:[zh]},$$scope:{ctx:P}}}),vn=new kt({props:{title:"推送到 Hub",local:"transformers.utils.PushToHubMixin",headingTag:"h2"}}),Mn=new T({props:{name:"class transformers.utils.PushToHubMixin",anchor:"transformers.utils.PushToHubMixin",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py#L643"}}),Tn=new T({props:{name:"push_to_hub",anchor:"transformers.utils.PushToHubMixin.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": typing.Optional[bool] = None"},{name:"commit_message",val:": typing.Optional[str] = None"},{name:"private",val:": typing.Optional[bool] = None"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"max_shard_size",val:": typing.Union[int, str, NoneType] = '5GB'"},{name:"create_pr",val:": bool = False"},{name:"safe_serialization",val:": bool = True"},{name:"revision",val:": str = None"},{name:"commit_description",val:": str = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.utils.PushToHubMixin.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your {object} to. It should contain your organization name
when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload {object}&quot;</code>.`,name:"commit_message"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the repository created should be private.`,name:"private"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>). Will default to <code>True</code> if <code>repo_url</code>
is not specified.`,name:"token"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;5GB&quot;</code>) &#x2014;
Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard
will then be each of size lower than this size. If expressed as a string, needs to be digits followed
by a unit (like <code>&quot;5MB&quot;</code>). We default it to <code>&quot;5GB&quot;</code> so that users can easily load models on free-tier
Google Colab instances without any CPU OOM issues.`,name:"max_shard_size"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to convert the model weights in safetensors format for safer serialization.`,name:"safe_serialization"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Branch to push the uploaded files to.`,name:"revision"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created`,name:"commit_description"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py#L759"}}),xt=new ge({props:{anchor:"transformers.utils.PushToHubMixin.push_to_hub.example",$$slots:{default:[Bh]},$$scope:{ctx:P}}}),xn=new kt({props:{title:"分片检查点",local:"transformers.modeling_utils.load_sharded_checkpoint",headingTag:"h2"}}),wn=new T({props:{name:"transformers.modeling_utils.load_sharded_checkpoint",anchor:"transformers.modeling_utils.load_sharded_checkpoint",parameters:[{name:"model",val:""},{name:"folder",val:""},{name:"strict",val:" = True"},{name:"prefer_safe",val:" = True"}],parametersDescription:[{anchor:"transformers.modeling_utils.load_sharded_checkpoint.model",description:"<strong>model</strong> (<code>torch.nn.Module</code>) &#x2014; The model in which to load the checkpoint.",name:"model"},{anchor:"transformers.modeling_utils.load_sharded_checkpoint.folder",description:"<strong>folder</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014; A path to a folder containing the sharded checkpoint.",name:"folder"},{anchor:"transformers.modeling_utils.load_sharded_checkpoint.strict",description:"<strong>strict</strong> (<code>bool</code>, *optional<code>, defaults to </code>True`) &#x2014;\nWhether to strictly enforce that the keys in the model state dict match the keys in the sharded checkpoint.",name:"strict"},{anchor:"transformers.modeling_utils.load_sharded_checkpoint.prefer_safe",description:`<strong>prefer_safe</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If both safetensors and PyTorch save files are present in checkpoint and <code>prefer_safe</code> is True, the
safetensors files will be loaded. Otherwise, PyTorch files are always loaded when possible.`,name:"prefer_safe"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L377",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A named tuple with <code>missing_keys</code> and <code>unexpected_keys</code> fields</p>
<ul>
<li><code>missing_keys</code> is a list of str containing the missing keys</li>
<li><code>unexpected_keys</code> is a list of str containing the unexpected keys</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>NamedTuple</code></p>
`}}),{c(){d=r("meta"),k=o(),y=r("p"),_=o(),h(w.$$.fragment),i=o(),j=r("p"),j.innerHTML=ye,L=o(),R=r("p"),R.innerHTML=H,z=o(),G=r("ul"),G.innerHTML=Sa,jt=o(),Ct=r("p"),Ct.innerHTML=Rc,Ka=o(),h(Jt.$$.fragment),es=o(),C=r("div"),h(Pt.$$.fragment),vi=o(),In=r("p"),In.textContent=Xc,Mi=o(),Wn=r("p"),Wn.innerHTML=qc,Ti=o(),zn=r("ul"),zn.innerHTML=Dc,xi=o(),Bn=r("p"),Bn.textContent=Ac,wi=o(),Gn=r("ul"),Gn.innerHTML=Qc,$i=o(),K=r("div"),h(Ut.$$.fragment),ki=o(),Ln=r("p"),Ln.textContent=Sc,ji=o(),h(ve.$$.fragment),Ci=o(),Me=r("div"),h(Ft.$$.fragment),Ji=o(),Vn=r("p"),Vn.innerHTML=Oc,Pi=o(),Te=r("div"),h(Zt.$$.fragment),Ui=o(),Hn=r("p"),Hn.innerHTML=Kc,Fi=o(),xe=r("div"),h(It.$$.fragment),Zi=o(),En=r("p"),En.textContent=em,Ii=o(),F=r("div"),h(Wt.$$.fragment),Wi=o(),Nn=r("p"),Nn.textContent=tm,zi=o(),Yn=r("p"),Yn.innerHTML=om,Bi=o(),Rn=r("p"),Rn.innerHTML=nm,Gi=o(),Xn=r("p"),Xn.innerHTML=rm,Li=o(),h(we.$$.fragment),Vi=o(),h($e.$$.fragment),Hi=o(),qn=r("ul"),qn.innerHTML=am,Ei=o(),Dn=r("p"),Dn.textContent=sm,Ni=o(),An=r("p"),An.textContent=im,Yi=o(),Qn=r("ol"),Qn.innerHTML=lm,Ri=o(),Sn=r("p"),Sn.textContent=dm,Xi=o(),ke=r("div"),h(zt.$$.fragment),qi=o(),On=r("p"),On.textContent=cm,Di=o(),je=r("div"),h(Bt.$$.fragment),Ai=o(),Kn=r("p"),Kn.innerHTML=mm,Qi=o(),Ce=r("div"),h(Gt.$$.fragment),Si=o(),er=r("p"),er.textContent=pm,Oi=o(),ee=r("div"),h(Lt.$$.fragment),Ki=o(),tr=r("p"),tr.textContent=hm,el=o(),or=r("p"),or.textContent=fm,tl=o(),X=r("div"),h(Vt.$$.fragment),ol=o(),nr=r("p"),nr.textContent=um,nl=o(),rr=r("p"),rr.textContent=gm,rl=o(),ar=r("p"),ar.innerHTML=_m,al=o(),Je=r("div"),h(Ht.$$.fragment),sl=o(),sr=r("p"),sr.innerHTML=bm,il=o(),Pe=r("div"),h(Et.$$.fragment),ll=o(),ir=r("p"),ir.textContent=ym,dl=o(),Ue=r("div"),h(Nt.$$.fragment),cl=o(),lr=r("p"),lr.textContent=vm,ml=o(),te=r("div"),h(Yt.$$.fragment),pl=o(),dr=r("p"),dr.textContent=Mm,hl=o(),h(Fe.$$.fragment),fl=o(),oe=r("div"),h(Rt.$$.fragment),ul=o(),cr=r("p"),cr.innerHTML=Tm,gl=o(),mr=r("p"),mr.innerHTML=xm,_l=o(),Ze=r("div"),h(Xt.$$.fragment),bl=o(),pr=r("p"),pr.innerHTML=wm,yl=o(),Ie=r("div"),h(qt.$$.fragment),vl=o(),hr=r("p"),hr.innerHTML=$m,Ml=o(),We=r("div"),h(Dt.$$.fragment),Tl=o(),fr=r("p"),fr.textContent=km,xl=o(),ne=r("div"),h(At.$$.fragment),wl=o(),ur=r("p"),ur.textContent=jm,$l=o(),gr=r("p"),gr.innerHTML=Cm,kl=o(),re=r("div"),h(Qt.$$.fragment),jl=o(),_r=r("p"),_r.innerHTML=Jm,Cl=o(),br=r("p"),br.innerHTML=Pm,Jl=o(),ze=r("div"),h(St.$$.fragment),Pl=o(),yr=r("p"),yr.textContent=Um,ts=o(),vr=r("a"),os=o(),h(Ot.$$.fragment),ns=o(),Kt=r("p"),Kt.innerHTML=Fm,rs=o(),eo=r("p"),eo.innerHTML=Zm,as=o(),h(to.$$.fragment),ss=o(),oo=r("p"),oo.innerHTML=Im,is=o(),no=r("p"),no.innerHTML=Wm,ls=o(),h(ro.$$.fragment),ds=o(),ao=r("p"),ao.innerHTML=zm,cs=o(),h(so.$$.fragment),ms=o(),io=r("p"),io.textContent=Bm,ps=o(),h(lo.$$.fragment),hs=o(),co=r("p"),co.innerHTML=Gm,fs=o(),h(mo.$$.fragment),us=o(),po=r("p"),po.innerHTML=Lm,gs=o(),h(ho.$$.fragment),_s=o(),fo=r("p"),fo.innerHTML=Vm,bs=o(),h(uo.$$.fragment),ys=o(),go=r("p"),go.innerHTML=Hm,vs=o(),h(_o.$$.fragment),Ms=o(),bo=r("p"),bo.textContent=Em,Ts=o(),h(yo.$$.fragment),xs=o(),W=r("div"),h(vo.$$.fragment),Ul=o(),Mr=r("p"),Mr.innerHTML=Nm,Fl=o(),ae=r("div"),h(Mo.$$.fragment),Zl=o(),Tr=r("p"),Tr.textContent=Ym,Il=o(),xr=r("p"),xr.innerHTML=Rm,Wl=o(),Be=r("div"),h(To.$$.fragment),zl=o(),wr=r("p"),wr.textContent=Xm,Bl=o(),Ge=r("div"),h(xo.$$.fragment),Gl=o(),$r=r("p"),$r.innerHTML=qm,Ll=o(),Le=r("div"),h(wo.$$.fragment),Vl=o(),kr=r("p"),kr.textContent=Dm,Hl=o(),Ve=r("div"),h($o.$$.fragment),El=o(),jr=r("p"),jr.textContent=Am,Nl=o(),He=r("div"),h(ko.$$.fragment),Yl=o(),Cr=r("p"),Cr.textContent=Qm,Rl=o(),Ee=r("div"),h(jo.$$.fragment),Xl=o(),Jr=r("p"),Jr.textContent=Sm,ql=o(),Ne=r("div"),h(Co.$$.fragment),Dl=o(),Pr=r("p"),Pr.innerHTML=Om,ws=o(),Jo=r("p"),Jo.textContent=Km,$s=o(),x=r("div"),h(Po.$$.fragment),Al=o(),Ur=r("p"),Ur.textContent=ep,Ql=o(),Fr=r("p"),Fr.innerHTML=tp,Sl=o(),Zr=r("ul"),Zr.innerHTML=op,Ol=o(),Ir=r("p"),Ir.textContent=np,Kl=o(),Wr=r("ul"),Wr.innerHTML=rp,ed=o(),Ye=r("div"),h(Uo.$$.fragment),td=o(),zr=r("p"),zr.innerHTML=ap,od=o(),Re=r("div"),h(Fo.$$.fragment),nd=o(),Br=r("p"),Br.textContent=sp,rd=o(),Xe=r("div"),h(Zo.$$.fragment),ad=o(),Gr=r("p"),Gr.innerHTML=ip,sd=o(),qe=r("div"),h(Io.$$.fragment),id=o(),Lr=r("p"),Lr.textContent=lp,ld=o(),E=r("div"),h(Wo.$$.fragment),dd=o(),Vr=r("p"),Vr.textContent=dp,cd=o(),Hr=r("p"),Hr.innerHTML=cp,md=o(),Er=r("p"),Er.innerHTML=mp,pd=o(),h(De.$$.fragment),hd=o(),Ae=r("div"),h(zo.$$.fragment),fd=o(),Nr=r("p"),Nr.textContent=pp,ud=o(),Qe=r("div"),h(Bo.$$.fragment),gd=o(),Yr=r("p"),Yr.textContent=hp,_d=o(),Se=r("div"),h(Go.$$.fragment),bd=o(),Rr=r("p"),Rr.textContent=fp,yd=o(),Oe=r("div"),h(Lo.$$.fragment),vd=o(),Xr=r("p"),Xr.textContent=up,Md=o(),Ke=r("div"),h(Vo.$$.fragment),Td=o(),qr=r("p"),qr.textContent=gp,xd=o(),et=r("div"),h(Ho.$$.fragment),wd=o(),Dr=r("p"),Dr.textContent=_p,$d=o(),tt=r("div"),h(Eo.$$.fragment),kd=o(),Ar=r("p"),Ar.textContent=bp,jd=o(),ot=r("div"),h(No.$$.fragment),Cd=o(),Qr=r("p"),Qr.textContent=yp,Jd=o(),nt=r("div"),h(Yo.$$.fragment),Pd=o(),Sr=r("p"),Sr.innerHTML=vp,Ud=o(),rt=r("div"),h(Ro.$$.fragment),Fd=o(),Or=r("p"),Or.textContent=Mp,Zd=o(),se=r("div"),h(Xo.$$.fragment),Id=o(),Kr=r("p"),Kr.innerHTML=Tp,Wd=o(),h(at.$$.fragment),zd=o(),ie=r("div"),h(qo.$$.fragment),Bd=o(),ea=r("p"),ea.textContent=xp,Gd=o(),h(st.$$.fragment),Ld=o(),le=r("div"),h(Do.$$.fragment),Vd=o(),ta=r("p"),ta.innerHTML=wp,Hd=o(),oa=r("p"),oa.innerHTML=$p,Ed=o(),it=r("div"),h(Ao.$$.fragment),Nd=o(),na=r("p"),na.innerHTML=kp,Yd=o(),ra=r("div"),h(Qo.$$.fragment),Rd=o(),lt=r("div"),h(So.$$.fragment),Xd=o(),aa=r("p"),aa.textContent=jp,qd=o(),dt=r("div"),h(Oo.$$.fragment),Dd=o(),sa=r("p"),sa.textContent=Cp,Ad=o(),ct=r("div"),h(Ko.$$.fragment),Qd=o(),ia=r("p"),ia.textContent=Jp,Sd=o(),mt=r("div"),h(en.$$.fragment),Od=o(),la=r("p"),la.textContent=Pp,Kd=o(),pt=r("div"),h(tn.$$.fragment),ec=o(),da=r("p"),da.innerHTML=Up,tc=o(),ht=r("div"),h(on.$$.fragment),oc=o(),ca=r("p"),ca.innerHTML=Fp,ks=o(),nn=r("ul"),nn.innerHTML=Zp,js=o(),h(rn.$$.fragment),Cs=o(),A=r("div"),h(an.$$.fragment),nc=o(),ma=r("p"),ma.innerHTML=Ip,rc=o(),ft=r("div"),h(sn.$$.fragment),ac=o(),pa=r("p"),pa.textContent=Wp,Js=o(),ln=r("p"),ln.textContent=zp,Ps=o(),U=r("div"),h(dn.$$.fragment),sc=o(),ha=r("p"),ha.textContent=Bp,ic=o(),fa=r("p"),fa.innerHTML=Gp,lc=o(),ua=r("p"),ua.textContent=Lp,dc=o(),ga=r("ul"),ga.innerHTML=Vp,cc=o(),ut=r("div"),h(cn.$$.fragment),mc=o(),_a=r("p"),_a.innerHTML=Hp,pc=o(),N=r("div"),h(mn.$$.fragment),hc=o(),ba=r("p"),ba.textContent=Ep,fc=o(),ya=r("p"),ya.innerHTML=Np,uc=o(),va=r("p"),va.innerHTML=Yp,gc=o(),h(gt.$$.fragment),_c=o(),de=r("div"),h(pn.$$.fragment),bc=o(),Ma=r("p"),Ma.innerHTML=Rp,yc=o(),Ta=r("p"),Ta.textContent=Xp,vc=o(),ce=r("div"),h(hn.$$.fragment),Mc=o(),xa=r("p"),xa.textContent=qp,Tc=o(),h(_t.$$.fragment),xc=o(),me=r("div"),h(fn.$$.fragment),wc=o(),wa=r("p"),wa.textContent=Dp,$c=o(),h(bt.$$.fragment),kc=o(),yt=r("div"),h(un.$$.fragment),jc=o(),$a=r("p"),$a.innerHTML=Ap,Cc=o(),q=r("div"),h(gn.$$.fragment),Jc=o(),ka=r("p"),ka.innerHTML=Qp,Pc=o(),ja=r("p"),ja.textContent=Sp,Uc=o(),h(vt.$$.fragment),Fc=o(),D=r("div"),h(_n.$$.fragment),Zc=o(),Ca=r("p"),Ca.innerHTML=Op,Ic=o(),Ja=r("p"),Ja.textContent=Kp,Wc=o(),h(Mt.$$.fragment),zc=o(),pe=r("div"),h(bn.$$.fragment),Bc=o(),Pa=r("p"),Pa.innerHTML=eh,Gc=o(),h(Tt.$$.fragment),Us=o(),yn=r("ul"),yn.innerHTML=th,Fs=o(),h(vn.$$.fragment),Zs=o(),Q=r("div"),h(Mn.$$.fragment),Lc=o(),Ua=r("p"),Ua.textContent=oh,Vc=o(),he=r("div"),h(Tn.$$.fragment),Hc=o(),Fa=r("p"),Fa.textContent=nh,Ec=o(),h(xt.$$.fragment),Is=o(),h(xn.$$.fragment),Ws=o(),S=r("div"),h(wn.$$.fragment),Nc=o(),Za=r("p"),Za.innerHTML=rh,Yc=o(),Ia=r("p"),Ia.textContent=ah,zs=o(),Oa=r("p"),this.h()},l(e){const c=bh("svelte-u9bgzb",document.head);d=a(c,"META",{name:!0,content:!0}),c.forEach(s),k=n(e),y=a(e,"P",{}),M(y).forEach(s),_=n(e),f(w.$$.fragment,e),i=n(e),j=a(e,"P",{"data-svelte-h":!0}),l(j)!=="svelte-1coius4"&&(j.innerHTML=ye),L=n(e),R=a(e,"P",{"data-svelte-h":!0}),l(R)!=="svelte-13f6y70"&&(R.innerHTML=H),z=n(e),G=a(e,"UL",{"data-svelte-h":!0}),l(G)!=="svelte-koiaxy"&&(G.innerHTML=Sa),jt=n(e),Ct=a(e,"P",{"data-svelte-h":!0}),l(Ct)!=="svelte-rzjj06"&&(Ct.innerHTML=Rc),Ka=n(e),f(Jt.$$.fragment,e),es=n(e),C=a(e,"DIV",{class:!0});var J=M(C);f(Pt.$$.fragment,J),vi=n(J),In=a(J,"P",{"data-svelte-h":!0}),l(In)!=="svelte-12nk4t7"&&(In.textContent=Xc),Mi=n(J),Wn=a(J,"P",{"data-svelte-h":!0}),l(Wn)!=="svelte-hvvqnh"&&(Wn.innerHTML=qc),Ti=n(J),zn=a(J,"UL",{"data-svelte-h":!0}),l(zn)!=="svelte-6o6r8w"&&(zn.innerHTML=Dc),xi=n(J),Bn=a(J,"P",{"data-svelte-h":!0}),l(Bn)!=="svelte-1qxxkvo"&&(Bn.textContent=Ac),wi=n(J),Gn=a(J,"UL",{"data-svelte-h":!0}),l(Gn)!=="svelte-16rgz7z"&&(Gn.innerHTML=Qc),$i=n(J),K=a(J,"DIV",{class:!0});var _e=M(K);f(Ut.$$.fragment,_e),ki=n(_e),Ln=a(_e,"P",{"data-svelte-h":!0}),l(Ln)!=="svelte-1j9019y"&&(Ln.textContent=Sc),ji=n(_e),f(ve.$$.fragment,_e),_e.forEach(s),Ci=n(J),Me=a(J,"DIV",{class:!0});var $n=M(Me);f(Ft.$$.fragment,$n),Ji=n($n),Vn=a($n,"P",{"data-svelte-h":!0}),l(Vn)!=="svelte-1r2xt0l"&&(Vn.innerHTML=Oc),$n.forEach(s),Pi=n(J),Te=a(J,"DIV",{class:!0});var kn=M(Te);f(Zt.$$.fragment,kn),Ui=n(kn),Hn=a(kn,"P",{"data-svelte-h":!0}),l(Hn)!=="svelte-1arq2q9"&&(Hn.innerHTML=Kc),kn.forEach(s),Fi=n(J),xe=a(J,"DIV",{class:!0});var jn=M(xe);f(It.$$.fragment,jn),Zi=n(jn),En=a(jn,"P",{"data-svelte-h":!0}),l(En)!=="svelte-gf3f10"&&(En.textContent=em),jn.forEach(s),Ii=n(J),F=a(J,"DIV",{class:!0});var I=M(F);f(Wt.$$.fragment,I),Wi=n(I),Nn=a(I,"P",{"data-svelte-h":!0}),l(Nn)!=="svelte-1m220hc"&&(Nn.textContent=tm),zi=n(I),Yn=a(I,"P",{"data-svelte-h":!0}),l(Yn)!=="svelte-1vvzid2"&&(Yn.innerHTML=om),Bi=n(I),Rn=a(I,"P",{"data-svelte-h":!0}),l(Rn)!=="svelte-floidm"&&(Rn.innerHTML=nm),Gi=n(I),Xn=a(I,"P",{"data-svelte-h":!0}),l(Xn)!=="svelte-5vnnmn"&&(Xn.innerHTML=rm),Li=n(I),f(we.$$.fragment,I),Vi=n(I),f($e.$$.fragment,I),Hi=n(I),qn=a(I,"UL",{"data-svelte-h":!0}),l(qn)!=="svelte-14hq6us"&&(qn.innerHTML=am),Ei=n(I),Dn=a(I,"P",{"data-svelte-h":!0}),l(Dn)!=="svelte-1ndujqx"&&(Dn.textContent=sm),Ni=n(I),An=a(I,"P",{"data-svelte-h":!0}),l(An)!=="svelte-h5finb"&&(An.textContent=im),Yi=n(I),Qn=a(I,"OL",{"data-svelte-h":!0}),l(Qn)!=="svelte-17iv4ty"&&(Qn.innerHTML=lm),Ri=n(I),Sn=a(I,"P",{"data-svelte-h":!0}),l(Sn)!=="svelte-1kh2krb"&&(Sn.textContent=dm),I.forEach(s),Xi=n(J),ke=a(J,"DIV",{class:!0});var Cn=M(ke);f(zt.$$.fragment,Cn),qi=n(Cn),On=a(Cn,"P",{"data-svelte-h":!0}),l(On)!=="svelte-1oe3d1l"&&(On.textContent=cm),Cn.forEach(s),Di=n(J),je=a(J,"DIV",{class:!0});var Jn=M(je);f(Bt.$$.fragment,Jn),Ai=n(Jn),Kn=a(Jn,"P",{"data-svelte-h":!0}),l(Kn)!=="svelte-1o6lvix"&&(Kn.innerHTML=mm),Jn.forEach(s),Qi=n(J),Ce=a(J,"DIV",{class:!0});var Pn=M(Ce);f(Gt.$$.fragment,Pn),Si=n(Pn),er=a(Pn,"P",{"data-svelte-h":!0}),l(er)!=="svelte-1en7lnm"&&(er.textContent=pm),Pn.forEach(s),Oi=n(J),ee=a(J,"DIV",{class:!0});var be=M(ee);f(Lt.$$.fragment,be),Ki=n(be),tr=a(be,"P",{"data-svelte-h":!0}),l(tr)!=="svelte-x1yzxn"&&(tr.textContent=hm),el=n(be),or=a(be,"P",{"data-svelte-h":!0}),l(or)!=="svelte-1c0vp3s"&&(or.textContent=fm),be.forEach(s),tl=n(J),X=a(J,"DIV",{class:!0});var O=M(X);f(Vt.$$.fragment,O),ol=n(O),nr=a(O,"P",{"data-svelte-h":!0}),l(nr)!=="svelte-vu1mp6"&&(nr.textContent=um),nl=n(O),rr=a(O,"P",{"data-svelte-h":!0}),l(rr)!=="svelte-1c0vp3s"&&(rr.textContent=gm),rl=n(O),ar=a(O,"P",{"data-svelte-h":!0}),l(ar)!=="svelte-1entg0x"&&(ar.innerHTML=_m),O.forEach(s),al=n(J),Je=a(J,"DIV",{class:!0});var Un=M(Je);f(Ht.$$.fragment,Un),sl=n(Un),sr=a(Un,"P",{"data-svelte-h":!0}),l(sr)!=="svelte-1gceydr"&&(sr.innerHTML=bm),Un.forEach(s),il=n(J),Pe=a(J,"DIV",{class:!0});var Fn=M(Pe);f(Et.$$.fragment,Fn),ll=n(Fn),ir=a(Fn,"P",{"data-svelte-h":!0}),l(ir)!=="svelte-kxy0hj"&&(ir.textContent=ym),Fn.forEach(s),dl=n(J),Ue=a(J,"DIV",{class:!0});var Zn=M(Ue);f(Nt.$$.fragment,Zn),cl=n(Zn),lr=a(Zn,"P",{"data-svelte-h":!0}),l(lr)!=="svelte-qvrpxu"&&(lr.textContent=vm),Zn.forEach(s),ml=n(J),te=a(J,"DIV",{class:!0});var Wa=M(te);f(Yt.$$.fragment,Wa),pl=n(Wa),dr=a(Wa,"P",{"data-svelte-h":!0}),l(dr)!=="svelte-1ie4sav"&&(dr.textContent=Mm),hl=n(Wa),f(Fe.$$.fragment,Wa),Wa.forEach(s),fl=n(J),oe=a(J,"DIV",{class:!0});var za=M(oe);f(Rt.$$.fragment,za),ul=n(za),cr=a(za,"P",{"data-svelte-h":!0}),l(cr)!=="svelte-sgsur1"&&(cr.innerHTML=Tm),gl=n(za),mr=a(za,"P",{"data-svelte-h":!0}),l(mr)!=="svelte-1t4xas4"&&(mr.innerHTML=xm),za.forEach(s),_l=n(J),Ze=a(J,"DIV",{class:!0});var Gs=M(Ze);f(Xt.$$.fragment,Gs),bl=n(Gs),pr=a(Gs,"P",{"data-svelte-h":!0}),l(pr)!=="svelte-82zzvf"&&(pr.innerHTML=wm),Gs.forEach(s),yl=n(J),Ie=a(J,"DIV",{class:!0});var Ls=M(Ie);f(qt.$$.fragment,Ls),vl=n(Ls),hr=a(Ls,"P",{"data-svelte-h":!0}),l(hr)!=="svelte-xt7asw"&&(hr.innerHTML=$m),Ls.forEach(s),Ml=n(J),We=a(J,"DIV",{class:!0});var Vs=M(We);f(Dt.$$.fragment,Vs),Tl=n(Vs),fr=a(Vs,"P",{"data-svelte-h":!0}),l(fr)!=="svelte-107jmv5"&&(fr.textContent=km),Vs.forEach(s),xl=n(J),ne=a(J,"DIV",{class:!0});var Ba=M(ne);f(At.$$.fragment,Ba),wl=n(Ba),ur=a(Ba,"P",{"data-svelte-h":!0}),l(ur)!=="svelte-5nt4be"&&(ur.textContent=jm),$l=n(Ba),gr=a(Ba,"P",{"data-svelte-h":!0}),l(gr)!=="svelte-1ti0hxu"&&(gr.innerHTML=Cm),Ba.forEach(s),kl=n(J),re=a(J,"DIV",{class:!0});var Ga=M(re);f(Qt.$$.fragment,Ga),jl=n(Ga),_r=a(Ga,"P",{"data-svelte-h":!0}),l(_r)!=="svelte-1sq1344"&&(_r.innerHTML=Jm),Cl=n(Ga),br=a(Ga,"P",{"data-svelte-h":!0}),l(br)!=="svelte-1p16ejc"&&(br.innerHTML=Pm),Ga.forEach(s),Jl=n(J),ze=a(J,"DIV",{class:!0});var Hs=M(ze);f(St.$$.fragment,Hs),Pl=n(Hs),yr=a(Hs,"P",{"data-svelte-h":!0}),l(yr)!=="svelte-nkp8sx"&&(yr.textContent=Um),Hs.forEach(s),J.forEach(s),ts=n(e),vr=a(e,"A",{id:!0}),M(vr).forEach(s),os=n(e),f(Ot.$$.fragment,e),ns=n(e),Kt=a(e,"P",{"data-svelte-h":!0}),l(Kt)!=="svelte-nfcprv"&&(Kt.innerHTML=Fm),rs=n(e),eo=a(e,"P",{"data-svelte-h":!0}),l(eo)!=="svelte-qrb1dj"&&(eo.innerHTML=Zm),as=n(e),f(to.$$.fragment,e),ss=n(e),oo=a(e,"P",{"data-svelte-h":!0}),l(oo)!=="svelte-xmvuux"&&(oo.innerHTML=Im),is=n(e),no=a(e,"P",{"data-svelte-h":!0}),l(no)!=="svelte-7m1yxv"&&(no.innerHTML=Wm),ls=n(e),f(ro.$$.fragment,e),ds=n(e),ao=a(e,"P",{"data-svelte-h":!0}),l(ao)!=="svelte-ojcu9d"&&(ao.innerHTML=zm),cs=n(e),f(so.$$.fragment,e),ms=n(e),io=a(e,"P",{"data-svelte-h":!0}),l(io)!=="svelte-1mbamxm"&&(io.textContent=Bm),ps=n(e),f(lo.$$.fragment,e),hs=n(e),co=a(e,"P",{"data-svelte-h":!0}),l(co)!=="svelte-lqp8cl"&&(co.innerHTML=Gm),fs=n(e),f(mo.$$.fragment,e),us=n(e),po=a(e,"P",{"data-svelte-h":!0}),l(po)!=="svelte-1yg4npf"&&(po.innerHTML=Lm),gs=n(e),f(ho.$$.fragment,e),_s=n(e),fo=a(e,"P",{"data-svelte-h":!0}),l(fo)!=="svelte-1sbnz4p"&&(fo.innerHTML=Vm),bs=n(e),f(uo.$$.fragment,e),ys=n(e),go=a(e,"P",{"data-svelte-h":!0}),l(go)!=="svelte-1vubc7v"&&(go.innerHTML=Hm),vs=n(e),f(_o.$$.fragment,e),Ms=n(e),bo=a(e,"P",{"data-svelte-h":!0}),l(bo)!=="svelte-1mmpgkn"&&(bo.textContent=Em),Ts=n(e),f(yo.$$.fragment,e),xs=n(e),W=a(e,"DIV",{class:!0});var B=M(W);f(vo.$$.fragment,B),Ul=n(B),Mr=a(B,"P",{"data-svelte-h":!0}),l(Mr)!=="svelte-9daxpl"&&(Mr.innerHTML=Nm),Fl=n(B),ae=a(B,"DIV",{class:!0});var La=M(ae);f(Mo.$$.fragment,La),Zl=n(La),Tr=a(La,"P",{"data-svelte-h":!0}),l(Tr)!=="svelte-bszdl"&&(Tr.textContent=Ym),Il=n(La),xr=a(La,"P",{"data-svelte-h":!0}),l(xr)!=="svelte-1yhz50g"&&(xr.innerHTML=Rm),La.forEach(s),Wl=n(B),Be=a(B,"DIV",{class:!0});var Es=M(Be);f(To.$$.fragment,Es),zl=n(Es),wr=a(Es,"P",{"data-svelte-h":!0}),l(wr)!=="svelte-1vzpsnb"&&(wr.textContent=Xm),Es.forEach(s),Bl=n(B),Ge=a(B,"DIV",{class:!0});var Ns=M(Ge);f(xo.$$.fragment,Ns),Gl=n(Ns),$r=a(Ns,"P",{"data-svelte-h":!0}),l($r)!=="svelte-1quexap"&&($r.innerHTML=qm),Ns.forEach(s),Ll=n(B),Le=a(B,"DIV",{class:!0});var Ys=M(Le);f(wo.$$.fragment,Ys),Vl=n(Ys),kr=a(Ys,"P",{"data-svelte-h":!0}),l(kr)!=="svelte-qy1xxb"&&(kr.textContent=Dm),Ys.forEach(s),Hl=n(B),Ve=a(B,"DIV",{class:!0});var Rs=M(Ve);f($o.$$.fragment,Rs),El=n(Rs),jr=a(Rs,"P",{"data-svelte-h":!0}),l(jr)!=="svelte-1y1rtu0"&&(jr.textContent=Am),Rs.forEach(s),Nl=n(B),He=a(B,"DIV",{class:!0});var Xs=M(He);f(ko.$$.fragment,Xs),Yl=n(Xs),Cr=a(Xs,"P",{"data-svelte-h":!0}),l(Cr)!=="svelte-1tbhnug"&&(Cr.textContent=Qm),Xs.forEach(s),Rl=n(B),Ee=a(B,"DIV",{class:!0});var qs=M(Ee);f(jo.$$.fragment,qs),Xl=n(qs),Jr=a(qs,"P",{"data-svelte-h":!0}),l(Jr)!=="svelte-vktrn"&&(Jr.textContent=Sm),qs.forEach(s),ql=n(B),Ne=a(B,"DIV",{class:!0});var Ds=M(Ne);f(Co.$$.fragment,Ds),Dl=n(Ds),Pr=a(Ds,"P",{"data-svelte-h":!0}),l(Pr)!=="svelte-17dokk"&&(Pr.innerHTML=Om),Ds.forEach(s),B.forEach(s),ws=n(e),Jo=a(e,"P",{"data-svelte-h":!0}),l(Jo)!=="svelte-t5gx7b"&&(Jo.textContent=Km),$s=n(e),x=a(e,"DIV",{class:!0});var $=M(x);f(Po.$$.fragment,$),Al=n($),Ur=a($,"P",{"data-svelte-h":!0}),l(Ur)!=="svelte-ho56tp"&&(Ur.textContent=ep),Ql=n($),Fr=a($,"P",{"data-svelte-h":!0}),l(Fr)!=="svelte-14b9gvp"&&(Fr.innerHTML=tp),Sl=n($),Zr=a($,"UL",{"data-svelte-h":!0}),l(Zr)!=="svelte-6o6r8w"&&(Zr.innerHTML=op),Ol=n($),Ir=a($,"P",{"data-svelte-h":!0}),l(Ir)!=="svelte-1qxxkvo"&&(Ir.textContent=np),Kl=n($),Wr=a($,"UL",{"data-svelte-h":!0}),l(Wr)!=="svelte-6pvtmb"&&(Wr.innerHTML=rp),ed=n($),Ye=a($,"DIV",{class:!0});var As=M(Ye);f(Uo.$$.fragment,As),td=n(As),zr=a(As,"P",{"data-svelte-h":!0}),l(zr)!=="svelte-1r2xt0l"&&(zr.innerHTML=ap),As.forEach(s),od=n($),Re=a($,"DIV",{class:!0});var Qs=M(Re);f(Fo.$$.fragment,Qs),nd=n(Qs),Br=a(Qs,"P",{"data-svelte-h":!0}),l(Br)!=="svelte-wsnq9n"&&(Br.textContent=sp),Qs.forEach(s),rd=n($),Xe=a($,"DIV",{class:!0});var Ss=M(Xe);f(Zo.$$.fragment,Ss),ad=n(Ss),Gr=a(Ss,"P",{"data-svelte-h":!0}),l(Gr)!=="svelte-1mh859w"&&(Gr.innerHTML=ip),Ss.forEach(s),sd=n($),qe=a($,"DIV",{class:!0});var Os=M(qe);f(Io.$$.fragment,Os),id=n(Os),Lr=a(Os,"P",{"data-svelte-h":!0}),l(Lr)!=="svelte-56dcoj"&&(Lr.textContent=lp),Os.forEach(s),ld=n($),E=a($,"DIV",{class:!0});var fe=M(E);f(Wo.$$.fragment,fe),dd=n(fe),Vr=a(fe,"P",{"data-svelte-h":!0}),l(Vr)!=="svelte-vc5x03"&&(Vr.textContent=dp),cd=n(fe),Hr=a(fe,"P",{"data-svelte-h":!0}),l(Hr)!=="svelte-floidm"&&(Hr.innerHTML=cp),md=n(fe),Er=a(fe,"P",{"data-svelte-h":!0}),l(Er)!=="svelte-5vnnmn"&&(Er.innerHTML=mp),pd=n(fe),f(De.$$.fragment,fe),fe.forEach(s),hd=n($),Ae=a($,"DIV",{class:!0});var Ks=M(Ae);f(zo.$$.fragment,Ks),fd=n(Ks),Nr=a(Ks,"P",{"data-svelte-h":!0}),l(Nr)!=="svelte-ja4l5b"&&(Nr.textContent=pp),Ks.forEach(s),ud=n($),Qe=a($,"DIV",{class:!0});var ei=M(Qe);f(Bo.$$.fragment,ei),gd=n(ei),Yr=a(ei,"P",{"data-svelte-h":!0}),l(Yr)!=="svelte-1y1rtu0"&&(Yr.textContent=hp),ei.forEach(s),_d=n($),Se=a($,"DIV",{class:!0});var ti=M(Se);f(Go.$$.fragment,ti),bd=n(ti),Rr=a(ti,"P",{"data-svelte-h":!0}),l(Rr)!=="svelte-1g2truu"&&(Rr.textContent=fp),ti.forEach(s),yd=n($),Oe=a($,"DIV",{class:!0});var oi=M(Oe);f(Lo.$$.fragment,oi),vd=n(oi),Xr=a(oi,"P",{"data-svelte-h":!0}),l(Xr)!=="svelte-1hvwe3j"&&(Xr.textContent=up),oi.forEach(s),Md=n($),Ke=a($,"DIV",{class:!0});var ni=M(Ke);f(Vo.$$.fragment,ni),Td=n(ni),qr=a(ni,"P",{"data-svelte-h":!0}),l(qr)!=="svelte-1mu3td8"&&(qr.textContent=gp),ni.forEach(s),xd=n($),et=a($,"DIV",{class:!0});var ri=M(et);f(Ho.$$.fragment,ri),wd=n(ri),Dr=a(ri,"P",{"data-svelte-h":!0}),l(Dr)!=="svelte-ib1802"&&(Dr.textContent=_p),ri.forEach(s),$d=n($),tt=a($,"DIV",{class:!0});var ai=M(tt);f(Eo.$$.fragment,ai),kd=n(ai),Ar=a(ai,"P",{"data-svelte-h":!0}),l(Ar)!=="svelte-1vipzyv"&&(Ar.textContent=bp),ai.forEach(s),jd=n($),ot=a($,"DIV",{class:!0});var si=M(ot);f(No.$$.fragment,si),Cd=n(si),Qr=a(si,"P",{"data-svelte-h":!0}),l(Qr)!=="svelte-inz2xi"&&(Qr.textContent=yp),si.forEach(s),Jd=n($),nt=a($,"DIV",{class:!0});var ii=M(nt);f(Yo.$$.fragment,ii),Pd=n(ii),Sr=a(ii,"P",{"data-svelte-h":!0}),l(Sr)!=="svelte-q8rs5u"&&(Sr.innerHTML=vp),ii.forEach(s),Ud=n($),rt=a($,"DIV",{class:!0});var li=M(rt);f(Ro.$$.fragment,li),Fd=n(li),Or=a(li,"P",{"data-svelte-h":!0}),l(Or)!=="svelte-qvrpxu"&&(Or.textContent=Mp),li.forEach(s),Zd=n($),se=a($,"DIV",{class:!0});var Va=M(se);f(Xo.$$.fragment,Va),Id=n(Va),Kr=a(Va,"P",{"data-svelte-h":!0}),l(Kr)!=="svelte-8nftbo"&&(Kr.innerHTML=Tp),Wd=n(Va),f(at.$$.fragment,Va),Va.forEach(s),zd=n($),ie=a($,"DIV",{class:!0});var Ha=M(ie);f(qo.$$.fragment,Ha),Bd=n(Ha),ea=a(Ha,"P",{"data-svelte-h":!0}),l(ea)!=="svelte-1ie4sav"&&(ea.textContent=xp),Gd=n(Ha),f(st.$$.fragment,Ha),Ha.forEach(s),Ld=n($),le=a($,"DIV",{class:!0});var Ea=M(le);f(Do.$$.fragment,Ea),Vd=n(Ea),ta=a(Ea,"P",{"data-svelte-h":!0}),l(ta)!=="svelte-sgsur1"&&(ta.innerHTML=wp),Hd=n(Ea),oa=a(Ea,"P",{"data-svelte-h":!0}),l(oa)!=="svelte-1t4xas4"&&(oa.innerHTML=$p),Ea.forEach(s),Ed=n($),it=a($,"DIV",{class:!0});var di=M(it);f(Ao.$$.fragment,di),Nd=n(di),na=a(di,"P",{"data-svelte-h":!0}),l(na)!=="svelte-1olaqb6"&&(na.innerHTML=kp),di.forEach(s),Yd=n($),ra=a($,"DIV",{class:!0});var sh=M(ra);f(Qo.$$.fragment,sh),sh.forEach(s),Rd=n($),lt=a($,"DIV",{class:!0});var ci=M(lt);f(So.$$.fragment,ci),Xd=n(ci),aa=a(ci,"P",{"data-svelte-h":!0}),l(aa)!=="svelte-4zpnur"&&(aa.textContent=jp),ci.forEach(s),qd=n($),dt=a($,"DIV",{class:!0});var mi=M(dt);f(Oo.$$.fragment,mi),Dd=n(mi),sa=a(mi,"P",{"data-svelte-h":!0}),l(sa)!=="svelte-cmhrcy"&&(sa.textContent=Cp),mi.forEach(s),Ad=n($),ct=a($,"DIV",{class:!0});var pi=M(ct);f(Ko.$$.fragment,pi),Qd=n(pi),ia=a(pi,"P",{"data-svelte-h":!0}),l(ia)!=="svelte-1ouwbwr"&&(ia.textContent=Jp),pi.forEach(s),Sd=n($),mt=a($,"DIV",{class:!0});var hi=M(mt);f(en.$$.fragment,hi),Od=n(hi),la=a(hi,"P",{"data-svelte-h":!0}),l(la)!=="svelte-x8fgs0"&&(la.textContent=Pp),hi.forEach(s),Kd=n($),pt=a($,"DIV",{class:!0});var fi=M(pt);f(tn.$$.fragment,fi),ec=n(fi),da=a(fi,"P",{"data-svelte-h":!0}),l(da)!=="svelte-oo8tit"&&(da.innerHTML=Up),fi.forEach(s),tc=n($),ht=a($,"DIV",{class:!0});var ui=M(ht);f(on.$$.fragment,ui),oc=n(ui),ca=a(ui,"P",{"data-svelte-h":!0}),l(ca)!=="svelte-oo8tit"&&(ca.innerHTML=Fp),ui.forEach(s),$.forEach(s),ks=n(e),nn=a(e,"UL",{"data-svelte-h":!0}),l(nn)!=="svelte-vx3egj"&&(nn.innerHTML=Zp),js=n(e),f(rn.$$.fragment,e),Cs=n(e),A=a(e,"DIV",{class:!0});var Na=M(A);f(an.$$.fragment,Na),nc=n(Na),ma=a(Na,"P",{"data-svelte-h":!0}),l(ma)!=="svelte-1xrlsdz"&&(ma.innerHTML=Ip),rc=n(Na),ft=a(Na,"DIV",{class:!0});var gi=M(ft);f(sn.$$.fragment,gi),ac=n(gi),pa=a(gi,"P",{"data-svelte-h":!0}),l(pa)!=="svelte-im20fs"&&(pa.textContent=Wp),gi.forEach(s),Na.forEach(s),Js=n(e),ln=a(e,"P",{"data-svelte-h":!0}),l(ln)!=="svelte-11sh6ng"&&(ln.textContent=zp),Ps=n(e),U=a(e,"DIV",{class:!0});var Z=M(U);f(dn.$$.fragment,Z),sc=n(Z),ha=a(Z,"P",{"data-svelte-h":!0}),l(ha)!=="svelte-12nk4t7"&&(ha.textContent=Bp),ic=n(Z),fa=a(Z,"P",{"data-svelte-h":!0}),l(fa)!=="svelte-v1s2xo"&&(fa.innerHTML=Gp),lc=n(Z),ua=a(Z,"P",{"data-svelte-h":!0}),l(ua)!=="svelte-1qxxkvo"&&(ua.textContent=Lp),dc=n(Z),ga=a(Z,"UL",{"data-svelte-h":!0}),l(ga)!=="svelte-6pvtmb"&&(ga.innerHTML=Vp),cc=n(Z),ut=a(Z,"DIV",{class:!0});var _i=M(ut);f(cn.$$.fragment,_i),mc=n(_i),_a=a(_i,"P",{"data-svelte-h":!0}),l(_a)!=="svelte-12hq10t"&&(_a.innerHTML=Hp),_i.forEach(s),pc=n(Z),N=a(Z,"DIV",{class:!0});var ue=M(N);f(mn.$$.fragment,ue),hc=n(ue),ba=a(ue,"P",{"data-svelte-h":!0}),l(ba)!=="svelte-1oaqdrm"&&(ba.textContent=Ep),fc=n(ue),ya=a(ue,"P",{"data-svelte-h":!0}),l(ya)!=="svelte-floidm"&&(ya.innerHTML=Np),uc=n(ue),va=a(ue,"P",{"data-svelte-h":!0}),l(va)!=="svelte-5vnnmn"&&(va.innerHTML=Yp),gc=n(ue),f(gt.$$.fragment,ue),ue.forEach(s),_c=n(Z),de=a(Z,"DIV",{class:!0});var Ya=M(de);f(pn.$$.fragment,Ya),bc=n(Ya),Ma=a(Ya,"P",{"data-svelte-h":!0}),l(Ma)!=="svelte-plzzd0"&&(Ma.innerHTML=Rp),yc=n(Ya),Ta=a(Ya,"P",{"data-svelte-h":!0}),l(Ta)!=="svelte-bzl1lx"&&(Ta.textContent=Xp),Ya.forEach(s),vc=n(Z),ce=a(Z,"DIV",{class:!0});var Ra=M(ce);f(hn.$$.fragment,Ra),Mc=n(Ra),xa=a(Ra,"P",{"data-svelte-h":!0}),l(xa)!=="svelte-a8hf5e"&&(xa.textContent=qp),Tc=n(Ra),f(_t.$$.fragment,Ra),Ra.forEach(s),xc=n(Z),me=a(Z,"DIV",{class:!0});var Xa=M(me);f(fn.$$.fragment,Xa),wc=n(Xa),wa=a(Xa,"P",{"data-svelte-h":!0}),l(wa)!=="svelte-1ie4sav"&&(wa.textContent=Dp),$c=n(Xa),f(bt.$$.fragment,Xa),Xa.forEach(s),kc=n(Z),yt=a(Z,"DIV",{class:!0});var bi=M(yt);f(un.$$.fragment,bi),jc=n(bi),$a=a(bi,"P",{"data-svelte-h":!0}),l($a)!=="svelte-xd56p6"&&($a.innerHTML=Ap),bi.forEach(s),Cc=n(Z),q=a(Z,"DIV",{class:!0});var wt=M(q);f(gn.$$.fragment,wt),Jc=n(wt),ka=a(wt,"P",{"data-svelte-h":!0}),l(ka)!=="svelte-16uni9u"&&(ka.innerHTML=Qp),Pc=n(wt),ja=a(wt,"P",{"data-svelte-h":!0}),l(ja)!=="svelte-qh3hgx"&&(ja.textContent=Sp),Uc=n(wt),f(vt.$$.fragment,wt),wt.forEach(s),Fc=n(Z),D=a(Z,"DIV",{class:!0});var $t=M(D);f(_n.$$.fragment,$t),Zc=n($t),Ca=a($t,"P",{"data-svelte-h":!0}),l(Ca)!=="svelte-uock64"&&(Ca.innerHTML=Op),Ic=n($t),Ja=a($t,"P",{"data-svelte-h":!0}),l(Ja)!=="svelte-1rko7go"&&(Ja.textContent=Kp),Wc=n($t),f(Mt.$$.fragment,$t),$t.forEach(s),zc=n(Z),pe=a(Z,"DIV",{class:!0});var qa=M(pe);f(bn.$$.fragment,qa),Bc=n(qa),Pa=a(qa,"P",{"data-svelte-h":!0}),l(Pa)!=="svelte-1jvan3s"&&(Pa.innerHTML=eh),Gc=n(qa),f(Tt.$$.fragment,qa),qa.forEach(s),Z.forEach(s),Us=n(e),yn=a(e,"UL",{"data-svelte-h":!0}),l(yn)!=="svelte-vx3egj"&&(yn.innerHTML=th),Fs=n(e),f(vn.$$.fragment,e),Zs=n(e),Q=a(e,"DIV",{class:!0});var Da=M(Q);f(Mn.$$.fragment,Da),Lc=n(Da),Ua=a(Da,"P",{"data-svelte-h":!0}),l(Ua)!=="svelte-s2i98"&&(Ua.textContent=oh),Vc=n(Da),he=a(Da,"DIV",{class:!0});var Aa=M(he);f(Tn.$$.fragment,Aa),Hc=n(Aa),Fa=a(Aa,"P",{"data-svelte-h":!0}),l(Fa)!=="svelte-am4l6x"&&(Fa.textContent=nh),Ec=n(Aa),f(xt.$$.fragment,Aa),Aa.forEach(s),Da.forEach(s),Is=n(e),f(xn.$$.fragment,e),Ws=n(e),S=a(e,"DIV",{class:!0});var Qa=M(S);f(wn.$$.fragment,Qa),Nc=n(Qa),Za=a(Qa,"P",{"data-svelte-h":!0}),l(Za)!=="svelte-16tfby7"&&(Za.innerHTML=rh),Yc=n(Qa),Ia=a(Qa,"P",{"data-svelte-h":!0}),l(Ia)!=="svelte-bzl1lx"&&(Ia.textContent=ah),Qa.forEach(s),zs=n(e),Oa=a(e,"P",{}),M(Oa).forEach(s),this.h()},h(){v(d,"name","hf:doc:metadata"),v(d,"content",Lh),v(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(vr,"id","from_pretrained-torch-dtype"),v(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(He,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(tt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(nt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(it,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ra,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(dt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(pt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ut,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,c){t(document.head,d),b(e,k,c),b(e,y,c),b(e,_,c),u(w,e,c),b(e,i,c),b(e,j,c),b(e,L,c),b(e,R,c),b(e,z,c),b(e,G,c),b(e,jt,c),b(e,Ct,c),b(e,Ka,c),u(Jt,e,c),b(e,es,c),b(e,C,c),u(Pt,C,null),t(C,vi),t(C,In),t(C,Mi),t(C,Wn),t(C,Ti),t(C,zn),t(C,xi),t(C,Bn),t(C,wi),t(C,Gn),t(C,$i),t(C,K),u(Ut,K,null),t(K,ki),t(K,Ln),t(K,ji),u(ve,K,null),t(C,Ci),t(C,Me),u(Ft,Me,null),t(Me,Ji),t(Me,Vn),t(C,Pi),t(C,Te),u(Zt,Te,null),t(Te,Ui),t(Te,Hn),t(C,Fi),t(C,xe),u(It,xe,null),t(xe,Zi),t(xe,En),t(C,Ii),t(C,F),u(Wt,F,null),t(F,Wi),t(F,Nn),t(F,zi),t(F,Yn),t(F,Bi),t(F,Rn),t(F,Gi),t(F,Xn),t(F,Li),u(we,F,null),t(F,Vi),u($e,F,null),t(F,Hi),t(F,qn),t(F,Ei),t(F,Dn),t(F,Ni),t(F,An),t(F,Yi),t(F,Qn),t(F,Ri),t(F,Sn),t(C,Xi),t(C,ke),u(zt,ke,null),t(ke,qi),t(ke,On),t(C,Di),t(C,je),u(Bt,je,null),t(je,Ai),t(je,Kn),t(C,Qi),t(C,Ce),u(Gt,Ce,null),t(Ce,Si),t(Ce,er),t(C,Oi),t(C,ee),u(Lt,ee,null),t(ee,Ki),t(ee,tr),t(ee,el),t(ee,or),t(C,tl),t(C,X),u(Vt,X,null),t(X,ol),t(X,nr),t(X,nl),t(X,rr),t(X,rl),t(X,ar),t(C,al),t(C,Je),u(Ht,Je,null),t(Je,sl),t(Je,sr),t(C,il),t(C,Pe),u(Et,Pe,null),t(Pe,ll),t(Pe,ir),t(C,dl),t(C,Ue),u(Nt,Ue,null),t(Ue,cl),t(Ue,lr),t(C,ml),t(C,te),u(Yt,te,null),t(te,pl),t(te,dr),t(te,hl),u(Fe,te,null),t(C,fl),t(C,oe),u(Rt,oe,null),t(oe,ul),t(oe,cr),t(oe,gl),t(oe,mr),t(C,_l),t(C,Ze),u(Xt,Ze,null),t(Ze,bl),t(Ze,pr),t(C,yl),t(C,Ie),u(qt,Ie,null),t(Ie,vl),t(Ie,hr),t(C,Ml),t(C,We),u(Dt,We,null),t(We,Tl),t(We,fr),t(C,xl),t(C,ne),u(At,ne,null),t(ne,wl),t(ne,ur),t(ne,$l),t(ne,gr),t(C,kl),t(C,re),u(Qt,re,null),t(re,jl),t(re,_r),t(re,Cl),t(re,br),t(C,Jl),t(C,ze),u(St,ze,null),t(ze,Pl),t(ze,yr),b(e,ts,c),b(e,vr,c),b(e,os,c),u(Ot,e,c),b(e,ns,c),b(e,Kt,c),b(e,rs,c),b(e,eo,c),b(e,as,c),u(to,e,c),b(e,ss,c),b(e,oo,c),b(e,is,c),b(e,no,c),b(e,ls,c),u(ro,e,c),b(e,ds,c),b(e,ao,c),b(e,cs,c),u(so,e,c),b(e,ms,c),b(e,io,c),b(e,ps,c),u(lo,e,c),b(e,hs,c),b(e,co,c),b(e,fs,c),u(mo,e,c),b(e,us,c),b(e,po,c),b(e,gs,c),u(ho,e,c),b(e,_s,c),b(e,fo,c),b(e,bs,c),u(uo,e,c),b(e,ys,c),b(e,go,c),b(e,vs,c),u(_o,e,c),b(e,Ms,c),b(e,bo,c),b(e,Ts,c),u(yo,e,c),b(e,xs,c),b(e,W,c),u(vo,W,null),t(W,Ul),t(W,Mr),t(W,Fl),t(W,ae),u(Mo,ae,null),t(ae,Zl),t(ae,Tr),t(ae,Il),t(ae,xr),t(W,Wl),t(W,Be),u(To,Be,null),t(Be,zl),t(Be,wr),t(W,Bl),t(W,Ge),u(xo,Ge,null),t(Ge,Gl),t(Ge,$r),t(W,Ll),t(W,Le),u(wo,Le,null),t(Le,Vl),t(Le,kr),t(W,Hl),t(W,Ve),u($o,Ve,null),t(Ve,El),t(Ve,jr),t(W,Nl),t(W,He),u(ko,He,null),t(He,Yl),t(He,Cr),t(W,Rl),t(W,Ee),u(jo,Ee,null),t(Ee,Xl),t(Ee,Jr),t(W,ql),t(W,Ne),u(Co,Ne,null),t(Ne,Dl),t(Ne,Pr),b(e,ws,c),b(e,Jo,c),b(e,$s,c),b(e,x,c),u(Po,x,null),t(x,Al),t(x,Ur),t(x,Ql),t(x,Fr),t(x,Sl),t(x,Zr),t(x,Ol),t(x,Ir),t(x,Kl),t(x,Wr),t(x,ed),t(x,Ye),u(Uo,Ye,null),t(Ye,td),t(Ye,zr),t(x,od),t(x,Re),u(Fo,Re,null),t(Re,nd),t(Re,Br),t(x,rd),t(x,Xe),u(Zo,Xe,null),t(Xe,ad),t(Xe,Gr),t(x,sd),t(x,qe),u(Io,qe,null),t(qe,id),t(qe,Lr),t(x,ld),t(x,E),u(Wo,E,null),t(E,dd),t(E,Vr),t(E,cd),t(E,Hr),t(E,md),t(E,Er),t(E,pd),u(De,E,null),t(x,hd),t(x,Ae),u(zo,Ae,null),t(Ae,fd),t(Ae,Nr),t(x,ud),t(x,Qe),u(Bo,Qe,null),t(Qe,gd),t(Qe,Yr),t(x,_d),t(x,Se),u(Go,Se,null),t(Se,bd),t(Se,Rr),t(x,yd),t(x,Oe),u(Lo,Oe,null),t(Oe,vd),t(Oe,Xr),t(x,Md),t(x,Ke),u(Vo,Ke,null),t(Ke,Td),t(Ke,qr),t(x,xd),t(x,et),u(Ho,et,null),t(et,wd),t(et,Dr),t(x,$d),t(x,tt),u(Eo,tt,null),t(tt,kd),t(tt,Ar),t(x,jd),t(x,ot),u(No,ot,null),t(ot,Cd),t(ot,Qr),t(x,Jd),t(x,nt),u(Yo,nt,null),t(nt,Pd),t(nt,Sr),t(x,Ud),t(x,rt),u(Ro,rt,null),t(rt,Fd),t(rt,Or),t(x,Zd),t(x,se),u(Xo,se,null),t(se,Id),t(se,Kr),t(se,Wd),u(at,se,null),t(x,zd),t(x,ie),u(qo,ie,null),t(ie,Bd),t(ie,ea),t(ie,Gd),u(st,ie,null),t(x,Ld),t(x,le),u(Do,le,null),t(le,Vd),t(le,ta),t(le,Hd),t(le,oa),t(x,Ed),t(x,it),u(Ao,it,null),t(it,Nd),t(it,na),t(x,Yd),t(x,ra),u(Qo,ra,null),t(x,Rd),t(x,lt),u(So,lt,null),t(lt,Xd),t(lt,aa),t(x,qd),t(x,dt),u(Oo,dt,null),t(dt,Dd),t(dt,sa),t(x,Ad),t(x,ct),u(Ko,ct,null),t(ct,Qd),t(ct,ia),t(x,Sd),t(x,mt),u(en,mt,null),t(mt,Od),t(mt,la),t(x,Kd),t(x,pt),u(tn,pt,null),t(pt,ec),t(pt,da),t(x,tc),t(x,ht),u(on,ht,null),t(ht,oc),t(ht,ca),b(e,ks,c),b(e,nn,c),b(e,js,c),u(rn,e,c),b(e,Cs,c),b(e,A,c),u(an,A,null),t(A,nc),t(A,ma),t(A,rc),t(A,ft),u(sn,ft,null),t(ft,ac),t(ft,pa),b(e,Js,c),b(e,ln,c),b(e,Ps,c),b(e,U,c),u(dn,U,null),t(U,sc),t(U,ha),t(U,ic),t(U,fa),t(U,lc),t(U,ua),t(U,dc),t(U,ga),t(U,cc),t(U,ut),u(cn,ut,null),t(ut,mc),t(ut,_a),t(U,pc),t(U,N),u(mn,N,null),t(N,hc),t(N,ba),t(N,fc),t(N,ya),t(N,uc),t(N,va),t(N,gc),u(gt,N,null),t(U,_c),t(U,de),u(pn,de,null),t(de,bc),t(de,Ma),t(de,yc),t(de,Ta),t(U,vc),t(U,ce),u(hn,ce,null),t(ce,Mc),t(ce,xa),t(ce,Tc),u(_t,ce,null),t(U,xc),t(U,me),u(fn,me,null),t(me,wc),t(me,wa),t(me,$c),u(bt,me,null),t(U,kc),t(U,yt),u(un,yt,null),t(yt,jc),t(yt,$a),t(U,Cc),t(U,q),u(gn,q,null),t(q,Jc),t(q,ka),t(q,Pc),t(q,ja),t(q,Uc),u(vt,q,null),t(U,Fc),t(U,D),u(_n,D,null),t(D,Zc),t(D,Ca),t(D,Ic),t(D,Ja),t(D,Wc),u(Mt,D,null),t(U,zc),t(U,pe),u(bn,pe,null),t(pe,Bc),t(pe,Pa),t(pe,Gc),u(Tt,pe,null),b(e,Us,c),b(e,yn,c),b(e,Fs,c),u(vn,e,c),b(e,Zs,c),b(e,Q,c),u(Mn,Q,null),t(Q,Lc),t(Q,Ua),t(Q,Vc),t(Q,he),u(Tn,he,null),t(he,Hc),t(he,Fa),t(he,Ec),u(xt,he,null),b(e,Is,c),u(xn,e,c),b(e,Ws,c),b(e,S,c),u(wn,S,null),t(S,Nc),t(S,Za),t(S,Yc),t(S,Ia),b(e,zs,c),b(e,Oa,c),Bs=!0},p(e,[c]){const J={};c&2&&(J.$$scope={dirty:c,ctx:e}),ve.$set(J);const _e={};c&2&&(_e.$$scope={dirty:c,ctx:e}),we.$set(_e);const $n={};c&2&&($n.$$scope={dirty:c,ctx:e}),$e.$set($n);const kn={};c&2&&(kn.$$scope={dirty:c,ctx:e}),Fe.$set(kn);const jn={};c&2&&(jn.$$scope={dirty:c,ctx:e}),De.$set(jn);const I={};c&2&&(I.$$scope={dirty:c,ctx:e}),at.$set(I);const Cn={};c&2&&(Cn.$$scope={dirty:c,ctx:e}),st.$set(Cn);const Jn={};c&2&&(Jn.$$scope={dirty:c,ctx:e}),gt.$set(Jn);const Pn={};c&2&&(Pn.$$scope={dirty:c,ctx:e}),_t.$set(Pn);const be={};c&2&&(be.$$scope={dirty:c,ctx:e}),bt.$set(be);const O={};c&2&&(O.$$scope={dirty:c,ctx:e}),vt.$set(O);const Un={};c&2&&(Un.$$scope={dirty:c,ctx:e}),Mt.$set(Un);const Fn={};c&2&&(Fn.$$scope={dirty:c,ctx:e}),Tt.$set(Fn);const Zn={};c&2&&(Zn.$$scope={dirty:c,ctx:e}),xt.$set(Zn)},i(e){Bs||(m(w.$$.fragment,e),m(Jt.$$.fragment,e),m(Pt.$$.fragment,e),m(Ut.$$.fragment,e),m(ve.$$.fragment,e),m(Ft.$$.fragment,e),m(Zt.$$.fragment,e),m(It.$$.fragment,e),m(Wt.$$.fragment,e),m(we.$$.fragment,e),m($e.$$.fragment,e),m(zt.$$.fragment,e),m(Bt.$$.fragment,e),m(Gt.$$.fragment,e),m(Lt.$$.fragment,e),m(Vt.$$.fragment,e),m(Ht.$$.fragment,e),m(Et.$$.fragment,e),m(Nt.$$.fragment,e),m(Yt.$$.fragment,e),m(Fe.$$.fragment,e),m(Rt.$$.fragment,e),m(Xt.$$.fragment,e),m(qt.$$.fragment,e),m(Dt.$$.fragment,e),m(At.$$.fragment,e),m(Qt.$$.fragment,e),m(St.$$.fragment,e),m(Ot.$$.fragment,e),m(to.$$.fragment,e),m(ro.$$.fragment,e),m(so.$$.fragment,e),m(lo.$$.fragment,e),m(mo.$$.fragment,e),m(ho.$$.fragment,e),m(uo.$$.fragment,e),m(_o.$$.fragment,e),m(yo.$$.fragment,e),m(vo.$$.fragment,e),m(Mo.$$.fragment,e),m(To.$$.fragment,e),m(xo.$$.fragment,e),m(wo.$$.fragment,e),m($o.$$.fragment,e),m(ko.$$.fragment,e),m(jo.$$.fragment,e),m(Co.$$.fragment,e),m(Po.$$.fragment,e),m(Uo.$$.fragment,e),m(Fo.$$.fragment,e),m(Zo.$$.fragment,e),m(Io.$$.fragment,e),m(Wo.$$.fragment,e),m(De.$$.fragment,e),m(zo.$$.fragment,e),m(Bo.$$.fragment,e),m(Go.$$.fragment,e),m(Lo.$$.fragment,e),m(Vo.$$.fragment,e),m(Ho.$$.fragment,e),m(Eo.$$.fragment,e),m(No.$$.fragment,e),m(Yo.$$.fragment,e),m(Ro.$$.fragment,e),m(Xo.$$.fragment,e),m(at.$$.fragment,e),m(qo.$$.fragment,e),m(st.$$.fragment,e),m(Do.$$.fragment,e),m(Ao.$$.fragment,e),m(Qo.$$.fragment,e),m(So.$$.fragment,e),m(Oo.$$.fragment,e),m(Ko.$$.fragment,e),m(en.$$.fragment,e),m(tn.$$.fragment,e),m(on.$$.fragment,e),m(rn.$$.fragment,e),m(an.$$.fragment,e),m(sn.$$.fragment,e),m(dn.$$.fragment,e),m(cn.$$.fragment,e),m(mn.$$.fragment,e),m(gt.$$.fragment,e),m(pn.$$.fragment,e),m(hn.$$.fragment,e),m(_t.$$.fragment,e),m(fn.$$.fragment,e),m(bt.$$.fragment,e),m(un.$$.fragment,e),m(gn.$$.fragment,e),m(vt.$$.fragment,e),m(_n.$$.fragment,e),m(Mt.$$.fragment,e),m(bn.$$.fragment,e),m(Tt.$$.fragment,e),m(vn.$$.fragment,e),m(Mn.$$.fragment,e),m(Tn.$$.fragment,e),m(xt.$$.fragment,e),m(xn.$$.fragment,e),m(wn.$$.fragment,e),Bs=!0)},o(e){p(w.$$.fragment,e),p(Jt.$$.fragment,e),p(Pt.$$.fragment,e),p(Ut.$$.fragment,e),p(ve.$$.fragment,e),p(Ft.$$.fragment,e),p(Zt.$$.fragment,e),p(It.$$.fragment,e),p(Wt.$$.fragment,e),p(we.$$.fragment,e),p($e.$$.fragment,e),p(zt.$$.fragment,e),p(Bt.$$.fragment,e),p(Gt.$$.fragment,e),p(Lt.$$.fragment,e),p(Vt.$$.fragment,e),p(Ht.$$.fragment,e),p(Et.$$.fragment,e),p(Nt.$$.fragment,e),p(Yt.$$.fragment,e),p(Fe.$$.fragment,e),p(Rt.$$.fragment,e),p(Xt.$$.fragment,e),p(qt.$$.fragment,e),p(Dt.$$.fragment,e),p(At.$$.fragment,e),p(Qt.$$.fragment,e),p(St.$$.fragment,e),p(Ot.$$.fragment,e),p(to.$$.fragment,e),p(ro.$$.fragment,e),p(so.$$.fragment,e),p(lo.$$.fragment,e),p(mo.$$.fragment,e),p(ho.$$.fragment,e),p(uo.$$.fragment,e),p(_o.$$.fragment,e),p(yo.$$.fragment,e),p(vo.$$.fragment,e),p(Mo.$$.fragment,e),p(To.$$.fragment,e),p(xo.$$.fragment,e),p(wo.$$.fragment,e),p($o.$$.fragment,e),p(ko.$$.fragment,e),p(jo.$$.fragment,e),p(Co.$$.fragment,e),p(Po.$$.fragment,e),p(Uo.$$.fragment,e),p(Fo.$$.fragment,e),p(Zo.$$.fragment,e),p(Io.$$.fragment,e),p(Wo.$$.fragment,e),p(De.$$.fragment,e),p(zo.$$.fragment,e),p(Bo.$$.fragment,e),p(Go.$$.fragment,e),p(Lo.$$.fragment,e),p(Vo.$$.fragment,e),p(Ho.$$.fragment,e),p(Eo.$$.fragment,e),p(No.$$.fragment,e),p(Yo.$$.fragment,e),p(Ro.$$.fragment,e),p(Xo.$$.fragment,e),p(at.$$.fragment,e),p(qo.$$.fragment,e),p(st.$$.fragment,e),p(Do.$$.fragment,e),p(Ao.$$.fragment,e),p(Qo.$$.fragment,e),p(So.$$.fragment,e),p(Oo.$$.fragment,e),p(Ko.$$.fragment,e),p(en.$$.fragment,e),p(tn.$$.fragment,e),p(on.$$.fragment,e),p(rn.$$.fragment,e),p(an.$$.fragment,e),p(sn.$$.fragment,e),p(dn.$$.fragment,e),p(cn.$$.fragment,e),p(mn.$$.fragment,e),p(gt.$$.fragment,e),p(pn.$$.fragment,e),p(hn.$$.fragment,e),p(_t.$$.fragment,e),p(fn.$$.fragment,e),p(bt.$$.fragment,e),p(un.$$.fragment,e),p(gn.$$.fragment,e),p(vt.$$.fragment,e),p(_n.$$.fragment,e),p(Mt.$$.fragment,e),p(bn.$$.fragment,e),p(Tt.$$.fragment,e),p(vn.$$.fragment,e),p(Mn.$$.fragment,e),p(Tn.$$.fragment,e),p(xt.$$.fragment,e),p(xn.$$.fragment,e),p(wn.$$.fragment,e),Bs=!1},d(e){e&&(s(k),s(y),s(_),s(i),s(j),s(L),s(R),s(z),s(G),s(jt),s(Ct),s(Ka),s(es),s(C),s(ts),s(vr),s(os),s(ns),s(Kt),s(rs),s(eo),s(as),s(ss),s(oo),s(is),s(no),s(ls),s(ds),s(ao),s(cs),s(ms),s(io),s(ps),s(hs),s(co),s(fs),s(us),s(po),s(gs),s(_s),s(fo),s(bs),s(ys),s(go),s(vs),s(Ms),s(bo),s(Ts),s(xs),s(W),s(ws),s(Jo),s($s),s(x),s(ks),s(nn),s(js),s(Cs),s(A),s(Js),s(ln),s(Ps),s(U),s(Us),s(yn),s(Fs),s(Zs),s(Q),s(Is),s(Ws),s(S),s(zs),s(Oa)),s(d),g(w,e),g(Jt,e),g(Pt),g(Ut),g(ve),g(Ft),g(Zt),g(It),g(Wt),g(we),g($e),g(zt),g(Bt),g(Gt),g(Lt),g(Vt),g(Ht),g(Et),g(Nt),g(Yt),g(Fe),g(Rt),g(Xt),g(qt),g(Dt),g(At),g(Qt),g(St),g(Ot,e),g(to,e),g(ro,e),g(so,e),g(lo,e),g(mo,e),g(ho,e),g(uo,e),g(_o,e),g(yo,e),g(vo),g(Mo),g(To),g(xo),g(wo),g($o),g(ko),g(jo),g(Co),g(Po),g(Uo),g(Fo),g(Zo),g(Io),g(Wo),g(De),g(zo),g(Bo),g(Go),g(Lo),g(Vo),g(Ho),g(Eo),g(No),g(Yo),g(Ro),g(Xo),g(at),g(qo),g(st),g(Do),g(Ao),g(Qo),g(So),g(Oo),g(Ko),g(en),g(tn),g(on),g(rn,e),g(an),g(sn),g(dn),g(cn),g(mn),g(gt),g(pn),g(hn),g(_t),g(fn),g(bt),g(un),g(gn),g(vt),g(_n),g(Mt),g(bn),g(Tt),g(vn,e),g(Mn),g(Tn),g(xt),g(xn,e),g(wn)}}}const Lh='{"title":"模型","local":"模型","sections":[{"title":"PreTrainedModel","local":"transformers.PreTrainedModel","sections":[{"title":"大模型加载","local":"大模型加载","sections":[],"depth":3},{"title":"模型实例化 dtype","local":"模型实例化-dtype","sections":[],"depth":3}],"depth":2},{"title":"ModuleUtilsMixin","local":"transformers.modeling_utils.ModuleUtilsMixin","sections":[],"depth":2},{"title":"TFModelUtilsMixin","local":"transformers.modeling_tf_utils.TFModelUtilsMixin","sections":[],"depth":2},{"title":"推送到 Hub","local":"transformers.utils.PushToHubMixin","sections":[],"depth":2},{"title":"分片检查点","local":"transformers.modeling_utils.load_sharded_checkpoint","sections":[],"depth":2}],"depth":1}';function Vh(P){return dh(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Dh extends ch{constructor(d){super(),mh(this,d,Vh,Gh,lh,{})}}export{Dh as component};
