import{s as Ac,o as Oc,n as z}from"../chunks/scheduler.25b97de1.js";import{S as Kc,i as ep,g as r,s as o,r as m,A as tp,h as a,f as i,c as n,j as v,u as c,x as l,k as y,y as e,a as $,v as p,d as h,t as f,w as u}from"../chunks/index.d9030fc9.js";import{T as xs}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 Tt,E as op}from"../chunks/EditOnGithub.91d95064.js";function np(j){let d,U="Examples:",_,g,x;return g=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(){d=r("p"),d.textContent=U,_=o(),m(g.$$.fragment)},l(s){d=a(s,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=U),_=n(s),c(g.$$.fragment,s)},m(s,P){$(s,d,P),$(s,_,P),p(g,s,P),x=!0},p:z,i(s){x||(h(g.$$.fragment,s),x=!0)},o(s){f(g.$$.fragment,s),x=!1},d(s){s&&(i(d),i(_)),u(g,s)}}}function rp(j){let d,U="Examples:",_,g,x;return g=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(){d=r("p"),d.textContent=U,_=o(),m(g.$$.fragment)},l(s){d=a(s,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=U),_=n(s),c(g.$$.fragment,s)},m(s,P){$(s,d,P),$(s,_,P),p(g,s,P),x=!0},p:z,i(s){x||(h(g.$$.fragment,s),x=!0)},o(s){f(g.$$.fragment,s),x=!1},d(s){s&&(i(d),i(_)),u(g,s)}}}function ap(j){let d,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(){d=r("p"),d.innerHTML=U},l(_){d=a(_,"P",{"data-svelte-h":!0}),l(d)!=="svelte-13hahdn"&&(d.innerHTML=U)},m(_,g){$(_,d,g)},p:z,d(_){_&&i(d)}}}function sp(j){let d,U="Examples:",_,g,x;return g=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(){d=r("p"),d.textContent=U,_=o(),m(g.$$.fragment)},l(s){d=a(s,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=U),_=n(s),c(g.$$.fragment,s)},m(s,P){$(s,d,P),$(s,_,P),p(g,s,P),x=!0},p:z,i(s){x||(h(g.$$.fragment,s),x=!0)},o(s){f(g.$$.fragment,s),x=!1},d(s){s&&(i(d),i(_)),u(g,s)}}}function ip(j){let d,U="This API is experimental and may have some slight breaking changes in the next releases.";return{c(){d=r("p"),d.textContent=U},l(_){d=a(_,"P",{"data-svelte-h":!0}),l(d)!=="svelte-15rpg4"&&(d.textContent=U)},m(_,g){$(_,d,g)},p:z,d(_){_&&i(d)}}}function dp(j){let d,U="Examples:",_,g,x;return g=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(){d=r("p"),d.textContent=U,_=o(),m(g.$$.fragment)},l(s){d=a(s,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=U),_=n(s),c(g.$$.fragment,s)},m(s,P){$(s,d,P),$(s,_,P),p(g,s,P),x=!0},p:z,i(s){x||(h(g.$$.fragment,s),x=!0)},o(s){f(g.$$.fragment,s),x=!1},d(s){s&&(i(d),i(_)),u(g,s)}}}function lp(j){let d,U="Examples:",_,g,x;return g=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(){d=r("p"),d.textContent=U,_=o(),m(g.$$.fragment)},l(s){d=a(s,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=U),_=n(s),c(g.$$.fragment,s)},m(s,P){$(s,d,P),$(s,_,P),p(g,s,P),x=!0},p:z,i(s){x||(h(g.$$.fragment,s),x=!0)},o(s){f(g.$$.fragment,s),x=!1},d(s){s&&(i(d),i(_)),u(g,s)}}}function mp(j){let d,U="This API is experimental and may have some slight breaking changes in the next releases.";return{c(){d=r("p"),d.textContent=U},l(_){d=a(_,"P",{"data-svelte-h":!0}),l(d)!=="svelte-15rpg4"&&(d.textContent=U)},m(_,g){$(_,d,g)},p:z,d(_){_&&i(d)}}}function cp(j){let d,U="Examples:",_,g,x;return g=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(){d=r("p"),d.textContent=U,_=o(),m(g.$$.fragment)},l(s){d=a(s,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=U),_=n(s),c(g.$$.fragment,s)},m(s,P){$(s,d,P),$(s,_,P),p(g,s,P),x=!0},p:z,i(s){x||(h(g.$$.fragment,s),x=!0)},o(s){f(g.$$.fragment,s),x=!1},d(s){s&&(i(d),i(_)),u(g,s)}}}function pp(j){let d,U="Examples:",_,g,x;return g=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(){d=r("p"),d.textContent=U,_=o(),m(g.$$.fragment)},l(s){d=a(s,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=U),_=n(s),c(g.$$.fragment,s)},m(s,P){$(s,d,P),$(s,_,P),p(g,s,P),x=!0},p:z,i(s){x||(h(g.$$.fragment,s),x=!0)},o(s){f(g.$$.fragment,s),x=!1},d(s){s&&(i(d),i(_)),u(g,s)}}}function hp(j){let d,U="This API is experimental and may have some slight breaking changes in the next releases.";return{c(){d=r("p"),d.textContent=U},l(_){d=a(_,"P",{"data-svelte-h":!0}),l(d)!=="svelte-15rpg4"&&(d.textContent=U)},m(_,g){$(_,d,g)},p:z,d(_){_&&i(d)}}}function fp(j){let d,U="Examples:",_,g,x;return g=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(){d=r("p"),d.textContent=U,_=o(),m(g.$$.fragment)},l(s){d=a(s,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=U),_=n(s),c(g.$$.fragment,s)},m(s,P){$(s,d,P),$(s,_,P),p(g,s,P),x=!0},p:z,i(s){x||(h(g.$$.fragment,s),x=!0)},o(s){f(g.$$.fragment,s),x=!1},d(s){s&&(i(d),i(_)),u(g,s)}}}function up(j){let d,U="Examples:",_,g,x;return g=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(){d=r("p"),d.textContent=U,_=o(),m(g.$$.fragment)},l(s){d=a(s,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=U),_=n(s),c(g.$$.fragment,s)},m(s,P){$(s,d,P),$(s,_,P),p(g,s,P),x=!0},p:z,i(s){x||(h(g.$$.fragment,s),x=!0)},o(s){f(g.$$.fragment,s),x=!1},d(s){s&&(i(d),i(_)),u(g,s)}}}function gp(j){let d,U="Examples:",_,g,x;return g=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(){d=r("p"),d.textContent=U,_=o(),m(g.$$.fragment)},l(s){d=a(s,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=U),_=n(s),c(g.$$.fragment,s)},m(s,P){$(s,d,P),$(s,_,P),p(g,s,P),x=!0},p:z,i(s){x||(h(g.$$.fragment,s),x=!0)},o(s){f(g.$$.fragment,s),x=!1},d(s){s&&(i(d),i(_)),u(g,s)}}}function _p(j){let d,U="Examples:",_,g,x;return g=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(){d=r("p"),d.textContent=U,_=o(),m(g.$$.fragment)},l(s){d=a(s,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=U),_=n(s),c(g.$$.fragment,s)},m(s,P){$(s,d,P),$(s,_,P),p(g,s,P),x=!0},p:z,i(s){x||(h(g.$$.fragment,s),x=!0)},o(s){f(g.$$.fragment,s),x=!1},d(s){s&&(i(d),i(_)),u(g,s)}}}function bp(j){let d,U,_,g,x,s,P,Yl=`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).`,wa,Mt,Ql=`<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:`,$a,xt,Sl="<li>resize the input token embeddings when new tokens are added to the vocabulary</li> <li>prune the attention heads of the model.</li>",ka,wt,Al=`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).`,Ca,$t,Pa,w,kt,ws,dn,Ol="Base class for all models.",$s,ln,Kl=`<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:`,ks,mn,em="<li>resize the input embeddings,</li> <li>prune heads in the self-attention heads.</li>",Cs,cn,tm="Class attributes (overridden by derived classes):",Ps,pn,om=`<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>`,Us,Q,Ct,Js,hn,nm="Upload the model file to the 🤗 Model Hub.",js,ge,Fs,S,Pt,Zs,fn,rm=`Add custom tags into the model that gets pushed to the Hugging Face Hub. Will
not overwrite existing tags in the model.`,Is,_e,Ws,be,Ut,Gs,un,am="Returns whether this model can generate sequences with <code>.generate()</code>.",zs,ve,Jt,Ls,gn,sm="Removes the <code>_require_grads_hook</code>.",Bs,ye,jt,Vs,_n,im=`Enables the gradients for the input embeddings. This is useful for fine-tuning adapter weights while keeping
the model weights fixed.`,Hs,F,Ft,qs,bn,dm="Instantiate a pretrained pytorch model from a pre-trained model configuration.",Xs,vn,lm=`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>.`,Rs,yn,mm=`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.`,Ds,Tn,cm=`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.`,Ns,Te,Es,Me,Ys,Mn,pm="<li><code>low_cpu_mem_usage</code> algorithm:</li>",Qs,xn,hm="This is an experimental function that loads the model using ~1x model size CPU memory",Ss,wn,fm="Here is how it works:",As,$n,um=`<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>`,Os,kn,gm="Currently, it can’t handle deepspeed ZeRO stage 3 and ignores loading errors",Ks,xe,Zt,ei,Cn,_m="Returns the model’s input embeddings.",ti,we,It,oi,Pn,bm=`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>`,ni,$e,Wt,ri,Un,vm="Returns the model’s output embeddings.",ai,A,Gt,si,Jn,ym="Deactivates gradient checkpointing for the current model.",ii,jn,Tm=`Note that in other frameworks this feature can be referred to as “activation checkpointing” or “checkpoint
activations”.`,di,V,zt,li,Fn,Mm="Activates gradient checkpointing for the current model.",mi,Zn,xm=`Note that in other frameworks this feature can be referred to as “activation checkpointing” or “checkpoint
activations”.`,ci,In,wm=`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>`,pi,ke,Lt,hi,Wn,$m=`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>.`,fi,Ce,Bt,ui,Gn,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).`,gi,Pe,Vt,_i,zn,Cm="Prunes heads of the base model.",bi,O,Ht,vi,Ln,Pm=`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.`,yi,Ue,Ti,K,qt,Mi,Bn,Um="Resizes input token embeddings matrix of the model if <code>new_num_tokens != config.vocab_size</code>.",xi,Vn,Jm="Takes care of tying weights embeddings afterwards if the model class has a <code>tie_weights()</code> method.",wi,Je,Xt,$i,Hn,jm=`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.`,ki,je,Rt,Ci,qn,Fm=`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.`,Pi,Fe,Dt,Ui,Xn,Zm="Set model’s input embeddings.",Ji,ee,Nt,ji,Rn,Im="Tie the weights between the input embeddings and the output embeddings.",Fi,Dn,Wm=`If the <code>torchscript</code> flag is set in the configuration, can’t handle parameter sharing so we are cloning the
weights instead.`,Zi,te,Et,Ii,Nn,Gm=`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.`,Wi,En,zm=`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>.`,Gi,Ze,Yt,zi,Yn,Lm="Shows a one-time warning if the input_ids appear to contain padding and no attention mask was given.",Ua,Qt,Ja,W,St,Li,Qn,Bm="A few utilities for <code>torch.nn.Modules</code>, to be used as a mixin.",Bi,oe,At,Vi,Sn,Vm="Add a memory hook before and after each sub-module forward pass to record increase in memory consumption.",Hi,An,Hm=`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>.`,qi,Ie,Ot,Xi,On,qm="Helper function to estimate the total number of tokens from the model inputs.",Ri,We,Kt,Di,Kn,Xm=`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.`,Ni,Ge,eo,Ei,er,Rm="Makes broadcastable attention and causal masks so that future and masked tokens are ignored.",Yi,ze,to,Qi,tr,Dm="Prepare the head mask if needed.",Si,Le,oo,Ai,or,Nm="Invert an attention mask (e.g., switches 0. and 1.).",Oi,Be,no,Ki,nr,Em="Get number of (optionally, trainable or non-embeddings) parameters in the module.",ed,Ve,ro,td,rr,Ym='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>).',ja,ao,Fa,M,so,od,ar,Qm="Base class for all TF models.",nd,sr,Sm=`<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:`,rd,ir,Am="<li>resize the input embeddings,</li> <li>prune heads in the self-attention heads.</li>",ad,dr,Om="Class attributes (overridden by derived classes):",sd,lr,Km=`<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>`,id,ne,io,dd,mr,ec="Upload the model files to the 🤗 Model Hub while synchronizing a local clone of the repo in <code>repo_path_or_name</code>.",ld,He,md,qe,lo,cd,cr,tc="Returns whether this model can generate sequences with <code>.generate()</code>.",pd,Xe,mo,hd,pr,oc=`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.`,fd,Re,co,ud,hr,nc="Creates a draft of a model card using the information available to the <code>Trainer</code>.",gd,L,po,_d,fr,rc="Instantiate a pretrained TF 2.0 model from a pre-trained model configuration.",bd,ur,ac=`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.`,vd,gr,sc=`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.`,yd,De,Td,Ne,ho,Md,_r,ic="Dict of bias attached to an LM head. The key represents the name of the bias attribute.",xd,Ee,fo,wd,br,dc="Prepare the head mask if needed.",$d,Ye,uo,kd,vr,lc="Returns the model’s input embeddings layer.",Cd,Qe,go,Pd,yr,mc="The LM Head layer. This method must be overwritten by all the models that have a lm head.",Ud,Se,_o,Jd,Tr,cc="Returns the model’s output embeddings",jd,Ae,bo,Fd,Mr,pc=`Get the layer that handles a bias attribute in case the model has an LM head with weights tied to the
embeddings`,Zd,Oe,vo,Id,xr,hc="Get the concatenated _prefix name of the bias from the model name to the parent layer",Wd,Ke,yo,Gd,wr,fc=`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.`,zd,et,To,Ld,$r,uc="Prunes heads of the base model.",Bd,re,Mo,Vd,kr,gc=`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.`,Hd,tt,qd,ae,xo,Xd,Cr,_c="Resizes input token embeddings matrix of the model if <code>new_num_tokens != config.vocab_size</code>.",Rd,Pr,bc="Takes care of tying weights embeddings afterwards if the model class has a <code>tie_weights()</code> method.",Dd,ot,wo,Nd,Ur,vc=`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.`,Ed,Jr,$o,Yd,nt,ko,Qd,jr,yc="Prepare the output of the saved model. Can be overridden if specific serving modifications are required.",Sd,rt,Co,Ad,Fr,Tc="Set all the bias in the LM head.",Od,at,Po,Kd,Zr,Mc="Set model’s input embeddings",el,st,Uo,tl,Ir,xc="Set model’s output embeddings",ol,it,Jo,nl,Wr,wc=`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.`,rl,dt,jo,al,Gr,$c=`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.`,Za,Fo,Ia,X,Zo,sl,zr,kc="A few utilities for <code>keras.Model</code>, to be used as a mixin.",il,lt,Io,dl,Lr,Cc="Get the number of (optionally, trainable) parameters in the model.",Wa,Wo,Ga,J,Go,ll,Br,Pc="Base class for all models.",ml,Vr,Uc=`<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.`,cl,Hr,Jc="Class attributes (overridden by derived classes):",pl,qr,jc=`<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>`,hl,se,zo,fl,Xr,Fc="Upload the model checkpoint to the 🤗 Model Hub.",ul,mt,gl,ct,Lo,_l,Rr,Zc=`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>.`,bl,B,Bo,vl,Dr,Ic="Instantiate a pretrained flax model from a pre-trained model configuration.",yl,Nr,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.`,Tl,Er,Gc=`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.`,Ml,pt,xl,ie,Vo,wl,Yr,zc=`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.`,$l,Qr,Lc=`This load is performed efficiently: each checkpoint shard is loaded one by one in RAM and deleted after being
loaded in the model.`,kl,de,Ho,Cl,Sr,Bc=`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.`,Pl,ht,Ul,ft,qo,Jl,Ar,Vc=`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`,jl,H,Xo,Fl,Or,Hc=`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.`,Zl,Kr,qc=`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.`,Il,ut,Wl,q,Ro,Gl,ea,Xc=`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.`,zl,ta,Rc=`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.`,Ll,gt,Bl,le,Do,Vl,oa,Dc=`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.`,Hl,_t,za,No,La,R,Eo,ql,na,Nc="A Mixin containing the functionality to push a model or tokenizer to the hub.",Xl,me,Yo,Rl,ra,Ec="Upload the {object_files} to the 🤗 Model Hub.",Dl,bt,Ba,Qo,Va,D,So,Nl,aa,Yc=`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.`,El,sa,Qc=`This load is performed efficiently: each checkpoint shard is loaded one by one in RAM and deleted after being
loaded in the model.`,Ha,Ao,qa,xa,Xa;return x=new Tt({props:{title:"Models",local:"models",headingTag:"h1"}}),$t=new Tt({props:{title:"PreTrainedModel",local:"transformers.PreTrainedModel",headingTag:"h2"}}),kt=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#L1223"}}),Ct=new T({props:{name:"push_to_hub",anchor:"transformers.PreTrainedModel.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": Optional = None"},{name:"commit_message",val:": Optional = None"},{name:"private",val:": Optional = None"},{name:"token",val:": Union = None"},{name:"max_shard_size",val:": Union = '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:": Optional = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.PreTrainedModel.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your model to. It should contain your organization name
when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.PreTrainedModel.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.PreTrainedModel.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload model&quot;</code>.`,name:"commit_message"},{anchor:"transformers.PreTrainedModel.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the repository created should be private.`,name:"private"},{anchor:"transformers.PreTrainedModel.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>). Will default to <code>True</code> if <code>repo_url</code>
is not specified.`,name:"token"},{anchor:"transformers.PreTrainedModel.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;5GB&quot;</code>) &#x2014;
Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard
will then be each of size lower than this size. If expressed as a string, needs to be digits followed
by a unit (like <code>&quot;5MB&quot;</code>). We default it to <code>&quot;5GB&quot;</code> so that users can easily load models on free-tier
Google Colab instances without any CPU OOM issues.`,name:"max_shard_size"},{anchor:"transformers.PreTrainedModel.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"transformers.PreTrainedModel.push_to_hub.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to convert the model weights in safetensors format for safer serialization.`,name:"safe_serialization"},{anchor:"transformers.PreTrainedModel.push_to_hub.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Branch to push the uploaded files to.`,name:"revision"},{anchor:"transformers.PreTrainedModel.push_to_hub.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created`,name:"commit_description"},{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#L770"}}),ge=new E({props:{anchor:"transformers.PreTrainedModel.push_to_hub.example",$$slots:{default:[np]},$$scope:{ctx:j}}}),Pt=new T({props:{name:"add_model_tags",anchor:"transformers.PreTrainedModel.add_model_tags",parameters:[{name:"tags",val:": Union"}],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#L1336"}}),_e=new E({props:{anchor:"transformers.PreTrainedModel.add_model_tags.example",$$slots:{default:[rp]},$$scope:{ctx:j}}}),Ut=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#L1508",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>
`}}),Jt=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#L1653"}}),jt=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#L1642"}}),Ft=new T({props:{name:"from_pretrained",anchor:"transformers.PreTrainedModel.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": Union"},{name:"*model_args",val:""},{name:"config",val:": Union = None"},{name:"cache_dir",val:": Union = None"},{name:"ignore_mismatched_sizes",val:": bool = False"},{name:"force_download",val:": bool = False"},{name:"local_files_only",val:": bool = False"},{name:"token",val:": Union = None"},{name:"revision",val:": str = 'main'"},{name:"use_safetensors",val:": bool = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PreTrainedModel.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> of a pretrained model hosted inside a model repo on huggingface.co.</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.
resume_download &#x2014;
Deprecated and ignored. All downloads are now resumed by default when possible.
Will be removed in v5 of Transformers.`,name:"force_download"},{anchor:"transformers.PreTrainedModel.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, e.g., <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"transformers.PreTrainedModel.from_pretrained.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether ot not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"transformers.PreTrainedModel.from_pretrained.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (i.e., do not try to download the model).`,name:"local_files_only(bool,"},{anchor:"transformers.PreTrainedModel.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.PreTrainedModel.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>To test a pull request you made on the Hub, you can pass \`revision=&#x201C;refs/pr/<pr_number>&#x201C;.</pr_number></p>

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

					</div>`,name:"_fast_init(bool,"},{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#L2723",parameterGroups:[{title:"Parameters for big model inference",parametersDescription:[{anchor:"transformers.PreTrainedModel.from_pretrained.low_cpu_mem_usage(bool,",description:`<strong>low_cpu_mem_usage(<code>bool</code>,</strong> <em>optional</em>) &#x2014;
Tries to not use more than 1x model size in CPU memory (including peak memory) while loading the model.
This is an experimental feature and a subject to change at any moment.`,name:"low_cpu_mem_usage(bool,"},{anchor:"transformers.PreTrainedModel.from_pretrained.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) &#x2014;
Override the default <code>torch.dtype</code> and load the model under a specific <code>dtype</code>. The different options
are:</p>
<ol>
<li>
<p><code>torch.float16</code> or <code>torch.bfloat16</code> or <code>torch.float</code>: load in a specified
<code>dtype</code>, ignoring the model&#x2019;s <code>config.torch_dtype</code> if one exists. If not specified</p>
<ul>
<li>the model will get loaded in <code>torch.float</code> (fp32).</li>
</ul>
</li>
<li>
<p><code>&quot;auto&quot;</code> - A <code>torch_dtype</code> entry in the <code>config.json</code> file of the model will be
attempted to be used. If this entry isn&#x2019;t found then next check the <code>dtype</code> of the first weight in
the checkpoint that&#x2019;s of a floating point type and use that as <code>dtype</code>. This will load the model
using the <code>dtype</code> it was saved in at the end of the training. It can&#x2019;t be used as an indicator of how
the model was trained. Since it could be trained in one of half precision dtypes, but saved in fp32.</p>
</li>
</ol>
<tip>
<p>For some models the <code>dtype</code> they were trained in is unknown - you may try to check the model&#x2019;s paper or
reach out to the authors and ask them to add this information to the model&#x2019;s card and to insert the
<code>torch_dtype</code> entry in <code>config.json</code> on the hub.</p>
</tip>`,name:"torch_dtype"},{anchor:"transformers.PreTrainedModel.from_pretrained.device_map",description:`<strong>device_map</strong> (<code>str</code> or <code>Dict[str, Union[int, str, torch.device]]</code> or <code>int</code> or <code>torch.device</code>, <em>optional</em>) &#x2014;
A map that specifies where each submodule should go. It doesn&#x2019;t need to be refined to each
parameter/buffer name, once a given module name is inside, every submodule of it will be sent to the
same device. If we only pass the device (<em>e.g.</em>, <code>&quot;cpu&quot;</code>, <code>&quot;cuda:1&quot;</code>, <code>&quot;mps&quot;</code>, or a GPU ordinal rank
like <code>1</code>) on which the model will be allocated, the device map will map the entire model to this
device. Passing <code>device_map = 0</code> means put the whole model on GPU 0.</p>
<p>To have Accelerate compute the most optimized <code>device_map</code> automatically, set <code>device_map=&quot;auto&quot;</code>. For
more information about each option see <a href="https://hf.co/docs/accelerate/main/en/usage_guides/big_modeling#designing-a-device-map" rel="nofollow">designing a device
map</a>.`,name:"device_map"},{anchor:"transformers.PreTrainedModel.from_pretrained.max_memory",description:`<strong>max_memory</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
A dictionary device identifier to maximum memory. Will default to the maximum memory available for each
GPU and the available CPU RAM if unset.`,name:"max_memory"},{anchor:"transformers.PreTrainedModel.from_pretrained.offload_folder",description:`<strong>offload_folder</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
If the <code>device_map</code> contains any value <code>&quot;disk&quot;</code>, the folder where we will offload weights.`,name:"offload_folder"},{anchor:"transformers.PreTrainedModel.from_pretrained.offload_state_dict",description:`<strong>offload_state_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, will temporarily offload the CPU state dict to the hard drive to avoid getting out of CPU
RAM if the weight of the CPU state dict + the biggest shard of the checkpoint does not fit. Defaults to
<code>True</code> when there is some disk offload.`,name:"offload_state_dict"},{anchor:"transformers.PreTrainedModel.from_pretrained.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.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"}]}]}}),Te=new xs({props:{$$slots:{default:[ap]},$$scope:{ctx:j}}}),Me=new E({props:{anchor:"transformers.PreTrainedModel.from_pretrained.example",$$slots:{default:[sp]},$$scope:{ctx:j}}}),Zt=new T({props:{name:"get_input_embeddings",anchor:"transformers.PreTrainedModel.get_input_embeddings",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1659",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>
`}}),It=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#L2642"}}),Wt=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#L1685",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>
`}}),Gt=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#L2267"}}),zt=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#L2203"}}),Lt=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#L2169"}}),Bt=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#L1322"}}),Vt=new T({props:{name:"prune_heads",anchor:"transformers.PreTrainedModel.prune_heads",parameters:[{name:"heads_to_prune",val:": Dict"}],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#L2186"}}),Ht=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#L4277"}}),Ue=new xs({props:{warning:!0,$$slots:{default:[ip]},$$scope:{ctx:j}}}),qt=new T({props:{name:"resize_token_embeddings",anchor:"transformers.PreTrainedModel.resize_token_embeddings",parameters:[{name:"new_num_tokens",val:": Optional = None"},{name:"pad_to_multiple_of",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.PreTrainedModel.resize_token_embeddings.new_num_tokens",description:`<strong>new_num_tokens</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The 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"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1878",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>torch.nn.Embedding</code></p>
`}}),Xt=new T({props:{name:"reverse_bettertransformer",anchor:"transformers.PreTrainedModel.reverse_bettertransformer",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L4331",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>
`}}),Rt=new T({props:{name:"save_pretrained",anchor:"transformers.PreTrainedModel.save_pretrained",parameters:[{name:"save_directory",val:": Union"},{name:"is_main_process",val:": bool = True"},{name:"state_dict",val:": Optional = None"},{name:"save_function",val:": Callable = <function save at 0x7fe8bd7add80>"},{name:"push_to_hub",val:": bool = False"},{name:"max_shard_size",val:": Union = '5GB'"},{name:"safe_serialization",val:": bool = True"},{name:"variant",val:": Optional = None"},{name:"token",val:": Union = 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#L2300"}}),Dt=new T({props:{name:"set_input_embeddings",anchor:"transformers.PreTrainedModel.set_input_embeddings",parameters:[{name:"value",val:": Module"}],parametersDescription:[{anchor:"transformers.PreTrainedModel.set_input_embeddings.value",description:"<strong>value</strong> (<code>nn.Module</code>) &#x2014; A module mapping vocabulary to hidden states.",name:"value"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1672"}}),Nt=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#L1712"}}),Et=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#L4303",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>
`}}),Yt=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#L4353"}}),Qt=new Tt({props:{title:"ModuleUtilsMixin",local:"transformers.modeling_utils.ModuleUtilsMixin",headingTag:"h2"}}),St=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#L912"}}),At=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#L943"}}),Ot=new T({props:{name:"estimate_tokens",anchor:"transformers.modeling_utils.ModuleUtilsMixin.estimate_tokens",parameters:[{name:"input_dict",val:": Dict"}],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#L1175",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>
`}}),Kt=new T({props:{name:"floating_point_ops",anchor:"transformers.modeling_utils.ModuleUtilsMixin.floating_point_ops",parameters:[{name:"input_dict",val:": Dict"},{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#L1196",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>
`}}),eo=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:": Tuple"},{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#L1031",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>
`}}),to=new T({props:{name:"get_head_mask",anchor:"transformers.modeling_utils.ModuleUtilsMixin.get_head_mask",parameters:[{name:"head_mask",val:": Optional"},{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#L1083",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>
`}}),oo=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#L979",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>
`}}),no=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#L1121",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>
`}}),ro=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#L955"}}),ao=new Tt({props:{title:"TFPreTrainedModel",local:"transformers.TFPreTrainedModel",headingTag:"h2"}}),so=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"}}),io=new T({props:{name:"push_to_hub",anchor:"transformers.TFPreTrainedModel.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": Optional[bool] = None"},{name:"commit_message",val:": Optional[str] = None"},{name:"private",val:": Optional[bool] = None"},{name:"max_shard_size",val:": Optional[Union[int, str]] = '10GB'"},{name:"token",val:": Optional[Union[bool, str]] = None"},{name:"use_auth_token",val:": Optional[Union[bool, str]] = None"},{name:"create_pr",val:": bool = False"},{name:"**base_model_card_args",val:""}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your model to. It should contain your organization name
when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.TFPreTrainedModel.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.TFPreTrainedModel.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload model&quot;</code>.`,name:"commit_message"},{anchor:"transformers.TFPreTrainedModel.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the repository created should be private.`,name:"private"},{anchor:"transformers.TFPreTrainedModel.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>). Will default to <code>True</code> if <code>repo_url</code>
is not specified.`,name:"token"},{anchor:"transformers.TFPreTrainedModel.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;10GB&quot;</code>) &#x2014;
Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard
will then be each of size lower than this size. If expressed as a string, needs to be digits followed
by a unit (like <code>&quot;5MB&quot;</code>).`,name:"max_shard_size"},{anchor:"transformers.TFPreTrainedModel.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L3135"}}),He=new E({props:{anchor:"transformers.TFPreTrainedModel.push_to_hub.example",$$slots:{default:[dp]},$$scope:{ctx:j}}}),lo=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>
`}}),mo=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"}}),co=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"}}),po=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.
resume_download &#x2014;
Deprecated and ignored. All downloads are now resumed by default when possible.
Will be removed in v5 of Transformers.
proxies &#x2014;
(<code>Dict[str, str], </code>optional<code>): A dictionary of proxy servers to use by protocol or endpoint, e.g., </code>{&#x2018;http&#x2019;: &#x2018;foo.bar:3128&#x2019;, &#x2018;http://hostname&#x2019;: &#x2018;foo.bar:4012&#x2019;}<code>. The proxies are used on each request. output_loading_info(</code>bool<code>, *optional*, defaults to </code>False\`): Whether ot not to also return a
dictionary containing missing keys, unexpected keys and error messages.`,name:"force_download"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (e.g., not try downloading the model).`,name:"local_files_only(bool,"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.`,name:"revision"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L2541"}}),De=new E({props:{anchor:"transformers.TFPreTrainedModel.from_pretrained.example",$$slots:{default:[lp]},$$scope:{ctx:j}}}),ho=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>
`}}),fo=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>
`}}),uo=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>
`}}),go=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>
`}}),_o=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>
`}}),bo=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>
`}}),vo=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>
`}}),yo=new T({props:{name:"prepare_tf_dataset",anchor:"transformers.TFPreTrainedModel.prepare_tf_dataset",parameters:[{name:"dataset",val:": 'datasets.Dataset'"},{name:"batch_size",val:": int = 8"},{name:"shuffle",val:": bool = True"},{name:"tokenizer",val:": Optional['PreTrainedTokenizerBase'] = None"},{name:"collate_fn",val:": Optional[Callable] = None"},{name:"collate_fn_args",val:": Optional[Dict[str, Any]] = None"},{name:"drop_remainder",val:": Optional[bool] = None"},{name:"prefetch",val:": bool = True"}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.prepare_tf_dataset.dataset",description:`<strong>dataset</strong> (<code>Any</code>) &#x2014;
A [~<code>datasets.Dataset</code>] to be wrapped as a <code>tf.data.Dataset</code>.`,name:"dataset"},{anchor:"transformers.TFPreTrainedModel.prepare_tf_dataset.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, defaults to 8) &#x2014;
The size of batches to return.`,name:"batch_size"},{anchor:"transformers.TFPreTrainedModel.prepare_tf_dataset.shuffle",description:`<strong>shuffle</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to return samples from the dataset in random order. Usually <code>True</code> for training datasets and
<code>False</code> for validation/test datasets.`,name:"shuffle"},{anchor:"transformers.TFPreTrainedModel.prepare_tf_dataset.tokenizer",description:`<strong>tokenizer</strong> (<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>
`}}),To=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"}}),Mo=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#L3244"}}),tt=new xs({props:{warning:!0,$$slots:{default:[mp]},$$scope:{ctx:j}}}),xo=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>
`}}),wo=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"}}),$o=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"}]}}),ko=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"}}),Co=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"}}),Po=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"}}),Uo=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"}}),Jo=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"}}),jo=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"}}),Fo=new Tt({props:{title:"TFModelUtilsMixin",local:"transformers.modeling_tf_utils.TFModelUtilsMixin",headingTag:"h2"}}),Zo=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"}}),Io=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>
`}}),Wo=new Tt({props:{title:"FlaxPreTrainedModel",local:"transformers.FlaxPreTrainedModel",headingTag:"h2"}}),Go=new T({props:{name:"class transformers.FlaxPreTrainedModel",anchor:"transformers.FlaxPreTrainedModel",parameters:[{name:"config",val:": PretrainedConfig"},{name:"module",val:": Module"},{name:"input_shape",val:": 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"}}),zo=new T({props:{name:"push_to_hub",anchor:"transformers.FlaxPreTrainedModel.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": Optional = None"},{name:"commit_message",val:": Optional = None"},{name:"private",val:": Optional = None"},{name:"token",val:": Union = None"},{name:"max_shard_size",val:": Union = '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:": Optional = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your model to. It should contain your organization name
when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload model&quot;</code>.`,name:"commit_message"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the repository created should be private.`,name:"private"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>). Will default to <code>True</code> if <code>repo_url</code>
is not specified.`,name:"token"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;5GB&quot;</code>) &#x2014;
Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard
will then be each of size lower than this size. If expressed as a string, needs to be digits followed
by a unit (like <code>&quot;5MB&quot;</code>). We default it to <code>&quot;5GB&quot;</code> so that users can easily load models on free-tier
Google Colab instances without any CPU OOM issues.`,name:"max_shard_size"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to convert the model weights in safetensors format for safer serialization.`,name:"safe_serialization"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Branch to push the uploaded files to.`,name:"revision"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created`,name:"commit_description"},{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#L770"}}),mt=new E({props:{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.example",$$slots:{default:[cp]},$$scope:{ctx:j}}}),Lo=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"}}),Bo=new T({props:{name:"from_pretrained",anchor:"transformers.FlaxPreTrainedModel.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": Union"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"*model_args",val:""},{name:"config",val:": Union = None"},{name:"cache_dir",val:": Union = None"},{name:"ignore_mismatched_sizes",val:": bool = False"},{name:"force_download",val:": bool = False"},{name:"local_files_only",val:": bool = False"},{name:"token",val:": Union = 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.
resume_download &#x2014;
Deprecated and ignored. All downloads are now resumed by default when possible.
Will be removed in v5 of Transformers.`,name:"force_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"}}),pt=new E({props:{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.example",$$slots:{default:[pp]},$$scope:{ctx:j}}}),Vo=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>
`}}),Ho=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#L1225"}}),ht=new xs({props:{warning:!0,$$slots:{default:[hp]},$$scope:{ctx:j}}}),qo=new T({props:{name:"save_pretrained",anchor:"transformers.FlaxPreTrainedModel.save_pretrained",parameters:[{name:"save_directory",val:": Union"},{name:"params",val:" = None"},{name:"push_to_hub",val:" = False"},{name:"max_shard_size",val:" = '10GB'"},{name:"token",val:": Union = 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#L1087"}}),Xo=new T({props:{name:"to_bf16",anchor:"transformers.FlaxPreTrainedModel.to_bf16",parameters:[{name:"params",val:": Union"},{name:"mask",val:": 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"}}),ut=new E({props:{anchor:"transformers.FlaxPreTrainedModel.to_bf16.example",$$slots:{default:[fp]},$$scope:{ctx:j}}}),Ro=new T({props:{name:"to_fp16",anchor:"transformers.FlaxPreTrainedModel.to_fp16",parameters:[{name:"params",val:": Union"},{name:"mask",val:": 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"}}),gt=new E({props:{anchor:"transformers.FlaxPreTrainedModel.to_fp16.example",$$slots:{default:[up]},$$scope:{ctx:j}}}),Do=new T({props:{name:"to_fp32",anchor:"transformers.FlaxPreTrainedModel.to_fp32",parameters:[{name:"params",val:": Union"},{name:"mask",val:": 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"}}),_t=new E({props:{anchor:"transformers.FlaxPreTrainedModel.to_fp32.example",$$slots:{default:[gp]},$$scope:{ctx:j}}}),No=new Tt({props:{title:"Pushing to the Hub",local:"transformers.utils.PushToHubMixin",headingTag:"h2"}}),Eo=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#L654"}}),Yo=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:": Optional = None"},{name:"commit_message",val:": Optional = None"},{name:"private",val:": Optional = None"},{name:"token",val:": Union = None"},{name:"max_shard_size",val:": Union = '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:": Optional = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.utils.PushToHubMixin.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your {object} to. It should contain your organization name
when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload {object}&quot;</code>.`,name:"commit_message"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the repository created should be private.`,name:"private"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>). Will default to <code>True</code> if <code>repo_url</code>
is not specified.`,name:"token"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;5GB&quot;</code>) &#x2014;
Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard
will then be each of size lower than this size. If expressed as a string, needs to be digits followed
by a unit (like <code>&quot;5MB&quot;</code>). We default it to <code>&quot;5GB&quot;</code> so that users can easily load models on free-tier
Google Colab instances without any CPU OOM issues.`,name:"max_shard_size"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to convert the model weights in safetensors format for safer serialization.`,name:"safe_serialization"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Branch to push the uploaded files to.`,name:"revision"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created`,name:"commit_description"},{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#L770"}}),bt=new E({props:{anchor:"transformers.utils.PushToHubMixin.push_to_hub.example",$$slots:{default:[_p]},$$scope:{ctx:j}}}),Qo=new Tt({props:{title:"Sharded checkpoints",local:"transformers.modeling_utils.load_sharded_checkpoint",headingTag:"h2"}}),So=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#L417",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>
`}}),Ao=new op({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/main_classes/model.md"}}),{c(){d=r("meta"),U=o(),_=r("p"),g=o(),m(x.$$.fragment),s=o(),P=r("p"),P.innerHTML=Yl,wa=o(),Mt=r("p"),Mt.innerHTML=Ql,$a=o(),xt=r("ul"),xt.innerHTML=Sl,ka=o(),wt=r("p"),wt.innerHTML=Al,Ca=o(),m($t.$$.fragment),Pa=o(),w=r("div"),m(kt.$$.fragment),ws=o(),dn=r("p"),dn.textContent=Ol,$s=o(),ln=r("p"),ln.innerHTML=Kl,ks=o(),mn=r("ul"),mn.innerHTML=em,Cs=o(),cn=r("p"),cn.textContent=tm,Ps=o(),pn=r("ul"),pn.innerHTML=om,Us=o(),Q=r("div"),m(Ct.$$.fragment),Js=o(),hn=r("p"),hn.textContent=nm,js=o(),m(ge.$$.fragment),Fs=o(),S=r("div"),m(Pt.$$.fragment),Zs=o(),fn=r("p"),fn.textContent=rm,Is=o(),m(_e.$$.fragment),Ws=o(),be=r("div"),m(Ut.$$.fragment),Gs=o(),un=r("p"),un.innerHTML=am,zs=o(),ve=r("div"),m(Jt.$$.fragment),Ls=o(),gn=r("p"),gn.innerHTML=sm,Bs=o(),ye=r("div"),m(jt.$$.fragment),Vs=o(),_n=r("p"),_n.textContent=im,Hs=o(),F=r("div"),m(Ft.$$.fragment),qs=o(),bn=r("p"),bn.textContent=dm,Xs=o(),vn=r("p"),vn.innerHTML=lm,Rs=o(),yn=r("p"),yn.innerHTML=mm,Ds=o(),Tn=r("p"),Tn.innerHTML=cm,Ns=o(),m(Te.$$.fragment),Es=o(),m(Me.$$.fragment),Ys=o(),Mn=r("ul"),Mn.innerHTML=pm,Qs=o(),xn=r("p"),xn.textContent=hm,Ss=o(),wn=r("p"),wn.textContent=fm,As=o(),$n=r("ol"),$n.innerHTML=um,Os=o(),kn=r("p"),kn.textContent=gm,Ks=o(),xe=r("div"),m(Zt.$$.fragment),ei=o(),Cn=r("p"),Cn.textContent=_m,ti=o(),we=r("div"),m(It.$$.fragment),oi=o(),Pn=r("p"),Pn.innerHTML=bm,ni=o(),$e=r("div"),m(Wt.$$.fragment),ri=o(),Un=r("p"),Un.textContent=vm,ai=o(),A=r("div"),m(Gt.$$.fragment),si=o(),Jn=r("p"),Jn.textContent=ym,ii=o(),jn=r("p"),jn.textContent=Tm,di=o(),V=r("div"),m(zt.$$.fragment),li=o(),Fn=r("p"),Fn.textContent=Mm,mi=o(),Zn=r("p"),Zn.textContent=xm,ci=o(),In=r("p"),In.innerHTML=wm,pi=o(),ke=r("div"),m(Lt.$$.fragment),hi=o(),Wn=r("p"),Wn.innerHTML=$m,fi=o(),Ce=r("div"),m(Bt.$$.fragment),ui=o(),Gn=r("p"),Gn.textContent=km,gi=o(),Pe=r("div"),m(Vt.$$.fragment),_i=o(),zn=r("p"),zn.textContent=Cm,bi=o(),O=r("div"),m(Ht.$$.fragment),vi=o(),Ln=r("p"),Ln.textContent=Pm,yi=o(),m(Ue.$$.fragment),Ti=o(),K=r("div"),m(qt.$$.fragment),Mi=o(),Bn=r("p"),Bn.innerHTML=Um,xi=o(),Vn=r("p"),Vn.innerHTML=Jm,wi=o(),Je=r("div"),m(Xt.$$.fragment),$i=o(),Hn=r("p"),Hn.innerHTML=jm,ki=o(),je=r("div"),m(Rt.$$.fragment),Ci=o(),qn=r("p"),qn.innerHTML=Fm,Pi=o(),Fe=r("div"),m(Dt.$$.fragment),Ui=o(),Xn=r("p"),Xn.textContent=Zm,Ji=o(),ee=r("div"),m(Nt.$$.fragment),ji=o(),Rn=r("p"),Rn.textContent=Im,Fi=o(),Dn=r("p"),Dn.innerHTML=Wm,Zi=o(),te=r("div"),m(Et.$$.fragment),Ii=o(),Nn=r("p"),Nn.innerHTML=Gm,Wi=o(),En=r("p"),En.innerHTML=zm,Gi=o(),Ze=r("div"),m(Yt.$$.fragment),zi=o(),Yn=r("p"),Yn.textContent=Lm,Ua=o(),m(Qt.$$.fragment),Ja=o(),W=r("div"),m(St.$$.fragment),Li=o(),Qn=r("p"),Qn.innerHTML=Bm,Bi=o(),oe=r("div"),m(At.$$.fragment),Vi=o(),Sn=r("p"),Sn.textContent=Vm,Hi=o(),An=r("p"),An.innerHTML=Hm,qi=o(),Ie=r("div"),m(Ot.$$.fragment),Xi=o(),On=r("p"),On.textContent=qm,Ri=o(),We=r("div"),m(Kt.$$.fragment),Di=o(),Kn=r("p"),Kn.innerHTML=Xm,Ni=o(),Ge=r("div"),m(eo.$$.fragment),Ei=o(),er=r("p"),er.textContent=Rm,Yi=o(),ze=r("div"),m(to.$$.fragment),Qi=o(),tr=r("p"),tr.textContent=Dm,Si=o(),Le=r("div"),m(oo.$$.fragment),Ai=o(),or=r("p"),or.textContent=Nm,Oi=o(),Be=r("div"),m(no.$$.fragment),Ki=o(),nr=r("p"),nr.textContent=Em,ed=o(),Ve=r("div"),m(ro.$$.fragment),td=o(),rr=r("p"),rr.innerHTML=Ym,ja=o(),m(ao.$$.fragment),Fa=o(),M=r("div"),m(so.$$.fragment),od=o(),ar=r("p"),ar.textContent=Qm,nd=o(),sr=r("p"),sr.innerHTML=Sm,rd=o(),ir=r("ul"),ir.innerHTML=Am,ad=o(),dr=r("p"),dr.textContent=Om,sd=o(),lr=r("ul"),lr.innerHTML=Km,id=o(),ne=r("div"),m(io.$$.fragment),dd=o(),mr=r("p"),mr.innerHTML=ec,ld=o(),m(He.$$.fragment),md=o(),qe=r("div"),m(lo.$$.fragment),cd=o(),cr=r("p"),cr.innerHTML=tc,pd=o(),Xe=r("div"),m(mo.$$.fragment),hd=o(),pr=r("p"),pr.textContent=oc,fd=o(),Re=r("div"),m(co.$$.fragment),ud=o(),hr=r("p"),hr.innerHTML=nc,gd=o(),L=r("div"),m(po.$$.fragment),_d=o(),fr=r("p"),fr.textContent=rc,bd=o(),ur=r("p"),ur.innerHTML=ac,vd=o(),gr=r("p"),gr.innerHTML=sc,yd=o(),m(De.$$.fragment),Td=o(),Ne=r("div"),m(ho.$$.fragment),Md=o(),_r=r("p"),_r.textContent=ic,xd=o(),Ee=r("div"),m(fo.$$.fragment),wd=o(),br=r("p"),br.textContent=dc,$d=o(),Ye=r("div"),m(uo.$$.fragment),kd=o(),vr=r("p"),vr.textContent=lc,Cd=o(),Qe=r("div"),m(go.$$.fragment),Pd=o(),yr=r("p"),yr.textContent=mc,Ud=o(),Se=r("div"),m(_o.$$.fragment),Jd=o(),Tr=r("p"),Tr.textContent=cc,jd=o(),Ae=r("div"),m(bo.$$.fragment),Fd=o(),Mr=r("p"),Mr.textContent=pc,Zd=o(),Oe=r("div"),m(vo.$$.fragment),Id=o(),xr=r("p"),xr.textContent=hc,Wd=o(),Ke=r("div"),m(yo.$$.fragment),Gd=o(),wr=r("p"),wr.innerHTML=fc,zd=o(),et=r("div"),m(To.$$.fragment),Ld=o(),$r=r("p"),$r.textContent=uc,Bd=o(),re=r("div"),m(Mo.$$.fragment),Vd=o(),kr=r("p"),kr.textContent=gc,Hd=o(),m(tt.$$.fragment),qd=o(),ae=r("div"),m(xo.$$.fragment),Xd=o(),Cr=r("p"),Cr.innerHTML=_c,Rd=o(),Pr=r("p"),Pr.innerHTML=bc,Dd=o(),ot=r("div"),m(wo.$$.fragment),Nd=o(),Ur=r("p"),Ur.innerHTML=vc,Ed=o(),Jr=r("div"),m($o.$$.fragment),Yd=o(),nt=r("div"),m(ko.$$.fragment),Qd=o(),jr=r("p"),jr.textContent=yc,Sd=o(),rt=r("div"),m(Co.$$.fragment),Ad=o(),Fr=r("p"),Fr.textContent=Tc,Od=o(),at=r("div"),m(Po.$$.fragment),Kd=o(),Zr=r("p"),Zr.textContent=Mc,el=o(),st=r("div"),m(Uo.$$.fragment),tl=o(),Ir=r("p"),Ir.textContent=xc,ol=o(),it=r("div"),m(Jo.$$.fragment),nl=o(),Wr=r("p"),Wr.innerHTML=wc,rl=o(),dt=r("div"),m(jo.$$.fragment),al=o(),Gr=r("p"),Gr.innerHTML=$c,Za=o(),m(Fo.$$.fragment),Ia=o(),X=r("div"),m(Zo.$$.fragment),sl=o(),zr=r("p"),zr.innerHTML=kc,il=o(),lt=r("div"),m(Io.$$.fragment),dl=o(),Lr=r("p"),Lr.textContent=Cc,Wa=o(),m(Wo.$$.fragment),Ga=o(),J=r("div"),m(Go.$$.fragment),ll=o(),Br=r("p"),Br.textContent=Pc,ml=o(),Vr=r("p"),Vr.innerHTML=Uc,cl=o(),Hr=r("p"),Hr.textContent=Jc,pl=o(),qr=r("ul"),qr.innerHTML=jc,hl=o(),se=r("div"),m(zo.$$.fragment),fl=o(),Xr=r("p"),Xr.textContent=Fc,ul=o(),m(mt.$$.fragment),gl=o(),ct=r("div"),m(Lo.$$.fragment),_l=o(),Rr=r("p"),Rr.innerHTML=Zc,bl=o(),B=r("div"),m(Bo.$$.fragment),vl=o(),Dr=r("p"),Dr.textContent=Ic,yl=o(),Nr=r("p"),Nr.innerHTML=Wc,Tl=o(),Er=r("p"),Er.innerHTML=Gc,Ml=o(),m(pt.$$.fragment),xl=o(),ie=r("div"),m(Vo.$$.fragment),wl=o(),Yr=r("p"),Yr.innerHTML=zc,$l=o(),Qr=r("p"),Qr.textContent=Lc,kl=o(),de=r("div"),m(Ho.$$.fragment),Cl=o(),Sr=r("p"),Sr.textContent=Bc,Pl=o(),m(ht.$$.fragment),Ul=o(),ft=r("div"),m(qo.$$.fragment),Jl=o(),Ar=r("p"),Ar.innerHTML=Vc,jl=o(),H=r("div"),m(Xo.$$.fragment),Fl=o(),Or=r("p"),Or.innerHTML=Hc,Zl=o(),Kr=r("p"),Kr.textContent=qc,Il=o(),m(ut.$$.fragment),Wl=o(),q=r("div"),m(Ro.$$.fragment),Gl=o(),ea=r("p"),ea.innerHTML=Xc,zl=o(),ta=r("p"),ta.textContent=Rc,Ll=o(),m(gt.$$.fragment),Bl=o(),le=r("div"),m(Do.$$.fragment),Vl=o(),oa=r("p"),oa.innerHTML=Dc,Hl=o(),m(_t.$$.fragment),za=o(),m(No.$$.fragment),La=o(),R=r("div"),m(Eo.$$.fragment),ql=o(),na=r("p"),na.textContent=Nc,Xl=o(),me=r("div"),m(Yo.$$.fragment),Rl=o(),ra=r("p"),ra.textContent=Ec,Dl=o(),m(bt.$$.fragment),Ba=o(),m(Qo.$$.fragment),Va=o(),D=r("div"),m(So.$$.fragment),Nl=o(),aa=r("p"),aa.innerHTML=Yc,El=o(),sa=r("p"),sa.textContent=Qc,Ha=o(),m(Ao.$$.fragment),qa=o(),xa=r("p"),this.h()},l(t){const b=tp("svelte-u9bgzb",document.head);d=a(b,"META",{name:!0,content:!0}),b.forEach(i),U=n(t),_=a(t,"P",{}),v(_).forEach(i),g=n(t),c(x.$$.fragment,t),s=n(t),P=a(t,"P",{"data-svelte-h":!0}),l(P)!=="svelte-zbcrud"&&(P.innerHTML=Yl),wa=n(t),Mt=a(t,"P",{"data-svelte-h":!0}),l(Mt)!=="svelte-q45k9t"&&(Mt.innerHTML=Ql),$a=n(t),xt=a(t,"UL",{"data-svelte-h":!0}),l(xt)!=="svelte-1jiiwof"&&(xt.innerHTML=Sl),ka=n(t),wt=a(t,"P",{"data-svelte-h":!0}),l(wt)!=="svelte-cclo3a"&&(wt.innerHTML=Al),Ca=n(t),c($t.$$.fragment,t),Pa=n(t),w=a(t,"DIV",{class:!0});var C=v(w);c(kt.$$.fragment,C),ws=n(C),dn=a(C,"P",{"data-svelte-h":!0}),l(dn)!=="svelte-12nk4t7"&&(dn.textContent=Ol),$s=n(C),ln=a(C,"P",{"data-svelte-h":!0}),l(ln)!=="svelte-k0nhho"&&(ln.innerHTML=Kl),ks=n(C),mn=a(C,"UL",{"data-svelte-h":!0}),l(mn)!=="svelte-6o6r8w"&&(mn.innerHTML=em),Cs=n(C),cn=a(C,"P",{"data-svelte-h":!0}),l(cn)!=="svelte-1qxxkvo"&&(cn.textContent=tm),Ps=n(C),pn=a(C,"UL",{"data-svelte-h":!0}),l(pn)!=="svelte-1pj7uos"&&(pn.innerHTML=om),Us=n(C),Q=a(C,"DIV",{class:!0});var he=v(Q);c(Ct.$$.fragment,he),Js=n(he),hn=a(he,"P",{"data-svelte-h":!0}),l(hn)!=="svelte-1j9019y"&&(hn.textContent=nm),js=n(he),c(ge.$$.fragment,he),he.forEach(i),Fs=n(C),S=a(C,"DIV",{class:!0});var fe=v(S);c(Pt.$$.fragment,fe),Zs=n(fe),fn=a(fe,"P",{"data-svelte-h":!0}),l(fn)!=="svelte-1mcxpi"&&(fn.textContent=rm),Is=n(fe),c(_e.$$.fragment,fe),fe.forEach(i),Ws=n(C),be=a(C,"DIV",{class:!0});var Oo=v(be);c(Ut.$$.fragment,Oo),Gs=n(Oo),un=a(Oo,"P",{"data-svelte-h":!0}),l(un)!=="svelte-1r2xt0l"&&(un.innerHTML=am),Oo.forEach(i),zs=n(C),ve=a(C,"DIV",{class:!0});var Ko=v(ve);c(Jt.$$.fragment,Ko),Ls=n(Ko),gn=a(Ko,"P",{"data-svelte-h":!0}),l(gn)!=="svelte-1arq2q9"&&(gn.innerHTML=sm),Ko.forEach(i),Bs=n(C),ye=a(C,"DIV",{class:!0});var en=v(ye);c(jt.$$.fragment,en),Vs=n(en),_n=a(en,"P",{"data-svelte-h":!0}),l(_n)!=="svelte-gf3f10"&&(_n.textContent=im),en.forEach(i),Hs=n(C),F=a(C,"DIV",{class:!0});var I=v(F);c(Ft.$$.fragment,I),qs=n(I),bn=a(I,"P",{"data-svelte-h":!0}),l(bn)!=="svelte-1m220hc"&&(bn.textContent=dm),Xs=n(I),vn=a(I,"P",{"data-svelte-h":!0}),l(vn)!=="svelte-1vvzid2"&&(vn.innerHTML=lm),Rs=n(I),yn=a(I,"P",{"data-svelte-h":!0}),l(yn)!=="svelte-floidm"&&(yn.innerHTML=mm),Ds=n(I),Tn=a(I,"P",{"data-svelte-h":!0}),l(Tn)!=="svelte-5vnnmn"&&(Tn.innerHTML=cm),Ns=n(I),c(Te.$$.fragment,I),Es=n(I),c(Me.$$.fragment,I),Ys=n(I),Mn=a(I,"UL",{"data-svelte-h":!0}),l(Mn)!=="svelte-14hq6us"&&(Mn.innerHTML=pm),Qs=n(I),xn=a(I,"P",{"data-svelte-h":!0}),l(xn)!=="svelte-1ndujqx"&&(xn.textContent=hm),Ss=n(I),wn=a(I,"P",{"data-svelte-h":!0}),l(wn)!=="svelte-h5finb"&&(wn.textContent=fm),As=n(I),$n=a(I,"OL",{"data-svelte-h":!0}),l($n)!=="svelte-17iv4ty"&&($n.innerHTML=um),Os=n(I),kn=a(I,"P",{"data-svelte-h":!0}),l(kn)!=="svelte-1kh2krb"&&(kn.textContent=gm),I.forEach(i),Ks=n(C),xe=a(C,"DIV",{class:!0});var tn=v(xe);c(Zt.$$.fragment,tn),ei=n(tn),Cn=a(tn,"P",{"data-svelte-h":!0}),l(Cn)!=="svelte-1oe3d1l"&&(Cn.textContent=_m),tn.forEach(i),ti=n(C),we=a(C,"DIV",{class:!0});var on=v(we);c(It.$$.fragment,on),oi=n(on),Pn=a(on,"P",{"data-svelte-h":!0}),l(Pn)!=="svelte-1o6lvix"&&(Pn.innerHTML=bm),on.forEach(i),ni=n(C),$e=a(C,"DIV",{class:!0});var nn=v($e);c(Wt.$$.fragment,nn),ri=n(nn),Un=a(nn,"P",{"data-svelte-h":!0}),l(Un)!=="svelte-1en7lnm"&&(Un.textContent=vm),nn.forEach(i),ai=n(C),A=a(C,"DIV",{class:!0});var ue=v(A);c(Gt.$$.fragment,ue),si=n(ue),Jn=a(ue,"P",{"data-svelte-h":!0}),l(Jn)!=="svelte-x1yzxn"&&(Jn.textContent=ym),ii=n(ue),jn=a(ue,"P",{"data-svelte-h":!0}),l(jn)!=="svelte-1c0vp3s"&&(jn.textContent=Tm),ue.forEach(i),di=n(C),V=a(C,"DIV",{class:!0});var N=v(V);c(zt.$$.fragment,N),li=n(N),Fn=a(N,"P",{"data-svelte-h":!0}),l(Fn)!=="svelte-vu1mp6"&&(Fn.textContent=Mm),mi=n(N),Zn=a(N,"P",{"data-svelte-h":!0}),l(Zn)!=="svelte-1c0vp3s"&&(Zn.textContent=xm),ci=n(N),In=a(N,"P",{"data-svelte-h":!0}),l(In)!=="svelte-1entg0x"&&(In.innerHTML=wm),N.forEach(i),pi=n(C),ke=a(C,"DIV",{class:!0});var rn=v(ke);c(Lt.$$.fragment,rn),hi=n(rn),Wn=a(rn,"P",{"data-svelte-h":!0}),l(Wn)!=="svelte-1gceydr"&&(Wn.innerHTML=$m),rn.forEach(i),fi=n(C),Ce=a(C,"DIV",{class:!0});var an=v(Ce);c(Bt.$$.fragment,an),ui=n(an),Gn=a(an,"P",{"data-svelte-h":!0}),l(Gn)!=="svelte-kxy0hj"&&(Gn.textContent=km),an.forEach(i),gi=n(C),Pe=a(C,"DIV",{class:!0});var sn=v(Pe);c(Vt.$$.fragment,sn),_i=n(sn),zn=a(sn,"P",{"data-svelte-h":!0}),l(zn)!=="svelte-qvrpxu"&&(zn.textContent=Cm),sn.forEach(i),bi=n(C),O=a(C,"DIV",{class:!0});var ia=v(O);c(Ht.$$.fragment,ia),vi=n(ia),Ln=a(ia,"P",{"data-svelte-h":!0}),l(Ln)!=="svelte-1ie4sav"&&(Ln.textContent=Pm),yi=n(ia),c(Ue.$$.fragment,ia),ia.forEach(i),Ti=n(C),K=a(C,"DIV",{class:!0});var da=v(K);c(qt.$$.fragment,da),Mi=n(da),Bn=a(da,"P",{"data-svelte-h":!0}),l(Bn)!=="svelte-sgsur1"&&(Bn.innerHTML=Um),xi=n(da),Vn=a(da,"P",{"data-svelte-h":!0}),l(Vn)!=="svelte-1t4xas4"&&(Vn.innerHTML=Jm),da.forEach(i),wi=n(C),Je=a(C,"DIV",{class:!0});var Ra=v(Je);c(Xt.$$.fragment,Ra),$i=n(Ra),Hn=a(Ra,"P",{"data-svelte-h":!0}),l(Hn)!=="svelte-nzcguu"&&(Hn.innerHTML=jm),Ra.forEach(i),ki=n(C),je=a(C,"DIV",{class:!0});var Da=v(je);c(Rt.$$.fragment,Da),Ci=n(Da),qn=a(Da,"P",{"data-svelte-h":!0}),l(qn)!=="svelte-1div8ut"&&(qn.innerHTML=Fm),Da.forEach(i),Pi=n(C),Fe=a(C,"DIV",{class:!0});var Na=v(Fe);c(Dt.$$.fragment,Na),Ui=n(Na),Xn=a(Na,"P",{"data-svelte-h":!0}),l(Xn)!=="svelte-107jmv5"&&(Xn.textContent=Zm),Na.forEach(i),Ji=n(C),ee=a(C,"DIV",{class:!0});var la=v(ee);c(Nt.$$.fragment,la),ji=n(la),Rn=a(la,"P",{"data-svelte-h":!0}),l(Rn)!=="svelte-5nt4be"&&(Rn.textContent=Im),Fi=n(la),Dn=a(la,"P",{"data-svelte-h":!0}),l(Dn)!=="svelte-1ti0hxu"&&(Dn.innerHTML=Wm),la.forEach(i),Zi=n(C),te=a(C,"DIV",{class:!0});var ma=v(te);c(Et.$$.fragment,ma),Ii=n(ma),Nn=a(ma,"P",{"data-svelte-h":!0}),l(Nn)!=="svelte-1sq1344"&&(Nn.innerHTML=Gm),Wi=n(ma),En=a(ma,"P",{"data-svelte-h":!0}),l(En)!=="svelte-1p16ejc"&&(En.innerHTML=zm),ma.forEach(i),Gi=n(C),Ze=a(C,"DIV",{class:!0});var Ea=v(Ze);c(Yt.$$.fragment,Ea),zi=n(Ea),Yn=a(Ea,"P",{"data-svelte-h":!0}),l(Yn)!=="svelte-nkp8sx"&&(Yn.textContent=Lm),Ea.forEach(i),C.forEach(i),Ua=n(t),c(Qt.$$.fragment,t),Ja=n(t),W=a(t,"DIV",{class:!0});var G=v(W);c(St.$$.fragment,G),Li=n(G),Qn=a(G,"P",{"data-svelte-h":!0}),l(Qn)!=="svelte-9daxpl"&&(Qn.innerHTML=Bm),Bi=n(G),oe=a(G,"DIV",{class:!0});var ca=v(oe);c(At.$$.fragment,ca),Vi=n(ca),Sn=a(ca,"P",{"data-svelte-h":!0}),l(Sn)!=="svelte-bszdl"&&(Sn.textContent=Vm),Hi=n(ca),An=a(ca,"P",{"data-svelte-h":!0}),l(An)!=="svelte-1yhz50g"&&(An.innerHTML=Hm),ca.forEach(i),qi=n(G),Ie=a(G,"DIV",{class:!0});var Ya=v(Ie);c(Ot.$$.fragment,Ya),Xi=n(Ya),On=a(Ya,"P",{"data-svelte-h":!0}),l(On)!=="svelte-1vzpsnb"&&(On.textContent=qm),Ya.forEach(i),Ri=n(G),We=a(G,"DIV",{class:!0});var Qa=v(We);c(Kt.$$.fragment,Qa),Di=n(Qa),Kn=a(Qa,"P",{"data-svelte-h":!0}),l(Kn)!=="svelte-1quexap"&&(Kn.innerHTML=Xm),Qa.forEach(i),Ni=n(G),Ge=a(G,"DIV",{class:!0});var Sa=v(Ge);c(eo.$$.fragment,Sa),Ei=n(Sa),er=a(Sa,"P",{"data-svelte-h":!0}),l(er)!=="svelte-qy1xxb"&&(er.textContent=Rm),Sa.forEach(i),Yi=n(G),ze=a(G,"DIV",{class:!0});var Aa=v(ze);c(to.$$.fragment,Aa),Qi=n(Aa),tr=a(Aa,"P",{"data-svelte-h":!0}),l(tr)!=="svelte-1y1rtu0"&&(tr.textContent=Dm),Aa.forEach(i),Si=n(G),Le=a(G,"DIV",{class:!0});var Oa=v(Le);c(oo.$$.fragment,Oa),Ai=n(Oa),or=a(Oa,"P",{"data-svelte-h":!0}),l(or)!=="svelte-1tbhnug"&&(or.textContent=Nm),Oa.forEach(i),Oi=n(G),Be=a(G,"DIV",{class:!0});var Ka=v(Be);c(no.$$.fragment,Ka),Ki=n(Ka),nr=a(Ka,"P",{"data-svelte-h":!0}),l(nr)!=="svelte-vktrn"&&(nr.textContent=Em),Ka.forEach(i),ed=n(G),Ve=a(G,"DIV",{class:!0});var es=v(Ve);c(ro.$$.fragment,es),td=n(es),rr=a(es,"P",{"data-svelte-h":!0}),l(rr)!=="svelte-110elzx"&&(rr.innerHTML=Ym),es.forEach(i),G.forEach(i),ja=n(t),c(ao.$$.fragment,t),Fa=n(t),M=a(t,"DIV",{class:!0});var k=v(M);c(so.$$.fragment,k),od=n(k),ar=a(k,"P",{"data-svelte-h":!0}),l(ar)!=="svelte-ho56tp"&&(ar.textContent=Qm),nd=n(k),sr=a(k,"P",{"data-svelte-h":!0}),l(sr)!=="svelte-1ku0uw4"&&(sr.innerHTML=Sm),rd=n(k),ir=a(k,"UL",{"data-svelte-h":!0}),l(ir)!=="svelte-6o6r8w"&&(ir.innerHTML=Am),ad=n(k),dr=a(k,"P",{"data-svelte-h":!0}),l(dr)!=="svelte-1qxxkvo"&&(dr.textContent=Om),sd=n(k),lr=a(k,"UL",{"data-svelte-h":!0}),l(lr)!=="svelte-1giaft3"&&(lr.innerHTML=Km),id=n(k),ne=a(k,"DIV",{class:!0});var pa=v(ne);c(io.$$.fragment,pa),dd=n(pa),mr=a(pa,"P",{"data-svelte-h":!0}),l(mr)!=="svelte-8nftbo"&&(mr.innerHTML=ec),ld=n(pa),c(He.$$.fragment,pa),pa.forEach(i),md=n(k),qe=a(k,"DIV",{class:!0});var ts=v(qe);c(lo.$$.fragment,ts),cd=n(ts),cr=a(ts,"P",{"data-svelte-h":!0}),l(cr)!=="svelte-1r2xt0l"&&(cr.innerHTML=tc),ts.forEach(i),pd=n(k),Xe=a(k,"DIV",{class:!0});var os=v(Xe);c(mo.$$.fragment,os),hd=n(os),pr=a(os,"P",{"data-svelte-h":!0}),l(pr)!=="svelte-wsnq9n"&&(pr.textContent=oc),os.forEach(i),fd=n(k),Re=a(k,"DIV",{class:!0});var ns=v(Re);c(co.$$.fragment,ns),ud=n(ns),hr=a(ns,"P",{"data-svelte-h":!0}),l(hr)!=="svelte-1mh859w"&&(hr.innerHTML=nc),ns.forEach(i),gd=n(k),L=a(k,"DIV",{class:!0});var ce=v(L);c(po.$$.fragment,ce),_d=n(ce),fr=a(ce,"P",{"data-svelte-h":!0}),l(fr)!=="svelte-vc5x03"&&(fr.textContent=rc),bd=n(ce),ur=a(ce,"P",{"data-svelte-h":!0}),l(ur)!=="svelte-floidm"&&(ur.innerHTML=ac),vd=n(ce),gr=a(ce,"P",{"data-svelte-h":!0}),l(gr)!=="svelte-5vnnmn"&&(gr.innerHTML=sc),yd=n(ce),c(De.$$.fragment,ce),ce.forEach(i),Td=n(k),Ne=a(k,"DIV",{class:!0});var rs=v(Ne);c(ho.$$.fragment,rs),Md=n(rs),_r=a(rs,"P",{"data-svelte-h":!0}),l(_r)!=="svelte-ja4l5b"&&(_r.textContent=ic),rs.forEach(i),xd=n(k),Ee=a(k,"DIV",{class:!0});var as=v(Ee);c(fo.$$.fragment,as),wd=n(as),br=a(as,"P",{"data-svelte-h":!0}),l(br)!=="svelte-1y1rtu0"&&(br.textContent=dc),as.forEach(i),$d=n(k),Ye=a(k,"DIV",{class:!0});var ss=v(Ye);c(uo.$$.fragment,ss),kd=n(ss),vr=a(ss,"P",{"data-svelte-h":!0}),l(vr)!=="svelte-1g2truu"&&(vr.textContent=lc),ss.forEach(i),Cd=n(k),Qe=a(k,"DIV",{class:!0});var is=v(Qe);c(go.$$.fragment,is),Pd=n(is),yr=a(is,"P",{"data-svelte-h":!0}),l(yr)!=="svelte-1hvwe3j"&&(yr.textContent=mc),is.forEach(i),Ud=n(k),Se=a(k,"DIV",{class:!0});var ds=v(Se);c(_o.$$.fragment,ds),Jd=n(ds),Tr=a(ds,"P",{"data-svelte-h":!0}),l(Tr)!=="svelte-1mu3td8"&&(Tr.textContent=cc),ds.forEach(i),jd=n(k),Ae=a(k,"DIV",{class:!0});var ls=v(Ae);c(bo.$$.fragment,ls),Fd=n(ls),Mr=a(ls,"P",{"data-svelte-h":!0}),l(Mr)!=="svelte-ib1802"&&(Mr.textContent=pc),ls.forEach(i),Zd=n(k),Oe=a(k,"DIV",{class:!0});var ms=v(Oe);c(vo.$$.fragment,ms),Id=n(ms),xr=a(ms,"P",{"data-svelte-h":!0}),l(xr)!=="svelte-1vipzyv"&&(xr.textContent=hc),ms.forEach(i),Wd=n(k),Ke=a(k,"DIV",{class:!0});var cs=v(Ke);c(yo.$$.fragment,cs),Gd=n(cs),wr=a(cs,"P",{"data-svelte-h":!0}),l(wr)!=="svelte-13xt7o7"&&(wr.innerHTML=fc),cs.forEach(i),zd=n(k),et=a(k,"DIV",{class:!0});var ps=v(et);c(To.$$.fragment,ps),Ld=n(ps),$r=a(ps,"P",{"data-svelte-h":!0}),l($r)!=="svelte-qvrpxu"&&($r.textContent=uc),ps.forEach(i),Bd=n(k),re=a(k,"DIV",{class:!0});var ha=v(re);c(Mo.$$.fragment,ha),Vd=n(ha),kr=a(ha,"P",{"data-svelte-h":!0}),l(kr)!=="svelte-1ie4sav"&&(kr.textContent=gc),Hd=n(ha),c(tt.$$.fragment,ha),ha.forEach(i),qd=n(k),ae=a(k,"DIV",{class:!0});var fa=v(ae);c(xo.$$.fragment,fa),Xd=n(fa),Cr=a(fa,"P",{"data-svelte-h":!0}),l(Cr)!=="svelte-sgsur1"&&(Cr.innerHTML=_c),Rd=n(fa),Pr=a(fa,"P",{"data-svelte-h":!0}),l(Pr)!=="svelte-1t4xas4"&&(Pr.innerHTML=bc),fa.forEach(i),Dd=n(k),ot=a(k,"DIV",{class:!0});var hs=v(ot);c(wo.$$.fragment,hs),Nd=n(hs),Ur=a(hs,"P",{"data-svelte-h":!0}),l(Ur)!=="svelte-1yks4bb"&&(Ur.innerHTML=vc),hs.forEach(i),Ed=n(k),Jr=a(k,"DIV",{class:!0});var Sc=v(Jr);c($o.$$.fragment,Sc),Sc.forEach(i),Yd=n(k),nt=a(k,"DIV",{class:!0});var fs=v(nt);c(ko.$$.fragment,fs),Qd=n(fs),jr=a(fs,"P",{"data-svelte-h":!0}),l(jr)!=="svelte-4zpnur"&&(jr.textContent=yc),fs.forEach(i),Sd=n(k),rt=a(k,"DIV",{class:!0});var us=v(rt);c(Co.$$.fragment,us),Ad=n(us),Fr=a(us,"P",{"data-svelte-h":!0}),l(Fr)!=="svelte-cmhrcy"&&(Fr.textContent=Tc),us.forEach(i),Od=n(k),at=a(k,"DIV",{class:!0});var gs=v(at);c(Po.$$.fragment,gs),Kd=n(gs),Zr=a(gs,"P",{"data-svelte-h":!0}),l(Zr)!=="svelte-1ouwbwr"&&(Zr.textContent=Mc),gs.forEach(i),el=n(k),st=a(k,"DIV",{class:!0});var _s=v(st);c(Uo.$$.fragment,_s),tl=n(_s),Ir=a(_s,"P",{"data-svelte-h":!0}),l(Ir)!=="svelte-x8fgs0"&&(Ir.textContent=xc),_s.forEach(i),ol=n(k),it=a(k,"DIV",{class:!0});var bs=v(it);c(Jo.$$.fragment,bs),nl=n(bs),Wr=a(bs,"P",{"data-svelte-h":!0}),l(Wr)!=="svelte-oo8tit"&&(Wr.innerHTML=wc),bs.forEach(i),rl=n(k),dt=a(k,"DIV",{class:!0});var vs=v(dt);c(jo.$$.fragment,vs),al=n(vs),Gr=a(vs,"P",{"data-svelte-h":!0}),l(Gr)!=="svelte-oo8tit"&&(Gr.innerHTML=$c),vs.forEach(i),k.forEach(i),Za=n(t),c(Fo.$$.fragment,t),Ia=n(t),X=a(t,"DIV",{class:!0});var ua=v(X);c(Zo.$$.fragment,ua),sl=n(ua),zr=a(ua,"P",{"data-svelte-h":!0}),l(zr)!=="svelte-1dqi2f3"&&(zr.innerHTML=kc),il=n(ua),lt=a(ua,"DIV",{class:!0});var ys=v(lt);c(Io.$$.fragment,ys),dl=n(ys),Lr=a(ys,"P",{"data-svelte-h":!0}),l(Lr)!=="svelte-im20fs"&&(Lr.textContent=Cc),ys.forEach(i),ua.forEach(i),Wa=n(t),c(Wo.$$.fragment,t),Ga=n(t),J=a(t,"DIV",{class:!0});var Z=v(J);c(Go.$$.fragment,Z),ll=n(Z),Br=a(Z,"P",{"data-svelte-h":!0}),l(Br)!=="svelte-12nk4t7"&&(Br.textContent=Pc),ml=n(Z),Vr=a(Z,"P",{"data-svelte-h":!0}),l(Vr)!=="svelte-eltemh"&&(Vr.innerHTML=Uc),cl=n(Z),Hr=a(Z,"P",{"data-svelte-h":!0}),l(Hr)!=="svelte-1qxxkvo"&&(Hr.textContent=Jc),pl=n(Z),qr=a(Z,"UL",{"data-svelte-h":!0}),l(qr)!=="svelte-1giaft3"&&(qr.innerHTML=jc),hl=n(Z),se=a(Z,"DIV",{class:!0});var ga=v(se);c(zo.$$.fragment,ga),fl=n(ga),Xr=a(ga,"P",{"data-svelte-h":!0}),l(Xr)!=="svelte-a8hf5e"&&(Xr.textContent=Fc),ul=n(ga),c(mt.$$.fragment,ga),ga.forEach(i),gl=n(Z),ct=a(Z,"DIV",{class:!0});var Ts=v(ct);c(Lo.$$.fragment,Ts),_l=n(Ts),Rr=a(Ts,"P",{"data-svelte-h":!0}),l(Rr)!=="svelte-12hq10t"&&(Rr.innerHTML=Zc),Ts.forEach(i),bl=n(Z),B=a(Z,"DIV",{class:!0});var pe=v(B);c(Bo.$$.fragment,pe),vl=n(pe),Dr=a(pe,"P",{"data-svelte-h":!0}),l(Dr)!=="svelte-1oaqdrm"&&(Dr.textContent=Ic),yl=n(pe),Nr=a(pe,"P",{"data-svelte-h":!0}),l(Nr)!=="svelte-floidm"&&(Nr.innerHTML=Wc),Tl=n(pe),Er=a(pe,"P",{"data-svelte-h":!0}),l(Er)!=="svelte-5vnnmn"&&(Er.innerHTML=Gc),Ml=n(pe),c(pt.$$.fragment,pe),pe.forEach(i),xl=n(Z),ie=a(Z,"DIV",{class:!0});var _a=v(ie);c(Vo.$$.fragment,_a),wl=n(_a),Yr=a(_a,"P",{"data-svelte-h":!0}),l(Yr)!=="svelte-plzzd0"&&(Yr.innerHTML=zc),$l=n(_a),Qr=a(_a,"P",{"data-svelte-h":!0}),l(Qr)!=="svelte-bzl1lx"&&(Qr.textContent=Lc),_a.forEach(i),kl=n(Z),de=a(Z,"DIV",{class:!0});var ba=v(de);c(Ho.$$.fragment,ba),Cl=n(ba),Sr=a(ba,"P",{"data-svelte-h":!0}),l(Sr)!=="svelte-1ie4sav"&&(Sr.textContent=Bc),Pl=n(ba),c(ht.$$.fragment,ba),ba.forEach(i),Ul=n(Z),ft=a(Z,"DIV",{class:!0});var Ms=v(ft);c(qo.$$.fragment,Ms),Jl=n(Ms),Ar=a(Ms,"P",{"data-svelte-h":!0}),l(Ar)!=="svelte-12ebkah"&&(Ar.innerHTML=Vc),Ms.forEach(i),jl=n(Z),H=a(Z,"DIV",{class:!0});var vt=v(H);c(Xo.$$.fragment,vt),Fl=n(vt),Or=a(vt,"P",{"data-svelte-h":!0}),l(Or)!=="svelte-16uni9u"&&(Or.innerHTML=Hc),Zl=n(vt),Kr=a(vt,"P",{"data-svelte-h":!0}),l(Kr)!=="svelte-qh3hgx"&&(Kr.textContent=qc),Il=n(vt),c(ut.$$.fragment,vt),vt.forEach(i),Wl=n(Z),q=a(Z,"DIV",{class:!0});var yt=v(q);c(Ro.$$.fragment,yt),Gl=n(yt),ea=a(yt,"P",{"data-svelte-h":!0}),l(ea)!=="svelte-uock64"&&(ea.innerHTML=Xc),zl=n(yt),ta=a(yt,"P",{"data-svelte-h":!0}),l(ta)!=="svelte-1rko7go"&&(ta.textContent=Rc),Ll=n(yt),c(gt.$$.fragment,yt),yt.forEach(i),Bl=n(Z),le=a(Z,"DIV",{class:!0});var va=v(le);c(Do.$$.fragment,va),Vl=n(va),oa=a(va,"P",{"data-svelte-h":!0}),l(oa)!=="svelte-1jvan3s"&&(oa.innerHTML=Dc),Hl=n(va),c(_t.$$.fragment,va),va.forEach(i),Z.forEach(i),za=n(t),c(No.$$.fragment,t),La=n(t),R=a(t,"DIV",{class:!0});var ya=v(R);c(Eo.$$.fragment,ya),ql=n(ya),na=a(ya,"P",{"data-svelte-h":!0}),l(na)!=="svelte-s2i98"&&(na.textContent=Nc),Xl=n(ya),me=a(ya,"DIV",{class:!0});var Ta=v(me);c(Yo.$$.fragment,Ta),Rl=n(Ta),ra=a(Ta,"P",{"data-svelte-h":!0}),l(ra)!=="svelte-am4l6x"&&(ra.textContent=Ec),Dl=n(Ta),c(bt.$$.fragment,Ta),Ta.forEach(i),ya.forEach(i),Ba=n(t),c(Qo.$$.fragment,t),Va=n(t),D=a(t,"DIV",{class:!0});var Ma=v(D);c(So.$$.fragment,Ma),Nl=n(Ma),aa=a(Ma,"P",{"data-svelte-h":!0}),l(aa)!=="svelte-16tfby7"&&(aa.innerHTML=Yc),El=n(Ma),sa=a(Ma,"P",{"data-svelte-h":!0}),l(sa)!=="svelte-bzl1lx"&&(sa.textContent=Qc),Ma.forEach(i),Ha=n(t),c(Ao.$$.fragment,t),qa=n(t),xa=a(t,"P",{}),v(xa).forEach(i),this.h()},h(){y(d,"name","hf:doc:metadata"),y(d,"content",vp),y(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Jr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(nt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(at,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(st,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(it,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(dt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(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,d),$(t,U,b),$(t,_,b),$(t,g,b),p(x,t,b),$(t,s,b),$(t,P,b),$(t,wa,b),$(t,Mt,b),$(t,$a,b),$(t,xt,b),$(t,ka,b),$(t,wt,b),$(t,Ca,b),p($t,t,b),$(t,Pa,b),$(t,w,b),p(kt,w,null),e(w,ws),e(w,dn),e(w,$s),e(w,ln),e(w,ks),e(w,mn),e(w,Cs),e(w,cn),e(w,Ps),e(w,pn),e(w,Us),e(w,Q),p(Ct,Q,null),e(Q,Js),e(Q,hn),e(Q,js),p(ge,Q,null),e(w,Fs),e(w,S),p(Pt,S,null),e(S,Zs),e(S,fn),e(S,Is),p(_e,S,null),e(w,Ws),e(w,be),p(Ut,be,null),e(be,Gs),e(be,un),e(w,zs),e(w,ve),p(Jt,ve,null),e(ve,Ls),e(ve,gn),e(w,Bs),e(w,ye),p(jt,ye,null),e(ye,Vs),e(ye,_n),e(w,Hs),e(w,F),p(Ft,F,null),e(F,qs),e(F,bn),e(F,Xs),e(F,vn),e(F,Rs),e(F,yn),e(F,Ds),e(F,Tn),e(F,Ns),p(Te,F,null),e(F,Es),p(Me,F,null),e(F,Ys),e(F,Mn),e(F,Qs),e(F,xn),e(F,Ss),e(F,wn),e(F,As),e(F,$n),e(F,Os),e(F,kn),e(w,Ks),e(w,xe),p(Zt,xe,null),e(xe,ei),e(xe,Cn),e(w,ti),e(w,we),p(It,we,null),e(we,oi),e(we,Pn),e(w,ni),e(w,$e),p(Wt,$e,null),e($e,ri),e($e,Un),e(w,ai),e(w,A),p(Gt,A,null),e(A,si),e(A,Jn),e(A,ii),e(A,jn),e(w,di),e(w,V),p(zt,V,null),e(V,li),e(V,Fn),e(V,mi),e(V,Zn),e(V,ci),e(V,In),e(w,pi),e(w,ke),p(Lt,ke,null),e(ke,hi),e(ke,Wn),e(w,fi),e(w,Ce),p(Bt,Ce,null),e(Ce,ui),e(Ce,Gn),e(w,gi),e(w,Pe),p(Vt,Pe,null),e(Pe,_i),e(Pe,zn),e(w,bi),e(w,O),p(Ht,O,null),e(O,vi),e(O,Ln),e(O,yi),p(Ue,O,null),e(w,Ti),e(w,K),p(qt,K,null),e(K,Mi),e(K,Bn),e(K,xi),e(K,Vn),e(w,wi),e(w,Je),p(Xt,Je,null),e(Je,$i),e(Je,Hn),e(w,ki),e(w,je),p(Rt,je,null),e(je,Ci),e(je,qn),e(w,Pi),e(w,Fe),p(Dt,Fe,null),e(Fe,Ui),e(Fe,Xn),e(w,Ji),e(w,ee),p(Nt,ee,null),e(ee,ji),e(ee,Rn),e(ee,Fi),e(ee,Dn),e(w,Zi),e(w,te),p(Et,te,null),e(te,Ii),e(te,Nn),e(te,Wi),e(te,En),e(w,Gi),e(w,Ze),p(Yt,Ze,null),e(Ze,zi),e(Ze,Yn),$(t,Ua,b),p(Qt,t,b),$(t,Ja,b),$(t,W,b),p(St,W,null),e(W,Li),e(W,Qn),e(W,Bi),e(W,oe),p(At,oe,null),e(oe,Vi),e(oe,Sn),e(oe,Hi),e(oe,An),e(W,qi),e(W,Ie),p(Ot,Ie,null),e(Ie,Xi),e(Ie,On),e(W,Ri),e(W,We),p(Kt,We,null),e(We,Di),e(We,Kn),e(W,Ni),e(W,Ge),p(eo,Ge,null),e(Ge,Ei),e(Ge,er),e(W,Yi),e(W,ze),p(to,ze,null),e(ze,Qi),e(ze,tr),e(W,Si),e(W,Le),p(oo,Le,null),e(Le,Ai),e(Le,or),e(W,Oi),e(W,Be),p(no,Be,null),e(Be,Ki),e(Be,nr),e(W,ed),e(W,Ve),p(ro,Ve,null),e(Ve,td),e(Ve,rr),$(t,ja,b),p(ao,t,b),$(t,Fa,b),$(t,M,b),p(so,M,null),e(M,od),e(M,ar),e(M,nd),e(M,sr),e(M,rd),e(M,ir),e(M,ad),e(M,dr),e(M,sd),e(M,lr),e(M,id),e(M,ne),p(io,ne,null),e(ne,dd),e(ne,mr),e(ne,ld),p(He,ne,null),e(M,md),e(M,qe),p(lo,qe,null),e(qe,cd),e(qe,cr),e(M,pd),e(M,Xe),p(mo,Xe,null),e(Xe,hd),e(Xe,pr),e(M,fd),e(M,Re),p(co,Re,null),e(Re,ud),e(Re,hr),e(M,gd),e(M,L),p(po,L,null),e(L,_d),e(L,fr),e(L,bd),e(L,ur),e(L,vd),e(L,gr),e(L,yd),p(De,L,null),e(M,Td),e(M,Ne),p(ho,Ne,null),e(Ne,Md),e(Ne,_r),e(M,xd),e(M,Ee),p(fo,Ee,null),e(Ee,wd),e(Ee,br),e(M,$d),e(M,Ye),p(uo,Ye,null),e(Ye,kd),e(Ye,vr),e(M,Cd),e(M,Qe),p(go,Qe,null),e(Qe,Pd),e(Qe,yr),e(M,Ud),e(M,Se),p(_o,Se,null),e(Se,Jd),e(Se,Tr),e(M,jd),e(M,Ae),p(bo,Ae,null),e(Ae,Fd),e(Ae,Mr),e(M,Zd),e(M,Oe),p(vo,Oe,null),e(Oe,Id),e(Oe,xr),e(M,Wd),e(M,Ke),p(yo,Ke,null),e(Ke,Gd),e(Ke,wr),e(M,zd),e(M,et),p(To,et,null),e(et,Ld),e(et,$r),e(M,Bd),e(M,re),p(Mo,re,null),e(re,Vd),e(re,kr),e(re,Hd),p(tt,re,null),e(M,qd),e(M,ae),p(xo,ae,null),e(ae,Xd),e(ae,Cr),e(ae,Rd),e(ae,Pr),e(M,Dd),e(M,ot),p(wo,ot,null),e(ot,Nd),e(ot,Ur),e(M,Ed),e(M,Jr),p($o,Jr,null),e(M,Yd),e(M,nt),p(ko,nt,null),e(nt,Qd),e(nt,jr),e(M,Sd),e(M,rt),p(Co,rt,null),e(rt,Ad),e(rt,Fr),e(M,Od),e(M,at),p(Po,at,null),e(at,Kd),e(at,Zr),e(M,el),e(M,st),p(Uo,st,null),e(st,tl),e(st,Ir),e(M,ol),e(M,it),p(Jo,it,null),e(it,nl),e(it,Wr),e(M,rl),e(M,dt),p(jo,dt,null),e(dt,al),e(dt,Gr),$(t,Za,b),p(Fo,t,b),$(t,Ia,b),$(t,X,b),p(Zo,X,null),e(X,sl),e(X,zr),e(X,il),e(X,lt),p(Io,lt,null),e(lt,dl),e(lt,Lr),$(t,Wa,b),p(Wo,t,b),$(t,Ga,b),$(t,J,b),p(Go,J,null),e(J,ll),e(J,Br),e(J,ml),e(J,Vr),e(J,cl),e(J,Hr),e(J,pl),e(J,qr),e(J,hl),e(J,se),p(zo,se,null),e(se,fl),e(se,Xr),e(se,ul),p(mt,se,null),e(J,gl),e(J,ct),p(Lo,ct,null),e(ct,_l),e(ct,Rr),e(J,bl),e(J,B),p(Bo,B,null),e(B,vl),e(B,Dr),e(B,yl),e(B,Nr),e(B,Tl),e(B,Er),e(B,Ml),p(pt,B,null),e(J,xl),e(J,ie),p(Vo,ie,null),e(ie,wl),e(ie,Yr),e(ie,$l),e(ie,Qr),e(J,kl),e(J,de),p(Ho,de,null),e(de,Cl),e(de,Sr),e(de,Pl),p(ht,de,null),e(J,Ul),e(J,ft),p(qo,ft,null),e(ft,Jl),e(ft,Ar),e(J,jl),e(J,H),p(Xo,H,null),e(H,Fl),e(H,Or),e(H,Zl),e(H,Kr),e(H,Il),p(ut,H,null),e(J,Wl),e(J,q),p(Ro,q,null),e(q,Gl),e(q,ea),e(q,zl),e(q,ta),e(q,Ll),p(gt,q,null),e(J,Bl),e(J,le),p(Do,le,null),e(le,Vl),e(le,oa),e(le,Hl),p(_t,le,null),$(t,za,b),p(No,t,b),$(t,La,b),$(t,R,b),p(Eo,R,null),e(R,ql),e(R,na),e(R,Xl),e(R,me),p(Yo,me,null),e(me,Rl),e(me,ra),e(me,Dl),p(bt,me,null),$(t,Ba,b),p(Qo,t,b),$(t,Va,b),$(t,D,b),p(So,D,null),e(D,Nl),e(D,aa),e(D,El),e(D,sa),$(t,Ha,b),p(Ao,t,b),$(t,qa,b),$(t,xa,b),Xa=!0},p(t,[b]){const C={};b&2&&(C.$$scope={dirty:b,ctx:t}),ge.$set(C);const he={};b&2&&(he.$$scope={dirty:b,ctx:t}),_e.$set(he);const fe={};b&2&&(fe.$$scope={dirty:b,ctx:t}),Te.$set(fe);const Oo={};b&2&&(Oo.$$scope={dirty:b,ctx:t}),Me.$set(Oo);const Ko={};b&2&&(Ko.$$scope={dirty:b,ctx:t}),Ue.$set(Ko);const en={};b&2&&(en.$$scope={dirty:b,ctx:t}),He.$set(en);const I={};b&2&&(I.$$scope={dirty:b,ctx:t}),De.$set(I);const tn={};b&2&&(tn.$$scope={dirty:b,ctx:t}),tt.$set(tn);const on={};b&2&&(on.$$scope={dirty:b,ctx:t}),mt.$set(on);const nn={};b&2&&(nn.$$scope={dirty:b,ctx:t}),pt.$set(nn);const ue={};b&2&&(ue.$$scope={dirty:b,ctx:t}),ht.$set(ue);const N={};b&2&&(N.$$scope={dirty:b,ctx:t}),ut.$set(N);const rn={};b&2&&(rn.$$scope={dirty:b,ctx:t}),gt.$set(rn);const an={};b&2&&(an.$$scope={dirty:b,ctx:t}),_t.$set(an);const sn={};b&2&&(sn.$$scope={dirty:b,ctx:t}),bt.$set(sn)},i(t){Xa||(h(x.$$.fragment,t),h($t.$$.fragment,t),h(kt.$$.fragment,t),h(Ct.$$.fragment,t),h(ge.$$.fragment,t),h(Pt.$$.fragment,t),h(_e.$$.fragment,t),h(Ut.$$.fragment,t),h(Jt.$$.fragment,t),h(jt.$$.fragment,t),h(Ft.$$.fragment,t),h(Te.$$.fragment,t),h(Me.$$.fragment,t),h(Zt.$$.fragment,t),h(It.$$.fragment,t),h(Wt.$$.fragment,t),h(Gt.$$.fragment,t),h(zt.$$.fragment,t),h(Lt.$$.fragment,t),h(Bt.$$.fragment,t),h(Vt.$$.fragment,t),h(Ht.$$.fragment,t),h(Ue.$$.fragment,t),h(qt.$$.fragment,t),h(Xt.$$.fragment,t),h(Rt.$$.fragment,t),h(Dt.$$.fragment,t),h(Nt.$$.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(to.$$.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(He.$$.fragment,t),h(lo.$$.fragment,t),h(mo.$$.fragment,t),h(co.$$.fragment,t),h(po.$$.fragment,t),h(De.$$.fragment,t),h(ho.$$.fragment,t),h(fo.$$.fragment,t),h(uo.$$.fragment,t),h(go.$$.fragment,t),h(_o.$$.fragment,t),h(bo.$$.fragment,t),h(vo.$$.fragment,t),h(yo.$$.fragment,t),h(To.$$.fragment,t),h(Mo.$$.fragment,t),h(tt.$$.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(Jo.$$.fragment,t),h(jo.$$.fragment,t),h(Fo.$$.fragment,t),h(Zo.$$.fragment,t),h(Io.$$.fragment,t),h(Wo.$$.fragment,t),h(Go.$$.fragment,t),h(zo.$$.fragment,t),h(mt.$$.fragment,t),h(Lo.$$.fragment,t),h(Bo.$$.fragment,t),h(pt.$$.fragment,t),h(Vo.$$.fragment,t),h(Ho.$$.fragment,t),h(ht.$$.fragment,t),h(qo.$$.fragment,t),h(Xo.$$.fragment,t),h(ut.$$.fragment,t),h(Ro.$$.fragment,t),h(gt.$$.fragment,t),h(Do.$$.fragment,t),h(_t.$$.fragment,t),h(No.$$.fragment,t),h(Eo.$$.fragment,t),h(Yo.$$.fragment,t),h(bt.$$.fragment,t),h(Qo.$$.fragment,t),h(So.$$.fragment,t),h(Ao.$$.fragment,t),Xa=!0)},o(t){f(x.$$.fragment,t),f($t.$$.fragment,t),f(kt.$$.fragment,t),f(Ct.$$.fragment,t),f(ge.$$.fragment,t),f(Pt.$$.fragment,t),f(_e.$$.fragment,t),f(Ut.$$.fragment,t),f(Jt.$$.fragment,t),f(jt.$$.fragment,t),f(Ft.$$.fragment,t),f(Te.$$.fragment,t),f(Me.$$.fragment,t),f(Zt.$$.fragment,t),f(It.$$.fragment,t),f(Wt.$$.fragment,t),f(Gt.$$.fragment,t),f(zt.$$.fragment,t),f(Lt.$$.fragment,t),f(Bt.$$.fragment,t),f(Vt.$$.fragment,t),f(Ht.$$.fragment,t),f(Ue.$$.fragment,t),f(qt.$$.fragment,t),f(Xt.$$.fragment,t),f(Rt.$$.fragment,t),f(Dt.$$.fragment,t),f(Nt.$$.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(to.$$.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(He.$$.fragment,t),f(lo.$$.fragment,t),f(mo.$$.fragment,t),f(co.$$.fragment,t),f(po.$$.fragment,t),f(De.$$.fragment,t),f(ho.$$.fragment,t),f(fo.$$.fragment,t),f(uo.$$.fragment,t),f(go.$$.fragment,t),f(_o.$$.fragment,t),f(bo.$$.fragment,t),f(vo.$$.fragment,t),f(yo.$$.fragment,t),f(To.$$.fragment,t),f(Mo.$$.fragment,t),f(tt.$$.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(Jo.$$.fragment,t),f(jo.$$.fragment,t),f(Fo.$$.fragment,t),f(Zo.$$.fragment,t),f(Io.$$.fragment,t),f(Wo.$$.fragment,t),f(Go.$$.fragment,t),f(zo.$$.fragment,t),f(mt.$$.fragment,t),f(Lo.$$.fragment,t),f(Bo.$$.fragment,t),f(pt.$$.fragment,t),f(Vo.$$.fragment,t),f(Ho.$$.fragment,t),f(ht.$$.fragment,t),f(qo.$$.fragment,t),f(Xo.$$.fragment,t),f(ut.$$.fragment,t),f(Ro.$$.fragment,t),f(gt.$$.fragment,t),f(Do.$$.fragment,t),f(_t.$$.fragment,t),f(No.$$.fragment,t),f(Eo.$$.fragment,t),f(Yo.$$.fragment,t),f(bt.$$.fragment,t),f(Qo.$$.fragment,t),f(So.$$.fragment,t),f(Ao.$$.fragment,t),Xa=!1},d(t){t&&(i(U),i(_),i(g),i(s),i(P),i(wa),i(Mt),i($a),i(xt),i(ka),i(wt),i(Ca),i(Pa),i(w),i(Ua),i(Ja),i(W),i(ja),i(Fa),i(M),i(Za),i(Ia),i(X),i(Wa),i(Ga),i(J),i(za),i(La),i(R),i(Ba),i(Va),i(D),i(Ha),i(qa),i(xa)),i(d),u(x,t),u($t,t),u(kt),u(Ct),u(ge),u(Pt),u(_e),u(Ut),u(Jt),u(jt),u(Ft),u(Te),u(Me),u(Zt),u(It),u(Wt),u(Gt),u(zt),u(Lt),u(Bt),u(Vt),u(Ht),u(Ue),u(qt),u(Xt),u(Rt),u(Dt),u(Nt),u(Et),u(Yt),u(Qt,t),u(St),u(At),u(Ot),u(Kt),u(eo),u(to),u(oo),u(no),u(ro),u(ao,t),u(so),u(io),u(He),u(lo),u(mo),u(co),u(po),u(De),u(ho),u(fo),u(uo),u(go),u(_o),u(bo),u(vo),u(yo),u(To),u(Mo),u(tt),u(xo),u(wo),u($o),u(ko),u(Co),u(Po),u(Uo),u(Jo),u(jo),u(Fo,t),u(Zo),u(Io),u(Wo,t),u(Go),u(zo),u(mt),u(Lo),u(Bo),u(pt),u(Vo),u(Ho),u(ht),u(qo),u(Xo),u(ut),u(Ro),u(gt),u(Do),u(_t),u(No,t),u(Eo),u(Yo),u(bt),u(Qo,t),u(So),u(Ao,t)}}}const vp='{"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 yp(j){return Oc(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Pp extends Kc{constructor(d){super(),ep(this,d,yp,bp,Ac,{})}}export{Pp as component};
