import{s as Op,o as Kp,n as V}from"../chunks/scheduler.9bc65507.js";import{S as eh,i as th,g as r,s as o,r as c,A as oh,h as a,f as s,c as n,j as v,u as p,x as l,k as M,y as t,a as b,v as h,d as f,t as u,w as g}from"../chunks/index.707bf1b6.js";import{T as hi}from"../chunks/Tip.c2ecdbf4.js";import{D as T}from"../chunks/Docstring.17db21ae.js";import{C as B}from"../chunks/CodeBlock.54a9f38d.js";import{E as me}from"../chunks/ExampleCodeBlock.4f515aa9.js";import{H as ce}from"../chunks/Heading.342b1fa6.js";function nh(U){let d,P="Examples:",y,_,k;return _=new B({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbCUwQSUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsLmZyb21fcHJldHJhaW5lZCglMjJiZXJ0LWJhc2UtY2FzZWQlMjIpJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMG1vZGVsJTIwdG8lMjB5b3VyJTIwbmFtZXNwYWNlJTIwd2l0aCUyMHRoZSUyMG5hbWUlMjAlMjJteS1maW5ldHVuZWQtYmVydCUyMi4lMEFtb2RlbC5wdXNoX3RvX2h1YiglMjJteS1maW5ldHVuZWQtYmVydCUyMiklMEElMEElMjMlMjBQdXNoJTIwdGhlJTIwbW9kZWwlMjB0byUyMGFuJTIwb3JnYW5pemF0aW9uJTIwd2l0aCUyMHRoZSUyMG5hbWUlMjAlMjJteS1maW5ldHVuZWQtYmVydCUyMi4lMEFtb2RlbC5wdXNoX3RvX2h1YiglMjJodWdnaW5nZmFjZSUyRm15LWZpbmV0dW5lZC1iZXJ0JTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModel

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

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

<span class="hljs-comment"># Push the model to an organization with the name &quot;my-finetuned-bert&quot;.</span>
model.push_to_hub(<span class="hljs-string">&quot;huggingface/my-finetuned-bert&quot;</span>)`,wrap:!1}}),{c(){d=r("p"),d.textContent=P,y=o(),c(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=P),y=n(i),p(_.$$.fragment,i)},m(i,C){b(i,d,C),b(i,y,C),h(_,i,C),k=!0},p:V,i(i){k||(f(_.$$.fragment,i),k=!0)},o(i){u(_.$$.fragment,i),k=!1},d(i){i&&(s(d),s(y)),g(_,i)}}}function rh(U){let d,P=`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=P},l(y){d=a(y,"P",{"data-svelte-h":!0}),l(d)!=="svelte-13hahdn"&&(d.innerHTML=P)},m(y,_){b(y,d,_)},p:V,d(y){y&&s(d)}}}function ah(U){let d,P="Examples:",y,_,k;return _=new B({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJlcnRDb25maWclMkMlMjBCZXJ0TW9kZWwlMEElMEElMjMlMjBEb3dubG9hZCUyMG1vZGVsJTIwYW5kJTIwY29uZmlndXJhdGlvbiUyMGZyb20lMjBodWdnaW5nZmFjZS5jbyUyMGFuZCUyMGNhY2hlLiUwQW1vZGVsJTIwJTNEJTIwQmVydE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJiZXJ0LWJhc2UtdW5jYXNlZCUyMiklMEElMjMlMjBNb2RlbCUyMHdhcyUyMHNhdmVkJTIwdXNpbmclMjAqc2F2ZV9wcmV0cmFpbmVkKCcuJTJGdGVzdCUyRnNhdmVkX21vZGVsJTJGJykqJTIwKGZvciUyMGV4YW1wbGUlMjBwdXJwb3NlcyUyQyUyMG5vdCUyMHJ1bm5hYmxlKS4lMEFtb2RlbCUyMCUzRCUyMEJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyLiUyRnRlc3QlMkZzYXZlZF9tb2RlbCUyRiUyMiklMEElMjMlMjBVcGRhdGUlMjBjb25maWd1cmF0aW9uJTIwZHVyaW5nJTIwbG9hZGluZy4lMEFtb2RlbCUyMCUzRCUyMEJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLXVuY2FzZWQlMjIlMkMlMjBvdXRwdXRfYXR0ZW50aW9ucyUzRFRydWUpJTBBYXNzZXJ0JTIwbW9kZWwuY29uZmlnLm91dHB1dF9hdHRlbnRpb25zJTIwJTNEJTNEJTIwVHJ1ZSUwQSUyMyUyMExvYWRpbmclMjBmcm9tJTIwYSUyMFRGJTIwY2hlY2twb2ludCUyMGZpbGUlMjBpbnN0ZWFkJTIwb2YlMjBhJTIwUHlUb3JjaCUyMG1vZGVsJTIwKHNsb3dlciUyQyUyMGZvciUyMGV4YW1wbGUlMjBwdXJwb3NlcyUyQyUyMG5vdCUyMHJ1bm5hYmxlKS4lMEFjb25maWclMjAlM0QlMjBCZXJ0Q29uZmlnLmZyb21fanNvbl9maWxlKCUyMi4lMkZ0Zl9tb2RlbCUyRm15X3RmX21vZGVsX2NvbmZpZy5qc29uJTIyKSUwQW1vZGVsJTIwJTNEJTIwQmVydE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjIuJTJGdGZfbW9kZWwlMkZteV90Zl9jaGVja3BvaW50LmNrcHQuaW5kZXglMjIlMkMlMjBmcm9tX3RmJTNEVHJ1ZSUyQyUyMGNvbmZpZyUzRGNvbmZpZyklMEElMjMlMjBMb2FkaW5nJTIwZnJvbSUyMGElMjBGbGF4JTIwY2hlY2twb2ludCUyMGZpbGUlMjBpbnN0ZWFkJTIwb2YlMjBhJTIwUHlUb3JjaCUyMG1vZGVsJTIwKHNsb3dlciklMEFtb2RlbCUyMCUzRCUyMEJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLXVuY2FzZWQlMjIlMkMlMjBmcm9tX2ZsYXglM0RUcnVlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BertConfig, BertModel

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

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

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

<span class="hljs-comment"># Push the model to an organization with the name &quot;my-finetuned-bert&quot;.</span>
model.push_to_hub(<span class="hljs-string">&quot;huggingface/my-finetuned-bert&quot;</span>)`,wrap:!1}}),{c(){d=r("p"),d.textContent=P,y=o(),c(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=P),y=n(i),p(_.$$.fragment,i)},m(i,C){b(i,d,C),b(i,y,C),h(_,i,C),k=!0},p:V,i(i){k||(f(_.$$.fragment,i),k=!0)},o(i){u(_.$$.fragment,i),k=!1},d(i){i&&(s(d),s(y)),g(_,i)}}}function lh(U){let d,P="Examples:",y,_,k;return _=new B({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJlcnRDb25maWclMkMlMjBURkJlcnRNb2RlbCUwQSUwQSUyMyUyMERvd25sb2FkJTIwbW9kZWwlMjBhbmQlMjBjb25maWd1cmF0aW9uJTIwZnJvbSUyMGh1Z2dpbmdmYWNlLmNvJTIwYW5kJTIwY2FjaGUuJTBBbW9kZWwlMjAlM0QlMjBURkJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLXVuY2FzZWQlMjIpJTBBJTIzJTIwTW9kZWwlMjB3YXMlMjBzYXZlZCUyMHVzaW5nJTIwKnNhdmVfcHJldHJhaW5lZCgnLiUyRnRlc3QlMkZzYXZlZF9tb2RlbCUyRicpKiUyMChmb3IlMjBleGFtcGxlJTIwcHVycG9zZXMlMkMlMjBub3QlMjBydW5uYWJsZSkuJTBBbW9kZWwlMjAlM0QlMjBURkJlcnRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyLiUyRnRlc3QlMkZzYXZlZF9tb2RlbCUyRiUyMiklMEElMjMlMjBVcGRhdGUlMjBjb25maWd1cmF0aW9uJTIwZHVyaW5nJTIwbG9hZGluZy4lMEFtb2RlbCUyMCUzRCUyMFRGQmVydE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJiZXJ0LWJhc2UtdW5jYXNlZCUyMiUyQyUyMG91dHB1dF9hdHRlbnRpb25zJTNEVHJ1ZSklMEFhc3NlcnQlMjBtb2RlbC5jb25maWcub3V0cHV0X2F0dGVudGlvbnMlMjAlM0QlM0QlMjBUcnVlJTBBJTIzJTIwTG9hZGluZyUyMGZyb20lMjBhJTIwUHl0b3JjaCUyMG1vZGVsJTIwZmlsZSUyMGluc3RlYWQlMjBvZiUyMGElMjBUZW5zb3JGbG93JTIwY2hlY2twb2ludCUyMChzbG93ZXIlMkMlMjBmb3IlMjBleGFtcGxlJTIwcHVycG9zZXMlMkMlMjBub3QlMjBydW5uYWJsZSkuJTBBY29uZmlnJTIwJTNEJTIwQmVydENvbmZpZy5mcm9tX2pzb25fZmlsZSglMjIuJTJGcHRfbW9kZWwlMkZteV9wdF9tb2RlbF9jb25maWcuanNvbiUyMiklMEFtb2RlbCUyMCUzRCUyMFRGQmVydE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjIuJTJGcHRfbW9kZWwlMkZteV9weXRvcmNoX21vZGVsLmJpbiUyMiUyQyUyMGZyb21fcHQlM0RUcnVlJTJDJTIwY29uZmlnJTNEY29uZmlnKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BertConfig, TFBertModel

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

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

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

<span class="hljs-comment"># Push the model to an organization with the name &quot;my-finetuned-bert&quot;.</span>
model.push_to_hub(<span class="hljs-string">&quot;huggingface/my-finetuned-bert&quot;</span>)`,wrap:!1}}),{c(){d=r("p"),d.textContent=P,y=o(),c(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=P),y=n(i),p(_.$$.fragment,i)},m(i,C){b(i,d,C),b(i,y,C),h(_,i,C),k=!0},p:V,i(i){k||(f(_.$$.fragment,i),k=!0)},o(i){u(_.$$.fragment,i),k=!1},d(i){i&&(s(d),s(y)),g(_,i)}}}function ch(U){let d,P="Examples:",y,_,k;return _=new B({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEJlcnRDb25maWclMkMlMjBGbGF4QmVydE1vZGVsJTBBJTBBJTIzJTIwRG93bmxvYWQlMjBtb2RlbCUyMGFuZCUyMGNvbmZpZ3VyYXRpb24lMjBmcm9tJTIwaHVnZ2luZ2ZhY2UuY28lMjBhbmQlMjBjYWNoZS4lMEFtb2RlbCUyMCUzRCUyMEZsYXhCZXJ0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmJlcnQtYmFzZS1jYXNlZCUyMiklMEElMjMlMjBNb2RlbCUyMHdhcyUyMHNhdmVkJTIwdXNpbmclMjAqc2F2ZV9wcmV0cmFpbmVkKCcuJTJGdGVzdCUyRnNhdmVkX21vZGVsJTJGJykqJTIwKGZvciUyMGV4YW1wbGUlMjBwdXJwb3NlcyUyQyUyMG5vdCUyMHJ1bm5hYmxlKS4lMEFtb2RlbCUyMCUzRCUyMEZsYXhCZXJ0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMi4lMkZ0ZXN0JTJGc2F2ZWRfbW9kZWwlMkYlMjIpJTBBJTIzJTIwTG9hZGluZyUyMGZyb20lMjBhJTIwUHlUb3JjaCUyMGNoZWNrcG9pbnQlMjBmaWxlJTIwaW5zdGVhZCUyMG9mJTIwYSUyMFB5VG9yY2glMjBtb2RlbCUyMChzbG93ZXIlMkMlMjBmb3IlMjBleGFtcGxlJTIwcHVycG9zZXMlMkMlMjBub3QlMjBydW5uYWJsZSkuJTBBY29uZmlnJTIwJTNEJTIwQmVydENvbmZpZy5mcm9tX2pzb25fZmlsZSglMjIuJTJGcHRfbW9kZWwlMkZjb25maWcuanNvbiUyMiklMEFtb2RlbCUyMCUzRCUyMEZsYXhCZXJ0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMi4lMkZwdF9tb2RlbCUyRnB5dG9yY2hfbW9kZWwuYmluJTIyJTJDJTIwZnJvbV9wdCUzRFRydWUlMkMlMjBjb25maWclM0Rjb25maWcp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> BertConfig, FlaxBertModel

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

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

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

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

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

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

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

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

<span class="hljs-comment"># Push the {object} to an organization with the name &quot;my-finetuned-bert&quot;.</span>
{<span class="hljs-built_in">object</span>}.push_to_hub(<span class="hljs-string">&quot;huggingface/my-finetuned-bert&quot;</span>)`,wrap:!1}}),{c(){d=r("p"),d.textContent=P,y=o(),c(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=P),y=n(i),p(_.$$.fragment,i)},m(i,C){b(i,d,C),b(i,y,C),h(_,i,C),k=!0},p:V,i(i){k||(f(_.$$.fragment,i),k=!0)},o(i){u(_.$$.fragment,i),k=!1},d(i){i&&(s(d),s(y)),g(_,i)}}}function _h(U){let d,P,y,_,k,i,C,Gm=`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).`,Ya,Mt,Lm=`<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:`,Xa,Tt,Vm="<li>resize the input token embeddings when new tokens are added to the vocabulary</li> <li>prune the attention heads of the model.</li>",qa,xt,Em=`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).`,Da,wt,Aa,$,$t,fi,Cn,Hm="Base class for all models.",ui,Pn,Nm=`<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:`,gi,Jn,Rm="<li>resize the input embeddings,</li> <li>prune heads in the self-attention heads.</li>",_i,Un,Ym="Class attributes (overridden by derived classes):",bi,Fn,Xm=`<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>`,yi,X,kt,vi,Zn,qm="Upload the model file to the 🤗 Model Hub.",Mi,ue,Ti,ge,jt,xi,In,Dm="Returns whether this model can generate sequences with <code>.generate()</code>.",wi,_e,Ct,$i,Wn,Am="Removes the <code>_require_grads_hook</code>.",ki,be,Pt,ji,zn,Qm=`Enables the gradients for the input embeddings. This is useful for fine-tuning adapter weights while keeping
the model weights fixed.`,Ci,F,Jt,Pi,Bn,Sm="Instantiate a pretrained pytorch model from a pre-trained model configuration.",Ji,Gn,Om=`The model is set in evaluation mode by default using <code>model.eval()</code> (Dropout modules are deactivated). To train
the model, you should first set it back in training mode with <code>model.train()</code>.`,Ui,Ln,Km=`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.`,Fi,Vn,ec=`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.`,Zi,ye,Ii,ve,Wi,En,tc="<li><code>low_cpu_mem_usage</code> algorithm:</li>",zi,Hn,oc="This is an experimental function that loads the model using ~1x model size CPU memory",Bi,Nn,nc="Here is how it works:",Gi,Rn,rc=`<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>`,Li,Yn,ac="Currently, it can’t handle deepspeed ZeRO stage 3 and ignores loading errors",Vi,Me,Ut,Ei,Xn,sc="Returns the model’s input embeddings.",Hi,Te,Ft,Ni,qn,ic=`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>`,Ri,xe,Zt,Yi,Dn,lc="Returns the model’s output embeddings.",Xi,q,It,qi,An,dc="Deactivates gradient checkpointing for the current model.",Di,Qn,mc=`Note that in other frameworks this feature can be referred to as “activation checkpointing” or “checkpoint
activations”.`,Ai,D,Wt,Qi,Sn,cc="Activates gradient checkpointing for the current model.",Si,On,pc=`Note that in other frameworks this feature can be referred to as “activation checkpointing” or “checkpoint
activations”.`,Oi,we,zt,Ki,Kn,hc=`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>.`,el,$e,Bt,tl,er,fc=`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).`,ol,ke,Gt,nl,tr,uc="Prunes heads of the base model.",rl,A,Lt,al,or,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.`,sl,je,il,Q,Vt,ll,nr,_c="Resizes input token embeddings matrix of the model if <code>new_num_tokens != config.vocab_size</code>.",dl,rr,bc="Takes care of tying weights embeddings afterwards if the model class has a <code>tie_weights()</code> method.",ml,Ce,Et,cl,ar,yc=`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.`,pl,Pe,Ht,hl,sr,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.PreTrainedModel.from_pretrained">from_pretrained()</a> class method.`,fl,Je,Nt,ul,ir,Mc="Set model’s input embeddings.",gl,S,Rt,_l,lr,Tc="Tie the weights between the input embeddings and the output embeddings.",bl,dr,xc=`If the <code>torchscript</code> flag is set in the configuration, can’t handle parameter sharing so we are cloning the
weights instead.`,yl,O,Yt,vl,mr,wc=`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.`,Ml,cr,$c=`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>.`,Tl,Ue,Xt,xl,pr,kc="Shows a one-time warning if the input_ids appear to contain padding and no attention mask was given.",Qa,hr,Sa,qt,Oa,Dt,jc='In Transformers 4.20.0, the <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method has been reworked to accommodate large models using <a href="https://huggingface.co/docs/accelerate/big_modeling" rel="nofollow">Accelerate</a>. This requires Accelerate &gt;= 0.9.0 and PyTorch &gt;= 1.9.0. Instead of creating the full model, then loading the pretrained weights inside it (which takes twice the size of the model in RAM, one for the randomly initialized model, one for the weights), there is an option to create the model as an empty shell, then only materialize its parameters when the pretrained weights are loaded.',Ka,At,Cc="This option can be activated with <code>low_cpu_mem_usage=True</code>. The model is first created on the Meta device (with empty weights) and the state dict is then loaded inside it (shard by shard in the case of a sharded checkpoint). This way the maximum RAM used is the full size of the model only.",es,Qt,ts,St,Pc="Moreover, you can directly place the model on different devices if it doesn’t fully fit in RAM (only works for inference for now). With <code>device_map=&quot;auto&quot;</code>, Accelerate will determine where to put each layer to maximize the use of your fastest devices (GPUs) and offload the rest on the CPU, or even the hard drive if you don’t have enough GPU RAM (or CPU RAM). Even if the model is split across several devices, it will run as you would normally expect.",os,Ot,Jc="When passing a <code>device_map</code>, <code>low_cpu_mem_usage</code> is automatically set to <code>True</code>, so you don’t need to specify it:",ns,Kt,rs,eo,Uc="You can inspect how the model was split across devices by looking at its <code>hf_device_map</code> attribute:",as,to,ss,oo,is,no,Fc="You can also write your own device map following the same format (a dictionary layer name to device). It should map all parameters of the model to a given device, but you don’t have to detail where all the submodules of one layer go if that layer is entirely on the same device. For instance, the following device map would work properly for T0pp (as long as you have the GPU memory):",ls,ro,ds,ao,Zc="Another way to minimize the memory impact of your model is to instantiate it at a lower precision dtype (like <code>torch.float16</code>) or use direct quantization techniques as described below.",ms,so,cs,io,Ic=`Under Pytorch a model normally gets instantiated with <code>torch.float32</code> format. This can be an issue if one tries to
load a model whose weights are in fp16, since it’d require twice as much memory. To overcome this limitation, you can
either explicitly pass the desired <code>dtype</code> using <code>torch_dtype</code> argument:`,ps,lo,hs,mo,Wc=`or, if you want the model to always load in the most optimal memory pattern, you can use the special value <code>&quot;auto&quot;</code>,
and then <code>dtype</code> will be automatically derived from the model’s weights:`,fs,co,us,po,zc="Models instantiated from scratch can also be told which <code>dtype</code> to use with:",gs,ho,_s,fo,Bc="Due to Pytorch design, this functionality is only available for floating dtypes.",bs,uo,ys,W,go,wl,fr,Gc="A few utilities for <code>torch.nn.Modules</code>, to be used as a mixin.",$l,K,_o,kl,ur,Lc="Add a memory hook before and after each sub-module forward pass to record increase in memory consumption.",jl,gr,Vc=`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>.`,Cl,Fe,bo,Pl,_r,Ec="Helper function to estimate the total number of tokens from the model inputs.",Jl,Ze,yo,Ul,br,Hc=`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.`,Fl,Ie,vo,Zl,yr,Nc="Makes broadcastable attention and causal masks so that future and masked tokens are ignored.",Il,We,Mo,Wl,vr,Rc="Prepare the head mask if needed.",zl,ze,To,Bl,Mr,Yc="Invert an attention mask (e.g., switches 0. and 1.).",Gl,Be,xo,Ll,Tr,Xc="Get number of (optionally, trainable or non-embeddings) parameters in the module.",Vl,Ge,wo,El,xr,qc='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>).',vs,$o,Ms,x,ko,Hl,wr,Dc="Base class for all TF models.",Nl,$r,Ac=`<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:`,Rl,kr,Qc="<li>resize the input embeddings,</li> <li>prune heads in the self-attention heads.</li>",Yl,jr,Sc="Class attributes (overridden by derived classes):",Xl,Cr,Oc=`<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>`,ql,ee,jo,Dl,Pr,Kc="Upload the model files to the 🤗 Model Hub while synchronizing a local clone of the repo in <code>repo_path_or_name</code>.",Al,Le,Ql,Ve,Co,Sl,Jr,ep="Returns whether this model can generate sequences with <code>.generate()</code>.",Ol,Ee,Po,Kl,Ur,tp=`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.`,ed,He,Jo,td,Fr,op="Creates a draft of a model card using the information available to the <code>Trainer</code>.",od,Ne,Uo,nd,Zr,np="Method used for serving the model. This method is deprecated, and will be removed.",rd,G,Fo,ad,Ir,rp="Instantiate a pretrained TF 2.0 model from a pre-trained model configuration.",sd,Wr,ap=`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.`,id,zr,sp=`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.`,ld,Re,dd,Ye,Zo,md,Br,ip="Dict of bias attached to an LM head. The key represents the name of the bias attribute.",cd,Xe,Io,pd,Gr,lp="Prepare the head mask if needed.",hd,qe,Wo,fd,Lr,dp="Returns the model’s input embeddings layer.",ud,De,zo,gd,Vr,mp="The LM Head layer. This method must be overwritten by all the models that have a lm head.",_d,Ae,Bo,bd,Er,cp="Returns the model’s output embeddings",yd,Qe,Go,vd,Hr,pp=`Get the layer that handles a bias attribute in case the model has an LM head with weights tied to the
embeddings`,Md,Se,Lo,Td,Nr,hp="Get the concatenated _prefix name of the bias from the model name to the parent layer",xd,Oe,Vo,wd,Rr,fp=`Loads a saved checkpoint (model weights and optimizer state) from a repo. Returns the current epoch count when
the checkpoint was made.`,$d,Ke,Eo,kd,Yr,up=`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.`,jd,et,Ho,Cd,Xr,gp="Prunes heads of the base model.",Pd,te,No,Jd,qr,_p=`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.`,Ud,tt,Fd,oe,Ro,Zd,Dr,bp="Resizes input token embeddings matrix of the model if <code>new_num_tokens != config.vocab_size</code>.",Id,Ar,yp="Takes care of tying weights embeddings afterwards if the model class has a <code>tie_weights()</code> method.",Wd,ot,Yo,zd,Qr,vp=`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.`,Bd,Sr,Xo,Gd,nt,qo,Ld,Or,Mp="Prepare the output of the saved model. Can be overridden if specific serving modifications are required.",Vd,rt,Do,Ed,Kr,Tp="Set all the bias in the LM head.",Hd,at,Ao,Nd,ea,xp="Set model’s input embeddings",Rd,st,Qo,Yd,ta,wp="Set model’s output embeddings",Xd,it,So,qd,oa,$p=`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.`,Dd,lt,Oo,Ad,na,kp=`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.`,Ts,Ko,xs,N,en,Qd,ra,jp="A few utilities for <code>tf.keras.Model</code>, to be used as a mixin.",Sd,dt,tn,Od,aa,Cp="Get the number of (optionally, trainable) parameters in the model.",ws,on,$s,J,nn,Kd,sa,Pp="Base class for all models.",em,ia,Jp=`<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.`,tm,la,Up="Class attributes (overridden by derived classes):",om,da,Fp=`<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>`,nm,ne,rn,rm,ma,Zp="Upload the model checkpoint to the 🤗 Model Hub.",am,mt,sm,ct,an,im,ca,Ip=`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>.`,lm,L,sn,dm,pa,Wp="Instantiate a pretrained flax model from a pre-trained model configuration.",mm,ha,zp=`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.`,cm,fa,Bp=`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.`,pm,pt,hm,re,ln,fm,ua,Gp=`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.`,um,ga,Lp=`This load is performed efficiently: each checkpoint shard is loaded one by one in RAM and deleted after being
loaded in the model.`,gm,ae,dn,_m,_a,Vp=`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.`,bm,ht,ym,ft,mn,vm,ba,Ep=`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`,Mm,E,cn,Tm,ya,Hp=`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.`,xm,va,Np=`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.`,wm,ut,$m,H,pn,km,Ma,Rp=`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.`,jm,Ta,Yp=`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.`,Cm,gt,Pm,se,hn,Jm,xa,Xp=`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.`,Um,_t,ks,fn,js,R,un,Fm,wa,qp="A Mixin containing the functionality to push a model or tokenizer to the hub.",Zm,ie,gn,Im,$a,Dp="Upload the {object_files} to the 🤗 Model Hub.",Wm,bt,Cs,_n,Ps,Y,bn,zm,ka,Ap=`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.`,Bm,ja,Qp=`This load is performed efficiently: each checkpoint shard is loaded one by one in RAM and deleted after being
loaded in the model.`,Js,Ra,Us;return k=new ce({props:{title:"Models",local:"models",headingTag:"h1"}}),wt=new ce({props:{title:"PreTrainedModel",local:"transformers.PreTrainedModel",headingTag:"h2"}}),$t=new T({props:{name:"class transformers.PreTrainedModel",anchor:"transformers.PreTrainedModel",parameters:[{name:"config",val:": PretrainedConfig"},{name:"*inputs",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1071"}}),kt=new T({props:{name:"push_to_hub",anchor:"transformers.PreTrainedModel.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": typing.Optional[bool] = None"},{name:"commit_message",val:": typing.Optional[str] = None"},{name:"private",val:": typing.Optional[bool] = None"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"max_shard_size",val:": typing.Union[int, str, NoneType] = '10GB'"},{name:"create_pr",val:": bool = False"},{name:"safe_serialization",val:": bool = False"},{name:"revision",val:": str = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.PreTrainedModel.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your model to. It should contain your organization name
when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.PreTrainedModel.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.PreTrainedModel.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload model&quot;</code>.`,name:"commit_message"},{anchor:"transformers.PreTrainedModel.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the repository created should be private.`,name:"private"},{anchor:"transformers.PreTrainedModel.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>). Will default to <code>True</code> if <code>repo_url</code>
is not specified.`,name:"token"},{anchor:"transformers.PreTrainedModel.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;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.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>False</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"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py#L786"}}),ue=new me({props:{anchor:"transformers.PreTrainedModel.push_to_hub.example",$$slots:{default:[nh]},$$scope:{ctx:U}}}),jt=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#L1234",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>
`}}),Ct=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#L1337"}}),Pt=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#L1326"}}),Jt=new T({props:{name:"from_pretrained",anchor:"transformers.PreTrainedModel.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike, NoneType]"},{name:"*model_args",val:""},{name:"config",val:": typing.Union[transformers.configuration_utils.PretrainedConfig, str, os.PathLike, NoneType] = None"},{name:"cache_dir",val:": typing.Union[str, os.PathLike, NoneType] = None"},{name:"ignore_mismatched_sizes",val:": bool = False"},{name:"force_download",val:": bool = False"},{name:"local_files_only",val:": bool = False"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"revision",val:": str = 'main'"},{name:"use_safetensors",val:": bool = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PreTrainedModel.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> of a pretrained model hosted inside a model repo on huggingface.co.
Valid model ids can be located at the root-level, like <code>bert-base-uncased</code>, or namespaced under a
user or organization name, like <code>dbmdz/bert-base-german-cased</code>.</li>
<li>A path to a <em>directory</em> containing model weights saved using
<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.save_pretrained">save_pretrained()</a>, e.g., <code>./my_model_directory/</code>.</li>
<li>A path or url to a <em>tensorflow index checkpoint file</em> (e.g, <code>./tf_model/model.ckpt.index</code>). In
this case, <code>from_tf</code> should be set to <code>True</code> and a configuration object should be provided as
<code>config</code> argument. This loading path is slower than converting the TensorFlow checkpoint in a
PyTorch model using the provided conversion scripts and loading the PyTorch model afterwards.</li>
<li>A path or url to a model folder containing a <em>flax checkpoint file</em> in <em>.msgpack</em> format (e.g,
<code>./flax_model/</code> containing <code>flax_model.msgpack</code>). In this case, <code>from_flax</code> should be set to
<code>True</code>.</li>
<li><code>None</code> if you are both providing the configuration and state dictionary (resp. with keyword
arguments <code>config</code> and <code>state_dict</code>).</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"transformers.PreTrainedModel.from_pretrained.model_args",description:`<strong>model_args</strong> (sequence of positional arguments, <em>optional</em>) &#x2014;
All remaining positional arguments will be passed to the underlying model&#x2019;s <code>__init__</code> method.`,name:"model_args"},{anchor:"transformers.PreTrainedModel.from_pretrained.config",description:`<strong>config</strong> (<code>Union[PretrainedConfig, str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>an instance of a class derived from <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>,</li>
<li>a string or path valid as input to <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig.from_pretrained">from_pretrained()</a>.</li>
</ul>
<p>Configuration for the model to use instead of an automatically loaded configuration. Configuration can
be automatically loaded when:</p>
<ul>
<li>The model is a model provided by the library (loaded with the <em>model id</em> string of a pretrained
model).</li>
<li>The model was saved using <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.save_pretrained">save_pretrained()</a> and is reloaded by supplying the
save directory.</li>
<li>The model is loaded by supplying a local directory as <code>pretrained_model_name_or_path</code> and a
configuration JSON file named <em>config.json</em> is found in the directory.</li>
</ul>`,name:"config"},{anchor:"transformers.PreTrainedModel.from_pretrained.state_dict",description:`<strong>state_dict</strong> (<code>Dict[str, torch.Tensor]</code>, <em>optional</em>) &#x2014;
A state dictionary to use instead of a state dictionary loaded from saved weights file.</p>
<p>This option can be used if you want to create a model from a pretrained configuration but load your own
weights. In this case though, you should check if using <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.save_pretrained">save_pretrained()</a> and
<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> is not a simpler option.`,name:"state_dict"},{anchor:"transformers.PreTrainedModel.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory in which a downloaded pretrained model configuration should be cached if the
standard cache should not be used.`,name:"cache_dir"},{anchor:"transformers.PreTrainedModel.from_pretrained.from_tf",description:`<strong>from_tf</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Load the model weights from a TensorFlow checkpoint save file (see docstring of
<code>pretrained_model_name_or_path</code> argument).`,name:"from_tf"},{anchor:"transformers.PreTrainedModel.from_pretrained.from_flax",description:`<strong>from_flax</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Load the model weights from a Flax checkpoint save file (see docstring of
<code>pretrained_model_name_or_path</code> argument).`,name:"from_flax"},{anchor:"transformers.PreTrainedModel.from_pretrained.ignore_mismatched_sizes",description:`<strong>ignore_mismatched_sizes</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to raise an error if some of the weights from the checkpoint do not have the same size
as the weights of the model (if for instance, you are instantiating a model with 10 labels from a
checkpoint with 3 labels).`,name:"ignore_mismatched_sizes"},{anchor:"transformers.PreTrainedModel.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"transformers.PreTrainedModel.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to delete incompletely received files. Will attempt to resume the download if such a
file exists.`,name:"resume_download"},{anchor:"transformers.PreTrainedModel.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, e.g., <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"transformers.PreTrainedModel.from_pretrained.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether ot not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"transformers.PreTrainedModel.from_pretrained.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (i.e., do not try to download the model).`,name:"local_files_only(bool,"},{anchor:"transformers.PreTrainedModel.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.PreTrainedModel.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>To test a pull request you made on the Hub, you can pass \`revision=&#x201C;refs/pr/<pr_number>&#x201C;.</pr_number></p>

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

					</div>`,name:"_fast_init(bool,"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L2203",parameterGroups:[{title:"Parameters for big model inference",parametersDescription:[{anchor:"transformers.PreTrainedModel.from_pretrained.low_cpu_mem_usage(bool,",description:`<strong>low_cpu_mem_usage(<code>bool</code>,</strong> <em>optional</em>) &#x2014;
Tries to not use more than 1x model size in CPU memory (including peak memory) while loading the model.
This is an experimental feature and a subject to change at any moment.`,name:"low_cpu_mem_usage(bool,"},{anchor:"transformers.PreTrainedModel.from_pretrained.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) &#x2014;
Override the default <code>torch.dtype</code> and load the model under a specific <code>dtype</code>. The different options
are:</p>
<ol>
<li>
<p><code>torch.float16</code> or <code>torch.bfloat16</code> or <code>torch.float</code>: load in a specified
<code>dtype</code>, ignoring the model&#x2019;s <code>config.torch_dtype</code> if one exists. If not specified</p>
<ul>
<li>the model will get loaded in <code>torch.float</code> (fp32).</li>
</ul>
</li>
<li>
<p><code>&quot;auto&quot;</code> - A <code>torch_dtype</code> entry in the <code>config.json</code> file of the model will be
attempted to be used. If this entry isn&#x2019;t found then next check the <code>dtype</code> of the first weight in
the checkpoint that&#x2019;s of a floating point type and use that as <code>dtype</code>. This will load the model
using the <code>dtype</code> it was saved in at the end of the training. It can&#x2019;t be used as an indicator of how
the model was trained. Since it could be trained in one of half precision dtypes, but saved in fp32.</p>
</li>
</ol>
<tip>
<p>For some models the <code>dtype</code> they were trained in is unknown - you may try to check the model&#x2019;s paper or
reach out to the authors and ask them to add this information to the model&#x2019;s card and to insert the
<code>torch_dtype</code> entry in <code>config.json</code> on the hub.</p>
</tip>`,name:"torch_dtype"},{anchor:"transformers.PreTrainedModel.from_pretrained.device_map",description:`<strong>device_map</strong> (<code>str</code> or <code>Dict[str, Union[int, str, torch.device]]</code> or <code>int</code> or <code>torch.device</code>, <em>optional</em>) &#x2014;
A map that specifies where each submodule should go. It doesn&#x2019;t need to be refined to each
parameter/buffer name, once a given module name is inside, every submodule of it will be sent to the
same device. If we only pass the device (<em>e.g.</em>, <code>&quot;cpu&quot;</code>, <code>&quot;cuda:1&quot;</code>, <code>&quot;mps&quot;</code>, or a GPU ordinal rank
like <code>1</code>) on which the model will be allocated, the device map will map the entire model to this
device. Passing <code>device_map = 0</code> means put the whole model on GPU 0.</p>
<p>To have Accelerate compute the most optimized <code>device_map</code> automatically, set <code>device_map=&quot;auto&quot;</code>. For
more information about each option see <a href="https://hf.co/docs/accelerate/main/en/usage_guides/big_modeling#designing-a-device-map" rel="nofollow">designing a device
map</a>.`,name:"device_map"},{anchor:"transformers.PreTrainedModel.from_pretrained.max_memory",description:`<strong>max_memory</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
A dictionary device identifier to maximum memory. Will default to the maximum memory available for each
GPU and the available CPU RAM if unset.`,name:"max_memory"},{anchor:"transformers.PreTrainedModel.from_pretrained.offload_folder",description:`<strong>offload_folder</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
If the <code>device_map</code> contains any value <code>&quot;disk&quot;</code>, the folder where we will offload weights.`,name:"offload_folder"},{anchor:"transformers.PreTrainedModel.from_pretrained.offload_state_dict",description:`<strong>offload_state_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, will temporarily offload the CPU state dict to the hard drive to avoid getting out of CPU
RAM if the weight of the CPU state dict + the biggest shard of the checkpoint does not fit. Defaults to
<code>True</code> when there is some disk offload.`,name:"offload_state_dict"},{anchor:"transformers.PreTrainedModel.from_pretrained.load_in_8bit",description:`<strong>load_in_8bit</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, will convert the loaded model into mixed-8bit quantized model. To use this feature please
install <code>bitsandbytes</code> (<code>pip install -U bitsandbytes</code>).`,name:"load_in_8bit"},{anchor:"transformers.PreTrainedModel.from_pretrained.load_in_4bit",description:`<strong>load_in_4bit</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, will convert the loaded model into 4bit precision quantized model. To use this feature
install the latest version of <code>bitsandbytes</code> (<code>pip install -U bitsandbytes</code>).`,name:"load_in_4bit"},{anchor:"transformers.PreTrainedModel.from_pretrained.quantization_config",description:`<strong>quantization_config</strong> (<code>Union[QuantizationConfigMixin,Dict]</code>, <em>optional</em>) &#x2014;
A dictionary of configuration parameters or a QuantizationConfigMixin object for quantization (e.g
bitsandbytes, gptq)`,name:"quantization_config"},{anchor:"transformers.PreTrainedModel.from_pretrained.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
In case the relevant files are located inside a subfolder of the model repo on huggingface.co, you can
specify the folder name here.`,name:"subfolder"},{anchor:"transformers.PreTrainedModel.from_pretrained.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If specified load weights from <code>variant</code> filename, <em>e.g.</em> pytorch_model.<variant>.bin. <code>variant</code> is
ignored when using <code>from_tf</code> or <code>from_flax</code>.</variant>`,name:"variant"},{anchor:"transformers.PreTrainedModel.from_pretrained.use_safetensors",description:`<strong>use_safetensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Whether or not to use <code>safetensors</code> checkpoints. Defaults to <code>None</code>. If not specified and <code>safetensors</code>
is not installed, it will be set to <code>False</code>.`,name:"use_safetensors"},{anchor:"transformers.PreTrainedModel.from_pretrained.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to update the configuration object (after it being loaded) and initiate the model (e.g.,
<code>output_attentions=True</code>). Behaves differently depending on whether a <code>config</code> is provided or
automatically loaded:</p>
<ul>
<li>If a configuration is provided with <code>config</code>, <code>**kwargs</code> will be directly passed to the
underlying model&#x2019;s <code>__init__</code> method (we assume all relevant updates to the configuration have
already been done)</li>
<li>If a configuration is not provided, <code>kwargs</code> will be first passed to the configuration class
initialization function (<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"}]}]}}),ye=new hi({props:{$$slots:{default:[rh]},$$scope:{ctx:U}}}),ve=new me({props:{anchor:"transformers.PreTrainedModel.from_pretrained.example",$$slots:{default:[ah]},$$scope:{ctx:U}}}),Ut=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#L1343",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>
`}}),Ft=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#L2143"}}),Zt=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#L1369",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>
`}}),It=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#L1839"}}),Wt=new T({props:{name:"gradient_checkpointing_enable",anchor:"transformers.PreTrainedModel.gradient_checkpointing_enable",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1821"}}),zt=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#L1787"}}),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#L1153"}}),Gt=new T({props:{name:"prune_heads",anchor:"transformers.PreTrainedModel.prune_heads",parameters:[{name:"heads_to_prune",val:": typing.Dict[int, typing.List[int]]"}],parametersDescription:[{anchor:"transformers.PreTrainedModel.prune_heads.heads_to_prune",description:`<strong>heads_to_prune</strong> (<code>Dict[int, List[int]]</code>) &#x2014;
Dictionary with keys being selected layer indices (<code>int</code>) and associated values being the list of heads
to prune in said layer (list of <code>int</code>). For instance {1: [0, 2], 2: [2, 3]} will prune heads 0 and 2 on
layer 1 and heads 2 and 3 on layer 2.`,name:"heads_to_prune"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1804"}}),Lt=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#L3856"}}),je=new hi({props:{warning:!0,$$slots:{default:[sh]},$$scope:{ctx:U}}}),Vt=new T({props:{name:"resize_token_embeddings",anchor:"transformers.PreTrainedModel.resize_token_embeddings",parameters:[{name:"new_num_tokens",val:": typing.Optional[int] = None"},{name:"pad_to_multiple_of",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"transformers.PreTrainedModel.resize_token_embeddings.new_num_tokens",description:`<strong>new_num_tokens</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of new tokens in the embedding matrix. Increasing the size will add newly initialized
vectors at the end. Reducing the size will remove vectors from the end. If not provided or <code>None</code>, just
returns a pointer to the input tokens <code>torch.nn.Embedding</code> module of the model without doing anything.`,name:"new_num_tokens"},{anchor:"transformers.PreTrainedModel.resize_token_embeddings.pad_to_multiple_of",description:`<strong>pad_to_multiple_of</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If set will pad the embedding matrix to a multiple of the provided value.If <code>new_num_tokens</code> is set to
<code>None</code> will just pad the embedding to a multiple of <code>pad_to_multiple_of</code>.</p>
<p>This is especially useful to enable the use of Tensor Cores on NVIDIA hardware with compute capability
<code>&gt;= 7.5</code> (Volta), or on TPUs which benefit from having sequence lengths be a multiple of 128. For more
details about this, or help on choosing the correct value for resizing, refer to this guide:
<a href="https://docs.nvidia.com/deeplearning/performance/dl-performance-matrix-multiplication/index.html#requirements-tc" rel="nofollow">https://docs.nvidia.com/deeplearning/performance/dl-performance-matrix-multiplication/index.html#requirements-tc</a>`,name:"pad_to_multiple_of"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1509",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>
`}}),Et=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#L3910",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>
`}}),Ht=new T({props:{name:"save_pretrained",anchor:"transformers.PreTrainedModel.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"is_main_process",val:": bool = True"},{name:"state_dict",val:": typing.Optional[dict] = None"},{name:"save_function",val:": typing.Callable = <function save at 0x7ff487be50d0>"},{name:"push_to_hub",val:": bool = False"},{name:"max_shard_size",val:": typing.Union[int, str] = '10GB'"},{name:"safe_serialization",val:": bool = False"},{name:"variant",val:": typing.Optional[str] = None"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"save_peft_format",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PreTrainedModel.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to which to save. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"transformers.PreTrainedModel.save_pretrained.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful when in distributed training like
TPUs and need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on
the main process to avoid race conditions.`,name:"is_main_process"},{anchor:"transformers.PreTrainedModel.save_pretrained.state_dict",description:`<strong>state_dict</strong> (nested dictionary of <code>torch.Tensor</code>) &#x2014;
The state dictionary of the model to save. Will default to <code>self.state_dict()</code>, but can be used to only
save parts of the model or if special precautions need to be taken when recovering the state dictionary
of a model (like when using model parallelism).`,name:"state_dict"},{anchor:"transformers.PreTrainedModel.save_pretrained.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful on distributed training like TPUs when one
need to replace <code>torch.save</code> by another method.`,name:"save_function"},{anchor:"transformers.PreTrainedModel.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push your model to the Hugging Face model hub after saving it. You can specify the
repository you want to push to with <code>repo_id</code> (will default to the name of <code>save_directory</code> in your
namespace).`,name:"push_to_hub"},{anchor:"transformers.PreTrainedModel.save_pretrained.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;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.PreTrainedModel.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 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/processors#transformers.ProcessorMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1862"}}),Nt=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#L1356"}}),Rt=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#L1393"}}),Yt=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#L3882",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>
`}}),Xt=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#L3932"}}),qt=new ce({props:{title:"Large model loading",local:"large-model-loading",headingTag:"h3"}}),Qt=new B({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvclNlcTJTZXFMTSUwQSUwQXQwcHAlMjAlM0QlMjBBdXRvTW9kZWxGb3JTZXEyU2VxTE0uZnJvbV9wcmV0cmFpbmVkKCUyMmJpZ3NjaWVuY2UlMkZUMHBwJTIyJTJDJTIwbG93X2NwdV9tZW1fdXNhZ2UlM0RUcnVlKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForSeq2SeqLM

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

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


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


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


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


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


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


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


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


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


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


