import{s as Cp,o as Pp,n as L}from"../chunks/scheduler.25b97de1.js";import{S as Up,i as Jp,g as r,s as o,r as m,A as jp,h as a,f as i,c as n,j as y,u as c,x as d,k as v,y as e,a as $,v as p,d as h,t as f,w as g}from"../chunks/index.d9030fc9.js";import{T as Bs}from"../chunks/Tip.baa67368.js";import{D as T}from"../chunks/Docstring.ffac8efa.js";import{C as Y}from"../chunks/CodeBlock.e6cd0d95.js";import{E}from"../chunks/ExampleCodeBlock.22dfe688.js";import{H as wt,E as Fp}from"../chunks/EditOnGithub.91d95064.js";function Zp(j){let l,U="Examples:",_,u,k;return u=new Y({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbCUwQSUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsLmZyb21fcHJldHJhaW5lZCglMjJnb29nbGUtYmVydCUyRmJlcnQtYmFzZS1jYXNlZCUyMiklMEElMEElMjMlMjBQdXNoJTIwdGhlJTIwbW9kZWwlMjB0byUyMHlvdXIlMjBuYW1lc3BhY2UlMjB3aXRoJTIwdGhlJTIwbmFtZSUyMCUyMm15LWZpbmV0dW5lZC1iZXJ0JTIyLiUwQW1vZGVsLnB1c2hfdG9faHViKCUyMm15LWZpbmV0dW5lZC1iZXJ0JTIyKSUwQSUwQSUyMyUyMFB1c2glMjB0aGUlMjBtb2RlbCUyMHRvJTIwYW4lMjBvcmdhbml6YXRpb24lMjB3aXRoJTIwdGhlJTIwbmFtZSUyMCUyMm15LWZpbmV0dW5lZC1iZXJ0JTIyLiUwQW1vZGVsLnB1c2hfdG9faHViKCUyMmh1Z2dpbmdmYWNlJTJGbXktZmluZXR1bmVkLWJlcnQlMjIp",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModel

model = AutoModel.from_pretrained(<span class="hljs-string">&quot;google-bert/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(){l=r("p"),l.textContent=U,_=o(),m(u.$$.fragment)},l(s){l=a(s,"P",{"data-svelte-h":!0}),d(l)!=="svelte-kvfsh7"&&(l.textContent=U),_=n(s),c(u.$$.fragment,s)},m(s,P){$(s,l,P),$(s,_,P),p(u,s,P),k=!0},p:L,i(s){k||(h(u.$$.fragment,s),k=!0)},o(s){f(u.$$.fragment,s),k=!1},d(s){s&&(i(l),i(_)),g(u,s)}}}function Ip(j){let l,U="Examples:",_,u,k;return u=new Y({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbCUwQSUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsLmZyb21fcHJldHJhaW5lZCglMjJnb29nbGUtYmVydCUyRmJlcnQtYmFzZS1jYXNlZCUyMiklMEElMEFtb2RlbC5hZGRfbW9kZWxfdGFncyglNUIlMjJjdXN0b20lMjIlMkMlMjAlMjJjdXN0b20tYmVydCUyMiU1RCklMEElMEElMjMlMjBQdXNoJTIwdGhlJTIwbW9kZWwlMjB0byUyMHlvdXIlMjBuYW1lc3BhY2UlMjB3aXRoJTIwdGhlJTIwbmFtZSUyMCUyMm15LWN1c3RvbS1iZXJ0JTIyLiUwQW1vZGVsLnB1c2hfdG9faHViKCUyMm15LWN1c3RvbS1iZXJ0JTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModel

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

model.add_model_tags([<span class="hljs-string">&quot;custom&quot;</span>, <span class="hljs-string">&quot;custom-bert&quot;</span>])

<span class="hljs-comment"># Push the model to your namespace with the name &quot;my-custom-bert&quot;.</span>
model.push_to_hub(<span class="hljs-string">&quot;my-custom-bert&quot;</span>)`,wrap:!1}}),{c(){l=r("p"),l.textContent=U,_=o(),m(u.$$.fragment)},l(s){l=a(s,"P",{"data-svelte-h":!0}),d(l)!=="svelte-kvfsh7"&&(l.textContent=U),_=n(s),c(u.$$.fragment,s)},m(s,P){$(s,l,P),$(s,_,P),p(u,s,P),k=!0},p:L,i(s){k||(h(u.$$.fragment,s),k=!0)},o(s){f(u.$$.fragment,s),k=!1},d(s){s&&(i(l),i(_)),g(u,s)}}}function Wp(j){let l,U=`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(){l=r("p"),l.innerHTML=U},l(_){l=a(_,"P",{"data-svelte-h":!0}),d(l)!=="svelte-13hahdn"&&(l.innerHTML=U)},m(_,u){$(_,l,u)},p:L,d(_){_&&i(l)}}}function zp(j){let l,U="Examples:",_,u,k;return u=new Y({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJlcnRDb25maWclMkMlMjBCZXJ0TW9kZWwlMEElMEElMjMlMjBEb3dubG9hZCUyMG1vZGVsJTIwYW5kJTIwY29uZmlndXJhdGlvbiUyMGZyb20lMjBodWdnaW5nZmFjZS5jbyUyMGFuZCUyMGNhY2hlLiUwQW1vZGVsJTIwJTNEJTIwQmVydE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJnb29nbGUtYmVydCUyRmJlcnQtYmFzZS11bmNhc2VkJTIyKSUwQSUyMyUyME1vZGVsJTIwd2FzJTIwc2F2ZWQlMjB1c2luZyUyMCpzYXZlX3ByZXRyYWluZWQoJy4lMkZ0ZXN0JTJGc2F2ZWRfbW9kZWwlMkYnKSolMjAoZm9yJTIwZXhhbXBsZSUyMHB1cnBvc2VzJTJDJTIwbm90JTIwcnVubmFibGUpLiUwQW1vZGVsJTIwJTNEJTIwQmVydE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjIuJTJGdGVzdCUyRnNhdmVkX21vZGVsJTJGJTIyKSUwQSUyMyUyMFVwZGF0ZSUyMGNvbmZpZ3VyYXRpb24lMjBkdXJpbmclMjBsb2FkaW5nLiUwQW1vZGVsJTIwJTNEJTIwQmVydE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJnb29nbGUtYmVydCUyRmJlcnQtYmFzZS11bmNhc2VkJTIyJTJDJTIwb3V0cHV0X2F0dGVudGlvbnMlM0RUcnVlKSUwQWFzc2VydCUyMG1vZGVsLmNvbmZpZy5vdXRwdXRfYXR0ZW50aW9ucyUyMCUzRCUzRCUyMFRydWUlMEElMjMlMjBMb2FkaW5nJTIwZnJvbSUyMGElMjBURiUyMGNoZWNrcG9pbnQlMjBmaWxlJTIwaW5zdGVhZCUyMG9mJTIwYSUyMFB5VG9yY2glMjBtb2RlbCUyMChzbG93ZXIlMkMlMjBmb3IlMjBleGFtcGxlJTIwcHVycG9zZXMlMkMlMjBub3QlMjBydW5uYWJsZSkuJTBBY29uZmlnJTIwJTNEJTIwQmVydENvbmZpZy5mcm9tX2pzb25fZmlsZSglMjIuJTJGdGZfbW9kZWwlMkZteV90Zl9tb2RlbF9jb25maWcuanNvbiUyMiklMEFtb2RlbCUyMCUzRCUyMEJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyLiUyRnRmX21vZGVsJTJGbXlfdGZfY2hlY2twb2ludC5ja3B0LmluZGV4JTIyJTJDJTIwZnJvbV90ZiUzRFRydWUlMkMlMjBjb25maWclM0Rjb25maWcpJTBBJTIzJTIwTG9hZGluZyUyMGZyb20lMjBhJTIwRmxheCUyMGNoZWNrcG9pbnQlMjBmaWxlJTIwaW5zdGVhZCUyMG9mJTIwYSUyMFB5VG9yY2glMjBtb2RlbCUyMChzbG93ZXIpJTBBbW9kZWwlMjAlM0QlMjBCZXJ0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmdvb2dsZS1iZXJ0JTJGYmVydC1iYXNlLXVuY2FzZWQlMjIlMkMlMjBmcm9tX2ZsYXglM0RUcnVlKQ==",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;google-bert/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;google-bert/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;google-bert/bert-base-uncased&quot;</span>, from_flax=<span class="hljs-literal">True</span>)`,wrap:!1}}),{c(){l=r("p"),l.textContent=U,_=o(),m(u.$$.fragment)},l(s){l=a(s,"P",{"data-svelte-h":!0}),d(l)!=="svelte-kvfsh7"&&(l.textContent=U),_=n(s),c(u.$$.fragment,s)},m(s,P){$(s,l,P),$(s,_,P),p(u,s,P),k=!0},p:L,i(s){k||(h(u.$$.fragment,s),k=!0)},o(s){f(u.$$.fragment,s),k=!1},d(s){s&&(i(l),i(_)),g(u,s)}}}function Lp(j){let l,U="This API is experimental and may have some slight breaking changes in the next releases.";return{c(){l=r("p"),l.textContent=U},l(_){l=a(_,"P",{"data-svelte-h":!0}),d(l)!=="svelte-15rpg4"&&(l.textContent=U)},m(_,u){$(_,l,u)},p:L,d(_){_&&i(l)}}}function Gp(j){let l,U="Examples:",_,u,k;return u=new Y({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRGQXV0b01vZGVsJTBBJTBBbW9kZWwlMjAlM0QlMjBURkF1dG9Nb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyZ29vZ2xlLWJlcnQlMkZiZXJ0LWJhc2UtY2FzZWQlMjIpJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMG1vZGVsJTIwdG8lMjB5b3VyJTIwbmFtZXNwYWNlJTIwd2l0aCUyMHRoZSUyMG5hbWUlMjAlMjJteS1maW5ldHVuZWQtYmVydCUyMi4lMEFtb2RlbC5wdXNoX3RvX2h1YiglMjJteS1maW5ldHVuZWQtYmVydCUyMiklMEElMEElMjMlMjBQdXNoJTIwdGhlJTIwbW9kZWwlMjB0byUyMGFuJTIwb3JnYW5pemF0aW9uJTIwd2l0aCUyMHRoZSUyMG5hbWUlMjAlMjJteS1maW5ldHVuZWQtYmVydCUyMi4lMEFtb2RlbC5wdXNoX3RvX2h1YiglMjJodWdnaW5nZmFjZSUyRm15LWZpbmV0dW5lZC1iZXJ0JTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TFAutoModel

model = TFAutoModel.from_pretrained(<span class="hljs-string">&quot;google-bert/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(){l=r("p"),l.textContent=U,_=o(),m(u.$$.fragment)},l(s){l=a(s,"P",{"data-svelte-h":!0}),d(l)!=="svelte-kvfsh7"&&(l.textContent=U),_=n(s),c(u.$$.fragment,s)},m(s,P){$(s,l,P),$(s,_,P),p(u,s,P),k=!0},p:L,i(s){k||(h(u.$$.fragment,s),k=!0)},o(s){f(u.$$.fragment,s),k=!1},d(s){s&&(i(l),i(_)),g(u,s)}}}function Bp(j){let l,U="Examples:",_,u,k;return u=new Y({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJlcnRDb25maWclMkMlMjBURkJlcnRNb2RlbCUwQSUwQSUyMyUyMERvd25sb2FkJTIwbW9kZWwlMjBhbmQlMjBjb25maWd1cmF0aW9uJTIwZnJvbSUyMGh1Z2dpbmdmYWNlLmNvJTIwYW5kJTIwY2FjaGUuJTBBbW9kZWwlMjAlM0QlMjBURkJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyZ29vZ2xlLWJlcnQlMkZiZXJ0LWJhc2UtdW5jYXNlZCUyMiklMEElMjMlMjBNb2RlbCUyMHdhcyUyMHNhdmVkJTIwdXNpbmclMjAqc2F2ZV9wcmV0cmFpbmVkKCcuJTJGdGVzdCUyRnNhdmVkX21vZGVsJTJGJykqJTIwKGZvciUyMGV4YW1wbGUlMjBwdXJwb3NlcyUyQyUyMG5vdCUyMHJ1bm5hYmxlKS4lMEFtb2RlbCUyMCUzRCUyMFRGQmVydE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjIuJTJGdGVzdCUyRnNhdmVkX21vZGVsJTJGJTIyKSUwQSUyMyUyMFVwZGF0ZSUyMGNvbmZpZ3VyYXRpb24lMjBkdXJpbmclMjBsb2FkaW5nLiUwQW1vZGVsJTIwJTNEJTIwVEZCZXJ0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmdvb2dsZS1iZXJ0JTJGYmVydC1iYXNlLXVuY2FzZWQlMjIlMkMlMjBvdXRwdXRfYXR0ZW50aW9ucyUzRFRydWUpJTBBYXNzZXJ0JTIwbW9kZWwuY29uZmlnLm91dHB1dF9hdHRlbnRpb25zJTIwJTNEJTNEJTIwVHJ1ZSUwQSUyMyUyMExvYWRpbmclMjBmcm9tJTIwYSUyMFB5dG9yY2glMjBtb2RlbCUyMGZpbGUlMjBpbnN0ZWFkJTIwb2YlMjBhJTIwVGVuc29yRmxvdyUyMGNoZWNrcG9pbnQlMjAoc2xvd2VyJTJDJTIwZm9yJTIwZXhhbXBsZSUyMHB1cnBvc2VzJTJDJTIwbm90JTIwcnVubmFibGUpLiUwQWNvbmZpZyUyMCUzRCUyMEJlcnRDb25maWcuZnJvbV9qc29uX2ZpbGUoJTIyLiUyRnB0X21vZGVsJTJGbXlfcHRfbW9kZWxfY29uZmlnLmpzb24lMjIpJTBBbW9kZWwlMjAlM0QlMjBURkJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyLiUyRnB0X21vZGVsJTJGbXlfcHl0b3JjaF9tb2RlbC5iaW4lMjIlMkMlMjBmcm9tX3B0JTNEVHJ1ZSUyQyUyMGNvbmZpZyUzRGNvbmZpZyk=",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;google-bert/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;google-bert/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(){l=r("p"),l.textContent=U,_=o(),m(u.$$.fragment)},l(s){l=a(s,"P",{"data-svelte-h":!0}),d(l)!=="svelte-kvfsh7"&&(l.textContent=U),_=n(s),c(u.$$.fragment,s)},m(s,P){$(s,l,P),$(s,_,P),p(u,s,P),k=!0},p:L,i(s){k||(h(u.$$.fragment,s),k=!0)},o(s){f(u.$$.fragment,s),k=!1},d(s){s&&(i(l),i(_)),g(u,s)}}}function Vp(j){let l,U="This API is experimental and may have some slight breaking changes in the next releases.";return{c(){l=r("p"),l.textContent=U},l(_){l=a(_,"P",{"data-svelte-h":!0}),d(l)!=="svelte-15rpg4"&&(l.textContent=U)},m(_,u){$(_,l,u)},p:L,d(_){_&&i(l)}}}function Hp(j){let l,U="Examples:",_,u,k;return u=new Y({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEZsYXhBdXRvTW9kZWwlMEElMEFtb2RlbCUyMCUzRCUyMEZsYXhBdXRvTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmdvb2dsZS1iZXJ0JTJGYmVydC1iYXNlLWNhc2VkJTIyKSUwQSUwQSUyMyUyMFB1c2glMjB0aGUlMjBtb2RlbCUyMHRvJTIweW91ciUyMG5hbWVzcGFjZSUyMHdpdGglMjB0aGUlMjBuYW1lJTIwJTIybXktZmluZXR1bmVkLWJlcnQlMjIuJTBBbW9kZWwucHVzaF90b19odWIoJTIybXktZmluZXR1bmVkLWJlcnQlMjIpJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMG1vZGVsJTIwdG8lMjBhbiUyMG9yZ2FuaXphdGlvbiUyMHdpdGglMjB0aGUlMjBuYW1lJTIwJTIybXktZmluZXR1bmVkLWJlcnQlMjIuJTBBbW9kZWwucHVzaF90b19odWIoJTIyaHVnZ2luZ2ZhY2UlMkZteS1maW5ldHVuZWQtYmVydCUyMik=",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> FlaxAutoModel

model = FlaxAutoModel.from_pretrained(<span class="hljs-string">&quot;google-bert/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(){l=r("p"),l.textContent=U,_=o(),m(u.$$.fragment)},l(s){l=a(s,"P",{"data-svelte-h":!0}),d(l)!=="svelte-kvfsh7"&&(l.textContent=U),_=n(s),c(u.$$.fragment,s)},m(s,P){$(s,l,P),$(s,_,P),p(u,s,P),k=!0},p:L,i(s){k||(h(u.$$.fragment,s),k=!0)},o(s){f(u.$$.fragment,s),k=!1},d(s){s&&(i(l),i(_)),g(u,s)}}}function qp(j){let l,U="Examples:",_,u,k;return u=new Y({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJlcnRDb25maWclMkMlMjBGbGF4QmVydE1vZGVsJTBBJTBBJTIzJTIwRG93bmxvYWQlMjBtb2RlbCUyMGFuZCUyMGNvbmZpZ3VyYXRpb24lMjBmcm9tJTIwaHVnZ2luZ2ZhY2UuY28lMjBhbmQlMjBjYWNoZS4lMEFtb2RlbCUyMCUzRCUyMEZsYXhCZXJ0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmdvb2dsZS1iZXJ0JTJGYmVydC1iYXNlLWNhc2VkJTIyKSUwQSUyMyUyME1vZGVsJTIwd2FzJTIwc2F2ZWQlMjB1c2luZyUyMCpzYXZlX3ByZXRyYWluZWQoJy4lMkZ0ZXN0JTJGc2F2ZWRfbW9kZWwlMkYnKSolMjAoZm9yJTIwZXhhbXBsZSUyMHB1cnBvc2VzJTJDJTIwbm90JTIwcnVubmFibGUpLiUwQW1vZGVsJTIwJTNEJTIwRmxheEJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyLiUyRnRlc3QlMkZzYXZlZF9tb2RlbCUyRiUyMiklMEElMjMlMjBMb2FkaW5nJTIwZnJvbSUyMGElMjBQeVRvcmNoJTIwY2hlY2twb2ludCUyMGZpbGUlMjBpbnN0ZWFkJTIwb2YlMjBhJTIwUHlUb3JjaCUyMG1vZGVsJTIwKHNsb3dlciUyQyUyMGZvciUyMGV4YW1wbGUlMjBwdXJwb3NlcyUyQyUyMG5vdCUyMHJ1bm5hYmxlKS4lMEFjb25maWclMjAlM0QlMjBCZXJ0Q29uZmlnLmZyb21fanNvbl9maWxlKCUyMi4lMkZwdF9tb2RlbCUyRmNvbmZpZy5qc29uJTIyKSUwQW1vZGVsJTIwJTNEJTIwRmxheEJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyLiUyRnB0X21vZGVsJTJGcHl0b3JjaF9tb2RlbC5iaW4lMjIlMkMlMjBmcm9tX3B0JTNEVHJ1ZSUyQyUyMGNvbmZpZyUzRGNvbmZpZyk=",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;google-bert/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(){l=r("p"),l.textContent=U,_=o(),m(u.$$.fragment)},l(s){l=a(s,"P",{"data-svelte-h":!0}),d(l)!=="svelte-kvfsh7"&&(l.textContent=U),_=n(s),c(u.$$.fragment,s)},m(s,P){$(s,l,P),$(s,_,P),p(u,s,P),k=!0},p:L,i(s){k||(h(u.$$.fragment,s),k=!0)},o(s){f(u.$$.fragment,s),k=!1},d(s){s&&(i(l),i(_)),g(u,s)}}}function Np(j){let l,U="This API is experimental and may have some slight breaking changes in the next releases.";return{c(){l=r("p"),l.textContent=U},l(_){l=a(_,"P",{"data-svelte-h":!0}),d(l)!=="svelte-15rpg4"&&(l.textContent=U)},m(_,u){$(_,l,u)},p:L,d(_){_&&i(l)}}}function Xp(j){let l,U="Examples:",_,u,k;return u=new Y({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEZsYXhCZXJ0TW9kZWwlMEElMEElMjMlMjBsb2FkJTIwbW9kZWwlMEFtb2RlbCUyMCUzRCUyMEZsYXhCZXJ0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmdvb2dsZS1iZXJ0JTJGYmVydC1iYXNlLWNhc2VkJTIyKSUwQSUyMyUyMEJ5JTIwZGVmYXVsdCUyQyUyMHRoZSUyMG1vZGVsJTIwcGFyYW1ldGVycyUyMHdpbGwlMjBiZSUyMGluJTIwZnAzMiUyMHByZWNpc2lvbiUyQyUyMHRvJTIwY2FzdCUyMHRoZXNlJTIwdG8lMjBiZmxvYXQxNiUyMHByZWNpc2lvbiUwQW1vZGVsLnBhcmFtcyUyMCUzRCUyMG1vZGVsLnRvX2JmMTYobW9kZWwucGFyYW1zKSUwQSUyMyUyMElmJTIweW91JTIwd2FudCUyMGRvbid0JTIwd2FudCUyMHRvJTIwY2FzdCUyMGNlcnRhaW4lMjBwYXJhbWV0ZXJzJTIwKGZvciUyMGV4YW1wbGUlMjBsYXllciUyMG5vcm0lMjBiaWFzJTIwYW5kJTIwc2NhbGUpJTBBJTIzJTIwdGhlbiUyMHBhc3MlMjB0aGUlMjBtYXNrJTIwYXMlMjBmb2xsb3dzJTBBZnJvbSUyMGZsYXglMjBpbXBvcnQlMjB0cmF2ZXJzZV91dGlsJTBBJTBBbW9kZWwlMjAlM0QlMjBGbGF4QmVydE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJnb29nbGUtYmVydCUyRmJlcnQtYmFzZS1jYXNlZCUyMiklMEFmbGF0X3BhcmFtcyUyMCUzRCUyMHRyYXZlcnNlX3V0aWwuZmxhdHRlbl9kaWN0KG1vZGVsLnBhcmFtcyklMEFtYXNrJTIwJTNEJTIwJTdCJTBBJTIwJTIwJTIwJTIwcGF0aCUzQSUyMChwYXRoJTVCLTIlNUQlMjAhJTNEJTIwKCUyMkxheWVyTm9ybSUyMiUyQyUyMCUyMmJpYXMlMjIpJTIwYW5kJTIwcGF0aCU1Qi0yJTNBJTVEJTIwISUzRCUyMCglMjJMYXllck5vcm0lMjIlMkMlMjAlMjJzY2FsZSUyMikpJTBBJTIwJTIwJTIwJTIwZm9yJTIwcGF0aCUyMGluJTIwZmxhdF9wYXJhbXMlMEElN0QlMEFtYXNrJTIwJTNEJTIwdHJhdmVyc2VfdXRpbC51bmZsYXR0ZW5fZGljdChtYXNrKSUwQW1vZGVsLnBhcmFtcyUyMCUzRCUyMG1vZGVsLnRvX2JmMTYobW9kZWwucGFyYW1zJTJDJTIwbWFzayk=",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;google-bert/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;google-bert/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(){l=r("p"),l.textContent=U,_=o(),m(u.$$.fragment)},l(s){l=a(s,"P",{"data-svelte-h":!0}),d(l)!=="svelte-kvfsh7"&&(l.textContent=U),_=n(s),c(u.$$.fragment,s)},m(s,P){$(s,l,P),$(s,_,P),p(u,s,P),k=!0},p:L,i(s){k||(h(u.$$.fragment,s),k=!0)},o(s){f(u.$$.fragment,s),k=!1},d(s){s&&(i(l),i(_)),g(u,s)}}}function Dp(j){let l,U="Examples:",_,u,k;return u=new Y({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEZsYXhCZXJ0TW9kZWwlMEElMEElMjMlMjBsb2FkJTIwbW9kZWwlMEFtb2RlbCUyMCUzRCUyMEZsYXhCZXJ0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmdvb2dsZS1iZXJ0JTJGYmVydC1iYXNlLWNhc2VkJTIyKSUwQSUyMyUyMEJ5JTIwZGVmYXVsdCUyQyUyMHRoZSUyMG1vZGVsJTIwcGFyYW1zJTIwd2lsbCUyMGJlJTIwaW4lMjBmcDMyJTJDJTIwdG8lMjBjYXN0JTIwdGhlc2UlMjB0byUyMGZsb2F0MTYlMEFtb2RlbC5wYXJhbXMlMjAlM0QlMjBtb2RlbC50b19mcDE2KG1vZGVsLnBhcmFtcyklMEElMjMlMjBJZiUyMHlvdSUyMHdhbnQlMjBkb24ndCUyMHdhbnQlMjB0byUyMGNhc3QlMjBjZXJ0YWluJTIwcGFyYW1ldGVycyUyMChmb3IlMjBleGFtcGxlJTIwbGF5ZXIlMjBub3JtJTIwYmlhcyUyMGFuZCUyMHNjYWxlKSUwQSUyMyUyMHRoZW4lMjBwYXNzJTIwdGhlJTIwbWFzayUyMGFzJTIwZm9sbG93cyUwQWZyb20lMjBmbGF4JTIwaW1wb3J0JTIwdHJhdmVyc2VfdXRpbCUwQSUwQW1vZGVsJTIwJTNEJTIwRmxheEJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyZ29vZ2xlLWJlcnQlMkZiZXJ0LWJhc2UtY2FzZWQlMjIpJTBBZmxhdF9wYXJhbXMlMjAlM0QlMjB0cmF2ZXJzZV91dGlsLmZsYXR0ZW5fZGljdChtb2RlbC5wYXJhbXMpJTBBbWFzayUyMCUzRCUyMCU3QiUwQSUyMCUyMCUyMCUyMHBhdGglM0ElMjAocGF0aCU1Qi0yJTVEJTIwISUzRCUyMCglMjJMYXllck5vcm0lMjIlMkMlMjAlMjJiaWFzJTIyKSUyMGFuZCUyMHBhdGglNUItMiUzQSU1RCUyMCElM0QlMjAoJTIyTGF5ZXJOb3JtJTIyJTJDJTIwJTIyc2NhbGUlMjIpKSUwQSUyMCUyMCUyMCUyMGZvciUyMHBhdGglMjBpbiUyMGZsYXRfcGFyYW1zJTBBJTdEJTBBbWFzayUyMCUzRCUyMHRyYXZlcnNlX3V0aWwudW5mbGF0dGVuX2RpY3QobWFzayklMEFtb2RlbC5wYXJhbXMlMjAlM0QlMjBtb2RlbC50b19mcDE2KG1vZGVsLnBhcmFtcyUyQyUyMG1hc2sp",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;google-bert/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;google-bert/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(){l=r("p"),l.textContent=U,_=o(),m(u.$$.fragment)},l(s){l=a(s,"P",{"data-svelte-h":!0}),d(l)!=="svelte-kvfsh7"&&(l.textContent=U),_=n(s),c(u.$$.fragment,s)},m(s,P){$(s,l,P),$(s,_,P),p(u,s,P),k=!0},p:L,i(s){k||(h(u.$$.fragment,s),k=!0)},o(s){f(u.$$.fragment,s),k=!1},d(s){s&&(i(l),i(_)),g(u,s)}}}function Rp(j){let l,U="Examples:",_,u,k;return u=new Y({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEZsYXhCZXJ0TW9kZWwlMEElMEElMjMlMjBEb3dubG9hZCUyMG1vZGVsJTIwYW5kJTIwY29uZmlndXJhdGlvbiUyMGZyb20lMjBodWdnaW5nZmFjZS5jbyUwQW1vZGVsJTIwJTNEJTIwRmxheEJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyZ29vZ2xlLWJlcnQlMkZiZXJ0LWJhc2UtY2FzZWQlMjIpJTBBJTIzJTIwQnklMjBkZWZhdWx0JTJDJTIwdGhlJTIwbW9kZWwlMjBwYXJhbXMlMjB3aWxsJTIwYmUlMjBpbiUyMGZwMzIlMkMlMjB0byUyMGlsbHVzdHJhdGUlMjB0aGUlMjB1c2UlMjBvZiUyMHRoaXMlMjBtZXRob2QlMkMlMEElMjMlMjB3ZSdsbCUyMGZpcnN0JTIwY2FzdCUyMHRvJTIwZnAxNiUyMGFuZCUyMGJhY2slMjB0byUyMGZwMzIlMEFtb2RlbC5wYXJhbXMlMjAlM0QlMjBtb2RlbC50b19mMTYobW9kZWwucGFyYW1zKSUwQSUyMyUyMG5vdyUyMGNhc3QlMjBiYWNrJTIwdG8lMjBmcDMyJTBBbW9kZWwucGFyYW1zJTIwJTNEJTIwbW9kZWwudG9fZnAzMihtb2RlbC5wYXJhbXMp",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;google-bert/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(){l=r("p"),l.textContent=U,_=o(),m(u.$$.fragment)},l(s){l=a(s,"P",{"data-svelte-h":!0}),d(l)!=="svelte-kvfsh7"&&(l.textContent=U),_=n(s),c(u.$$.fragment,s)},m(s,P){$(s,l,P),$(s,_,P),p(u,s,P),k=!0},p:L,i(s){k||(h(u.$$.fragment,s),k=!0)},o(s){f(u.$$.fragment,s),k=!1},d(s){s&&(i(l),i(_)),g(u,s)}}}function Ep(j){let l,U="Examples:",_,u,k;return u=new Y({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMCU3Qm9iamVjdF9jbGFzcyU3RCUwQSUwQSU3Qm9iamVjdCU3RCUyMCUzRCUyMCU3Qm9iamVjdF9jbGFzcyU3RC5mcm9tX3ByZXRyYWluZWQoJTIyZ29vZ2xlLWJlcnQlMkZiZXJ0LWJhc2UtY2FzZWQlMjIpJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMCU3Qm9iamVjdCU3RCUyMHRvJTIweW91ciUyMG5hbWVzcGFjZSUyMHdpdGglMjB0aGUlMjBuYW1lJTIwJTIybXktZmluZXR1bmVkLWJlcnQlMjIuJTBBJTdCb2JqZWN0JTdELnB1c2hfdG9faHViKCUyMm15LWZpbmV0dW5lZC1iZXJ0JTIyKSUwQSUwQSUyMyUyMFB1c2glMjB0aGUlMjAlN0JvYmplY3QlN0QlMjB0byUyMGFuJTIwb3JnYW5pemF0aW9uJTIwd2l0aCUyMHRoZSUyMG5hbWUlMjAlMjJteS1maW5ldHVuZWQtYmVydCUyMi4lMEElN0JvYmplY3QlN0QucHVzaF90b19odWIoJTIyaHVnZ2luZ2ZhY2UlMkZteS1maW5ldHVuZWQtYmVydCUyMik=",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;google-bert/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(){l=r("p"),l.textContent=U,_=o(),m(u.$$.fragment)},l(s){l=a(s,"P",{"data-svelte-h":!0}),d(l)!=="svelte-kvfsh7"&&(l.textContent=U),_=n(s),c(u.$$.fragment,s)},m(s,P){$(s,l,P),$(s,_,P),p(u,s,P),k=!0},p:L,i(s){k||(h(u.$$.fragment,s),k=!0)},o(s){f(u.$$.fragment,s),k=!1},d(s){s&&(i(l),i(_)),g(u,s)}}}function Yp(j){let l,U,_,u,k,s,P,bm=`The base classes <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>, <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>, and
<a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel">FlaxPreTrainedModel</a> implement the common methods for loading/saving a model either from a local
file or directory, or from a pretrained model configuration provided by the library (downloaded from HuggingFace’s AWS
S3 repository).`,La,$t,ym=`<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> and <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> also implement a few methods which
are common among all the models to:`,Ga,kt,vm="<li>resize the input token embeddings when new tokens are added to the vocabulary</li> <li>prune the attention heads of the model.</li>",Ba,Ct,Tm=`The other methods that are common to each model are defined in <a href="/docs/transformers/main/en/main_classes/model#transformers.modeling_utils.ModuleUtilsMixin">ModuleUtilsMixin</a>
(for the PyTorch models) and <code>~modeling_tf_utils.TFModuleUtilsMixin</code> (for the TensorFlow models) or
for text generation, <a href="/docs/transformers/main/en/main_classes/text_generation#transformers.GenerationMixin">GenerationMixin</a> (for the PyTorch models),
<a href="/docs/transformers/main/en/main_classes/text_generation#transformers.TFGenerationMixin">TFGenerationMixin</a> (for the TensorFlow models) and
<a href="/docs/transformers/main/en/main_classes/text_generation#transformers.FlaxGenerationMixin">FlaxGenerationMixin</a> (for the Flax/JAX models).`,Va,Pt,Ha,M,Ut,Vs,gn,Mm="Base class for all models.",Hs,un,xm=`<a href="/docs/transformers/main/en/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:`,qs,_n,wm="<li>resize the input embeddings,</li> <li>prune heads in the self-attention heads.</li>",Ns,bn,$m="Class attributes (overridden by derived classes):",Xs,yn,km=`<li><p><strong>config_class</strong> (<a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>) — A subclass of <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> 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/en/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>`,Ds,Q,Jt,Rs,vn,Cm="Upload the model file to the 🤗 Model Hub.",Es,_e,Ys,S,jt,Qs,Tn,Pm=`Add custom tags into the model that gets pushed to the Hugging Face Hub. Will
not overwrite existing tags in the model.`,Ss,be,As,ye,Ft,Os,Mn,Um="Returns whether this model can generate sequences with <code>.generate()</code> from the <code>GenerationMixin</code>.",Ks,ve,Zt,ei,xn,Jm=`Potentially dequantize the model in case it has been quantized by a quantization method that support
dequantization.`,ti,Te,It,oi,wn,jm="Removes the <code>_require_grads_hook</code>.",ni,Me,Wt,ri,$n,Fm=`Enables the gradients for the input embeddings. This is useful for fine-tuning adapter weights while keeping
the model weights fixed.`,ai,F,zt,si,kn,Zm="Instantiate a pretrained pytorch model from a pre-trained model configuration.",ii,Cn,Im=`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>.`,di,Pn,Wm=`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.`,li,Un,zm=`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.`,mi,Jn,Lm=`If model weights are the same precision as the base model (and is a supported model), weights will be lazily loaded
in using the <code>meta</code> device and brought into memory once an input is passed through that layer regardless of
<code>low_cpu_mem_usage</code>.`,ci,xe,pi,we,hi,jn,Gm="<li><code>low_cpu_mem_usage</code> algorithm:</li>",fi,Fn,Bm="This is an experimental function that loads the model using ~1x model size CPU memory",gi,Zn,Vm="Here is how it works:",ui,In,Hm=`<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>`,_i,Wn,qm="Currently, it can’t handle deepspeed ZeRO stage 3 and ignores loading errors",bi,$e,Lt,yi,zn,Nm=`Return a <code>torch.compile</code>‘d version of <code>self.__call__</code>. This is useful to dynamically choose between
non-compiled/compiled <code>forward</code> during inference, especially to switch between prefill (where we don’t
want to use compiled version to avoid recomputing the graph with new shapes) and iterative decoding
(where we want the speed-ups of compiled version with static shapes).`,vi,ke,Gt,Ti,Ln,Xm="Returns the model’s input embeddings.",Mi,Ce,Bt,xi,Gn,Dm=`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>`,wi,Pe,Vt,$i,Bn,Rm="Returns the model’s output embeddings.",ki,A,Ht,Ci,Vn,Em="Deactivates gradient checkpointing for the current model.",Pi,Hn,Ym=`Note that in other frameworks this feature can be referred to as “activation checkpointing” or “checkpoint
activations”.`,Ui,V,qt,Ji,qn,Qm="Activates gradient checkpointing for the current model.",ji,Nn,Sm=`Note that in other frameworks this feature can be referred to as “activation checkpointing” or “checkpoint
activations”.`,Fi,Xn,Am=`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>`,Zi,Ue,Nt,Ii,Dn,Om=`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>.`,Wi,Je,Xt,zi,Rn,Km=`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).`,Li,je,Dt,Gi,En,ec="Prunes heads of the base model.",Bi,O,Rt,Vi,Yn,tc=`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.`,Hi,Fe,qi,K,Et,Ni,Qn,oc="Resizes input token embeddings matrix of the model if <code>new_num_tokens != config.vocab_size</code>.",Xi,Sn,nc="Takes care of tying weights embeddings afterwards if the model class has a <code>tie_weights()</code> method.",Di,Ze,Yt,Ri,An,rc=`Reverts the transformation from <a href="/docs/transformers/main/en/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.`,Ei,Ie,Qt,Yi,On,ac=`Save a model and its configuration file to a directory, so that it can be re-loaded using the
<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> class method.`,Qi,We,St,Si,Kn,sc="Set model’s input embeddings.",Ai,ee,At,Oi,er,ic=`Tensor parallelize the model across the given device mesh. This function is a helper to be called after the model
was already loaded in memory, note however that this means that each process will first initialize the whole model,
then parallelize it accross devices. Thus there is a huge waste of GPU memory, and this can lead to OOM at loading time.`,Ki,tr,dc=`Calling <code>from_pretrained(..., tp_plan=&quot;auto&quot;)</code> is prefered, and will parallelize module-by-module during initialization,
so that the expected per-device memory spike at loading time is not larger than the final model size on each device.`,ed,te,Ot,td,or,lc="Tie the weights between the input embeddings and the output embeddings.",od,nr,mc=`If the <code>torchscript</code> flag is set in the configuration, can’t handle parameter sharing so we are cloning the
weights instead.`,nd,oe,Kt,rd,rr,cc=`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.`,ad,ar,pc=`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>.`,sd,ze,eo,id,sr,hc="Shows a one-time warning if the input_ids appear to contain padding and no attention mask was given.",qa,to,fc=`Custom models should also include a <code>_supports_assign_param_buffer</code>, which determines if superfast init can apply
on the particular model. Signs that your model needs this are if <code>test_save_and_load_from_pretrained</code> fails. If so,
set this to <code>False</code>.`,Na,oo,Xa,W,no,dd,ir,gc="A few utilities for <code>torch.nn.Modules</code>, to be used as a mixin.",ld,ne,ro,md,dr,uc="Add a memory hook before and after each sub-module forward pass to record increase in memory consumption.",cd,lr,_c=`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>.`,pd,Le,ao,hd,mr,bc="Helper function to estimate the total number of tokens from the model inputs.",fd,Ge,so,gd,cr,yc=`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.`,ud,Be,io,_d,pr,vc="Makes broadcastable attention and causal masks so that future and masked tokens are ignored.",bd,Ve,lo,yd,hr,Tc="Prepare the head mask if needed.",vd,He,mo,Td,fr,Mc="Invert an attention mask (e.g., switches 0. and 1.).",Md,qe,co,xd,gr,xc="Get number of (optionally, trainable or non-embeddings) parameters in the module.",wd,Ne,po,$d,ur,wc='Reset the <code>mem_rss_diff</code> attribute of each module (see <a href="/docs/transformers/main/en/main_classes/model#transformers.modeling_utils.ModuleUtilsMixin.add_memory_hooks">add_memory_hooks()</a>).',Da,ho,Ra,x,fo,kd,_r,$c="Base class for all TF models.",Cd,br,kc=`<a href="/docs/transformers/main/en/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:`,Pd,yr,Cc="<li>resize the input embeddings,</li> <li>prune heads in the self-attention heads.</li>",Ud,vr,Pc="Class attributes (overridden by derived classes):",Jd,Tr,Uc=`<li><strong>config_class</strong> (<a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>) — A subclass of <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> 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>`,jd,re,go,Fd,Mr,Jc="Upload the model files to the 🤗 Model Hub while synchronizing a local clone of the repo in <code>repo_path_or_name</code>.",Zd,Xe,Id,De,uo,Wd,xr,jc="Returns whether this model can generate sequences with <code>.generate()</code>.",zd,Re,_o,Ld,wr,Fc=`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.`,Gd,Ee,bo,Bd,$r,Zc="Creates a draft of a model card using the information available to the <code>Trainer</code>.",Vd,G,yo,Hd,kr,Ic="Instantiate a pretrained TF 2.0 model from a pre-trained model configuration.",qd,Cr,Wc=`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.`,Nd,Pr,zc=`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.`,Xd,Ye,Dd,Qe,vo,Rd,Ur,Lc="Dict of bias attached to an LM head. The key represents the name of the bias attribute.",Ed,Se,To,Yd,Jr,Gc="Prepare the head mask if needed.",Qd,Ae,Mo,Sd,jr,Bc="Returns the model’s input embeddings layer.",Ad,Oe,xo,Od,Fr,Vc="The LM Head layer. This method must be overwritten by all the models that have a lm head.",Kd,Ke,wo,el,Zr,Hc="Returns the model’s output embeddings",tl,et,$o,ol,Ir,qc=`Get the layer that handles a bias attribute in case the model has an LM head with weights tied to the
embeddings`,nl,tt,ko,rl,Wr,Nc="Get the concatenated _prefix name of the bias from the model name to the parent layer",al,ot,Co,sl,zr,Xc=`Wraps a HuggingFace <a href="https://huggingface.co/docs/datasets/main/en/package_reference/main_classes#datasets.Dataset" rel="nofollow">Dataset</a> 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.`,il,nt,Po,dl,Lr,Dc="Prunes heads of the base model.",ll,ae,Uo,ml,Gr,Rc=`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.`,cl,rt,pl,se,Jo,hl,Br,Ec="Resizes input token embeddings matrix of the model if <code>new_num_tokens != config.vocab_size</code>.",fl,Vr,Yc="Takes care of tying weights embeddings afterwards if the model class has a <code>tie_weights()</code> method.",gl,at,jo,ul,Hr,Qc=`Save a model and its configuration file to a directory, so that it can be re-loaded using the
<a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">from_pretrained()</a> class method.`,_l,qr,Fo,bl,st,Zo,yl,Nr,Sc="Prepare the output of the saved model. Can be overridden if specific serving modifications are required.",vl,it,Io,Tl,Xr,Ac="Set all the bias in the LM head.",Ml,dt,Wo,xl,Dr,Oc="Set model’s input embeddings",wl,lt,zo,$l,Rr,Kc="Set model’s output embeddings",kl,mt,Lo,Cl,Er,ep=`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.`,Pl,ct,Go,Ul,Yr,tp=`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.`,Ea,Bo,Ya,N,Vo,Jl,Qr,op="A few utilities for <code>keras.Model</code>, to be used as a mixin.",jl,pt,Ho,Fl,Sr,np="Get the number of (optionally, trainable) parameters in the model.",Qa,qo,Sa,J,No,Zl,Ar,rp="Base class for all models.",Il,Or,ap=`<a href="/docs/transformers/main/en/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.`,Wl,Kr,sp="Class attributes (overridden by derived classes):",zl,ea,ip=`<li><strong>config_class</strong> (<a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>) — A subclass of <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> 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>`,Ll,ie,Xo,Gl,ta,dp="Upload the model checkpoint to the 🤗 Model Hub.",Bl,ht,Vl,ft,Do,Hl,oa,lp=`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>.`,ql,B,Ro,Nl,na,mp="Instantiate a pretrained flax model from a pre-trained model configuration.",Xl,ra,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.`,Dl,aa,pp=`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.`,Rl,gt,El,de,Eo,Yl,sa,hp=`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.`,Ql,ia,fp=`This load is performed efficiently: each checkpoint shard is loaded one by one in RAM and deleted after being
loaded in the model.`,Sl,le,Yo,Al,da,gp=`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.`,Ol,ut,Kl,_t,Qo,em,la,up=`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/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained)</code> class method`,tm,H,So,om,ma,_p=`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.`,nm,ca,bp=`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.`,rm,bt,am,q,Ao,sm,pa,yp=`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.`,im,ha,vp=`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.`,dm,yt,lm,me,Oo,mm,fa,Tp=`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.`,cm,vt,Aa,Ko,Oa,X,en,pm,ga,Mp="A Mixin containing the functionality to push a model or tokenizer to the hub.",hm,ce,tn,fm,ua,xp="Upload the {object_files} to the 🤗 Model Hub.",gm,Tt,Ka,on,es,D,nn,um,_a,wp=`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.`,_m,ba,$p=`This load is performed efficiently: each checkpoint shard is loaded one by one in RAM and deleted after being
loaded in the model.`,ts,rn,os,za,ns;return k=new wt({props:{title:"Models",local:"models",headingTag:"h1"}}),Pt=new wt({props:{title:"PreTrainedModel",local:"transformers.PreTrainedModel",headingTag:"h2"}}),Ut=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#L1286"}}),Jt=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:"tags",val:": typing.Optional[typing.List[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 to make the repo private. If <code>None</code> (default), the repo will be public unless the organization&#x2019;s default is private. This value is ignored if the repo already exists.`,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"},{anchor:"transformers.PreTrainedModel.push_to_hub.tags",description:`<strong>tags</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of tags to push on the Hub.`,name:"tags"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py#L767"}}),_e=new E({props:{anchor:"transformers.PreTrainedModel.push_to_hub.example",$$slots:{default:[Zp]},$$scope:{ctx:j}}}),jt=new T({props:{name:"add_model_tags",anchor:"transformers.PreTrainedModel.add_model_tags",parameters:[{name:"tags",val:": typing.Union[typing.List[str], str]"}],parametersDescription:[{anchor:"transformers.PreTrainedModel.add_model_tags.tags",description:`<strong>tags</strong> (<code>Union[List[str], str]</code>) &#x2014;
The desired tags to inject in the model`,name:"tags"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1458"}}),be=new E({props:{anchor:"transformers.PreTrainedModel.add_model_tags.example",$$slots:{default:[Ip]},$$scope:{ctx:j}}}),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#L1687",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:"dequantize",anchor:"transformers.PreTrainedModel.dequantize",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1440"}}),It=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#L1887"}}),Wt=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#L1876"}}),zt=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:": typing.Optional[bool] = None"},{name:"weights_only",val:": bool = True"},{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.</li>
<li>A path to a <em>directory</em> containing model weights saved using
<a href="/docs/transformers/main/en/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 <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>,</li>
<li>a string or path valid as input to <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig.from_pretrained">from_pretrained()</a>.</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/en/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/en/main_classes/model#transformers.PreTrainedModel.save_pretrained">save_pretrained()</a> and
<a href="/docs/transformers/main/en/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> &#x2014;
Deprecated and ignored. All downloads are now resumed by default when possible.
Will be removed in v5 of Transformers.`,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 <code>revision=&quot;refs/pr/&lt;pr_number&gt;&quot;</code>.</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,"},{anchor:"transformers.PreTrainedModel.from_pretrained.attn_implementation",description:`<strong>attn_implementation</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The attention implementation to use in the model (if relevant). Can be any of <code>&quot;eager&quot;</code> (manual implementation of the attention), <code>&quot;sdpa&quot;</code> (using <a href="https://pytorch.org/docs/master/generated/torch.nn.functional.scaled_dot_product_attention.html" rel="nofollow"><code>F.scaled_dot_product_attention</code></a>), or <code>&quot;flash_attention_2&quot;</code> (using <a href="https://github.com/Dao-AILab/flash-attention" rel="nofollow">Dao-AILab/flash-attention</a>). By default, if available, SDPA will be used for torch&gt;=2.1.1. The default is otherwise the manual <code>&quot;eager&quot;</code> implementation.`,name:"attn_implementation"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L3223",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 not to use more than 1x model size in CPU memory (including peak memory) while loading the model.
Generally should be combined with a <code>device_map</code> (such as <code>&quot;auto&quot;</code>) for best results.
This is an experimental feature and a subject to change at any moment.</p>

If the model weights are in the same precision as the model loaded in, \`low_cpu_mem_usage\` (without
\`device_map\`) is redundant and will not provide any benefit in regards to CPU memory usage. However,
this should still be enabled if you are passing in a \`device_map\`.`,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>
<li>
<p>A string that is a valid <code>torch.dtype</code>. E.g. &#x201C;float32&#x201D; loads the model in <code>torch.float32</code>, &#x201C;float16&#x201D; loads in <code>torch.float16</code> etc.</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.offload_buffers",description:`<strong>offload_buffers</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to offload the buffers with the model parameters.`,name:"offload_buffers"},{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). There may be other quantization-related kwargs, including <code>load_in_4bit</code> and
<code>load_in_8bit</code>, which are parsed by QuantizationConfigParser. Supported only for bitsandbytes
quantizations and not preferred. consider inserting all such arguments into quantization_config
instead.`,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.weights_only",description:`<strong>weights_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Indicates whether unpickler should be restricted to loading only tensors, primitive types,
dictionaries and any types added via torch.serialization.add_safe_globals().
When set to False, we can load wrapper tensor subclass weights.`,name:"weights_only"},{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 (<a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig.from_pretrained">from_pretrained()</a>). 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"}]}]}}),xe=new Bs({props:{$$slots:{default:[Wp]},$$scope:{ctx:j}}}),we=new E({props:{anchor:"transformers.PreTrainedModel.from_pretrained.example",$$slots:{default:[zp]},$$scope:{ctx:j}}}),Lt=new T({props:{name:"get_compiled_call",anchor:"transformers.PreTrainedModel.get_compiled_call",parameters:[{name:"compile_config",val:": CompileConfig"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L5316"}}),Gt=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#L1893",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#L3126"}}),Vt=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#L1919",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>
`}}),Ht=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#L2676"}}),qt=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#L2612"}}),Nt=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#L2578"}}),Xt=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#L1426"}}),Dt=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#L2595"}}),Rt=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#L5122"}}),Fe=new Bs({props:{warning:!0,$$slots:{default:[Lp]},$$scope:{ctx:j}}}),Et=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"},{name:"mean_resizing",val:": bool = True"}],parametersDescription:[{anchor:"transformers.PreTrainedModel.resize_token_embeddings.new_num_tokens",description:`<strong>new_num_tokens</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The new number of 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"},{anchor:"transformers.PreTrainedModel.resize_token_embeddings.mean_resizing",description:`<strong>mean_resizing</strong> (<code>bool</code>) &#x2014;
Whether to initialize the added embeddings from a multivariate normal distribution that has old embeddings&#x2019; mean and
covariance or to initialize them with a normal distribution that has a mean of zero and std equals <code>config.initializer_range</code>.</p>
<p>Setting <code>mean_resizing</code> to <code>True</code> is useful when increasing the size of the embeddings of causal language models,
where the generated tokens&#x2019; probabilities won&#x2019;t be affected by the added embeddings because initializing the new embeddings with the
old embeddings&#x2019; mean will reduce the kl-divergence between the next token probability before and after adding the new embeddings.
Refer to this article for more information: <a href="https://nlp.stanford.edu/~johnhew/vocab-expansion.html" rel="nofollow">https://nlp.stanford.edu/~johnhew/vocab-expansion.html</a>`,name:"mean_resizing"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L2112",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>
`}}),Yt=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#L5176",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/en/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 0x7f9627d60280>"},{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/en/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#L2709"}}),St=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#L1906"}}),At=new T({props:{name:"tensor_parallel",anchor:"transformers.PreTrainedModel.tensor_parallel",parameters:[{name:"device_mesh",val:""}],parametersDescription:[{anchor:"transformers.PreTrainedModel.tensor_parallel.device_mesh",description:`<strong>device_mesh</strong> (<code>torch.distributed.DeviceMesh</code>) &#x2014;
The device mesh to use for tensor parallelism.`,name:"device_mesh"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L5245"}}),Ot=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#L1946"}}),Kt=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#L5148",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/en/main_classes/model#transformers.PreTrainedModel"
>PreTrainedModel</a></p>
`}}),eo=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#L5198"}}),oo=new wt({props:{title:"ModuleUtilsMixin",local:"transformers.modeling_utils.ModuleUtilsMixin",headingTag:"h2"}}),no=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#L974"}}),ro=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#L1005"}}),ao=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#L1237",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>
`}}),so=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#L1258",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>
`}}),io=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#L1093",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>
`}}),lo=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#L1145",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>
`}}),mo=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#L1041",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>
`}}),co=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#L1183",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>
`}}),po=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#L1017"}}),ho=new wt({props:{title:"TFPreTrainedModel",local:"transformers.TFPreTrainedModel",headingTag:"h2"}}),fo=new T({props:{name:"class transformers.TFPreTrainedModel",anchor:"transformers.TFPreTrainedModel",parameters:[{name:"config",val:""},{name:"*inputs",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1129"}}),go=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 to make the repo private. If <code>None</code> (default), the repo will be public unless the organization&#x2019;s default is private. This value is ignored if the repo already exists.`,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#L3137"}}),Xe=new E({props:{anchor:"transformers.TFPreTrainedModel.push_to_hub.example",$$slots:{default:[Gp]},$$scope:{ctx:j}}}),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#L1385",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>
`}}),_o=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#L1531"}}),bo=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#L1826"}}),yo=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:"use_safetensors",val:": bool = None"},{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.</li>
<li>A path to a <em>directory</em> containing model weights saved using
<a href="/docs/transformers/main/en/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 <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>,</li>
<li>a string valid as input to <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig.from_pretrained">from_pretrained()</a>.</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/en/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> &#x2014;
Deprecated and ignored. All downloads are now resumed by default when possible.
Will be removed in v5 of Transformers.`,name:"resume_download"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.proxies",description:`<strong>proxies</strong> &#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:"proxies"},{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#L2541"}}),Ye=new E({props:{anchor:"transformers.TFPreTrainedModel.from_pretrained.example",$$slots:{default:[Bp]},$$scope:{ctx:j}}}),vo=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#L1966",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>
`}}),To=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#L1269",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>
`}}),Mo=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#L1399",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>
`}}),xo=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#L1999",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>keras.layers.Layer</code></p>
`}}),wo=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#L1906",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>
`}}),$o=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#L1943",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>keras.layers.Layer</code></p>
`}}),ko=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#L1956",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>
`}}),Co=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>, <em>optional</em>, 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> (<a href="/docs/transformers/main/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase">PreTrainedTokenizerBase</a>, <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#L1426",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>
`}}),Po=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#L2346"}}),Uo=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#L3246"}}),rt=new Bs({props:{warning:!0,$$slots:{default:[Vp]},$$scope:{ctx:j}}}),Jo=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#L2008",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>keras.layers.Embedding</code></p>
`}}),jo=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] = '5GB'"},{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/en/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#L2358"}}),Fo=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"}]}}),Zo=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#L1361"}}),Io=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#L1983"}}),Wo=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#L1886"}}),zo=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#L1926"}}),Lo=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#L1722"}}),Go=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#L1614"}}),Bo=new wt({props:{title:"TFModelUtilsMixin",local:"transformers.modeling_tf_utils.TFModelUtilsMixin",headingTag:"h2"}}),Vo=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#L126"}}),Ho=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#L131",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>
`}}),qo=new wt({props:{title:"FlaxPreTrainedModel",local:"transformers.FlaxPreTrainedModel",headingTag:"h2"}}),No=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#L167"}}),Xo=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:"tags",val:": typing.Optional[typing.List[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 to make the repo private. If <code>None</code> (default), the repo will be public unless the organization&#x2019;s default is private. This value is ignored if the repo already exists.`,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"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.tags",description:`<strong>tags</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of tags to push on the Hub.`,name:"tags"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py#L767"}}),ht=new E({props:{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.example",$$slots:{default:[Hp]},$$scope:{ctx:j}}}),Do=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"}}),Ro=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.</li>
<li>A path to a <em>directory</em> containing model weights saved using
<a href="/docs/transformers/main/en/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/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/main/en/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 <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>,</li>
<li>a string or path valid as input to <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig.from_pretrained">from_pretrained()</a>.</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/en/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> &#x2014;
Deprecated and ignored. All downloads are now resumed by default when possible.
Will be removed in v5 of Transformers.`,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 E({props:{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.example",$$slots:{default:[qp]},$$scope:{ctx:j}}}),Eo=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>
`}}),Yo=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#L1227"}}),ut=new Bs({props:{warning:!0,$$slots:{default:[Np]},$$scope:{ctx:j}}}),Qo=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/en/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#L1089"}}),So=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"}}),bt=new E({props:{anchor:"transformers.FlaxPreTrainedModel.to_bf16.example",$$slots:{default:[Xp]},$$scope:{ctx:j}}}),Ao=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"}}),yt=new E({props:{anchor:"transformers.FlaxPreTrainedModel.to_fp16.example",$$slots:{default:[Dp]},$$scope:{ctx:j}}}),Oo=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"}}),vt=new E({props:{anchor:"transformers.FlaxPreTrainedModel.to_fp32.example",$$slots:{default:[Rp]},$$scope:{ctx:j}}}),Ko=new wt({props:{title:"Pushing to the Hub",local:"transformers.utils.PushToHubMixin",headingTag:"h2"}}),en=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#L642"}}),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:"tags",val:": typing.Optional[typing.List[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 to make the repo private. If <code>None</code> (default), the repo will be public unless the organization&#x2019;s default is private. This value is ignored if the repo already exists.`,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"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.tags",description:`<strong>tags</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of tags to push on the Hub.`,name:"tags"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py#L767"}}),Tt=new E({props:{anchor:"transformers.utils.PushToHubMixin.push_to_hub.example",$$slots:{default:[Ep]},$$scope:{ctx:j}}}),on=new wt({props:{title:"Sharded checkpoints",local:"transformers.modeling_utils.load_sharded_checkpoint",headingTag:"h2"}}),nn=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#L431",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>
`}}),rn=new Fp({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/main_classes/model.md"}}),{c(){l=r("meta"),U=o(),_=r("p"),u=o(),m(k.$$.fragment),s=o(),P=r("p"),P.innerHTML=bm,La=o(),$t=r("p"),$t.innerHTML=ym,Ga=o(),kt=r("ul"),kt.innerHTML=vm,Ba=o(),Ct=r("p"),Ct.innerHTML=Tm,Va=o(),m(Pt.$$.fragment),Ha=o(),M=r("div"),m(Ut.$$.fragment),Vs=o(),gn=r("p"),gn.textContent=Mm,Hs=o(),un=r("p"),un.innerHTML=xm,qs=o(),_n=r("ul"),_n.innerHTML=wm,Ns=o(),bn=r("p"),bn.textContent=$m,Xs=o(),yn=r("ul"),yn.innerHTML=km,Ds=o(),Q=r("div"),m(Jt.$$.fragment),Rs=o(),vn=r("p"),vn.textContent=Cm,Es=o(),m(_e.$$.fragment),Ys=o(),S=r("div"),m(jt.$$.fragment),Qs=o(),Tn=r("p"),Tn.textContent=Pm,Ss=o(),m(be.$$.fragment),As=o(),ye=r("div"),m(Ft.$$.fragment),Os=o(),Mn=r("p"),Mn.innerHTML=Um,Ks=o(),ve=r("div"),m(Zt.$$.fragment),ei=o(),xn=r("p"),xn.textContent=Jm,ti=o(),Te=r("div"),m(It.$$.fragment),oi=o(),wn=r("p"),wn.innerHTML=jm,ni=o(),Me=r("div"),m(Wt.$$.fragment),ri=o(),$n=r("p"),$n.textContent=Fm,ai=o(),F=r("div"),m(zt.$$.fragment),si=o(),kn=r("p"),kn.textContent=Zm,ii=o(),Cn=r("p"),Cn.innerHTML=Im,di=o(),Pn=r("p"),Pn.innerHTML=Wm,li=o(),Un=r("p"),Un.innerHTML=zm,mi=o(),Jn=r("p"),Jn.innerHTML=Lm,ci=o(),m(xe.$$.fragment),pi=o(),m(we.$$.fragment),hi=o(),jn=r("ul"),jn.innerHTML=Gm,fi=o(),Fn=r("p"),Fn.textContent=Bm,gi=o(),Zn=r("p"),Zn.textContent=Vm,ui=o(),In=r("ol"),In.innerHTML=Hm,_i=o(),Wn=r("p"),Wn.textContent=qm,bi=o(),$e=r("div"),m(Lt.$$.fragment),yi=o(),zn=r("p"),zn.innerHTML=Nm,vi=o(),ke=r("div"),m(Gt.$$.fragment),Ti=o(),Ln=r("p"),Ln.textContent=Xm,Mi=o(),Ce=r("div"),m(Bt.$$.fragment),xi=o(),Gn=r("p"),Gn.innerHTML=Dm,wi=o(),Pe=r("div"),m(Vt.$$.fragment),$i=o(),Bn=r("p"),Bn.textContent=Rm,ki=o(),A=r("div"),m(Ht.$$.fragment),Ci=o(),Vn=r("p"),Vn.textContent=Em,Pi=o(),Hn=r("p"),Hn.textContent=Ym,Ui=o(),V=r("div"),m(qt.$$.fragment),Ji=o(),qn=r("p"),qn.textContent=Qm,ji=o(),Nn=r("p"),Nn.textContent=Sm,Fi=o(),Xn=r("p"),Xn.innerHTML=Am,Zi=o(),Ue=r("div"),m(Nt.$$.fragment),Ii=o(),Dn=r("p"),Dn.innerHTML=Om,Wi=o(),Je=r("div"),m(Xt.$$.fragment),zi=o(),Rn=r("p"),Rn.textContent=Km,Li=o(),je=r("div"),m(Dt.$$.fragment),Gi=o(),En=r("p"),En.textContent=ec,Bi=o(),O=r("div"),m(Rt.$$.fragment),Vi=o(),Yn=r("p"),Yn.textContent=tc,Hi=o(),m(Fe.$$.fragment),qi=o(),K=r("div"),m(Et.$$.fragment),Ni=o(),Qn=r("p"),Qn.innerHTML=oc,Xi=o(),Sn=r("p"),Sn.innerHTML=nc,Di=o(),Ze=r("div"),m(Yt.$$.fragment),Ri=o(),An=r("p"),An.innerHTML=rc,Ei=o(),Ie=r("div"),m(Qt.$$.fragment),Yi=o(),On=r("p"),On.innerHTML=ac,Qi=o(),We=r("div"),m(St.$$.fragment),Si=o(),Kn=r("p"),Kn.textContent=sc,Ai=o(),ee=r("div"),m(At.$$.fragment),Oi=o(),er=r("p"),er.textContent=ic,Ki=o(),tr=r("p"),tr.innerHTML=dc,ed=o(),te=r("div"),m(Ot.$$.fragment),td=o(),or=r("p"),or.textContent=lc,od=o(),nr=r("p"),nr.innerHTML=mc,nd=o(),oe=r("div"),m(Kt.$$.fragment),rd=o(),rr=r("p"),rr.innerHTML=cc,ad=o(),ar=r("p"),ar.innerHTML=pc,sd=o(),ze=r("div"),m(eo.$$.fragment),id=o(),sr=r("p"),sr.textContent=hc,qa=o(),to=r("p"),to.innerHTML=fc,Na=o(),m(oo.$$.fragment),Xa=o(),W=r("div"),m(no.$$.fragment),dd=o(),ir=r("p"),ir.innerHTML=gc,ld=o(),ne=r("div"),m(ro.$$.fragment),md=o(),dr=r("p"),dr.textContent=uc,cd=o(),lr=r("p"),lr.innerHTML=_c,pd=o(),Le=r("div"),m(ao.$$.fragment),hd=o(),mr=r("p"),mr.textContent=bc,fd=o(),Ge=r("div"),m(so.$$.fragment),gd=o(),cr=r("p"),cr.innerHTML=yc,ud=o(),Be=r("div"),m(io.$$.fragment),_d=o(),pr=r("p"),pr.textContent=vc,bd=o(),Ve=r("div"),m(lo.$$.fragment),yd=o(),hr=r("p"),hr.textContent=Tc,vd=o(),He=r("div"),m(mo.$$.fragment),Td=o(),fr=r("p"),fr.textContent=Mc,Md=o(),qe=r("div"),m(co.$$.fragment),xd=o(),gr=r("p"),gr.textContent=xc,wd=o(),Ne=r("div"),m(po.$$.fragment),$d=o(),ur=r("p"),ur.innerHTML=wc,Da=o(),m(ho.$$.fragment),Ra=o(),x=r("div"),m(fo.$$.fragment),kd=o(),_r=r("p"),_r.textContent=$c,Cd=o(),br=r("p"),br.innerHTML=kc,Pd=o(),yr=r("ul"),yr.innerHTML=Cc,Ud=o(),vr=r("p"),vr.textContent=Pc,Jd=o(),Tr=r("ul"),Tr.innerHTML=Uc,jd=o(),re=r("div"),m(go.$$.fragment),Fd=o(),Mr=r("p"),Mr.innerHTML=Jc,Zd=o(),m(Xe.$$.fragment),Id=o(),De=r("div"),m(uo.$$.fragment),Wd=o(),xr=r("p"),xr.innerHTML=jc,zd=o(),Re=r("div"),m(_o.$$.fragment),Ld=o(),wr=r("p"),wr.textContent=Fc,Gd=o(),Ee=r("div"),m(bo.$$.fragment),Bd=o(),$r=r("p"),$r.innerHTML=Zc,Vd=o(),G=r("div"),m(yo.$$.fragment),Hd=o(),kr=r("p"),kr.textContent=Ic,qd=o(),Cr=r("p"),Cr.innerHTML=Wc,Nd=o(),Pr=r("p"),Pr.innerHTML=zc,Xd=o(),m(Ye.$$.fragment),Dd=o(),Qe=r("div"),m(vo.$$.fragment),Rd=o(),Ur=r("p"),Ur.textContent=Lc,Ed=o(),Se=r("div"),m(To.$$.fragment),Yd=o(),Jr=r("p"),Jr.textContent=Gc,Qd=o(),Ae=r("div"),m(Mo.$$.fragment),Sd=o(),jr=r("p"),jr.textContent=Bc,Ad=o(),Oe=r("div"),m(xo.$$.fragment),Od=o(),Fr=r("p"),Fr.textContent=Vc,Kd=o(),Ke=r("div"),m(wo.$$.fragment),el=o(),Zr=r("p"),Zr.textContent=Hc,tl=o(),et=r("div"),m($o.$$.fragment),ol=o(),Ir=r("p"),Ir.textContent=qc,nl=o(),tt=r("div"),m(ko.$$.fragment),rl=o(),Wr=r("p"),Wr.textContent=Nc,al=o(),ot=r("div"),m(Co.$$.fragment),sl=o(),zr=r("p"),zr.innerHTML=Xc,il=o(),nt=r("div"),m(Po.$$.fragment),dl=o(),Lr=r("p"),Lr.textContent=Dc,ll=o(),ae=r("div"),m(Uo.$$.fragment),ml=o(),Gr=r("p"),Gr.textContent=Rc,cl=o(),m(rt.$$.fragment),pl=o(),se=r("div"),m(Jo.$$.fragment),hl=o(),Br=r("p"),Br.innerHTML=Ec,fl=o(),Vr=r("p"),Vr.innerHTML=Yc,gl=o(),at=r("div"),m(jo.$$.fragment),ul=o(),Hr=r("p"),Hr.innerHTML=Qc,_l=o(),qr=r("div"),m(Fo.$$.fragment),bl=o(),st=r("div"),m(Zo.$$.fragment),yl=o(),Nr=r("p"),Nr.textContent=Sc,vl=o(),it=r("div"),m(Io.$$.fragment),Tl=o(),Xr=r("p"),Xr.textContent=Ac,Ml=o(),dt=r("div"),m(Wo.$$.fragment),xl=o(),Dr=r("p"),Dr.textContent=Oc,wl=o(),lt=r("div"),m(zo.$$.fragment),$l=o(),Rr=r("p"),Rr.textContent=Kc,kl=o(),mt=r("div"),m(Lo.$$.fragment),Cl=o(),Er=r("p"),Er.innerHTML=ep,Pl=o(),ct=r("div"),m(Go.$$.fragment),Ul=o(),Yr=r("p"),Yr.innerHTML=tp,Ea=o(),m(Bo.$$.fragment),Ya=o(),N=r("div"),m(Vo.$$.fragment),Jl=o(),Qr=r("p"),Qr.innerHTML=op,jl=o(),pt=r("div"),m(Ho.$$.fragment),Fl=o(),Sr=r("p"),Sr.textContent=np,Qa=o(),m(qo.$$.fragment),Sa=o(),J=r("div"),m(No.$$.fragment),Zl=o(),Ar=r("p"),Ar.textContent=rp,Il=o(),Or=r("p"),Or.innerHTML=ap,Wl=o(),Kr=r("p"),Kr.textContent=sp,zl=o(),ea=r("ul"),ea.innerHTML=ip,Ll=o(),ie=r("div"),m(Xo.$$.fragment),Gl=o(),ta=r("p"),ta.textContent=dp,Bl=o(),m(ht.$$.fragment),Vl=o(),ft=r("div"),m(Do.$$.fragment),Hl=o(),oa=r("p"),oa.innerHTML=lp,ql=o(),B=r("div"),m(Ro.$$.fragment),Nl=o(),na=r("p"),na.textContent=mp,Xl=o(),ra=r("p"),ra.innerHTML=cp,Dl=o(),aa=r("p"),aa.innerHTML=pp,Rl=o(),m(gt.$$.fragment),El=o(),de=r("div"),m(Eo.$$.fragment),Yl=o(),sa=r("p"),sa.innerHTML=hp,Ql=o(),ia=r("p"),ia.textContent=fp,Sl=o(),le=r("div"),m(Yo.$$.fragment),Al=o(),da=r("p"),da.textContent=gp,Ol=o(),m(ut.$$.fragment),Kl=o(),_t=r("div"),m(Qo.$$.fragment),em=o(),la=r("p"),la.innerHTML=up,tm=o(),H=r("div"),m(So.$$.fragment),om=o(),ma=r("p"),ma.innerHTML=_p,nm=o(),ca=r("p"),ca.textContent=bp,rm=o(),m(bt.$$.fragment),am=o(),q=r("div"),m(Ao.$$.fragment),sm=o(),pa=r("p"),pa.innerHTML=yp,im=o(),ha=r("p"),ha.textContent=vp,dm=o(),m(yt.$$.fragment),lm=o(),me=r("div"),m(Oo.$$.fragment),mm=o(),fa=r("p"),fa.innerHTML=Tp,cm=o(),m(vt.$$.fragment),Aa=o(),m(Ko.$$.fragment),Oa=o(),X=r("div"),m(en.$$.fragment),pm=o(),ga=r("p"),ga.textContent=Mp,hm=o(),ce=r("div"),m(tn.$$.fragment),fm=o(),ua=r("p"),ua.textContent=xp,gm=o(),m(Tt.$$.fragment),Ka=o(),m(on.$$.fragment),es=o(),D=r("div"),m(nn.$$.fragment),um=o(),_a=r("p"),_a.innerHTML=wp,_m=o(),ba=r("p"),ba.textContent=$p,ts=o(),m(rn.$$.fragment),os=o(),za=r("p"),this.h()},l(t){const b=jp("svelte-u9bgzb",document.head);l=a(b,"META",{name:!0,content:!0}),b.forEach(i),U=n(t),_=a(t,"P",{}),y(_).forEach(i),u=n(t),c(k.$$.fragment,t),s=n(t),P=a(t,"P",{"data-svelte-h":!0}),d(P)!=="svelte-zbcrud"&&(P.innerHTML=bm),La=n(t),$t=a(t,"P",{"data-svelte-h":!0}),d($t)!=="svelte-q45k9t"&&($t.innerHTML=ym),Ga=n(t),kt=a(t,"UL",{"data-svelte-h":!0}),d(kt)!=="svelte-1jiiwof"&&(kt.innerHTML=vm),Ba=n(t),Ct=a(t,"P",{"data-svelte-h":!0}),d(Ct)!=="svelte-cclo3a"&&(Ct.innerHTML=Tm),Va=n(t),c(Pt.$$.fragment,t),Ha=n(t),M=a(t,"DIV",{class:!0});var w=y(M);c(Ut.$$.fragment,w),Vs=n(w),gn=a(w,"P",{"data-svelte-h":!0}),d(gn)!=="svelte-12nk4t7"&&(gn.textContent=Mm),Hs=n(w),un=a(w,"P",{"data-svelte-h":!0}),d(un)!=="svelte-k0nhho"&&(un.innerHTML=xm),qs=n(w),_n=a(w,"UL",{"data-svelte-h":!0}),d(_n)!=="svelte-6o6r8w"&&(_n.innerHTML=wm),Ns=n(w),bn=a(w,"P",{"data-svelte-h":!0}),d(bn)!=="svelte-1qxxkvo"&&(bn.textContent=$m),Xs=n(w),yn=a(w,"UL",{"data-svelte-h":!0}),d(yn)!=="svelte-1pj7uos"&&(yn.innerHTML=km),Ds=n(w),Q=a(w,"DIV",{class:!0});var fe=y(Q);c(Jt.$$.fragment,fe),Rs=n(fe),vn=a(fe,"P",{"data-svelte-h":!0}),d(vn)!=="svelte-1j9019y"&&(vn.textContent=Cm),Es=n(fe),c(_e.$$.fragment,fe),fe.forEach(i),Ys=n(w),S=a(w,"DIV",{class:!0});var ge=y(S);c(jt.$$.fragment,ge),Qs=n(ge),Tn=a(ge,"P",{"data-svelte-h":!0}),d(Tn)!=="svelte-1mcxpi"&&(Tn.textContent=Pm),Ss=n(ge),c(be.$$.fragment,ge),ge.forEach(i),As=n(w),ye=a(w,"DIV",{class:!0});var an=y(ye);c(Ft.$$.fragment,an),Os=n(an),Mn=a(an,"P",{"data-svelte-h":!0}),d(Mn)!=="svelte-5kr66y"&&(Mn.innerHTML=Um),an.forEach(i),Ks=n(w),ve=a(w,"DIV",{class:!0});var sn=y(ve);c(Zt.$$.fragment,sn),ei=n(sn),xn=a(sn,"P",{"data-svelte-h":!0}),d(xn)!=="svelte-on69a4"&&(xn.textContent=Jm),sn.forEach(i),ti=n(w),Te=a(w,"DIV",{class:!0});var dn=y(Te);c(It.$$.fragment,dn),oi=n(dn),wn=a(dn,"P",{"data-svelte-h":!0}),d(wn)!=="svelte-1arq2q9"&&(wn.innerHTML=jm),dn.forEach(i),ni=n(w),Me=a(w,"DIV",{class:!0});var ln=y(Me);c(Wt.$$.fragment,ln),ri=n(ln),$n=a(ln,"P",{"data-svelte-h":!0}),d($n)!=="svelte-gf3f10"&&($n.textContent=Fm),ln.forEach(i),ai=n(w),F=a(w,"DIV",{class:!0});var Z=y(F);c(zt.$$.fragment,Z),si=n(Z),kn=a(Z,"P",{"data-svelte-h":!0}),d(kn)!=="svelte-1m220hc"&&(kn.textContent=Zm),ii=n(Z),Cn=a(Z,"P",{"data-svelte-h":!0}),d(Cn)!=="svelte-1vvzid2"&&(Cn.innerHTML=Im),di=n(Z),Pn=a(Z,"P",{"data-svelte-h":!0}),d(Pn)!=="svelte-floidm"&&(Pn.innerHTML=Wm),li=n(Z),Un=a(Z,"P",{"data-svelte-h":!0}),d(Un)!=="svelte-5vnnmn"&&(Un.innerHTML=zm),mi=n(Z),Jn=a(Z,"P",{"data-svelte-h":!0}),d(Jn)!=="svelte-1f411sa"&&(Jn.innerHTML=Lm),ci=n(Z),c(xe.$$.fragment,Z),pi=n(Z),c(we.$$.fragment,Z),hi=n(Z),jn=a(Z,"UL",{"data-svelte-h":!0}),d(jn)!=="svelte-14hq6us"&&(jn.innerHTML=Gm),fi=n(Z),Fn=a(Z,"P",{"data-svelte-h":!0}),d(Fn)!=="svelte-1ndujqx"&&(Fn.textContent=Bm),gi=n(Z),Zn=a(Z,"P",{"data-svelte-h":!0}),d(Zn)!=="svelte-h5finb"&&(Zn.textContent=Vm),ui=n(Z),In=a(Z,"OL",{"data-svelte-h":!0}),d(In)!=="svelte-17iv4ty"&&(In.innerHTML=Hm),_i=n(Z),Wn=a(Z,"P",{"data-svelte-h":!0}),d(Wn)!=="svelte-1kh2krb"&&(Wn.textContent=qm),Z.forEach(i),bi=n(w),$e=a(w,"DIV",{class:!0});var mn=y($e);c(Lt.$$.fragment,mn),yi=n(mn),zn=a(mn,"P",{"data-svelte-h":!0}),d(zn)!=="svelte-1jqter6"&&(zn.innerHTML=Nm),mn.forEach(i),vi=n(w),ke=a(w,"DIV",{class:!0});var cn=y(ke);c(Gt.$$.fragment,cn),Ti=n(cn),Ln=a(cn,"P",{"data-svelte-h":!0}),d(Ln)!=="svelte-1oe3d1l"&&(Ln.textContent=Xm),cn.forEach(i),Mi=n(w),Ce=a(w,"DIV",{class:!0});var pn=y(Ce);c(Bt.$$.fragment,pn),xi=n(pn),Gn=a(pn,"P",{"data-svelte-h":!0}),d(Gn)!=="svelte-1o6lvix"&&(Gn.innerHTML=Dm),pn.forEach(i),wi=n(w),Pe=a(w,"DIV",{class:!0});var hn=y(Pe);c(Vt.$$.fragment,hn),$i=n(hn),Bn=a(hn,"P",{"data-svelte-h":!0}),d(Bn)!=="svelte-1en7lnm"&&(Bn.textContent=Rm),hn.forEach(i),ki=n(w),A=a(w,"DIV",{class:!0});var ue=y(A);c(Ht.$$.fragment,ue),Ci=n(ue),Vn=a(ue,"P",{"data-svelte-h":!0}),d(Vn)!=="svelte-x1yzxn"&&(Vn.textContent=Em),Pi=n(ue),Hn=a(ue,"P",{"data-svelte-h":!0}),d(Hn)!=="svelte-1c0vp3s"&&(Hn.textContent=Ym),ue.forEach(i),Ui=n(w),V=a(w,"DIV",{class:!0});var R=y(V);c(qt.$$.fragment,R),Ji=n(R),qn=a(R,"P",{"data-svelte-h":!0}),d(qn)!=="svelte-vu1mp6"&&(qn.textContent=Qm),ji=n(R),Nn=a(R,"P",{"data-svelte-h":!0}),d(Nn)!=="svelte-1c0vp3s"&&(Nn.textContent=Sm),Fi=n(R),Xn=a(R,"P",{"data-svelte-h":!0}),d(Xn)!=="svelte-1entg0x"&&(Xn.innerHTML=Am),R.forEach(i),Zi=n(w),Ue=a(w,"DIV",{class:!0});var fn=y(Ue);c(Nt.$$.fragment,fn),Ii=n(fn),Dn=a(fn,"P",{"data-svelte-h":!0}),d(Dn)!=="svelte-1gceydr"&&(Dn.innerHTML=Om),fn.forEach(i),Wi=n(w),Je=a(w,"DIV",{class:!0});var rs=y(Je);c(Xt.$$.fragment,rs),zi=n(rs),Rn=a(rs,"P",{"data-svelte-h":!0}),d(Rn)!=="svelte-kxy0hj"&&(Rn.textContent=Km),rs.forEach(i),Li=n(w),je=a(w,"DIV",{class:!0});var as=y(je);c(Dt.$$.fragment,as),Gi=n(as),En=a(as,"P",{"data-svelte-h":!0}),d(En)!=="svelte-qvrpxu"&&(En.textContent=ec),as.forEach(i),Bi=n(w),O=a(w,"DIV",{class:!0});var ya=y(O);c(Rt.$$.fragment,ya),Vi=n(ya),Yn=a(ya,"P",{"data-svelte-h":!0}),d(Yn)!=="svelte-1ie4sav"&&(Yn.textContent=tc),Hi=n(ya),c(Fe.$$.fragment,ya),ya.forEach(i),qi=n(w),K=a(w,"DIV",{class:!0});var va=y(K);c(Et.$$.fragment,va),Ni=n(va),Qn=a(va,"P",{"data-svelte-h":!0}),d(Qn)!=="svelte-sgsur1"&&(Qn.innerHTML=oc),Xi=n(va),Sn=a(va,"P",{"data-svelte-h":!0}),d(Sn)!=="svelte-1t4xas4"&&(Sn.innerHTML=nc),va.forEach(i),Di=n(w),Ze=a(w,"DIV",{class:!0});var ss=y(Ze);c(Yt.$$.fragment,ss),Ri=n(ss),An=a(ss,"P",{"data-svelte-h":!0}),d(An)!=="svelte-nzcguu"&&(An.innerHTML=rc),ss.forEach(i),Ei=n(w),Ie=a(w,"DIV",{class:!0});var is=y(Ie);c(Qt.$$.fragment,is),Yi=n(is),On=a(is,"P",{"data-svelte-h":!0}),d(On)!=="svelte-1div8ut"&&(On.innerHTML=ac),is.forEach(i),Qi=n(w),We=a(w,"DIV",{class:!0});var ds=y(We);c(St.$$.fragment,ds),Si=n(ds),Kn=a(ds,"P",{"data-svelte-h":!0}),d(Kn)!=="svelte-107jmv5"&&(Kn.textContent=sc),ds.forEach(i),Ai=n(w),ee=a(w,"DIV",{class:!0});var Ta=y(ee);c(At.$$.fragment,Ta),Oi=n(Ta),er=a(Ta,"P",{"data-svelte-h":!0}),d(er)!=="svelte-iheqqm"&&(er.textContent=ic),Ki=n(Ta),tr=a(Ta,"P",{"data-svelte-h":!0}),d(tr)!=="svelte-1gh2uq5"&&(tr.innerHTML=dc),Ta.forEach(i),ed=n(w),te=a(w,"DIV",{class:!0});var Ma=y(te);c(Ot.$$.fragment,Ma),td=n(Ma),or=a(Ma,"P",{"data-svelte-h":!0}),d(or)!=="svelte-5nt4be"&&(or.textContent=lc),od=n(Ma),nr=a(Ma,"P",{"data-svelte-h":!0}),d(nr)!=="svelte-1ti0hxu"&&(nr.innerHTML=mc),Ma.forEach(i),nd=n(w),oe=a(w,"DIV",{class:!0});var xa=y(oe);c(Kt.$$.fragment,xa),rd=n(xa),rr=a(xa,"P",{"data-svelte-h":!0}),d(rr)!=="svelte-1sq1344"&&(rr.innerHTML=cc),ad=n(xa),ar=a(xa,"P",{"data-svelte-h":!0}),d(ar)!=="svelte-1p16ejc"&&(ar.innerHTML=pc),xa.forEach(i),sd=n(w),ze=a(w,"DIV",{class:!0});var ls=y(ze);c(eo.$$.fragment,ls),id=n(ls),sr=a(ls,"P",{"data-svelte-h":!0}),d(sr)!=="svelte-nkp8sx"&&(sr.textContent=hc),ls.forEach(i),w.forEach(i),qa=n(t),to=a(t,"P",{"data-svelte-h":!0}),d(to)!=="svelte-16xbp9y"&&(to.innerHTML=fc),Na=n(t),c(oo.$$.fragment,t),Xa=n(t),W=a(t,"DIV",{class:!0});var z=y(W);c(no.$$.fragment,z),dd=n(z),ir=a(z,"P",{"data-svelte-h":!0}),d(ir)!=="svelte-9daxpl"&&(ir.innerHTML=gc),ld=n(z),ne=a(z,"DIV",{class:!0});var wa=y(ne);c(ro.$$.fragment,wa),md=n(wa),dr=a(wa,"P",{"data-svelte-h":!0}),d(dr)!=="svelte-bszdl"&&(dr.textContent=uc),cd=n(wa),lr=a(wa,"P",{"data-svelte-h":!0}),d(lr)!=="svelte-1yhz50g"&&(lr.innerHTML=_c),wa.forEach(i),pd=n(z),Le=a(z,"DIV",{class:!0});var ms=y(Le);c(ao.$$.fragment,ms),hd=n(ms),mr=a(ms,"P",{"data-svelte-h":!0}),d(mr)!=="svelte-1vzpsnb"&&(mr.textContent=bc),ms.forEach(i),fd=n(z),Ge=a(z,"DIV",{class:!0});var cs=y(Ge);c(so.$$.fragment,cs),gd=n(cs),cr=a(cs,"P",{"data-svelte-h":!0}),d(cr)!=="svelte-1quexap"&&(cr.innerHTML=yc),cs.forEach(i),ud=n(z),Be=a(z,"DIV",{class:!0});var ps=y(Be);c(io.$$.fragment,ps),_d=n(ps),pr=a(ps,"P",{"data-svelte-h":!0}),d(pr)!=="svelte-qy1xxb"&&(pr.textContent=vc),ps.forEach(i),bd=n(z),Ve=a(z,"DIV",{class:!0});var hs=y(Ve);c(lo.$$.fragment,hs),yd=n(hs),hr=a(hs,"P",{"data-svelte-h":!0}),d(hr)!=="svelte-1y1rtu0"&&(hr.textContent=Tc),hs.forEach(i),vd=n(z),He=a(z,"DIV",{class:!0});var fs=y(He);c(mo.$$.fragment,fs),Td=n(fs),fr=a(fs,"P",{"data-svelte-h":!0}),d(fr)!=="svelte-1tbhnug"&&(fr.textContent=Mc),fs.forEach(i),Md=n(z),qe=a(z,"DIV",{class:!0});var gs=y(qe);c(co.$$.fragment,gs),xd=n(gs),gr=a(gs,"P",{"data-svelte-h":!0}),d(gr)!=="svelte-vktrn"&&(gr.textContent=xc),gs.forEach(i),wd=n(z),Ne=a(z,"DIV",{class:!0});var us=y(Ne);c(po.$$.fragment,us),$d=n(us),ur=a(us,"P",{"data-svelte-h":!0}),d(ur)!=="svelte-110elzx"&&(ur.innerHTML=wc),us.forEach(i),z.forEach(i),Da=n(t),c(ho.$$.fragment,t),Ra=n(t),x=a(t,"DIV",{class:!0});var C=y(x);c(fo.$$.fragment,C),kd=n(C),_r=a(C,"P",{"data-svelte-h":!0}),d(_r)!=="svelte-ho56tp"&&(_r.textContent=$c),Cd=n(C),br=a(C,"P",{"data-svelte-h":!0}),d(br)!=="svelte-1ku0uw4"&&(br.innerHTML=kc),Pd=n(C),yr=a(C,"UL",{"data-svelte-h":!0}),d(yr)!=="svelte-6o6r8w"&&(yr.innerHTML=Cc),Ud=n(C),vr=a(C,"P",{"data-svelte-h":!0}),d(vr)!=="svelte-1qxxkvo"&&(vr.textContent=Pc),Jd=n(C),Tr=a(C,"UL",{"data-svelte-h":!0}),d(Tr)!=="svelte-1giaft3"&&(Tr.innerHTML=Uc),jd=n(C),re=a(C,"DIV",{class:!0});var $a=y(re);c(go.$$.fragment,$a),Fd=n($a),Mr=a($a,"P",{"data-svelte-h":!0}),d(Mr)!=="svelte-8nftbo"&&(Mr.innerHTML=Jc),Zd=n($a),c(Xe.$$.fragment,$a),$a.forEach(i),Id=n(C),De=a(C,"DIV",{class:!0});var _s=y(De);c(uo.$$.fragment,_s),Wd=n(_s),xr=a(_s,"P",{"data-svelte-h":!0}),d(xr)!=="svelte-1r2xt0l"&&(xr.innerHTML=jc),_s.forEach(i),zd=n(C),Re=a(C,"DIV",{class:!0});var bs=y(Re);c(_o.$$.fragment,bs),Ld=n(bs),wr=a(bs,"P",{"data-svelte-h":!0}),d(wr)!=="svelte-wsnq9n"&&(wr.textContent=Fc),bs.forEach(i),Gd=n(C),Ee=a(C,"DIV",{class:!0});var ys=y(Ee);c(bo.$$.fragment,ys),Bd=n(ys),$r=a(ys,"P",{"data-svelte-h":!0}),d($r)!=="svelte-1mh859w"&&($r.innerHTML=Zc),ys.forEach(i),Vd=n(C),G=a(C,"DIV",{class:!0});var pe=y(G);c(yo.$$.fragment,pe),Hd=n(pe),kr=a(pe,"P",{"data-svelte-h":!0}),d(kr)!=="svelte-vc5x03"&&(kr.textContent=Ic),qd=n(pe),Cr=a(pe,"P",{"data-svelte-h":!0}),d(Cr)!=="svelte-floidm"&&(Cr.innerHTML=Wc),Nd=n(pe),Pr=a(pe,"P",{"data-svelte-h":!0}),d(Pr)!=="svelte-5vnnmn"&&(Pr.innerHTML=zc),Xd=n(pe),c(Ye.$$.fragment,pe),pe.forEach(i),Dd=n(C),Qe=a(C,"DIV",{class:!0});var vs=y(Qe);c(vo.$$.fragment,vs),Rd=n(vs),Ur=a(vs,"P",{"data-svelte-h":!0}),d(Ur)!=="svelte-ja4l5b"&&(Ur.textContent=Lc),vs.forEach(i),Ed=n(C),Se=a(C,"DIV",{class:!0});var Ts=y(Se);c(To.$$.fragment,Ts),Yd=n(Ts),Jr=a(Ts,"P",{"data-svelte-h":!0}),d(Jr)!=="svelte-1y1rtu0"&&(Jr.textContent=Gc),Ts.forEach(i),Qd=n(C),Ae=a(C,"DIV",{class:!0});var Ms=y(Ae);c(Mo.$$.fragment,Ms),Sd=n(Ms),jr=a(Ms,"P",{"data-svelte-h":!0}),d(jr)!=="svelte-1g2truu"&&(jr.textContent=Bc),Ms.forEach(i),Ad=n(C),Oe=a(C,"DIV",{class:!0});var xs=y(Oe);c(xo.$$.fragment,xs),Od=n(xs),Fr=a(xs,"P",{"data-svelte-h":!0}),d(Fr)!=="svelte-1hvwe3j"&&(Fr.textContent=Vc),xs.forEach(i),Kd=n(C),Ke=a(C,"DIV",{class:!0});var ws=y(Ke);c(wo.$$.fragment,ws),el=n(ws),Zr=a(ws,"P",{"data-svelte-h":!0}),d(Zr)!=="svelte-1mu3td8"&&(Zr.textContent=Hc),ws.forEach(i),tl=n(C),et=a(C,"DIV",{class:!0});var $s=y(et);c($o.$$.fragment,$s),ol=n($s),Ir=a($s,"P",{"data-svelte-h":!0}),d(Ir)!=="svelte-ib1802"&&(Ir.textContent=qc),$s.forEach(i),nl=n(C),tt=a(C,"DIV",{class:!0});var ks=y(tt);c(ko.$$.fragment,ks),rl=n(ks),Wr=a(ks,"P",{"data-svelte-h":!0}),d(Wr)!=="svelte-1vipzyv"&&(Wr.textContent=Nc),ks.forEach(i),al=n(C),ot=a(C,"DIV",{class:!0});var Cs=y(ot);c(Co.$$.fragment,Cs),sl=n(Cs),zr=a(Cs,"P",{"data-svelte-h":!0}),d(zr)!=="svelte-13xt7o7"&&(zr.innerHTML=Xc),Cs.forEach(i),il=n(C),nt=a(C,"DIV",{class:!0});var Ps=y(nt);c(Po.$$.fragment,Ps),dl=n(Ps),Lr=a(Ps,"P",{"data-svelte-h":!0}),d(Lr)!=="svelte-qvrpxu"&&(Lr.textContent=Dc),Ps.forEach(i),ll=n(C),ae=a(C,"DIV",{class:!0});var ka=y(ae);c(Uo.$$.fragment,ka),ml=n(ka),Gr=a(ka,"P",{"data-svelte-h":!0}),d(Gr)!=="svelte-1ie4sav"&&(Gr.textContent=Rc),cl=n(ka),c(rt.$$.fragment,ka),ka.forEach(i),pl=n(C),se=a(C,"DIV",{class:!0});var Ca=y(se);c(Jo.$$.fragment,Ca),hl=n(Ca),Br=a(Ca,"P",{"data-svelte-h":!0}),d(Br)!=="svelte-sgsur1"&&(Br.innerHTML=Ec),fl=n(Ca),Vr=a(Ca,"P",{"data-svelte-h":!0}),d(Vr)!=="svelte-1t4xas4"&&(Vr.innerHTML=Yc),Ca.forEach(i),gl=n(C),at=a(C,"DIV",{class:!0});var Us=y(at);c(jo.$$.fragment,Us),ul=n(Us),Hr=a(Us,"P",{"data-svelte-h":!0}),d(Hr)!=="svelte-1yks4bb"&&(Hr.innerHTML=Qc),Us.forEach(i),_l=n(C),qr=a(C,"DIV",{class:!0});var kp=y(qr);c(Fo.$$.fragment,kp),kp.forEach(i),bl=n(C),st=a(C,"DIV",{class:!0});var Js=y(st);c(Zo.$$.fragment,Js),yl=n(Js),Nr=a(Js,"P",{"data-svelte-h":!0}),d(Nr)!=="svelte-4zpnur"&&(Nr.textContent=Sc),Js.forEach(i),vl=n(C),it=a(C,"DIV",{class:!0});var js=y(it);c(Io.$$.fragment,js),Tl=n(js),Xr=a(js,"P",{"data-svelte-h":!0}),d(Xr)!=="svelte-cmhrcy"&&(Xr.textContent=Ac),js.forEach(i),Ml=n(C),dt=a(C,"DIV",{class:!0});var Fs=y(dt);c(Wo.$$.fragment,Fs),xl=n(Fs),Dr=a(Fs,"P",{"data-svelte-h":!0}),d(Dr)!=="svelte-1ouwbwr"&&(Dr.textContent=Oc),Fs.forEach(i),wl=n(C),lt=a(C,"DIV",{class:!0});var Zs=y(lt);c(zo.$$.fragment,Zs),$l=n(Zs),Rr=a(Zs,"P",{"data-svelte-h":!0}),d(Rr)!=="svelte-x8fgs0"&&(Rr.textContent=Kc),Zs.forEach(i),kl=n(C),mt=a(C,"DIV",{class:!0});var Is=y(mt);c(Lo.$$.fragment,Is),Cl=n(Is),Er=a(Is,"P",{"data-svelte-h":!0}),d(Er)!=="svelte-oo8tit"&&(Er.innerHTML=ep),Is.forEach(i),Pl=n(C),ct=a(C,"DIV",{class:!0});var Ws=y(ct);c(Go.$$.fragment,Ws),Ul=n(Ws),Yr=a(Ws,"P",{"data-svelte-h":!0}),d(Yr)!=="svelte-oo8tit"&&(Yr.innerHTML=tp),Ws.forEach(i),C.forEach(i),Ea=n(t),c(Bo.$$.fragment,t),Ya=n(t),N=a(t,"DIV",{class:!0});var Pa=y(N);c(Vo.$$.fragment,Pa),Jl=n(Pa),Qr=a(Pa,"P",{"data-svelte-h":!0}),d(Qr)!=="svelte-1dqi2f3"&&(Qr.innerHTML=op),jl=n(Pa),pt=a(Pa,"DIV",{class:!0});var zs=y(pt);c(Ho.$$.fragment,zs),Fl=n(zs),Sr=a(zs,"P",{"data-svelte-h":!0}),d(Sr)!=="svelte-im20fs"&&(Sr.textContent=np),zs.forEach(i),Pa.forEach(i),Qa=n(t),c(qo.$$.fragment,t),Sa=n(t),J=a(t,"DIV",{class:!0});var I=y(J);c(No.$$.fragment,I),Zl=n(I),Ar=a(I,"P",{"data-svelte-h":!0}),d(Ar)!=="svelte-12nk4t7"&&(Ar.textContent=rp),Il=n(I),Or=a(I,"P",{"data-svelte-h":!0}),d(Or)!=="svelte-eltemh"&&(Or.innerHTML=ap),Wl=n(I),Kr=a(I,"P",{"data-svelte-h":!0}),d(Kr)!=="svelte-1qxxkvo"&&(Kr.textContent=sp),zl=n(I),ea=a(I,"UL",{"data-svelte-h":!0}),d(ea)!=="svelte-1giaft3"&&(ea.innerHTML=ip),Ll=n(I),ie=a(I,"DIV",{class:!0});var Ua=y(ie);c(Xo.$$.fragment,Ua),Gl=n(Ua),ta=a(Ua,"P",{"data-svelte-h":!0}),d(ta)!=="svelte-a8hf5e"&&(ta.textContent=dp),Bl=n(Ua),c(ht.$$.fragment,Ua),Ua.forEach(i),Vl=n(I),ft=a(I,"DIV",{class:!0});var Ls=y(ft);c(Do.$$.fragment,Ls),Hl=n(Ls),oa=a(Ls,"P",{"data-svelte-h":!0}),d(oa)!=="svelte-12hq10t"&&(oa.innerHTML=lp),Ls.forEach(i),ql=n(I),B=a(I,"DIV",{class:!0});var he=y(B);c(Ro.$$.fragment,he),Nl=n(he),na=a(he,"P",{"data-svelte-h":!0}),d(na)!=="svelte-1oaqdrm"&&(na.textContent=mp),Xl=n(he),ra=a(he,"P",{"data-svelte-h":!0}),d(ra)!=="svelte-floidm"&&(ra.innerHTML=cp),Dl=n(he),aa=a(he,"P",{"data-svelte-h":!0}),d(aa)!=="svelte-5vnnmn"&&(aa.innerHTML=pp),Rl=n(he),c(gt.$$.fragment,he),he.forEach(i),El=n(I),de=a(I,"DIV",{class:!0});var Ja=y(de);c(Eo.$$.fragment,Ja),Yl=n(Ja),sa=a(Ja,"P",{"data-svelte-h":!0}),d(sa)!=="svelte-plzzd0"&&(sa.innerHTML=hp),Ql=n(Ja),ia=a(Ja,"P",{"data-svelte-h":!0}),d(ia)!=="svelte-bzl1lx"&&(ia.textContent=fp),Ja.forEach(i),Sl=n(I),le=a(I,"DIV",{class:!0});var ja=y(le);c(Yo.$$.fragment,ja),Al=n(ja),da=a(ja,"P",{"data-svelte-h":!0}),d(da)!=="svelte-1ie4sav"&&(da.textContent=gp),Ol=n(ja),c(ut.$$.fragment,ja),ja.forEach(i),Kl=n(I),_t=a(I,"DIV",{class:!0});var Gs=y(_t);c(Qo.$$.fragment,Gs),em=n(Gs),la=a(Gs,"P",{"data-svelte-h":!0}),d(la)!=="svelte-40gpzv"&&(la.innerHTML=up),Gs.forEach(i),tm=n(I),H=a(I,"DIV",{class:!0});var Mt=y(H);c(So.$$.fragment,Mt),om=n(Mt),ma=a(Mt,"P",{"data-svelte-h":!0}),d(ma)!=="svelte-16uni9u"&&(ma.innerHTML=_p),nm=n(Mt),ca=a(Mt,"P",{"data-svelte-h":!0}),d(ca)!=="svelte-qh3hgx"&&(ca.textContent=bp),rm=n(Mt),c(bt.$$.fragment,Mt),Mt.forEach(i),am=n(I),q=a(I,"DIV",{class:!0});var xt=y(q);c(Ao.$$.fragment,xt),sm=n(xt),pa=a(xt,"P",{"data-svelte-h":!0}),d(pa)!=="svelte-uock64"&&(pa.innerHTML=yp),im=n(xt),ha=a(xt,"P",{"data-svelte-h":!0}),d(ha)!=="svelte-1rko7go"&&(ha.textContent=vp),dm=n(xt),c(yt.$$.fragment,xt),xt.forEach(i),lm=n(I),me=a(I,"DIV",{class:!0});var Fa=y(me);c(Oo.$$.fragment,Fa),mm=n(Fa),fa=a(Fa,"P",{"data-svelte-h":!0}),d(fa)!=="svelte-1jvan3s"&&(fa.innerHTML=Tp),cm=n(Fa),c(vt.$$.fragment,Fa),Fa.forEach(i),I.forEach(i),Aa=n(t),c(Ko.$$.fragment,t),Oa=n(t),X=a(t,"DIV",{class:!0});var Za=y(X);c(en.$$.fragment,Za),pm=n(Za),ga=a(Za,"P",{"data-svelte-h":!0}),d(ga)!=="svelte-s2i98"&&(ga.textContent=Mp),hm=n(Za),ce=a(Za,"DIV",{class:!0});var Ia=y(ce);c(tn.$$.fragment,Ia),fm=n(Ia),ua=a(Ia,"P",{"data-svelte-h":!0}),d(ua)!=="svelte-am4l6x"&&(ua.textContent=xp),gm=n(Ia),c(Tt.$$.fragment,Ia),Ia.forEach(i),Za.forEach(i),Ka=n(t),c(on.$$.fragment,t),es=n(t),D=a(t,"DIV",{class:!0});var Wa=y(D);c(nn.$$.fragment,Wa),um=n(Wa),_a=a(Wa,"P",{"data-svelte-h":!0}),d(_a)!=="svelte-16tfby7"&&(_a.innerHTML=wp),_m=n(Wa),ba=a(Wa,"P",{"data-svelte-h":!0}),d(ba)!=="svelte-bzl1lx"&&(ba.textContent=$p),Wa.forEach(i),ts=n(t),c(rn.$$.fragment,t),os=n(t),za=a(t,"P",{}),y(za).forEach(i),this.h()},h(){v(l,"name","hf:doc:metadata"),v(l,"content",Qp),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"),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(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(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(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(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($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(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(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(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(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(V,"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(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(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(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),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(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(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(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(M,"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(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(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(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(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(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(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(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(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(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(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(G,"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(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(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(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(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(at,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(qr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(st,"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(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(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(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(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(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(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(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(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(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(B,"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(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(_t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(H,"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(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(J,"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(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(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(t,b){e(document.head,l),$(t,U,b),$(t,_,b),$(t,u,b),p(k,t,b),$(t,s,b),$(t,P,b),$(t,La,b),$(t,$t,b),$(t,Ga,b),$(t,kt,b),$(t,Ba,b),$(t,Ct,b),$(t,Va,b),p(Pt,t,b),$(t,Ha,b),$(t,M,b),p(Ut,M,null),e(M,Vs),e(M,gn),e(M,Hs),e(M,un),e(M,qs),e(M,_n),e(M,Ns),e(M,bn),e(M,Xs),e(M,yn),e(M,Ds),e(M,Q),p(Jt,Q,null),e(Q,Rs),e(Q,vn),e(Q,Es),p(_e,Q,null),e(M,Ys),e(M,S),p(jt,S,null),e(S,Qs),e(S,Tn),e(S,Ss),p(be,S,null),e(M,As),e(M,ye),p(Ft,ye,null),e(ye,Os),e(ye,Mn),e(M,Ks),e(M,ve),p(Zt,ve,null),e(ve,ei),e(ve,xn),e(M,ti),e(M,Te),p(It,Te,null),e(Te,oi),e(Te,wn),e(M,ni),e(M,Me),p(Wt,Me,null),e(Me,ri),e(Me,$n),e(M,ai),e(M,F),p(zt,F,null),e(F,si),e(F,kn),e(F,ii),e(F,Cn),e(F,di),e(F,Pn),e(F,li),e(F,Un),e(F,mi),e(F,Jn),e(F,ci),p(xe,F,null),e(F,pi),p(we,F,null),e(F,hi),e(F,jn),e(F,fi),e(F,Fn),e(F,gi),e(F,Zn),e(F,ui),e(F,In),e(F,_i),e(F,Wn),e(M,bi),e(M,$e),p(Lt,$e,null),e($e,yi),e($e,zn),e(M,vi),e(M,ke),p(Gt,ke,null),e(ke,Ti),e(ke,Ln),e(M,Mi),e(M,Ce),p(Bt,Ce,null),e(Ce,xi),e(Ce,Gn),e(M,wi),e(M,Pe),p(Vt,Pe,null),e(Pe,$i),e(Pe,Bn),e(M,ki),e(M,A),p(Ht,A,null),e(A,Ci),e(A,Vn),e(A,Pi),e(A,Hn),e(M,Ui),e(M,V),p(qt,V,null),e(V,Ji),e(V,qn),e(V,ji),e(V,Nn),e(V,Fi),e(V,Xn),e(M,Zi),e(M,Ue),p(Nt,Ue,null),e(Ue,Ii),e(Ue,Dn),e(M,Wi),e(M,Je),p(Xt,Je,null),e(Je,zi),e(Je,Rn),e(M,Li),e(M,je),p(Dt,je,null),e(je,Gi),e(je,En),e(M,Bi),e(M,O),p(Rt,O,null),e(O,Vi),e(O,Yn),e(O,Hi),p(Fe,O,null),e(M,qi),e(M,K),p(Et,K,null),e(K,Ni),e(K,Qn),e(K,Xi),e(K,Sn),e(M,Di),e(M,Ze),p(Yt,Ze,null),e(Ze,Ri),e(Ze,An),e(M,Ei),e(M,Ie),p(Qt,Ie,null),e(Ie,Yi),e(Ie,On),e(M,Qi),e(M,We),p(St,We,null),e(We,Si),e(We,Kn),e(M,Ai),e(M,ee),p(At,ee,null),e(ee,Oi),e(ee,er),e(ee,Ki),e(ee,tr),e(M,ed),e(M,te),p(Ot,te,null),e(te,td),e(te,or),e(te,od),e(te,nr),e(M,nd),e(M,oe),p(Kt,oe,null),e(oe,rd),e(oe,rr),e(oe,ad),e(oe,ar),e(M,sd),e(M,ze),p(eo,ze,null),e(ze,id),e(ze,sr),$(t,qa,b),$(t,to,b),$(t,Na,b),p(oo,t,b),$(t,Xa,b),$(t,W,b),p(no,W,null),e(W,dd),e(W,ir),e(W,ld),e(W,ne),p(ro,ne,null),e(ne,md),e(ne,dr),e(ne,cd),e(ne,lr),e(W,pd),e(W,Le),p(ao,Le,null),e(Le,hd),e(Le,mr),e(W,fd),e(W,Ge),p(so,Ge,null),e(Ge,gd),e(Ge,cr),e(W,ud),e(W,Be),p(io,Be,null),e(Be,_d),e(Be,pr),e(W,bd),e(W,Ve),p(lo,Ve,null),e(Ve,yd),e(Ve,hr),e(W,vd),e(W,He),p(mo,He,null),e(He,Td),e(He,fr),e(W,Md),e(W,qe),p(co,qe,null),e(qe,xd),e(qe,gr),e(W,wd),e(W,Ne),p(po,Ne,null),e(Ne,$d),e(Ne,ur),$(t,Da,b),p(ho,t,b),$(t,Ra,b),$(t,x,b),p(fo,x,null),e(x,kd),e(x,_r),e(x,Cd),e(x,br),e(x,Pd),e(x,yr),e(x,Ud),e(x,vr),e(x,Jd),e(x,Tr),e(x,jd),e(x,re),p(go,re,null),e(re,Fd),e(re,Mr),e(re,Zd),p(Xe,re,null),e(x,Id),e(x,De),p(uo,De,null),e(De,Wd),e(De,xr),e(x,zd),e(x,Re),p(_o,Re,null),e(Re,Ld),e(Re,wr),e(x,Gd),e(x,Ee),p(bo,Ee,null),e(Ee,Bd),e(Ee,$r),e(x,Vd),e(x,G),p(yo,G,null),e(G,Hd),e(G,kr),e(G,qd),e(G,Cr),e(G,Nd),e(G,Pr),e(G,Xd),p(Ye,G,null),e(x,Dd),e(x,Qe),p(vo,Qe,null),e(Qe,Rd),e(Qe,Ur),e(x,Ed),e(x,Se),p(To,Se,null),e(Se,Yd),e(Se,Jr),e(x,Qd),e(x,Ae),p(Mo,Ae,null),e(Ae,Sd),e(Ae,jr),e(x,Ad),e(x,Oe),p(xo,Oe,null),e(Oe,Od),e(Oe,Fr),e(x,Kd),e(x,Ke),p(wo,Ke,null),e(Ke,el),e(Ke,Zr),e(x,tl),e(x,et),p($o,et,null),e(et,ol),e(et,Ir),e(x,nl),e(x,tt),p(ko,tt,null),e(tt,rl),e(tt,Wr),e(x,al),e(x,ot),p(Co,ot,null),e(ot,sl),e(ot,zr),e(x,il),e(x,nt),p(Po,nt,null),e(nt,dl),e(nt,Lr),e(x,ll),e(x,ae),p(Uo,ae,null),e(ae,ml),e(ae,Gr),e(ae,cl),p(rt,ae,null),e(x,pl),e(x,se),p(Jo,se,null),e(se,hl),e(se,Br),e(se,fl),e(se,Vr),e(x,gl),e(x,at),p(jo,at,null),e(at,ul),e(at,Hr),e(x,_l),e(x,qr),p(Fo,qr,null),e(x,bl),e(x,st),p(Zo,st,null),e(st,yl),e(st,Nr),e(x,vl),e(x,it),p(Io,it,null),e(it,Tl),e(it,Xr),e(x,Ml),e(x,dt),p(Wo,dt,null),e(dt,xl),e(dt,Dr),e(x,wl),e(x,lt),p(zo,lt,null),e(lt,$l),e(lt,Rr),e(x,kl),e(x,mt),p(Lo,mt,null),e(mt,Cl),e(mt,Er),e(x,Pl),e(x,ct),p(Go,ct,null),e(ct,Ul),e(ct,Yr),$(t,Ea,b),p(Bo,t,b),$(t,Ya,b),$(t,N,b),p(Vo,N,null),e(N,Jl),e(N,Qr),e(N,jl),e(N,pt),p(Ho,pt,null),e(pt,Fl),e(pt,Sr),$(t,Qa,b),p(qo,t,b),$(t,Sa,b),$(t,J,b),p(No,J,null),e(J,Zl),e(J,Ar),e(J,Il),e(J,Or),e(J,Wl),e(J,Kr),e(J,zl),e(J,ea),e(J,Ll),e(J,ie),p(Xo,ie,null),e(ie,Gl),e(ie,ta),e(ie,Bl),p(ht,ie,null),e(J,Vl),e(J,ft),p(Do,ft,null),e(ft,Hl),e(ft,oa),e(J,ql),e(J,B),p(Ro,B,null),e(B,Nl),e(B,na),e(B,Xl),e(B,ra),e(B,Dl),e(B,aa),e(B,Rl),p(gt,B,null),e(J,El),e(J,de),p(Eo,de,null),e(de,Yl),e(de,sa),e(de,Ql),e(de,ia),e(J,Sl),e(J,le),p(Yo,le,null),e(le,Al),e(le,da),e(le,Ol),p(ut,le,null),e(J,Kl),e(J,_t),p(Qo,_t,null),e(_t,em),e(_t,la),e(J,tm),e(J,H),p(So,H,null),e(H,om),e(H,ma),e(H,nm),e(H,ca),e(H,rm),p(bt,H,null),e(J,am),e(J,q),p(Ao,q,null),e(q,sm),e(q,pa),e(q,im),e(q,ha),e(q,dm),p(yt,q,null),e(J,lm),e(J,me),p(Oo,me,null),e(me,mm),e(me,fa),e(me,cm),p(vt,me,null),$(t,Aa,b),p(Ko,t,b),$(t,Oa,b),$(t,X,b),p(en,X,null),e(X,pm),e(X,ga),e(X,hm),e(X,ce),p(tn,ce,null),e(ce,fm),e(ce,ua),e(ce,gm),p(Tt,ce,null),$(t,Ka,b),p(on,t,b),$(t,es,b),$(t,D,b),p(nn,D,null),e(D,um),e(D,_a),e(D,_m),e(D,ba),$(t,ts,b),p(rn,t,b),$(t,os,b),$(t,za,b),ns=!0},p(t,[b]){const w={};b&2&&(w.$$scope={dirty:b,ctx:t}),_e.$set(w);const fe={};b&2&&(fe.$$scope={dirty:b,ctx:t}),be.$set(fe);const ge={};b&2&&(ge.$$scope={dirty:b,ctx:t}),xe.$set(ge);const an={};b&2&&(an.$$scope={dirty:b,ctx:t}),we.$set(an);const sn={};b&2&&(sn.$$scope={dirty:b,ctx:t}),Fe.$set(sn);const dn={};b&2&&(dn.$$scope={dirty:b,ctx:t}),Xe.$set(dn);const ln={};b&2&&(ln.$$scope={dirty:b,ctx:t}),Ye.$set(ln);const Z={};b&2&&(Z.$$scope={dirty:b,ctx:t}),rt.$set(Z);const mn={};b&2&&(mn.$$scope={dirty:b,ctx:t}),ht.$set(mn);const cn={};b&2&&(cn.$$scope={dirty:b,ctx:t}),gt.$set(cn);const pn={};b&2&&(pn.$$scope={dirty:b,ctx:t}),ut.$set(pn);const hn={};b&2&&(hn.$$scope={dirty:b,ctx:t}),bt.$set(hn);const ue={};b&2&&(ue.$$scope={dirty:b,ctx:t}),yt.$set(ue);const R={};b&2&&(R.$$scope={dirty:b,ctx:t}),vt.$set(R);const fn={};b&2&&(fn.$$scope={dirty:b,ctx:t}),Tt.$set(fn)},i(t){ns||(h(k.$$.fragment,t),h(Pt.$$.fragment,t),h(Ut.$$.fragment,t),h(Jt.$$.fragment,t),h(_e.$$.fragment,t),h(jt.$$.fragment,t),h(be.$$.fragment,t),h(Ft.$$.fragment,t),h(Zt.$$.fragment,t),h(It.$$.fragment,t),h(Wt.$$.fragment,t),h(zt.$$.fragment,t),h(xe.$$.fragment,t),h(we.$$.fragment,t),h(Lt.$$.fragment,t),h(Gt.$$.fragment,t),h(Bt.$$.fragment,t),h(Vt.$$.fragment,t),h(Ht.$$.fragment,t),h(qt.$$.fragment,t),h(Nt.$$.fragment,t),h(Xt.$$.fragment,t),h(Dt.$$.fragment,t),h(Rt.$$.fragment,t),h(Fe.$$.fragment,t),h(Et.$$.fragment,t),h(Yt.$$.fragment,t),h(Qt.$$.fragment,t),h(St.$$.fragment,t),h(At.$$.fragment,t),h(Ot.$$.fragment,t),h(Kt.$$.fragment,t),h(eo.$$.fragment,t),h(oo.$$.fragment,t),h(no.$$.fragment,t),h(ro.$$.fragment,t),h(ao.$$.fragment,t),h(so.$$.fragment,t),h(io.$$.fragment,t),h(lo.$$.fragment,t),h(mo.$$.fragment,t),h(co.$$.fragment,t),h(po.$$.fragment,t),h(ho.$$.fragment,t),h(fo.$$.fragment,t),h(go.$$.fragment,t),h(Xe.$$.fragment,t),h(uo.$$.fragment,t),h(_o.$$.fragment,t),h(bo.$$.fragment,t),h(yo.$$.fragment,t),h(Ye.$$.fragment,t),h(vo.$$.fragment,t),h(To.$$.fragment,t),h(Mo.$$.fragment,t),h(xo.$$.fragment,t),h(wo.$$.fragment,t),h($o.$$.fragment,t),h(ko.$$.fragment,t),h(Co.$$.fragment,t),h(Po.$$.fragment,t),h(Uo.$$.fragment,t),h(rt.$$.fragment,t),h(Jo.$$.fragment,t),h(jo.$$.fragment,t),h(Fo.$$.fragment,t),h(Zo.$$.fragment,t),h(Io.$$.fragment,t),h(Wo.$$.fragment,t),h(zo.$$.fragment,t),h(Lo.$$.fragment,t),h(Go.$$.fragment,t),h(Bo.$$.fragment,t),h(Vo.$$.fragment,t),h(Ho.$$.fragment,t),h(qo.$$.fragment,t),h(No.$$.fragment,t),h(Xo.$$.fragment,t),h(ht.$$.fragment,t),h(Do.$$.fragment,t),h(Ro.$$.fragment,t),h(gt.$$.fragment,t),h(Eo.$$.fragment,t),h(Yo.$$.fragment,t),h(ut.$$.fragment,t),h(Qo.$$.fragment,t),h(So.$$.fragment,t),h(bt.$$.fragment,t),h(Ao.$$.fragment,t),h(yt.$$.fragment,t),h(Oo.$$.fragment,t),h(vt.$$.fragment,t),h(Ko.$$.fragment,t),h(en.$$.fragment,t),h(tn.$$.fragment,t),h(Tt.$$.fragment,t),h(on.$$.fragment,t),h(nn.$$.fragment,t),h(rn.$$.fragment,t),ns=!0)},o(t){f(k.$$.fragment,t),f(Pt.$$.fragment,t),f(Ut.$$.fragment,t),f(Jt.$$.fragment,t),f(_e.$$.fragment,t),f(jt.$$.fragment,t),f(be.$$.fragment,t),f(Ft.$$.fragment,t),f(Zt.$$.fragment,t),f(It.$$.fragment,t),f(Wt.$$.fragment,t),f(zt.$$.fragment,t),f(xe.$$.fragment,t),f(we.$$.fragment,t),f(Lt.$$.fragment,t),f(Gt.$$.fragment,t),f(Bt.$$.fragment,t),f(Vt.$$.fragment,t),f(Ht.$$.fragment,t),f(qt.$$.fragment,t),f(Nt.$$.fragment,t),f(Xt.$$.fragment,t),f(Dt.$$.fragment,t),f(Rt.$$.fragment,t),f(Fe.$$.fragment,t),f(Et.$$.fragment,t),f(Yt.$$.fragment,t),f(Qt.$$.fragment,t),f(St.$$.fragment,t),f(At.$$.fragment,t),f(Ot.$$.fragment,t),f(Kt.$$.fragment,t),f(eo.$$.fragment,t),f(oo.$$.fragment,t),f(no.$$.fragment,t),f(ro.$$.fragment,t),f(ao.$$.fragment,t),f(so.$$.fragment,t),f(io.$$.fragment,t),f(lo.$$.fragment,t),f(mo.$$.fragment,t),f(co.$$.fragment,t),f(po.$$.fragment,t),f(ho.$$.fragment,t),f(fo.$$.fragment,t),f(go.$$.fragment,t),f(Xe.$$.fragment,t),f(uo.$$.fragment,t),f(_o.$$.fragment,t),f(bo.$$.fragment,t),f(yo.$$.fragment,t),f(Ye.$$.fragment,t),f(vo.$$.fragment,t),f(To.$$.fragment,t),f(Mo.$$.fragment,t),f(xo.$$.fragment,t),f(wo.$$.fragment,t),f($o.$$.fragment,t),f(ko.$$.fragment,t),f(Co.$$.fragment,t),f(Po.$$.fragment,t),f(Uo.$$.fragment,t),f(rt.$$.fragment,t),f(Jo.$$.fragment,t),f(jo.$$.fragment,t),f(Fo.$$.fragment,t),f(Zo.$$.fragment,t),f(Io.$$.fragment,t),f(Wo.$$.fragment,t),f(zo.$$.fragment,t),f(Lo.$$.fragment,t),f(Go.$$.fragment,t),f(Bo.$$.fragment,t),f(Vo.$$.fragment,t),f(Ho.$$.fragment,t),f(qo.$$.fragment,t),f(No.$$.fragment,t),f(Xo.$$.fragment,t),f(ht.$$.fragment,t),f(Do.$$.fragment,t),f(Ro.$$.fragment,t),f(gt.$$.fragment,t),f(Eo.$$.fragment,t),f(Yo.$$.fragment,t),f(ut.$$.fragment,t),f(Qo.$$.fragment,t),f(So.$$.fragment,t),f(bt.$$.fragment,t),f(Ao.$$.fragment,t),f(yt.$$.fragment,t),f(Oo.$$.fragment,t),f(vt.$$.fragment,t),f(Ko.$$.fragment,t),f(en.$$.fragment,t),f(tn.$$.fragment,t),f(Tt.$$.fragment,t),f(on.$$.fragment,t),f(nn.$$.fragment,t),f(rn.$$.fragment,t),ns=!1},d(t){t&&(i(U),i(_),i(u),i(s),i(P),i(La),i($t),i(Ga),i(kt),i(Ba),i(Ct),i(Va),i(Ha),i(M),i(qa),i(to),i(Na),i(Xa),i(W),i(Da),i(Ra),i(x),i(Ea),i(Ya),i(N),i(Qa),i(Sa),i(J),i(Aa),i(Oa),i(X),i(Ka),i(es),i(D),i(ts),i(os),i(za)),i(l),g(k,t),g(Pt,t),g(Ut),g(Jt),g(_e),g(jt),g(be),g(Ft),g(Zt),g(It),g(Wt),g(zt),g(xe),g(we),g(Lt),g(Gt),g(Bt),g(Vt),g(Ht),g(qt),g(Nt),g(Xt),g(Dt),g(Rt),g(Fe),g(Et),g(Yt),g(Qt),g(St),g(At),g(Ot),g(Kt),g(eo),g(oo,t),g(no),g(ro),g(ao),g(so),g(io),g(lo),g(mo),g(co),g(po),g(ho,t),g(fo),g(go),g(Xe),g(uo),g(_o),g(bo),g(yo),g(Ye),g(vo),g(To),g(Mo),g(xo),g(wo),g($o),g(ko),g(Co),g(Po),g(Uo),g(rt),g(Jo),g(jo),g(Fo),g(Zo),g(Io),g(Wo),g(zo),g(Lo),g(Go),g(Bo,t),g(Vo),g(Ho),g(qo,t),g(No),g(Xo),g(ht),g(Do),g(Ro),g(gt),g(Eo),g(Yo),g(ut),g(Qo),g(So),g(bt),g(Ao),g(yt),g(Oo),g(vt),g(Ko,t),g(en),g(tn),g(Tt),g(on,t),g(nn),g(rn,t)}}}const Qp='{"title":"Models","local":"models","sections":[{"title":"PreTrainedModel","local":"transformers.PreTrainedModel","sections":[],"depth":2},{"title":"ModuleUtilsMixin","local":"transformers.modeling_utils.ModuleUtilsMixin","sections":[],"depth":2},{"title":"TFPreTrainedModel","local":"transformers.TFPreTrainedModel","sections":[],"depth":2},{"title":"TFModelUtilsMixin","local":"transformers.modeling_tf_utils.TFModelUtilsMixin","sections":[],"depth":2},{"title":"FlaxPreTrainedModel","local":"transformers.FlaxPreTrainedModel","sections":[],"depth":2},{"title":"Pushing to the Hub","local":"transformers.utils.PushToHubMixin","sections":[],"depth":2},{"title":"Sharded checkpoints","local":"transformers.modeling_utils.load_sharded_checkpoint","sections":[],"depth":2}],"depth":1}';function Sp(j){return Pp(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class rh extends Up{constructor(l){super(),Jp(this,l,Sp,Yp,Cp,{})}}export{rh as component};