<p><code>int</code></p>
`}}),wo=new T({props:{name:"reset_memory_hooks_state",anchor:"transformers.modeling_utils.ModuleUtilsMixin.reset_memory_hooks_state",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L810"}}),$o=new ce({props:{title:"TFPreTrainedModel",local:"transformers.TFPreTrainedModel",headingTag:"h2"}}),ko=new T({props:{name:"class transformers.TFPreTrainedModel",anchor:"transformers.TFPreTrainedModel",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1057"}}),jo=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#L3050"}}),Le=new me({props:{anchor:"transformers.TFPreTrainedModel.push_to_hub.example",$$slots:{default:[ih]},$$scope:{ctx:U}}}),Co=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#L1302",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>
`}}),Po=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#L1497"}}),Jo=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#L1792"}}),Uo=new T({props:{name:"eager_serving",anchor:"transformers.TFPreTrainedModel.eager_serving",parameters:[{name:"inputs",val:""}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.eager_serving.inputs",description:`<strong>inputs</strong> (<code>Dict[str, tf.Tensor]</code>) &#x2014;
The input of the saved model as a dictionary of tensors.`,name:"inputs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1214"}}),Fo=new T({props:{name:"from_pretrained",anchor:"transformers.TFPreTrainedModel.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": Optional[Union[str, os.PathLike]]"},{name:"*model_args",val:""},{name:"config",val:": Optional[Union[PretrainedConfig, str, os.PathLike]] = None"},{name:"cache_dir",val:": Optional[Union[str, os.PathLike]] = None"},{name:"ignore_mismatched_sizes",val:": bool = False"},{name:"force_download",val:": bool = False"},{name:"local_files_only",val:": bool = False"},{name:"token",val:": Optional[Union[str, bool]] = None"},{name:"revision",val:": str = 'main'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> of a pretrained model hosted inside a model repo on huggingface.co.
Valid model ids can be located at the root-level, like <code>bert-base-uncased</code>, or namespaced under a
user or organization name, like <code>dbmdz/bert-base-german-cased</code>.</li>
<li>A path to a <em>directory</em> containing model weights saved using
<a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel.save_pretrained">save_pretrained()</a>, e.g., <code>./my_model_directory/</code>.</li>
<li>A path or url to a <em>PyTorch state_dict save file</em> (e.g, <code>./pt_model/pytorch_model.bin</code>). In this
case, <code>from_pt</code> should be set to <code>True</code> and a configuration object should be provided as <code>config</code>
argument. This loading path is slower than converting the PyTorch model in a TensorFlow model
using the provided conversion scripts and loading the TensorFlow model afterwards.</li>
<li><code>None</code> if you are both providing the configuration and state dictionary (resp. with keyword
arguments <code>config</code> and <code>state_dict</code>).</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.model_args",description:`<strong>model_args</strong> (sequence of positional arguments, <em>optional</em>) &#x2014;
All remaining positional arguments will be passed to the underlying model&#x2019;s <code>__init__</code> method.`,name:"model_args"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.config",description:`<strong>config</strong> (<code>Union[PretrainedConfig, str]</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>an instance of a class derived from <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>,</li>
<li>a string valid as input to <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig.from_pretrained">from_pretrained()</a>.</li>
</ul>
<p>Configuration for the model to use instead of an automatically loaded configuration. Configuration can
be automatically loaded when:</p>
<ul>
<li>The model is a model provided by the library (loaded with the <em>model id</em> string of a pretrained
model).</li>
<li>The model was saved using <a href="/docs/transformers/main/en/main_classes/model#transformers.TFPreTrainedModel.save_pretrained">save_pretrained()</a> and is reloaded by supplying the
save directory.</li>
<li>The model is loaded by supplying a local directory as <code>pretrained_model_name_or_path</code> and a
configuration JSON file named <em>config.json</em> is found in the directory.</li>
</ul>`,name:"config"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.from_pt",description:`<strong>from_pt</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Load the model weights from a PyTorch state_dict save file (see docstring of
<code>pretrained_model_name_or_path</code> argument).`,name:"from_pt"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.ignore_mismatched_sizes",description:`<strong>ignore_mismatched_sizes</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to raise an error if some of the weights from the checkpoint do not have the same size
as the weights of the model (if for instance, you are instantiating a model with 10 labels from a
checkpoint with 3 labels).`,name:"ignore_mismatched_sizes"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Path to a directory in which a downloaded pretrained model configuration should be cached if the
standard cache should not be used.`,name:"cache_dir"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to delete incompletely received files. Will attempt to resume the download if such a
file exists.
proxies &#x2014;
(<code>Dict[str, str], </code>optional<code>): A dictionary of proxy servers to use by protocol or endpoint, e.g., </code>{&#x2018;http&#x2019;: &#x2018;foo.bar:3128&#x2019;, &#x2018;http://hostname&#x2019;: &#x2018;foo.bar:4012&#x2019;}<code>. The proxies are used on each request. output_loading_info(</code>bool<code>, *optional*, defaults to </code>False\`): Whether ot not to also return a
dictionary containing missing keys, unexpected keys and error messages.`,name:"resume_download"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (e.g., not try downloading the model).`,name:"local_files_only(bool,"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.`,name:"revision"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L2499"}}),Re=new me({props:{anchor:"transformers.TFPreTrainedModel.from_pretrained.example",$$slots:{default:[lh]},$$scope:{ctx:U}}}),Zo=new T({props:{name:"get_bias",anchor:"transformers.TFPreTrainedModel.get_bias",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1932",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>
`}}),Io=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#L1169",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>
`}}),Wo=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#L1316",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>
`}}),zo=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#L1965",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>tf.keras.layers.Layer</code></p>
`}}),Bo=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#L1872",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>
`}}),Go=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#L1909",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<p><code>dict</code></p>
`}}),Eo=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#L1392",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>
`}}),Ho=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#L2312"}}),No=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#L3158"}}),tt=new hi({props:{warning:!0,$$slots:{default:[dh]},$$scope:{ctx:U}}}),Ro=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#L1974",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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

					</div>`,name:"max_shard_size"},{anchor:"transformers.TFPreTrainedModel.save_pretrained.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"transformers.TFPreTrainedModel.save_pretrained.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way (that uses <code>pickle</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/processors#transformers.ProcessorMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L2324"}}),Xo=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"}]}}),qo=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#L1278"}}),Do=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#L1949"}}),Ao=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#L1852"}}),Qo=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#L1892"}}),So=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#L1688"}}),Oo=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#L1580"}}),Ko=new ce({props:{title:"TFModelUtilsMixin",local:"transformers.modeling_tf_utils.TFModelUtilsMixin",headingTag:"h2"}}),en=new T({props:{name:"class transformers.modeling_tf_utils.TFModelUtilsMixin",anchor:"transformers.modeling_tf_utils.TFModelUtilsMixin",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L105"}}),tn=new T({props:{name:"num_parameters",anchor:"transformers.modeling_tf_utils.TFModelUtilsMixin.num_parameters",parameters:[{name:"only_trainable",val:": bool = False"}],parametersDescription:[{anchor:"transformers.modeling_tf_utils.TFModelUtilsMixin.num_parameters.only_trainable",description:`<strong>only_trainable</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return only the number of trainable parameters`,name:"only_trainable"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L110",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>int</code></p>
`}}),on=new ce({props:{title:"FlaxPreTrainedModel",local:"transformers.FlaxPreTrainedModel",headingTag:"h2"}}),nn=new T({props:{name:"class transformers.FlaxPreTrainedModel",anchor:"transformers.FlaxPreTrainedModel",parameters:[{name:"config",val:": PretrainedConfig"},{name:"module",val:": Module"},{name:"input_shape",val:": typing.Tuple = (1, 1)"},{name:"seed",val:": int = 0"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"_do_init",val:": bool = True"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L158"}}),rn=new T({props:{name:"push_to_hub",anchor:"transformers.FlaxPreTrainedModel.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": typing.Optional[bool] = None"},{name:"commit_message",val:": typing.Optional[str] = None"},{name:"private",val:": typing.Optional[bool] = None"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"max_shard_size",val:": typing.Union[int, str, NoneType] = '10GB'"},{name:"create_pr",val:": bool = False"},{name:"safe_serialization",val:": bool = False"},{name:"revision",val:": str = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your model to. It should contain your organization name
when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload model&quot;</code>.`,name:"commit_message"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the repository created should be private.`,name:"private"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>). Will default to <code>True</code> if <code>repo_url</code>
is not specified.`,name:"token"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;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.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>False</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"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py#L786"}}),mt=new me({props:{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.example",$$slots:{default:[mh]},$$scope:{ctx:U}}}),an=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#L472"}}),sn=new T({props:{name:"from_pretrained",anchor:"transformers.FlaxPreTrainedModel.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike]"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"*model_args",val:""},{name:"config",val:": typing.Union[transformers.configuration_utils.PretrainedConfig, str, os.PathLike, NoneType] = None"},{name:"cache_dir",val:": typing.Union[str, os.PathLike, NoneType] = None"},{name:"ignore_mismatched_sizes",val:": bool = False"},{name:"force_download",val:": bool = False"},{name:"local_files_only",val:": bool = False"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"revision",val:": str = 'main'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> of a pretrained model hosted inside a model repo on huggingface.co.
Valid model ids can be located at the root-level, like <code>bert-base-uncased</code>, or namespaced under a
user or organization name, like <code>dbmdz/bert-base-german-cased</code>.</li>
<li>A path to a <em>directory</em> containing model weights saved using
<a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.save_pretrained">save_pretrained()</a>, e.g., <code>./my_model_directory/</code>.</li>
<li>A path or url to a <em>pt index checkpoint file</em> (e.g, <code>./tf_model/model.ckpt.index</code>). In this case,
<code>from_pt</code> should be set to <code>True</code>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.dtype",description:`<strong>dtype</strong> (<code>jax.numpy.dtype</code>, <em>optional</em>, defaults to <code>jax.numpy.float32</code>) &#x2014;
The data type of the computation. Can be one of <code>jax.numpy.float32</code>, <code>jax.numpy.float16</code> (on GPUs) and
<code>jax.numpy.bfloat16</code> (on TPUs).</p>
<p>This can be used to enable mixed-precision training or half-precision inference on GPUs or TPUs. If
specified all the computation will be performed with the given <code>dtype</code>.</p>
<p><strong>Note that this only specifies the dtype of the computation and does not influence the dtype of model
parameters.</strong></p>
<p>If you wish to change the dtype of the model parameters, see <a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.model_args",description:`<strong>model_args</strong> (sequence of positional arguments, <em>optional</em>) &#x2014;
All remaining positional arguments will be passed to the underlying model&#x2019;s <code>__init__</code> method.`,name:"model_args"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.config",description:`<strong>config</strong> (<code>Union[PretrainedConfig, str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>an instance of a class derived from <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>,</li>
<li>a string or path valid as input to <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig.from_pretrained">from_pretrained()</a>.</li>
</ul>
<p>Configuration for the model to use instead of an automatically loaded configuration. Configuration can
be automatically loaded when:</p>
<ul>
<li>The model is a model provided by the library (loaded with the <em>model id</em> string of a pretrained
model).</li>
<li>The model was saved using <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.save_pretrained">save_pretrained()</a> and is reloaded by supplying the
save directory.</li>
<li>The model is loaded by supplying a local directory as <code>pretrained_model_name_or_path</code> and a
configuration JSON file named <em>config.json</em> is found in the directory.</li>
</ul>`,name:"config"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory in which a downloaded pretrained model configuration should be cached if the
standard cache should not be used.`,name:"cache_dir"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.from_pt",description:`<strong>from_pt</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Load the model weights from a PyTorch checkpoint save file (see docstring of
<code>pretrained_model_name_or_path</code> argument).`,name:"from_pt"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.ignore_mismatched_sizes",description:`<strong>ignore_mismatched_sizes</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to raise an error if some of the weights from the checkpoint do not have the same size
as the weights of the model (if for instance, you are instantiating a model with 10 labels from a
checkpoint with 3 labels).`,name:"ignore_mismatched_sizes"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to delete incompletely received files. Will attempt to resume the download if such a
file exists.`,name:"resume_download"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, e.g., <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (i.e., do not try to download the model).`,name:"local_files_only(bool,"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.`,name:"revision"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L484"}}),pt=new me({props:{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.example",$$slots:{default:[ch]},$$scope:{ctx:U}}}),ln=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#L425",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>
`}}),dn=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#L1152"}}),ht=new hi({props:{warning:!0,$$slots:{default:[ph]},$$scope:{ctx:U}}}),mn=new T({props:{name:"save_pretrained",anchor:"transformers.FlaxPreTrainedModel.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"params",val:" = None"},{name:"push_to_hub",val:" = False"},{name:"max_shard_size",val:" = '10GB'"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"**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/processors#transformers.ProcessorMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L1025"}}),cn=new T({props:{name:"to_bf16",anchor:"transformers.FlaxPreTrainedModel.to_bf16",parameters:[{name:"params",val:": typing.Union[typing.Dict, flax.core.frozen_dict.FrozenDict]"},{name:"mask",val:": typing.Any = None"}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.to_bf16.params",description:`<strong>params</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> of model parameters.`,name:"params"},{anchor:"transformers.FlaxPreTrainedModel.to_bf16.mask",description:`<strong>mask</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> with same structure as the <code>params</code> tree. The leaves should be booleans, <code>True</code> for params
you want to cast, and should be <code>False</code> for those you want to skip.`,name:"mask"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L320"}}),ut=new me({props:{anchor:"transformers.FlaxPreTrainedModel.to_bf16.example",$$slots:{default:[hh]},$$scope:{ctx:U}}}),pn=new T({props:{name:"to_fp16",anchor:"transformers.FlaxPreTrainedModel.to_fp16",parameters:[{name:"params",val:": typing.Union[typing.Dict, flax.core.frozen_dict.FrozenDict]"},{name:"mask",val:": typing.Any = None"}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.to_fp16.params",description:`<strong>params</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> of model parameters.`,name:"params"},{anchor:"transformers.FlaxPreTrainedModel.to_fp16.mask",description:`<strong>mask</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> with same structure as the <code>params</code> tree. The leaves should be booleans, <code>True</code> for params
you want to cast, and should be <code>False</code> for those you want to skip`,name:"mask"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L386"}}),gt=new me({props:{anchor:"transformers.FlaxPreTrainedModel.to_fp16.example",$$slots:{default:[fh]},$$scope:{ctx:U}}}),hn=new T({props:{name:"to_fp32",anchor:"transformers.FlaxPreTrainedModel.to_fp32",parameters:[{name:"params",val:": typing.Union[typing.Dict, flax.core.frozen_dict.FrozenDict]"},{name:"mask",val:": typing.Any = None"}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.to_fp32.params",description:`<strong>params</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> of model parameters.`,name:"params"},{anchor:"transformers.FlaxPreTrainedModel.to_fp32.mask",description:`<strong>mask</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> with same structure as the <code>params</code> tree. The leaves should be booleans, <code>True</code> for params
you want to cast, and should be <code>False</code> for those you want to skip`,name:"mask"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L359"}}),_t=new me({props:{anchor:"transformers.FlaxPreTrainedModel.to_fp32.example",$$slots:{default:[uh]},$$scope:{ctx:U}}}),fn=new ce({props:{title:"Pushing to the Hub",local:"transformers.utils.PushToHubMixin",headingTag:"h2"}}),un=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#L672"}}),gn=new T({props:{name:"push_to_hub",anchor:"transformers.utils.PushToHubMixin.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": typing.Optional[bool] = None"},{name:"commit_message",val:": typing.Optional[str] = None"},{name:"private",val:": typing.Optional[bool] = None"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"max_shard_size",val:": typing.Union[int, str, NoneType] = '10GB'"},{name:"create_pr",val:": bool = False"},{name:"safe_serialization",val:": bool = False"},{name:"revision",val:": str = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.utils.PushToHubMixin.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your {object} to. It should contain your organization name
when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload {object}&quot;</code>.`,name:"commit_message"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the repository created should be private.`,name:"private"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>). Will default to <code>True</code> if <code>repo_url</code>
is not specified.`,name:"token"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;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.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>False</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"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py#L786"}}),bt=new me({props:{anchor:"transformers.utils.PushToHubMixin.push_to_hub.example",$$slots:{default:[gh]},$$scope:{ctx:U}}}),_n=new ce({props:{title:"Sharded checkpoints",local:"transformers.modeling_utils.load_sharded_checkpoint",headingTag:"h2"}}),bn=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#L373",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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