import{s as nh,o as rh,n as G}from"../chunks/scheduler.9991993c.js";import{S as ah,i as sh,g as r,s as o,r as c,A as ih,h as a,f as s,c as n,j as y,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.7fc9a5e7.js";import{T as hi}from"../chunks/Tip.9de92fc6.js";import{D as T}from"../chunks/Docstring.8180f571.js";import{C as B}from"../chunks/CodeBlock.e11cba92.js";import{E as D}from"../chunks/ExampleCodeBlock.a03fccd6.js";import{H as Tt}from"../chunks/Heading.e3de321f.js";function lh(P){let d,J="Examples:",v,_,w;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=J,v=o(),c(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=J),v=n(i),p(_.$$.fragment,i)},m(i,C){b(i,d,C),b(i,v,C),h(_,i,C),w=!0},p:G,i(i){w||(f(_.$$.fragment,i),w=!0)},o(i){u(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(v)),g(_,i)}}}function dh(P){let d,J="Examples:",v,_,w;return _=new B({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbCUwQSUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsLmZyb21fcHJldHJhaW5lZCglMjJiZXJ0LWJhc2UtY2FzZWQlMjIpJTBBJTBBbW9kZWwuYWRkX21vZGVsX3RhZ3MoJTVCJTIyY3VzdG9tJTIyJTJDJTIwJTIyY3VzdG9tLWJlcnQlMjIlNUQpJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMG1vZGVsJTIwdG8lMjB5b3VyJTIwbmFtZXNwYWNlJTIwd2l0aCUyMHRoZSUyMG5hbWUlMjAlMjJteS1jdXN0b20tYmVydCUyMi4lMEFtb2RlbC5wdXNoX3RvX2h1YiglMjJteS1jdXN0b20tYmVydCUyMik=",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>)

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

<span class="hljs-comment"># Push the model to your namespace with the name &quot;my-custom-bert&quot;.</span>
model.push_to_hub(<span class="hljs-string">&quot;my-custom-bert&quot;</span>)`,wrap:!1}}),{c(){d=r("p"),d.textContent=J,v=o(),c(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=J),v=n(i),p(_.$$.fragment,i)},m(i,C){b(i,d,C),b(i,v,C),h(_,i,C),w=!0},p:G,i(i){w||(f(_.$$.fragment,i),w=!0)},o(i){u(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(v)),g(_,i)}}}function mh(P){let d,J=`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=J},l(v){d=a(v,"P",{"data-svelte-h":!0}),l(d)!=="svelte-13hahdn"&&(d.innerHTML=J)},m(v,_){b(v,d,_)},p:G,d(v){v&&s(d)}}}function ch(P){let d,J="Examples:",v,_,w;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=J,v=o(),c(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=J),v=n(i),p(_.$$.fragment,i)},m(i,C){b(i,d,C),b(i,v,C),h(_,i,C),w=!0},p:G,i(i){w||(f(_.$$.fragment,i),w=!0)},o(i){u(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(v)),g(_,i)}}}function ph(P){let d,J="This API is experimental and may have some slight breaking changes in the next releases.";return{c(){d=r("p"),d.textContent=J},l(v){d=a(v,"P",{"data-svelte-h":!0}),l(d)!=="svelte-15rpg4"&&(d.textContent=J)},m(v,_){b(v,d,_)},p:G,d(v){v&&s(d)}}}function hh(P){let d,J="Examples:",v,_,w;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=J,v=o(),c(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=J),v=n(i),p(_.$$.fragment,i)},m(i,C){b(i,d,C),b(i,v,C),h(_,i,C),w=!0},p:G,i(i){w||(f(_.$$.fragment,i),w=!0)},o(i){u(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(v)),g(_,i)}}}function fh(P){let d,J="Examples:",v,_,w;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=J,v=o(),c(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=J),v=n(i),p(_.$$.fragment,i)},m(i,C){b(i,d,C),b(i,v,C),h(_,i,C),w=!0},p:G,i(i){w||(f(_.$$.fragment,i),w=!0)},o(i){u(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(v)),g(_,i)}}}function uh(P){let d,J="This API is experimental and may have some slight breaking changes in the next releases.";return{c(){d=r("p"),d.textContent=J},l(v){d=a(v,"P",{"data-svelte-h":!0}),l(d)!=="svelte-15rpg4"&&(d.textContent=J)},m(v,_){b(v,d,_)},p:G,d(v){v&&s(d)}}}function gh(P){let d,J="Examples:",v,_,w;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=J,v=o(),c(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=J),v=n(i),p(_.$$.fragment,i)},m(i,C){b(i,d,C),b(i,v,C),h(_,i,C),w=!0},p:G,i(i){w||(f(_.$$.fragment,i),w=!0)},o(i){u(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(v)),g(_,i)}}}function _h(P){let d,J="Examples:",v,_,w;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=J,v=o(),c(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=J),v=n(i),p(_.$$.fragment,i)},m(i,C){b(i,d,C),b(i,v,C),h(_,i,C),w=!0},p:G,i(i){w||(f(_.$$.fragment,i),w=!0)},o(i){u(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(v)),g(_,i)}}}function bh(P){let d,J="This API is experimental and may have some slight breaking changes in the next releases.";return{c(){d=r("p"),d.textContent=J},l(v){d=a(v,"P",{"data-svelte-h":!0}),l(d)!=="svelte-15rpg4"&&(d.textContent=J)},m(v,_){b(v,d,_)},p:G,d(v){v&&s(d)}}}function vh(P){let d,J="Examples:",v,_,w;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=J,v=o(),c(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=J),v=n(i),p(_.$$.fragment,i)},m(i,C){b(i,d,C),b(i,v,C),h(_,i,C),w=!0},p:G,i(i){w||(f(_.$$.fragment,i),w=!0)},o(i){u(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(v)),g(_,i)}}}function yh(P){let d,J="Examples:",v,_,w;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=J,v=o(),c(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=J),v=n(i),p(_.$$.fragment,i)},m(i,C){b(i,d,C),b(i,v,C),h(_,i,C),w=!0},p:G,i(i){w||(f(_.$$.fragment,i),w=!0)},o(i){u(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(v)),g(_,i)}}}function Mh(P){let d,J="Examples:",v,_,w;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=J,v=o(),c(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=J),v=n(i),p(_.$$.fragment,i)},m(i,C){b(i,d,C),b(i,v,C),h(_,i,C),w=!0},p:G,i(i){w||(f(_.$$.fragment,i),w=!0)},o(i){u(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(v)),g(_,i)}}}function Th(P){let d,J="Examples:",v,_,w;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=J,v=o(),c(_.$$.fragment)},l(i){d=a(i,"P",{"data-svelte-h":!0}),l(d)!=="svelte-kvfsh7"&&(d.textContent=J),v=n(i),p(_.$$.fragment,i)},m(i,C){b(i,d,C),b(i,v,C),h(_,i,C),w=!0},p:G,i(i){w||(f(_.$$.fragment,i),w=!0)},o(i){u(_.$$.fragment,i),w=!1},d(i){i&&(s(d),s(v)),g(_,i)}}}function xh(P){let d,J,v,_,w,i,C,Vm='基类 <a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>、<a href="/docs/transformers/main/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> 和 <a href="/docs/transformers/main/zh/main_classes/model#transformers.FlaxPreTrainedModel">FlaxPreTrainedModel</a> 实现了从本地文件或目录加载/保存模型的常用方法，或者从库上提供的预训练模型配置（从 HuggingFace 的 AWS S3 存储库下载）加载模型。',Xa,xt,Hm='<a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> 和 <a href="/docs/transformers/main/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> 还实现了一些所有模型共有的方法：',Da,wt,Em="<li>在向量词嵌入增加新词汇时调整输入标记（token）的大小</li> <li>对模型的注意力头进行修剪。</li>",Qa,$t,Ym='其他的通用方法在 <a href="/docs/transformers/main/zh/main_classes/model#transformers.modeling_utils.ModuleUtilsMixin">ModuleUtilsMixin</a>（用于 PyTorch 模型）和 <code>~modeling_tf_utils.TFModuleUtilsMixin</code>（用于 TensorFlow 模型）中定义；文本生成方面的方法则定义在 <a href="/docs/transformers/main/zh/main_classes/text_generation#transformers.GenerationMixin">GenerationMixin</a>（用于 PyTorch 模型）、<a href="/docs/transformers/main/zh/main_classes/text_generation#transformers.TFGenerationMixin">TFGenerationMixin</a>（用于 TensorFlow 模型）和 <a href="/docs/transformers/main/zh/main_classes/text_generation#transformers.FlaxGenerationMixin">FlaxGenerationMixin</a>（用于 Flax/JAX 模型）中。',Aa,kt,Sa,k,jt,fi,Jn,Nm="Base class for all models.",ui,Un,qm=`<a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> takes care of storing the configuration of the models and handles methods for loading,
downloading and saving models as well as a few methods common to all models to:`,gi,Pn,Rm="<li>resize the input embeddings,</li> <li>prune heads in the self-attention heads.</li>",_i,Zn,Xm="Class attributes (overridden by derived classes):",bi,Fn,Dm=`<li><p><strong>config_class</strong> (<a href="/docs/transformers/main/zh/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>) — A subclass of <a href="/docs/transformers/main/zh/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/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>) — An instance of the model on which to load the TensorFlow checkpoint.</li> <li><strong>config</strong> (<code>PreTrainedConfig</code>) — An instance of the configuration associated to the model.</li> <li><strong>path</strong> (<code>str</code>) — A path to the TensorFlow checkpoint.</li></ul></li> <li><p><strong>base_model_prefix</strong> (<code>str</code>) — A string indicating the attribute associated to the base model in derived
classes of the same architecture adding modules on top of the base model.</p></li> <li><p><strong>is_parallelizable</strong> (<code>bool</code>) — A flag indicating whether this model supports model parallelization.</p></li> <li><p><strong>main_input_name</strong> (<code>str</code>) — The name of the principal input to the model (often <code>input_ids</code> for NLP
models, <code>pixel_values</code> for vision models and <code>input_values</code> for speech models).</p></li>`,vi,Q,Ct,yi,In,Qm="Upload the model file to the 🤗 Model Hub.",Mi,ge,Ti,A,Jt,xi,Wn,Am=`Add custom tags into the model that gets pushed to the Hugging Face Hub. Will
not overwrite existing tags in the model.`,wi,_e,$i,be,Ut,ki,zn,Sm="Returns whether this model can generate sequences with <code>.generate()</code>.",ji,ve,Pt,Ci,Bn,Om="Removes the <code>_require_grads_hook</code>.",Ji,ye,Zt,Ui,Gn,Km=`Enables the gradients for the input embeddings. This is useful for fine-tuning adapter weights while keeping
the model weights fixed.`,Pi,Z,Ft,Zi,Ln,ec="Instantiate a pretrained pytorch model from a pre-trained model configuration.",Fi,Vn,tc=`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>.`,Ii,Hn,oc=`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.`,Wi,En,nc=`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,Me,Bi,Te,Gi,Yn,rc="<li><code>low_cpu_mem_usage</code> algorithm:</li>",Li,Nn,ac="This is an experimental function that loads the model using ~1x model size CPU memory",Vi,qn,sc="Here is how it works:",Hi,Rn,ic=`<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>`,Ei,Xn,lc="Currently, it can’t handle deepspeed ZeRO stage 3 and ignores loading errors",Yi,xe,It,Ni,Dn,dc="Returns the model’s input embeddings.",qi,we,Wt,Ri,Qn,mc=`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>`,Xi,$e,zt,Di,An,cc="Returns the model’s output embeddings.",Qi,S,Bt,Ai,Sn,pc="Deactivates gradient checkpointing for the current model.",Si,On,hc=`Note that in other frameworks this feature can be referred to as “activation checkpointing” or “checkpoint
activations”.`,Oi,H,Gt,Ki,Kn,fc="Activates gradient checkpointing for the current model.",el,er,uc=`Note that in other frameworks this feature can be referred to as “activation checkpointing” or “checkpoint
activations”.`,tl,tr,gc=`We pass the <code>__call__</code> method of the modules instead of <code>forward</code> because <code>__call__</code> attaches all the hooks of
the module. <a href="https://discuss.pytorch.org/t/any-different-between-model-input-and-model-forward-input/3690/2" rel="nofollow">https://discuss.pytorch.org/t/any-different-between-model-input-and-model-forward-input/3690/2</a>`,ol,ke,Lt,nl,or,_c=`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>.`,rl,je,Vt,al,nr,bc=`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).`,sl,Ce,Ht,il,rr,vc="Prunes heads of the base model.",ll,O,Et,dl,ar,yc=`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.`,ml,Je,cl,K,Yt,pl,sr,Mc="Resizes input token embeddings matrix of the model if <code>new_num_tokens != config.vocab_size</code>.",hl,ir,Tc="Takes care of tying weights embeddings afterwards if the model class has a <code>tie_weights()</code> method.",fl,Ue,Nt,ul,lr,xc=`Reverts the transformation from <a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel.to_bettertransformer">to_bettertransformer()</a> so that the original modeling is
used, for example in order to save the model.`,gl,Pe,qt,_l,dr,wc=`Save a model and its configuration file to a directory, so that it can be re-loaded using the
<a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> class method.`,bl,Ze,Rt,vl,mr,$c="Set model’s input embeddings.",yl,ee,Xt,Ml,cr,kc="Tie the weights between the input embeddings and the output embeddings.",Tl,pr,jc=`If the <code>torchscript</code> flag is set in the configuration, can’t handle parameter sharing so we are cloning the
weights instead.`,xl,te,Dt,wl,hr,Cc=`Converts the model to use <a href="https://pytorch.org/docs/stable/generated/torch.nn.MultiheadAttention.html" rel="nofollow">PyTorch’s native attention
implementation</a>, integrated to
Transformers through <a href="https://huggingface.co/docs/optimum/bettertransformer/overview" rel="nofollow">Optimum library</a>. Only a
subset of all Transformers models are supported.`,$l,fr,Jc=`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>.`,kl,Fe,Qt,jl,ur,Uc="Shows a one-time warning if the input_ids appear to contain padding and no attention mask was given.",Oa,gr,Ka,At,es,St,Pc='在 Transformers 4.20.0 中，<a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> 方法已重新设计，以适应使用 <a href="https://huggingface.co/docs/accelerate/big_modeling" rel="nofollow">Accelerate</a> 加载大型模型的场景。这需要您使用的 Accelerate 和 PyTorch 版本满足： Accelerate &gt;= 0.9.0， PyTorch &gt;= 1.9.0。除了创建完整模型，然后在其中加载预训练权重（这会占用两倍于模型大小的内存空间，一个用于随机初始化模型，一个用于预训练权重），我们提供了一种选项，将模型创建为空壳，然后只有在加载预训练权重时才实例化其参数。',ts,Ot,Zc="您可以使用 <code>low_cpu_mem_usage=True</code> 激活此选项。首先，在 Meta 设备上创建模型（带有空权重），然后将状态字典加载到其中（在分片检查点的情况下逐片加载）。这样，最大使用的内存占用仅为模型的完整大小。",os,Kt,ns,eo,Fc="此外，如果内存不足以放下加载整个模型（目前仅适用于推理），您可以直接将模型放置在不同的设备上。使用 <code>device_map=&quot;auto&quot;</code>，Accelerate 将确定将每一层放置在哪个设备上，以最大化使用最快的设备（GPU），并将其余部分卸载到 CPU，甚至硬盘上（如果您没有足够的 GPU 内存 或 CPU 内存）。即使模型分布在几个设备上，它也将像您通常期望的那样运行。",rs,to,Ic="在传递 <code>device_map</code> 时，<code>low_cpu_mem_usage</code> 会自动设置为 <code>True</code>，因此您不需要指定它：",as,oo,ss,no,Wc="您可以通过 <code>hf_device_map</code> 属性来查看模型是如何在设备上分割的：",is,ro,ls,ao,zc="您还可以按照相同的格式（一个层名称到设备的映射关系的字典）编写自己的设备映射规则。它应该将模型的所有参数映射到给定的设备上，如果该层的所有子模块都在同一设备上，您不必详细说明其中所有子模块的位置。例如，以下设备映射对于 T0pp 将正常工作（只要您有 GPU 内存）：",ds,so,ms,io,Bc="另一种减少模型内存影响的方法是以较低精度的 dtype（例如 <code>torch.float16</code>）实例化它，或者使用下面介绍的直接量化技术。",cs,lo,ps,mo,Gc="在 PyTorch 下，模型通常以 <code>torch.float32</code> 格式实例化。如果尝试加载权重为 fp16 的模型，这可能会导致问题，因为它将需要两倍的内存。为了克服此限制，您可以使用 <code>torch_dtype</code> 参数显式传递所需的 <code>dtype</code>：",hs,co,fs,po,Lc="或者，如果您希望模型始终以最优的内存模式加载，则可以使用特殊值 <code>&quot;auto&quot;</code>，然后 <code>dtype</code> 将自动从模型的权重中推导出：",us,ho,gs,fo,Vc="也可以通过以下方式告知从头开始实例化的模型要使用哪种 <code>dtype</code>：",_s,uo,bs,go,Hc="由于 PyTorch 的设计，此功能仅适用于浮点类型。",vs,_o,ys,W,bo,Cl,_r,Ec="A few utilities for <code>torch.nn.Modules</code>, to be used as a mixin.",Jl,oe,vo,Ul,br,Yc="Add a memory hook before and after each sub-module forward pass to record increase in memory consumption.",Pl,vr,Nc=`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>.`,Zl,Ie,yo,Fl,yr,qc="Helper function to estimate the total number of tokens from the model inputs.",Il,We,Mo,Wl,Mr,Rc=`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.`,zl,ze,To,Bl,Tr,Xc="Makes broadcastable attention and causal masks so that future and masked tokens are ignored.",Gl,Be,xo,Ll,xr,Dc="Prepare the head mask if needed.",Vl,Ge,wo,Hl,wr,Qc="Invert an attention mask (e.g., switches 0. and 1.).",El,Le,$o,Yl,$r,Ac="Get number of (optionally, trainable or non-embeddings) parameters in the module.",Nl,Ve,ko,ql,kr,Sc='Reset the <code>mem_rss_diff</code> attribute of each module (see <a href="/docs/transformers/main/zh/main_classes/model#transformers.modeling_utils.ModuleUtilsMixin.add_memory_hooks">add_memory_hooks()</a>).',Ms,jo,Oc="TFPreTrainedModel",Ts,x,Co,Rl,jr,Kc="Base class for all TF models.",Xl,Cr,ep=`<a href="/docs/transformers/main/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> takes care of storing the configuration of the models and handles methods for loading,
downloading and saving models as well as a few methods common to all models to:`,Dl,Jr,tp="<li>resize the input embeddings,</li> <li>prune heads in the self-attention heads.</li>",Ql,Ur,op="Class attributes (overridden by derived classes):",Al,Pr,np=`<li><strong>config_class</strong> (<a href="/docs/transformers/main/zh/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>) — A subclass of <a href="/docs/transformers/main/zh/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>`,Sl,ne,Jo,Ol,Zr,rp="Upload the model files to the 🤗 Model Hub while synchronizing a local clone of the repo in <code>repo_path_or_name</code>.",Kl,He,ed,Ee,Uo,td,Fr,ap="Returns whether this model can generate sequences with <code>.generate()</code>.",od,Ye,Po,nd,Ir,sp=`This is a thin wrapper that sets the model’s loss output head as the loss if the user does not specify a loss
function themselves.`,rd,Ne,Zo,ad,Wr,ip="Creates a draft of a model card using the information available to the <code>Trainer</code>.",sd,L,Fo,id,zr,lp="Instantiate a pretrained TF 2.0 model from a pre-trained model configuration.",ld,Br,dp=`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.`,dd,Gr,mp=`The warning <em>Weights from XXX not used in YYY</em> means that the layer XXX is not used by YYY, therefore those
weights are discarded.`,md,qe,cd,Re,Io,pd,Lr,cp="Dict of bias attached to an LM head. The key represents the name of the bias attribute.",hd,Xe,Wo,fd,Vr,pp="Prepare the head mask if needed.",ud,De,zo,gd,Hr,hp="Returns the model’s input embeddings layer.",_d,Qe,Bo,bd,Er,fp="The LM Head layer. This method must be overwritten by all the models that have a lm head.",vd,Ae,Go,yd,Yr,up="Returns the model’s output embeddings",Md,Se,Lo,Td,Nr,gp=`Get the layer that handles a bias attribute in case the model has an LM head with weights tied to the
embeddings`,xd,Oe,Vo,wd,qr,_p="Get the concatenated _prefix name of the bias from the model name to the parent layer",$d,Ke,Ho,kd,Rr,bp=`Loads a saved checkpoint (model weights and optimizer state) from a repo. Returns the current epoch count when
the checkpoint was made.`,jd,et,Eo,Cd,Xr,vp=`Wraps a HuggingFace <code>Dataset</code> as a <code>tf.data.Dataset</code> with collation and batching. This method is
designed to create a “ready-to-use” dataset that can be passed directly to Keras methods like <code>fit()</code> without
further modification. The method will drop columns from the dataset if they don’t match input names for the
model. If you want to specify the column names to return rather than using the names that match this model, we
recommend using <code>Dataset.to_tf_dataset()</code> instead.`,Jd,tt,Yo,Ud,Dr,yp="Prunes heads of the base model.",Pd,re,No,Zd,Qr,Mp=`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.`,Fd,ot,Id,ae,qo,Wd,Ar,Tp="Resizes input token embeddings matrix of the model if <code>new_num_tokens != config.vocab_size</code>.",zd,Sr,xp="Takes care of tying weights embeddings afterwards if the model class has a <code>tie_weights()</code> method.",Bd,nt,Ro,Gd,Or,wp=`Save a model and its configuration file to a directory, so that it can be re-loaded using the
<a href="/docs/transformers/main/zh/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">from_pretrained()</a> class method.`,Ld,Kr,Xo,Vd,rt,Do,Hd,ea,$p="Prepare the output of the saved model. Can be overridden if specific serving modifications are required.",Ed,at,Qo,Yd,ta,kp="Set all the bias in the LM head.",Nd,st,Ao,qd,oa,jp="Set model’s input embeddings",Rd,it,So,Xd,na,Cp="Set model’s output embeddings",Dd,lt,Oo,Qd,ra,Jp=`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.`,Ad,dt,Ko,Sd,aa,Up=`A modification of Keras’s default <code>train_step</code> that correctly handles matching outputs to labels for our models
and supports directly training on the loss output head. In addition, it ensures input keys are copied to the
labels where appropriate. It will also copy label keys into the input dict when using the dummy loss, to ensure
that they are available to the model during the forward pass.`,xs,en,ws,N,tn,Od,sa,Pp="A few utilities for <code>keras.Model</code>, to be used as a mixin.",Kd,mt,on,em,ia,Zp="Get the number of (optionally, trainable) parameters in the model.",$s,nn,Fp="FlaxPreTrainedModel",ks,U,rn,tm,la,Ip="Base class for all models.",om,da,Wp=`<a href="/docs/transformers/main/zh/main_classes/model#transformers.FlaxPreTrainedModel">FlaxPreTrainedModel</a> takes care of storing the configuration of the models and handles methods for loading,
downloading and saving models.`,nm,ma,zp="Class attributes (overridden by derived classes):",rm,ca,Bp=`<li><strong>config_class</strong> (<a href="/docs/transformers/main/zh/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>) — A subclass of <a href="/docs/transformers/main/zh/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>`,am,se,an,sm,pa,Gp="Upload the model checkpoint to the 🤗 Model Hub.",im,ct,lm,pt,sn,dm,ha,Lp=`Returns whether this model can generate sequences with <code>.generate()</code>. Returns:
<code>bool</code>: Whether this model can generate sequences with <code>.generate()</code>.`,mm,V,ln,cm,fa,Vp="Instantiate a pretrained flax model from a pre-trained model configuration.",pm,ua,Hp=`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.`,hm,ga,Ep=`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.`,fm,ht,um,ie,dn,gm,_a,Yp=`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.`,_m,ba,Np=`This load is performed efficiently: each checkpoint shard is loaded one by one in RAM and deleted after being
loaded in the model.`,bm,le,mn,vm,va,qp=`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.`,ym,ft,Mm,ut,cn,Tm,ya,Rp=`Save a model and its configuration file to a directory, so that it can be re-loaded using the
<code>[from_pretrained()](/docs/transformers/main/zh/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained)</code> class method`,xm,E,pn,wm,Ma,Xp=`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.`,$m,Ta,Dp=`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.`,km,gt,jm,Y,hn,Cm,xa,Qp=`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,wa,Ap=`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.`,Um,_t,Pm,de,fn,Zm,$a,Sp=`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.`,Fm,bt,js,un,Cs,q,gn,Im,ka,Op="A Mixin containing the functionality to push a model or tokenizer to the hub.",Wm,me,_n,zm,ja,Kp="Upload the {object_files} to the 🤗 Model Hub.",Bm,vt,Js,bn,Us,R,vn,Gm,Ca,eh=`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.`,Lm,Ja,th=`This load is performed efficiently: each checkpoint shard is loaded one by one in RAM and deleted after being
loaded in the model.`,Ps,Ra,Zs;return w=new Tt({props:{title:"模型",local:"模型",headingTag:"h1"}}),kt=new Tt({props:{title:"PreTrainedModel",local:"transformers.PreTrainedModel",headingTag:"h2"}}),jt=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#L1186"}}),Ct=new T({props:{name:"push_to_hub",anchor:"transformers.PreTrainedModel.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": Optional = None"},{name:"commit_message",val:": Optional = None"},{name:"private",val:": Optional = None"},{name:"token",val:": Union = None"},{name:"max_shard_size",val:": Union = '5GB'"},{name:"create_pr",val:": bool = False"},{name:"safe_serialization",val:": bool = True"},{name:"revision",val:": str = None"},{name:"commit_description",val:": str = None"},{name:"tags",val:": Optional = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.PreTrainedModel.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your model to. It should contain your organization name
when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.PreTrainedModel.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.PreTrainedModel.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload model&quot;</code>.`,name:"commit_message"},{anchor:"transformers.PreTrainedModel.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the repository created should be private.`,name:"private"},{anchor:"transformers.PreTrainedModel.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>). Will default to <code>True</code> if <code>repo_url</code>
is not specified.`,name:"token"},{anchor:"transformers.PreTrainedModel.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;5GB&quot;</code>) &#x2014;
Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard
will then be each of size lower than this size. If expressed as a string, needs to be digits followed
by a unit (like <code>&quot;5MB&quot;</code>). We default it to <code>&quot;5GB&quot;</code> so that users can easily load models on free-tier
Google Colab instances without any CPU OOM issues.`,name:"max_shard_size"},{anchor:"transformers.PreTrainedModel.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"transformers.PreTrainedModel.push_to_hub.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to convert the model weights in safetensors format for safer serialization.`,name:"safe_serialization"},{anchor:"transformers.PreTrainedModel.push_to_hub.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Branch to push the uploaded files to.`,name:"revision"},{anchor:"transformers.PreTrainedModel.push_to_hub.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created`,name:"commit_description"},{anchor:"transformers.PreTrainedModel.push_to_hub.tags",description:`<strong>tags</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of tags to push on the Hub.`,name:"tags"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py#L769"}}),ge=new D({props:{anchor:"transformers.PreTrainedModel.push_to_hub.example",$$slots:{default:[lh]},$$scope:{ctx:P}}}),Jt=new T({props:{name:"add_model_tags",anchor:"transformers.PreTrainedModel.add_model_tags",parameters:[{name:"tags",val:": Union"}],parametersDescription:[{anchor:"transformers.PreTrainedModel.add_model_tags.tags",description:`<strong>tags</strong> (<code>Union[List[str], str]</code>) &#x2014;
The desired tags to inject in the model`,name:"tags"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1299"}}),_e=new D({props:{anchor:"transformers.PreTrainedModel.add_model_tags.example",$$slots:{default:[dh]},$$scope:{ctx:P}}}),Ut=new T({props:{name:"can_generate",anchor:"transformers.PreTrainedModel.can_generate",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1471",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>
`}}),Pt=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#L1616"}}),Zt=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#L1605"}}),Ft=new T({props:{name:"from_pretrained",anchor:"transformers.PreTrainedModel.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": Union"},{name:"*model_args",val:""},{name:"config",val:": Union = None"},{name:"cache_dir",val:": Union = None"},{name:"ignore_mismatched_sizes",val:": bool = False"},{name:"force_download",val:": bool = False"},{name:"local_files_only",val:": bool = False"},{name:"token",val:": Union = None"},{name:"revision",val:": str = 'main'"},{name:"use_safetensors",val:": bool = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PreTrainedModel.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> of a pretrained model hosted inside a model repo on huggingface.co.
Valid model ids can be located at the root-level, like <code>bert-base-uncased</code>, or namespaced under a
user or organization name, like <code>dbmdz/bert-base-german-cased</code>.</li>
<li>A path to a <em>directory</em> containing model weights saved using
<a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel.save_pretrained">save_pretrained()</a>, e.g., <code>./my_model_directory/</code>.</li>
<li>A path or url to a <em>tensorflow index checkpoint file</em> (e.g, <code>./tf_model/model.ckpt.index</code>). In
this case, <code>from_tf</code> should be set to <code>True</code> and a configuration object should be provided as
<code>config</code> argument. This loading path is slower than converting the TensorFlow checkpoint in a
PyTorch model using the provided conversion scripts and loading the PyTorch model afterwards.</li>
<li>A path or url to a model folder containing a <em>flax checkpoint file</em> in <em>.msgpack</em> format (e.g,
<code>./flax_model/</code> containing <code>flax_model.msgpack</code>). In this case, <code>from_flax</code> should be set to
<code>True</code>.</li>
<li><code>None</code> if you are both providing the configuration and state dictionary (resp. with keyword
arguments <code>config</code> and <code>state_dict</code>).</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"transformers.PreTrainedModel.from_pretrained.model_args",description:`<strong>model_args</strong> (sequence of positional arguments, <em>optional</em>) &#x2014;
All remaining positional arguments will be passed to the underlying model&#x2019;s <code>__init__</code> method.`,name:"model_args"},{anchor:"transformers.PreTrainedModel.from_pretrained.config",description:`<strong>config</strong> (<code>Union[PretrainedConfig, str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>an instance of a class derived from <a href="/docs/transformers/main/zh/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>,</li>
<li>a string or path valid as input to <a href="/docs/transformers/main/zh/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/zh/main_classes/model#transformers.PreTrainedModel.save_pretrained">save_pretrained()</a> and is reloaded by supplying the
save directory.</li>
<li>The model is loaded by supplying a local directory as <code>pretrained_model_name_or_path</code> and a
configuration JSON file named <em>config.json</em> is found in the directory.</li>
</ul>`,name:"config"},{anchor:"transformers.PreTrainedModel.from_pretrained.state_dict",description:`<strong>state_dict</strong> (<code>Dict[str, torch.Tensor]</code>, <em>optional</em>) &#x2014;
A state dictionary to use instead of a state dictionary loaded from saved weights file.</p>
<p>This option can be used if you want to create a model from a pretrained configuration but load your own
weights. In this case though, you should check if using <a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel.save_pretrained">save_pretrained()</a> and
<a href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> is not a simpler option.`,name:"state_dict"},{anchor:"transformers.PreTrainedModel.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory in which a downloaded pretrained model configuration should be cached if the
standard cache should not be used.`,name:"cache_dir"},{anchor:"transformers.PreTrainedModel.from_pretrained.from_tf",description:`<strong>from_tf</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Load the model weights from a TensorFlow checkpoint save file (see docstring of
<code>pretrained_model_name_or_path</code> argument).`,name:"from_tf"},{anchor:"transformers.PreTrainedModel.from_pretrained.from_flax",description:`<strong>from_flax</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Load the model weights from a Flax checkpoint save file (see docstring of
<code>pretrained_model_name_or_path</code> argument).`,name:"from_flax"},{anchor:"transformers.PreTrainedModel.from_pretrained.ignore_mismatched_sizes",description:`<strong>ignore_mismatched_sizes</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to raise an error if some of the weights from the checkpoint do not have the same size
as the weights of the model (if for instance, you are instantiating a model with 10 labels from a
checkpoint with 3 labels).`,name:"ignore_mismatched_sizes"},{anchor:"transformers.PreTrainedModel.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"transformers.PreTrainedModel.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to delete incompletely received files. Will attempt to resume the download if such a
file exists.`,name:"resume_download"},{anchor:"transformers.PreTrainedModel.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, e.g., <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"transformers.PreTrainedModel.from_pretrained.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether ot not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"transformers.PreTrainedModel.from_pretrained.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (i.e., do not try to download the model).`,name:"local_files_only(bool,"},{anchor:"transformers.PreTrainedModel.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.PreTrainedModel.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>To test a pull request you made on the Hub, you can pass \`revision=&#x201C;refs/pr/<pr_number>&#x201C;.</pr_number></p>

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

					</div>`,name:"_fast_init(bool,"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L2656",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.quantization_config",description:`<strong>quantization_config</strong> (<code>Union[QuantizationConfigMixin,Dict]</code>, <em>optional</em>) &#x2014;
A dictionary of configuration parameters or a QuantizationConfigMixin object for quantization (e.g
bitsandbytes, gptq). There may be other quantization-related kwargs, including <code>load_in_4bit</code> and
<code>load_in_8bit</code>, which are parsed by QuantizationConfigParser. Supported only for bitsandbytes
quantizations and not preferred. consider inserting all such arguments into quantization_config
instead.`,name:"quantization_config"},{anchor:"transformers.PreTrainedModel.from_pretrained.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
In case the relevant files are located inside a subfolder of the model repo on huggingface.co, you can
specify the folder name here.`,name:"subfolder"},{anchor:"transformers.PreTrainedModel.from_pretrained.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If specified load weights from <code>variant</code> filename, <em>e.g.</em> pytorch_model.<variant>.bin. <code>variant</code> is
ignored when using <code>from_tf</code> or <code>from_flax</code>.</variant>`,name:"variant"},{anchor:"transformers.PreTrainedModel.from_pretrained.use_safetensors",description:`<strong>use_safetensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Whether or not to use <code>safetensors</code> checkpoints. Defaults to <code>None</code>. If not specified and <code>safetensors</code>
is not installed, it will be set to <code>False</code>.`,name:"use_safetensors"},{anchor:"transformers.PreTrainedModel.from_pretrained.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to update the configuration object (after it being loaded) and initiate the model (e.g.,
<code>output_attentions=True</code>). Behaves differently depending on whether a <code>config</code> is provided or
automatically loaded:</p>
<ul>
<li>If a configuration is provided with <code>config</code>, <code>**kwargs</code> will be directly passed to the
underlying model&#x2019;s <code>__init__</code> method (we assume all relevant updates to the configuration have
already been done)</li>
<li>If a configuration is not provided, <code>kwargs</code> will be first passed to the configuration class
initialization function (<a href="/docs/transformers/main/zh/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"}]}]}}),Me=new hi({props:{$$slots:{default:[mh]},$$scope:{ctx:P}}}),Te=new D({props:{anchor:"transformers.PreTrainedModel.from_pretrained.example",$$slots:{default:[ch]},$$scope:{ctx:P}}}),It=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#L1622",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>
`}}),Wt=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#L2579"}}),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#L1648",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>
`}}),Bt=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#L2200"}}),Gt=new T({props:{name:"gradient_checkpointing_enable",anchor:"transformers.PreTrainedModel.gradient_checkpointing_enable",parameters:[{name:"gradient_checkpointing_kwargs",val:" = None"}],parametersDescription:[{anchor:"transformers.PreTrainedModel.gradient_checkpointing_enable.gradient_checkpointing_kwargs",description:`<strong>gradient_checkpointing_kwargs</strong> (dict, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to the <code>torch.utils.checkpoint.checkpoint</code> function.`,name:"gradient_checkpointing_kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L2136"}}),Lt=new T({props:{name:"init_weights",anchor:"transformers.PreTrainedModel.init_weights",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L2102"}}),Vt=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#L1285"}}),Ht=new T({props:{name:"prune_heads",anchor:"transformers.PreTrainedModel.prune_heads",parameters:[{name:"heads_to_prune",val:": Dict"}],parametersDescription:[{anchor:"transformers.PreTrainedModel.prune_heads.heads_to_prune",description:`<strong>heads_to_prune</strong> (<code>Dict[int, List[int]]</code>) &#x2014;
Dictionary with keys being selected layer indices (<code>int</code>) and associated values being the list of heads
to prune in said layer (list of <code>int</code>). For instance {1: [0, 2], 2: [2, 3]} will prune heads 0 and 2 on
layer 1 and heads 2 and 3 on layer 2.`,name:"heads_to_prune"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L2119"}}),Et=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#L4158"}}),Je=new hi({props:{warning:!0,$$slots:{default:[ph]},$$scope:{ctx:P}}}),Yt=new T({props:{name:"resize_token_embeddings",anchor:"transformers.PreTrainedModel.resize_token_embeddings",parameters:[{name:"new_num_tokens",val:": Optional = None"},{name:"pad_to_multiple_of",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.PreTrainedModel.resize_token_embeddings.new_num_tokens",description:`<strong>new_num_tokens</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The new number of tokens in the embedding matrix. Increasing the size will add newly initialized
vectors at the end. Reducing the size will remove vectors from the end. If not provided or <code>None</code>, just
returns a pointer to the input tokens <code>torch.nn.Embedding</code> module of the model without doing anything.`,name:"new_num_tokens"},{anchor:"transformers.PreTrainedModel.resize_token_embeddings.pad_to_multiple_of",description:`<strong>pad_to_multiple_of</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If set will pad the embedding matrix to a multiple of the provided value.If <code>new_num_tokens</code> is set to
<code>None</code> will just pad the embedding to a multiple of <code>pad_to_multiple_of</code>.</p>
<p>This is especially useful to enable the use of Tensor Cores on NVIDIA hardware with compute capability
<code>&gt;= 7.5</code> (Volta), or on TPUs which benefit from having sequence lengths be a multiple of 128. For more
details about this, or help on choosing the correct value for resizing, refer to this guide:
<a href="https://docs.nvidia.com/deeplearning/performance/dl-performance-matrix-multiplication/index.html#requirements-tc" rel="nofollow">https://docs.nvidia.com/deeplearning/performance/dl-performance-matrix-multiplication/index.html#requirements-tc</a>`,name:"pad_to_multiple_of"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1820",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>
`}}),Nt=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#L4212",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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

					</div>`,name:"max_shard_size"},{anchor:"transformers.PreTrainedModel.save_pretrained.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way (that uses <code>pickle</code>).`,name:"safe_serialization"},{anchor:"transformers.PreTrainedModel.save_pretrained.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If specified, weights are saved in the format pytorch_model.<variant>.bin.</variant>`,name:"variant"},{anchor:"transformers.PreTrainedModel.save_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.PreTrainedModel.save_pretrained.save_peft_format",description:`<strong>save_peft_format</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
For backward compatibility with PEFT library, in case adapter weights are attached to the model, all
keys of the state dict of adapters needs to be pre-pended with <code>base_model.model</code>. Advanced users can
disable this behaviours by setting <code>save_peft_format</code> to <code>False</code>.`,name:"save_peft_format"},{anchor:"transformers.PreTrainedModel.save_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional key word arguments passed along to the <a href="/docs/transformers/main/zh/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L2233"}}),Rt=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#L1635"}}),Xt=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#L1675"}}),Dt=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#L4184",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/transformers/main/zh/main_classes/model#transformers.PreTrainedModel"
>PreTrainedModel</a></p>
`}}),Qt=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#L4234"}}),At=new Tt({props:{title:"大模型加载",local:"大模型加载",headingTag:"h3"}}),Kt=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}}),oo=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}}),ro=new B({props:{code:"dDBwcC5oZl9kZXZpY2VfbWFwJTBBJTdCJ3NoYXJlZCclM0ElMjAwJTJDJTBBJTIwJ2RlY29kZXIuZW1iZWRfdG9rZW5zJyUzQSUyMDAlMkMlMEElMjAnZW5jb2RlciclM0ElMjAwJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMCclM0ElMjAwJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMSclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMiclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMyclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suNCclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suNSclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suNiclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suNyclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suOCclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suOSclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMTAnJTNBJTIwMSUyQyUwQSUyMCdkZWNvZGVyLmJsb2NrLjExJyUzQSUyMDElMkMlMEElMjAnZGVjb2Rlci5ibG9jay4xMiclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMTMnJTNBJTIwMSUyQyUwQSUyMCdkZWNvZGVyLmJsb2NrLjE0JyUzQSUyMDElMkMlMEElMjAnZGVjb2Rlci5ibG9jay4xNSclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMTYnJTNBJTIwMSUyQyUwQSUyMCdkZWNvZGVyLmJsb2NrLjE3JyUzQSUyMDElMkMlMEElMjAnZGVjb2Rlci5ibG9jay4xOCclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMTknJTNBJTIwMSUyQyUwQSUyMCdkZWNvZGVyLmJsb2NrLjIwJyUzQSUyMDElMkMlMEElMjAnZGVjb2Rlci5ibG9jay4yMSclM0ElMjAxJTJDJTBBJTIwJ2RlY29kZXIuYmxvY2suMjInJTNBJTIwJ2NwdSclMkMlMEElMjAnZGVjb2Rlci5ibG9jay4yMyclM0ElMjAnY3B1JyUyQyUwQSUyMCdkZWNvZGVyLmZpbmFsX2xheWVyX25vcm0nJTNBJTIwJ2NwdSclMkMlMEElMjAnZGVjb2Rlci5kcm9wb3V0JyUzQSUyMCdjcHUnJTJDJTBBJTIwJ2xtX2hlYWQnJTNBJTIwJ2NwdSclN0Q=",highlighted:`t0pp.hf_device_map
{<span class="hljs-string">&#x27;shared&#x27;</span>: <span class="hljs-number">0</span>,
 <span class="hljs-string">&#x27;decoder.embed_tokens&#x27;</span>: <span class="hljs-number">0</span>,
 <span class="hljs-string">&#x27;encoder&#x27;</span>: <span class="hljs-number">0</span>,
 <span class="hljs-string">&#x27;decoder.block.0&#x27;</span>: <span class="hljs-number">0</span>,
 <span class="hljs-string">&#x27;decoder.block.1&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.2&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.3&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.4&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.5&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.6&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.7&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.8&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.9&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.10&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.11&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.12&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.13&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.14&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.15&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.16&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.17&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.18&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.19&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.20&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.21&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;decoder.block.22&#x27;</span>: <span class="hljs-string">&#x27;cpu&#x27;</span>,
 <span class="hljs-string">&#x27;decoder.block.23&#x27;</span>: <span class="hljs-string">&#x27;cpu&#x27;</span>,
 <span class="hljs-string">&#x27;decoder.final_layer_norm&#x27;</span>: <span class="hljs-string">&#x27;cpu&#x27;</span>,
 <span class="hljs-string">&#x27;decoder.dropout&#x27;</span>: <span class="hljs-string">&#x27;cpu&#x27;</span>,
 <span class="hljs-string">&#x27;lm_head&#x27;</span>: <span class="hljs-string">&#x27;cpu&#x27;</span>}`,wrap:!1}}),so=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}}),lo=new Tt({props:{title:"模型实例化 dtype",local:"模型实例化-dtype",headingTag:"h3"}}),co=new B({props:{code:"bW9kZWwlMjAlM0QlMjBUNUZvckNvbmRpdGlvbmFsR2VuZXJhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIydDUlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYp",highlighted:'model = T5ForConditionalGeneration.from_pretrained(<span class="hljs-string">&quot;t5&quot;</span>, torch_dtype=torch.float16)',wrap:!1}}),ho=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}}),uo=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}}),_o=new Tt({props:{title:"ModuleUtilsMixin",local:"transformers.modeling_utils.ModuleUtilsMixin",headingTag:"h2"}}),bo=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#L881"}}),vo=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#L912"}}),yo=new T({props:{name:"estimate_tokens",anchor:"transformers.modeling_utils.ModuleUtilsMixin.estimate_tokens",parameters:[{name:"input_dict",val:": Dict"}],parametersDescription:[{anchor:"transformers.modeling_utils.ModuleUtilsMixin.estimate_tokens.inputs",description:"<strong>inputs</strong> (<code>dict</code>) &#x2014; The model inputs.",name:"inputs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1138",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>
`}}),Mo=new T({props:{name:"floating_point_ops",anchor:"transformers.modeling_utils.ModuleUtilsMixin.floating_point_ops",parameters:[{name:"input_dict",val:": Dict"},{name:"exclude_embeddings",val:": bool = True"}],parametersDescription:[{anchor:"transformers.modeling_utils.ModuleUtilsMixin.floating_point_ops.batch_size",description:`<strong>batch_size</strong> (<code>int</code>) &#x2014;
The batch size for the forward pass.`,name:"batch_size"},{anchor:"transformers.modeling_utils.ModuleUtilsMixin.floating_point_ops.sequence_length",description:`<strong>sequence_length</strong> (<code>int</code>) &#x2014;
The number of tokens in each line of the batch.`,name:"sequence_length"},{anchor:"transformers.modeling_utils.ModuleUtilsMixin.floating_point_ops.exclude_embeddings",description:`<strong>exclude_embeddings</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to count embedding and softmax operations.`,name:"exclude_embeddings"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1159",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>
`}}),To=new T({props:{name:"get_extended_attention_mask",anchor:"transformers.modeling_utils.ModuleUtilsMixin.get_extended_attention_mask",parameters:[{name:"attention_mask",val:": Tensor"},{name:"input_shape",val:": Tuple"},{name:"device",val:": device = None"},{name:"dtype",val:": torch.float32 = None"}],parametersDescription:[{anchor:"transformers.modeling_utils.ModuleUtilsMixin.get_extended_attention_mask.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</code>) &#x2014;
Mask with ones indicating tokens to attend to, zeros for tokens to ignore.`,name:"attention_mask"},{anchor:"transformers.modeling_utils.ModuleUtilsMixin.get_extended_attention_mask.input_shape",description:`<strong>input_shape</strong> (<code>Tuple[int]</code>) &#x2014;
The shape of the input to the model.`,name:"input_shape"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1000",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>
`}}),xo=new T({props:{name:"get_head_mask",anchor:"transformers.modeling_utils.ModuleUtilsMixin.get_head_mask",parameters:[{name:"head_mask",val:": Optional"},{name:"num_hidden_layers",val:": int"},{name:"is_attention_chunked",val:": bool = False"}],parametersDescription:[{anchor:"transformers.modeling_utils.ModuleUtilsMixin.get_head_mask.head_mask",description:`<strong>head_mask</strong> (<code>torch.Tensor</code> with shape <code>[num_heads]</code> or <code>[num_hidden_layers x num_heads]</code>, <em>optional</em>) &#x2014;
The mask indicating if we should keep the heads or not (1.0 for keep, 0.0 for discard).`,name:"head_mask"},{anchor:"transformers.modeling_utils.ModuleUtilsMixin.get_head_mask.num_hidden_layers",description:`<strong>num_hidden_layers</strong> (<code>int</code>) &#x2014;
The number of hidden layers in the model.`,name:"num_hidden_layers"},{anchor:"transformers.modeling_utils.ModuleUtilsMixin.get_head_mask.is_attention_chunked",description:`<strong>is_attention_chunked</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the attentions scores are computed by chunks or not.`,name:"is_attention_chunked"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L1052",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>
`}}),wo=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#L948",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>
`}}),$o=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#L1090",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>
`}}),ko=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#L924"}}),Co=new T({props:{name:"class transformers.TFPreTrainedModel",anchor:"transformers.TFPreTrainedModel",parameters:[{name:"config",val:""},{name:"*inputs",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1062"}}),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#L3085"}}),He=new D({props:{anchor:"transformers.TFPreTrainedModel.push_to_hub.example",$$slots:{default:[hh]},$$scope:{ctx:P}}}),Uo=new T({props:{name:"can_generate",anchor:"transformers.TFPreTrainedModel.can_generate",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1318",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#L1513"}}),Zo=new T({props:{name:"create_model_card",anchor:"transformers.TFPreTrainedModel.create_model_card",parameters:[{name:"output_dir",val:""},{name:"model_name",val:": str"},{name:"language",val:": Optional[str] = None"},{name:"license",val:": Optional[str] = None"},{name:"tags",val:": Optional[str] = None"},{name:"finetuned_from",val:": Optional[str] = None"},{name:"tasks",val:": Optional[str] = None"},{name:"dataset_tags",val:": Optional[Union[str, List[str]]] = None"},{name:"dataset",val:": Optional[Union[str, List[str]]] = None"},{name:"dataset_args",val:": Optional[Union[str, List[str]]] = None"}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.create_model_card.output_dir",description:`<strong>output_dir</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
The folder in which to create the model card.`,name:"output_dir"},{anchor:"transformers.TFPreTrainedModel.create_model_card.model_name",description:`<strong>model_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the model.`,name:"model_name"},{anchor:"transformers.TFPreTrainedModel.create_model_card.language",description:`<strong>language</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The language of the model (if applicable)`,name:"language"},{anchor:"transformers.TFPreTrainedModel.create_model_card.license",description:`<strong>license</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The license of the model. Will default to the license of the pretrained model used, if the original
model given to the <code>Trainer</code> comes from a repo on the Hub.`,name:"license"},{anchor:"transformers.TFPreTrainedModel.create_model_card.tags",description:`<strong>tags</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
Some tags to be included in the metadata of the model card.`,name:"tags"},{anchor:"transformers.TFPreTrainedModel.create_model_card.finetuned_from",description:`<strong>finetuned_from</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the model used to fine-tune this one (if applicable). Will default to the name of the repo
of the original model given to the <code>Trainer</code> (if it comes from the Hub).`,name:"finetuned_from"},{anchor:"transformers.TFPreTrainedModel.create_model_card.tasks",description:`<strong>tasks</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several task identifiers, to be included in the metadata of the model card.`,name:"tasks"},{anchor:"transformers.TFPreTrainedModel.create_model_card.dataset_tags",description:`<strong>dataset_tags</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several dataset tags, to be included in the metadata of the model card.`,name:"dataset_tags"},{anchor:"transformers.TFPreTrainedModel.create_model_card.dataset",description:`<strong>dataset</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several dataset identifiers, to be included in the metadata of the model card.`,name:"dataset"},{anchor:"transformers.TFPreTrainedModel.create_model_card.dataset_args",description:`<strong>dataset_args</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several dataset arguments, to be included in the metadata of the model card.`,name:"dataset_args"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1808"}}),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:"use_safetensors",val:": bool = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFPreTrainedModel.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> of a pretrained model hosted inside a model repo on huggingface.co.
Valid model ids can be located at the root-level, like <code>bert-base-uncased</code>, or namespaced under a
user or organization name, like <code>dbmdz/bert-base-german-cased</code>.</li>
<li>A path to a <em>directory</em> containing model weights saved using
<a href="/docs/transformers/main/zh/main_classes/model#transformers.TFPreTrainedModel.save_pretrained">save_pretrained()</a>, e.g., <code>./my_model_directory/</code>.</li>
<li>A path or url to a <em>PyTorch state_dict save file</em> (e.g, <code>./pt_model/pytorch_model.bin</code>). In this
case, <code>from_pt</code> should be set to <code>True</code> and a configuration object should be provided as <code>config</code>
argument. This loading path is slower than converting the PyTorch model in a TensorFlow model
using the provided conversion scripts and loading the TensorFlow model afterwards.</li>
<li><code>None</code> if you are both providing the configuration and state dictionary (resp. with keyword
arguments <code>config</code> and <code>state_dict</code>).</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.model_args",description:`<strong>model_args</strong> (sequence of positional arguments, <em>optional</em>) &#x2014;
All remaining positional arguments will be passed to the underlying model&#x2019;s <code>__init__</code> method.`,name:"model_args"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.config",description:`<strong>config</strong> (<code>Union[PretrainedConfig, str]</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>an instance of a class derived from <a href="/docs/transformers/main/zh/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>,</li>
<li>a string valid as input to <a href="/docs/transformers/main/zh/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/zh/main_classes/model#transformers.TFPreTrainedModel.save_pretrained">save_pretrained()</a> and is reloaded by supplying the
save directory.</li>
<li>The model is loaded by supplying a local directory as <code>pretrained_model_name_or_path</code> and a
configuration JSON file named <em>config.json</em> is found in the directory.</li>
</ul>`,name:"config"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.from_pt",description:`<strong>from_pt</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Load the model weights from a PyTorch state_dict save file (see docstring of
<code>pretrained_model_name_or_path</code> argument).`,name:"from_pt"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.ignore_mismatched_sizes",description:`<strong>ignore_mismatched_sizes</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to raise an error if some of the weights from the checkpoint do not have the same size
as the weights of the model (if for instance, you are instantiating a model with 10 labels from a
checkpoint with 3 labels).`,name:"ignore_mismatched_sizes"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Path to a directory in which a downloaded pretrained model configuration should be cached if the
standard cache should not be used.`,name:"cache_dir"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to delete incompletely received files. Will attempt to resume the download if such a
file exists.
proxies &#x2014;
(<code>Dict[str, str], </code>optional<code>): A dictionary of proxy servers to use by protocol or endpoint, e.g., </code>{&#x2018;http&#x2019;: &#x2018;foo.bar:3128&#x2019;, &#x2018;http://hostname&#x2019;: &#x2018;foo.bar:4012&#x2019;}<code>. The proxies are used on each request. output_loading_info(</code>bool<code>, *optional*, defaults to </code>False\`): Whether ot not to also return a
dictionary containing missing keys, unexpected keys and error messages.`,name:"resume_download"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (e.g., not try downloading the model).`,name:"local_files_only(bool,"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.TFPreTrainedModel.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.`,name:"revision"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L2516"}}),qe=new D({props:{anchor:"transformers.TFPreTrainedModel.from_pretrained.example",$$slots:{default:[fh]},$$scope:{ctx:P}}}),Io=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#L1948",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>
`}}),Wo=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#L1202",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>
`}}),zo=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#L1332",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>
`}}),Bo=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#L1981",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


<p><code>keras.layers.Layer</code></p>
`}}),Vo=new T({props:{name:"get_prefix_bias_name",anchor:"transformers.TFPreTrainedModel.get_prefix_bias_name",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L1938",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>
`}}),Ho=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#L1359",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/zh/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#L1408",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>
`}}),Yo=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#L2328"}}),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#L3194"}}),ot=new hi({props:{warning:!0,$$slots:{default:[uh]},$$scope:{ctx:P}}}),qo=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#L1990",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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

					</div>`,name:"max_shard_size"},{anchor:"transformers.TFPreTrainedModel.save_pretrained.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"transformers.TFPreTrainedModel.save_pretrained.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional TensorFlow way (that uses <code>h5</code>).`,name:"safe_serialization"},{anchor:"transformers.TFPreTrainedModel.save_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.TFPreTrainedModel.save_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional key word arguments passed along to the <a href="/docs/transformers/main/zh/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_tf_utils.py#L2340"}}),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"}]}}),Do=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#L1294"}}),Qo=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#L1965"}}),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#L1868"}}),So=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#L1908"}}),Oo=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#L1704"}}),Ko=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#L1596"}}),en=new Tt({props:{title:"TFModelUtilsMixin",local:"transformers.modeling_tf_utils.TFModelUtilsMixin",headingTag:"h2"}}),tn=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#L118"}}),on=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#L123",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>
`}}),rn=new T({props:{name:"class transformers.FlaxPreTrainedModel",anchor:"transformers.FlaxPreTrainedModel",parameters:[{name:"config",val:": PretrainedConfig"},{name:"module",val:": Module"},{name:"input_shape",val:": Tuple = (1, 1)"},{name:"seed",val:": int = 0"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"_do_init",val:": bool = True"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L166"}}),an=new T({props:{name:"push_to_hub",anchor:"transformers.FlaxPreTrainedModel.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": Optional = None"},{name:"commit_message",val:": Optional = None"},{name:"private",val:": Optional = None"},{name:"token",val:": Union = None"},{name:"max_shard_size",val:": Union = '5GB'"},{name:"create_pr",val:": bool = False"},{name:"safe_serialization",val:": bool = True"},{name:"revision",val:": str = None"},{name:"commit_description",val:": str = None"},{name:"tags",val:": Optional = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your model to. It should contain your organization name
when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload model&quot;</code>.`,name:"commit_message"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the repository created should be private.`,name:"private"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>). Will default to <code>True</code> if <code>repo_url</code>
is not specified.`,name:"token"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;5GB&quot;</code>) &#x2014;
Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard
will then be each of size lower than this size. If expressed as a string, needs to be digits followed
by a unit (like <code>&quot;5MB&quot;</code>). We default it to <code>&quot;5GB&quot;</code> so that users can easily load models on free-tier
Google Colab instances without any CPU OOM issues.`,name:"max_shard_size"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to convert the model weights in safetensors format for safer serialization.`,name:"safe_serialization"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Branch to push the uploaded files to.`,name:"revision"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created`,name:"commit_description"},{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.tags",description:`<strong>tags</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of tags to push on the Hub.`,name:"tags"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py#L769"}}),ct=new D({props:{anchor:"transformers.FlaxPreTrainedModel.push_to_hub.example",$$slots:{default:[gh]},$$scope:{ctx:P}}}),sn=new T({props:{name:"can_generate",anchor:"transformers.FlaxPreTrainedModel.can_generate",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L506"}}),ln=new T({props:{name:"from_pretrained",anchor:"transformers.FlaxPreTrainedModel.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": Union"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"*model_args",val:""},{name:"config",val:": Union = None"},{name:"cache_dir",val:": Union = None"},{name:"ignore_mismatched_sizes",val:": bool = False"},{name:"force_download",val:": bool = False"},{name:"local_files_only",val:": bool = False"},{name:"token",val:": Union = None"},{name:"revision",val:": str = 'main'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> of a pretrained model hosted inside a model repo on huggingface.co.
Valid model ids can be located at the root-level, like <code>bert-base-uncased</code>, or namespaced under a
user or organization name, like <code>dbmdz/bert-base-german-cased</code>.</li>
<li>A path to a <em>directory</em> containing model weights saved using
<a href="/docs/transformers/main/zh/main_classes/model#transformers.FlaxPreTrainedModel.save_pretrained">save_pretrained()</a>, e.g., <code>./my_model_directory/</code>.</li>
<li>A path or url to a <em>pt index checkpoint file</em> (e.g, <code>./tf_model/model.ckpt.index</code>). In this case,
<code>from_pt</code> should be set to <code>True</code>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.dtype",description:`<strong>dtype</strong> (<code>jax.numpy.dtype</code>, <em>optional</em>, defaults to <code>jax.numpy.float32</code>) &#x2014;
The data type of the computation. Can be one of <code>jax.numpy.float32</code>, <code>jax.numpy.float16</code> (on GPUs) and
<code>jax.numpy.bfloat16</code> (on TPUs).</p>
<p>This can be used to enable mixed-precision training or half-precision inference on GPUs or TPUs. If
specified all the computation will be performed with the given <code>dtype</code>.</p>
<p><strong>Note that this only specifies the dtype of the computation and does not influence the dtype of model
parameters.</strong></p>
<p>If you wish to change the dtype of the model parameters, see <a href="/docs/transformers/main/zh/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/main/zh/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.model_args",description:`<strong>model_args</strong> (sequence of positional arguments, <em>optional</em>) &#x2014;
All remaining positional arguments will be passed to the underlying model&#x2019;s <code>__init__</code> method.`,name:"model_args"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.config",description:`<strong>config</strong> (<code>Union[PretrainedConfig, str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>an instance of a class derived from <a href="/docs/transformers/main/zh/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>,</li>
<li>a string or path valid as input to <a href="/docs/transformers/main/zh/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/zh/main_classes/model#transformers.PreTrainedModel.save_pretrained">save_pretrained()</a> and is reloaded by supplying the
save directory.</li>
<li>The model is loaded by supplying a local directory as <code>pretrained_model_name_or_path</code> and a
configuration JSON file named <em>config.json</em> is found in the directory.</li>
</ul>`,name:"config"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory in which a downloaded pretrained model configuration should be cached if the
standard cache should not be used.`,name:"cache_dir"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.from_pt",description:`<strong>from_pt</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Load the model weights from a PyTorch checkpoint save file (see docstring of
<code>pretrained_model_name_or_path</code> argument).`,name:"from_pt"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.ignore_mismatched_sizes",description:`<strong>ignore_mismatched_sizes</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to raise an error if some of the weights from the checkpoint do not have the same size
as the weights of the model (if for instance, you are instantiating a model with 10 labels from a
checkpoint with 3 labels).`,name:"ignore_mismatched_sizes"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to delete incompletely received files. Will attempt to resume the download if such a
file exists.`,name:"resume_download"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, e.g., <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to only look at local files (i.e., do not try to download the model).`,name:"local_files_only(bool,"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.`,name:"revision"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L518"}}),ht=new D({props:{anchor:"transformers.FlaxPreTrainedModel.from_pretrained.example",$$slots:{default:[_h]},$$scope:{ctx:P}}}),dn=new T({props:{name:"load_flax_sharded_weights",anchor:"transformers.FlaxPreTrainedModel.load_flax_sharded_weights",parameters:[{name:"shard_files",val:""}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.load_flax_sharded_weights.shard_files",description:`<strong>shard_files</strong> (<code>List[str]</code> &#x2014;
The list of shard files to load.`,name:"shard_files"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L459",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>Dict</code></p>
`}}),mn=new T({props:{name:"register_for_auto_class",anchor:"transformers.FlaxPreTrainedModel.register_for_auto_class",parameters:[{name:"auto_class",val:" = 'FlaxAutoModel'"}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.register_for_auto_class.auto_class",description:`<strong>auto_class</strong> (<code>str</code> or <code>type</code>, <em>optional</em>, defaults to <code>&quot;FlaxAutoModel&quot;</code>) &#x2014;
The auto class to register this new model with.`,name:"auto_class"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L1227"}}),ft=new hi({props:{warning:!0,$$slots:{default:[bh]},$$scope:{ctx:P}}}),cn=new T({props:{name:"save_pretrained",anchor:"transformers.FlaxPreTrainedModel.save_pretrained",parameters:[{name:"save_directory",val:": Union"},{name:"params",val:" = None"},{name:"push_to_hub",val:" = False"},{name:"max_shard_size",val:" = '10GB'"},{name:"token",val:": Union = None"},{name:"safe_serialization",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to which to save. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"transformers.FlaxPreTrainedModel.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push your model to the Hugging Face model hub after saving it. You can specify the
repository you want to push to with <code>repo_id</code> (will default to the name of <code>save_directory</code> in your
namespace).`,name:"push_to_hub"},{anchor:"transformers.FlaxPreTrainedModel.save_pretrained.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;10GB&quot;</code>) &#x2014;
The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size
lower than this size. If expressed as a string, needs to be digits followed by a unit (like <code>&quot;5MB&quot;</code>).</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p>If a single weight of the model is bigger than <code>max_shard_size</code>, it will be in its own checkpoint shard
which will be bigger than <code>max_shard_size</code>.</p>

					</div>`,name:"max_shard_size"},{anchor:"transformers.FlaxPreTrainedModel.save_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.FlaxPreTrainedModel.save_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional key word arguments passed along to the <a href="/docs/transformers/main/zh/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"},{anchor:"transformers.FlaxPreTrainedModel.save_pretrained.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or through msgpack.`,name:"safe_serialization"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L1089"}}),pn=new T({props:{name:"to_bf16",anchor:"transformers.FlaxPreTrainedModel.to_bf16",parameters:[{name:"params",val:": Union"},{name:"mask",val:": Any = None"}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.to_bf16.params",description:`<strong>params</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> of model parameters.`,name:"params"},{anchor:"transformers.FlaxPreTrainedModel.to_bf16.mask",description:`<strong>mask</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> with same structure as the <code>params</code> tree. The leaves should be booleans, <code>True</code> for params
you want to cast, and should be <code>False</code> for those you want to skip.`,name:"mask"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L329"}}),gt=new D({props:{anchor:"transformers.FlaxPreTrainedModel.to_bf16.example",$$slots:{default:[vh]},$$scope:{ctx:P}}}),hn=new T({props:{name:"to_fp16",anchor:"transformers.FlaxPreTrainedModel.to_fp16",parameters:[{name:"params",val:": Union"},{name:"mask",val:": Any = None"}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.to_fp16.params",description:`<strong>params</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> of model parameters.`,name:"params"},{anchor:"transformers.FlaxPreTrainedModel.to_fp16.mask",description:`<strong>mask</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> with same structure as the <code>params</code> tree. The leaves should be booleans, <code>True</code> for params
you want to cast, and should be <code>False</code> for those you want to skip`,name:"mask"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L395"}}),_t=new D({props:{anchor:"transformers.FlaxPreTrainedModel.to_fp16.example",$$slots:{default:[yh]},$$scope:{ctx:P}}}),fn=new T({props:{name:"to_fp32",anchor:"transformers.FlaxPreTrainedModel.to_fp32",parameters:[{name:"params",val:": Union"},{name:"mask",val:": Any = None"}],parametersDescription:[{anchor:"transformers.FlaxPreTrainedModel.to_fp32.params",description:`<strong>params</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> of model parameters.`,name:"params"},{anchor:"transformers.FlaxPreTrainedModel.to_fp32.mask",description:`<strong>mask</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> with same structure as the <code>params</code> tree. The leaves should be booleans, <code>True</code> for params
you want to cast, and should be <code>False</code> for those you want to skip`,name:"mask"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_utils.py#L368"}}),bt=new D({props:{anchor:"transformers.FlaxPreTrainedModel.to_fp32.example",$$slots:{default:[Mh]},$$scope:{ctx:P}}}),un=new Tt({props:{title:"推送到 Hub",local:"transformers.utils.PushToHubMixin",headingTag:"h2"}}),gn=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#L653"}}),_n=new T({props:{name:"push_to_hub",anchor:"transformers.utils.PushToHubMixin.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": Optional = None"},{name:"commit_message",val:": Optional = None"},{name:"private",val:": Optional = None"},{name:"token",val:": Union = None"},{name:"max_shard_size",val:": Union = '5GB'"},{name:"create_pr",val:": bool = False"},{name:"safe_serialization",val:": bool = True"},{name:"revision",val:": str = None"},{name:"commit_description",val:": str = None"},{name:"tags",val:": Optional = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.utils.PushToHubMixin.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your {object} to. It should contain your organization name
when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload {object}&quot;</code>.`,name:"commit_message"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the repository created should be private.`,name:"private"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>). Will default to <code>True</code> if <code>repo_url</code>
is not specified.`,name:"token"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;5GB&quot;</code>) &#x2014;
Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard
will then be each of size lower than this size. If expressed as a string, needs to be digits followed
by a unit (like <code>&quot;5MB&quot;</code>). We default it to <code>&quot;5GB&quot;</code> so that users can easily load models on free-tier
Google Colab instances without any CPU OOM issues.`,name:"max_shard_size"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to convert the model weights in safetensors format for safer serialization.`,name:"safe_serialization"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Branch to push the uploaded files to.`,name:"revision"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created`,name:"commit_description"},{anchor:"transformers.utils.PushToHubMixin.push_to_hub.tags",description:`<strong>tags</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of tags to push on the Hub.`,name:"tags"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py#L769"}}),vt=new D({props:{anchor:"transformers.utils.PushToHubMixin.push_to_hub.example",$$slots:{default:[Th]},$$scope:{ctx:P}}}),bn=new Tt({props:{title:"分片检查点",local:"transformers.modeling_utils.load_sharded_checkpoint",headingTag:"h2"}}),vn=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#L414",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"),J=o(),v=r("p"),_=o(),c(w.$$.fragment),i=o(),C=r("p"),C.innerHTML=Vm,Xa=o(),xt=r("p"),xt.innerHTML=Hm,Da=o(),wt=r("ul"),wt.innerHTML=Em,Qa=o(),$t=r("p"),$t.innerHTML=Ym,Aa=o(),c(kt.$$.fragment),Sa=o(),k=r("div"),c(jt.$$.fragment),fi=o(),Jn=r("p"),Jn.textContent=Nm,ui=o(),Un=r("p"),Un.innerHTML=qm,gi=o(),Pn=r("ul"),Pn.innerHTML=Rm,_i=o(),Zn=r("p"),Zn.textContent=Xm,bi=o(),Fn=r("ul"),Fn.innerHTML=Dm,vi=o(),Q=r("div"),c(Ct.$$.fragment),yi=o(),In=r("p"),In.textContent=Qm,Mi=o(),c(ge.$$.fragment),Ti=o(),A=r("div"),c(Jt.$$.fragment),xi=o(),Wn=r("p"),Wn.textContent=Am,wi=o(),c(_e.$$.fragment),$i=o(),be=r("div"),c(Ut.$$.fragment),ki=o(),zn=r("p"),zn.innerHTML=Sm,ji=o(),ve=r("div"),c(Pt.$$.fragment),Ci=o(),Bn=r("p"),Bn.innerHTML=Om,Ji=o(),ye=r("div"),c(Zt.$$.fragment),Ui=o(),Gn=r("p"),Gn.textContent=Km,Pi=o(),Z=r("div"),c(Ft.$$.fragment),Zi=o(),Ln=r("p"),Ln.textContent=ec,Fi=o(),Vn=r("p"),Vn.innerHTML=tc,Ii=o(),Hn=r("p"),Hn.innerHTML=oc,Wi=o(),En=r("p"),En.innerHTML=nc,zi=o(),c(Me.$$.fragment),Bi=o(),c(Te.$$.fragment),Gi=o(),Yn=r("ul"),Yn.innerHTML=rc,Li=o(),Nn=r("p"),Nn.textContent=ac,Vi=o(),qn=r("p"),qn.textContent=sc,Hi=o(),Rn=r("ol"),Rn.innerHTML=ic,Ei=o(),Xn=r("p"),Xn.textContent=lc,Yi=o(),xe=r("div"),c(It.$$.fragment),Ni=o(),Dn=r("p"),Dn.textContent=dc,qi=o(),we=r("div"),c(Wt.$$.fragment),Ri=o(),Qn=r("p"),Qn.innerHTML=mc,Xi=o(),$e=r("div"),c(zt.$$.fragment),Di=o(),An=r("p"),An.textContent=cc,Qi=o(),S=r("div"),c(Bt.$$.fragment),Ai=o(),Sn=r("p"),Sn.textContent=pc,Si=o(),On=r("p"),On.textContent=hc,Oi=o(),H=r("div"),c(Gt.$$.fragment),Ki=o(),Kn=r("p"),Kn.textContent=fc,el=o(),er=r("p"),er.textContent=uc,tl=o(),tr=r("p"),tr.innerHTML=gc,ol=o(),ke=r("div"),c(Lt.$$.fragment),nl=o(),or=r("p"),or.innerHTML=_c,rl=o(),je=r("div"),c(Vt.$$.fragment),al=o(),nr=r("p"),nr.textContent=bc,sl=o(),Ce=r("div"),c(Ht.$$.fragment),il=o(),rr=r("p"),rr.textContent=vc,ll=o(),O=r("div"),c(Et.$$.fragment),dl=o(),ar=r("p"),ar.textContent=yc,ml=o(),c(Je.$$.fragment),cl=o(),K=r("div"),c(Yt.$$.fragment),pl=o(),sr=r("p"),sr.innerHTML=Mc,hl=o(),ir=r("p"),ir.innerHTML=Tc,fl=o(),Ue=r("div"),c(Nt.$$.fragment),ul=o(),lr=r("p"),lr.innerHTML=xc,gl=o(),Pe=r("div"),c(qt.$$.fragment),_l=o(),dr=r("p"),dr.innerHTML=wc,bl=o(),Ze=r("div"),c(Rt.$$.fragment),vl=o(),mr=r("p"),mr.textContent=$c,yl=o(),ee=r("div"),c(Xt.$$.fragment),Ml=o(),cr=r("p"),cr.textContent=kc,Tl=o(),pr=r("p"),pr.innerHTML=jc,xl=o(),te=r("div"),c(Dt.$$.fragment),wl=o(),hr=r("p"),hr.innerHTML=Cc,$l=o(),fr=r("p"),fr.innerHTML=Jc,kl=o(),Fe=r("div"),c(Qt.$$.fragment),jl=o(),ur=r("p"),ur.textContent=Uc,Oa=o(),gr=r("a"),Ka=o(),c(At.$$.fragment),es=o(),St=r("p"),St.innerHTML=Pc,ts=o(),Ot=r("p"),Ot.innerHTML=Zc,os=o(),c(Kt.$$.fragment),ns=o(),eo=r("p"),eo.innerHTML=Fc,rs=o(),to=r("p"),to.innerHTML=Ic,as=o(),c(oo.$$.fragment),ss=o(),no=r("p"),no.innerHTML=Wc,is=o(),c(ro.$$.fragment),ls=o(),ao=r("p"),ao.textContent=zc,ds=o(),c(so.$$.fragment),ms=o(),io=r("p"),io.innerHTML=Bc,cs=o(),c(lo.$$.fragment),ps=o(),mo=r("p"),mo.innerHTML=Gc,hs=o(),c(co.$$.fragment),fs=o(),po=r("p"),po.innerHTML=Lc,us=o(),c(ho.$$.fragment),gs=o(),fo=r("p"),fo.innerHTML=Vc,_s=o(),c(uo.$$.fragment),bs=o(),go=r("p"),go.textContent=Hc,vs=o(),c(_o.$$.fragment),ys=o(),W=r("div"),c(bo.$$.fragment),Cl=o(),_r=r("p"),_r.innerHTML=Ec,Jl=o(),oe=r("div"),c(vo.$$.fragment),Ul=o(),br=r("p"),br.textContent=Yc,Pl=o(),vr=r("p"),vr.innerHTML=Nc,Zl=o(),Ie=r("div"),c(yo.$$.fragment),Fl=o(),yr=r("p"),yr.textContent=qc,Il=o(),We=r("div"),c(Mo.$$.fragment),Wl=o(),Mr=r("p"),Mr.innerHTML=Rc,zl=o(),ze=r("div"),c(To.$$.fragment),Bl=o(),Tr=r("p"),Tr.textContent=Xc,Gl=o(),Be=r("div"),c(xo.$$.fragment),Ll=o(),xr=r("p"),xr.textContent=Dc,Vl=o(),Ge=r("div"),c(wo.$$.fragment),Hl=o(),wr=r("p"),wr.textContent=Qc,El=o(),Le=r("div"),c($o.$$.fragment),Yl=o(),$r=r("p"),$r.textContent=Ac,Nl=o(),Ve=r("div"),c(ko.$$.fragment),ql=o(),kr=r("p"),kr.innerHTML=Sc,Ms=o(),jo=r("p"),jo.textContent=Oc,Ts=o(),x=r("div"),c(Co.$$.fragment),Rl=o(),jr=r("p"),jr.textContent=Kc,Xl=o(),Cr=r("p"),Cr.innerHTML=ep,Dl=o(),Jr=r("ul"),Jr.innerHTML=tp,Ql=o(),Ur=r("p"),Ur.textContent=op,Al=o(),Pr=r("ul"),Pr.innerHTML=np,Sl=o(),ne=r("div"),c(Jo.$$.fragment),Ol=o(),Zr=r("p"),Zr.innerHTML=rp,Kl=o(),c(He.$$.fragment),ed=o(),Ee=r("div"),c(Uo.$$.fragment),td=o(),Fr=r("p"),Fr.innerHTML=ap,od=o(),Ye=r("div"),c(Po.$$.fragment),nd=o(),Ir=r("p"),Ir.textContent=sp,rd=o(),Ne=r("div"),c(Zo.$$.fragment),ad=o(),Wr=r("p"),Wr.innerHTML=ip,sd=o(),L=r("div"),c(Fo.$$.fragment),id=o(),zr=r("p"),zr.textContent=lp,ld=o(),Br=r("p"),Br.innerHTML=dp,dd=o(),Gr=r("p"),Gr.innerHTML=mp,md=o(),c(qe.$$.fragment),cd=o(),Re=r("div"),c(Io.$$.fragment),pd=o(),Lr=r("p"),Lr.textContent=cp,hd=o(),Xe=r("div"),c(Wo.$$.fragment),fd=o(),Vr=r("p"),Vr.textContent=pp,ud=o(),De=r("div"),c(zo.$$.fragment),gd=o(),Hr=r("p"),Hr.textContent=hp,_d=o(),Qe=r("div"),c(Bo.$$.fragment),bd=o(),Er=r("p"),Er.textContent=fp,vd=o(),Ae=r("div"),c(Go.$$.fragment),yd=o(),Yr=r("p"),Yr.textContent=up,Md=o(),Se=r("div"),c(Lo.$$.fragment),Td=o(),Nr=r("p"),Nr.textContent=gp,xd=o(),Oe=r("div"),c(Vo.$$.fragment),wd=o(),qr=r("p"),qr.textContent=_p,$d=o(),Ke=r("div"),c(Ho.$$.fragment),kd=o(),Rr=r("p"),Rr.textContent=bp,jd=o(),et=r("div"),c(Eo.$$.fragment),Cd=o(),Xr=r("p"),Xr.innerHTML=vp,Jd=o(),tt=r("div"),c(Yo.$$.fragment),Ud=o(),Dr=r("p"),Dr.textContent=yp,Pd=o(),re=r("div"),c(No.$$.fragment),Zd=o(),Qr=r("p"),Qr.textContent=Mp,Fd=o(),c(ot.$$.fragment),Id=o(),ae=r("div"),c(qo.$$.fragment),Wd=o(),Ar=r("p"),Ar.innerHTML=Tp,zd=o(),Sr=r("p"),Sr.innerHTML=xp,Bd=o(),nt=r("div"),c(Ro.$$.fragment),Gd=o(),Or=r("p"),Or.innerHTML=wp,Ld=o(),Kr=r("div"),c(Xo.$$.fragment),Vd=o(),rt=r("div"),c(Do.$$.fragment),Hd=o(),ea=r("p"),ea.textContent=$p,Ed=o(),at=r("div"),c(Qo.$$.fragment),Yd=o(),ta=r("p"),ta.textContent=kp,Nd=o(),st=r("div"),c(Ao.$$.fragment),qd=o(),oa=r("p"),oa.textContent=jp,Rd=o(),it=r("div"),c(So.$$.fragment),Xd=o(),na=r("p"),na.textContent=Cp,Dd=o(),lt=r("div"),c(Oo.$$.fragment),Qd=o(),ra=r("p"),ra.innerHTML=Jp,Ad=o(),dt=r("div"),c(Ko.$$.fragment),Sd=o(),aa=r("p"),aa.innerHTML=Up,xs=o(),c(en.$$.fragment),ws=o(),N=r("div"),c(tn.$$.fragment),Od=o(),sa=r("p"),sa.innerHTML=Pp,Kd=o(),mt=r("div"),c(on.$$.fragment),em=o(),ia=r("p"),ia.textContent=Zp,$s=o(),nn=r("p"),nn.textContent=Fp,ks=o(),U=r("div"),c(rn.$$.fragment),tm=o(),la=r("p"),la.textContent=Ip,om=o(),da=r("p"),da.innerHTML=Wp,nm=o(),ma=r("p"),ma.textContent=zp,rm=o(),ca=r("ul"),ca.innerHTML=Bp,am=o(),se=r("div"),c(an.$$.fragment),sm=o(),pa=r("p"),pa.textContent=Gp,im=o(),c(ct.$$.fragment),lm=o(),pt=r("div"),c(sn.$$.fragment),dm=o(),ha=r("p"),ha.innerHTML=Lp,mm=o(),V=r("div"),c(ln.$$.fragment),cm=o(),fa=r("p"),fa.textContent=Vp,pm=o(),ua=r("p"),ua.innerHTML=Hp,hm=o(),ga=r("p"),ga.innerHTML=Ep,fm=o(),c(ht.$$.fragment),um=o(),ie=r("div"),c(dn.$$.fragment),gm=o(),_a=r("p"),_a.innerHTML=Yp,_m=o(),ba=r("p"),ba.textContent=Np,bm=o(),le=r("div"),c(mn.$$.fragment),vm=o(),va=r("p"),va.textContent=qp,ym=o(),c(ft.$$.fragment),Mm=o(),ut=r("div"),c(cn.$$.fragment),Tm=o(),ya=r("p"),ya.innerHTML=Rp,xm=o(),E=r("div"),c(pn.$$.fragment),wm=o(),Ma=r("p"),Ma.innerHTML=Xp,$m=o(),Ta=r("p"),Ta.textContent=Dp,km=o(),c(gt.$$.fragment),jm=o(),Y=r("div"),c(hn.$$.fragment),Cm=o(),xa=r("p"),xa.innerHTML=Qp,Jm=o(),wa=r("p"),wa.textContent=Ap,Um=o(),c(_t.$$.fragment),Pm=o(),de=r("div"),c(fn.$$.fragment),Zm=o(),$a=r("p"),$a.innerHTML=Sp,Fm=o(),c(bt.$$.fragment),js=o(),c(un.$$.fragment),Cs=o(),q=r("div"),c(gn.$$.fragment),Im=o(),ka=r("p"),ka.textContent=Op,Wm=o(),me=r("div"),c(_n.$$.fragment),zm=o(),ja=r("p"),ja.textContent=Kp,Bm=o(),c(vt.$$.fragment),Js=o(),c(bn.$$.fragment),Us=o(),R=r("div"),c(vn.$$.fragment),Gm=o(),Ca=r("p"),Ca.innerHTML=eh,Lm=o(),Ja=r("p"),Ja.textContent=th,Ps=o(),Ra=r("p"),this.h()},l(e){const m=ih("svelte-u9bgzb",document.head);d=a(m,"META",{name:!0,content:!0}),m.forEach(s),J=n(e),v=a(e,"P",{}),y(v).forEach(s),_=n(e),p(w.$$.fragment,e),i=n(e),C=a(e,"P",{"data-svelte-h":!0}),l(C)!=="svelte-1coius4"&&(C.innerHTML=Vm),Xa=n(e),xt=a(e,"P",{"data-svelte-h":!0}),l(xt)!=="svelte-13f6y70"&&(xt.innerHTML=Hm),Da=n(e),wt=a(e,"UL",{"data-svelte-h":!0}),l(wt)!=="svelte-koiaxy"&&(wt.innerHTML=Em),Qa=n(e),$t=a(e,"P",{"data-svelte-h":!0}),l($t)!=="svelte-1qwz3g3"&&($t.innerHTML=Ym),Aa=n(e),p(kt.$$.fragment,e),Sa=n(e),k=a(e,"DIV",{class:!0});var j=y(k);p(jt.$$.fragment,j),fi=n(j),Jn=a(j,"P",{"data-svelte-h":!0}),l(Jn)!=="svelte-12nk4t7"&&(Jn.textContent=Nm),ui=n(j),Un=a(j,"P",{"data-svelte-h":!0}),l(Un)!=="svelte-hvvqnh"&&(Un.innerHTML=qm),gi=n(j),Pn=a(j,"UL",{"data-svelte-h":!0}),l(Pn)!=="svelte-6o6r8w"&&(Pn.innerHTML=Rm),_i=n(j),Zn=a(j,"P",{"data-svelte-h":!0}),l(Zn)!=="svelte-1qxxkvo"&&(Zn.textContent=Xm),bi=n(j),Fn=a(j,"UL",{"data-svelte-h":!0}),l(Fn)!=="svelte-136044h"&&(Fn.innerHTML=Dm),vi=n(j),Q=a(j,"DIV",{class:!0});var he=y(Q);p(Ct.$$.fragment,he),yi=n(he),In=a(he,"P",{"data-svelte-h":!0}),l(In)!=="svelte-1j9019y"&&(In.textContent=Qm),Mi=n(he),p(ge.$$.fragment,he),he.forEach(s),Ti=n(j),A=a(j,"DIV",{class:!0});var fe=y(A);p(Jt.$$.fragment,fe),xi=n(fe),Wn=a(fe,"P",{"data-svelte-h":!0}),l(Wn)!=="svelte-1mcxpi"&&(Wn.textContent=Am),wi=n(fe),p(_e.$$.fragment,fe),fe.forEach(s),$i=n(j),be=a(j,"DIV",{class:!0});var yn=y(be);p(Ut.$$.fragment,yn),ki=n(yn),zn=a(yn,"P",{"data-svelte-h":!0}),l(zn)!=="svelte-1r2xt0l"&&(zn.innerHTML=Sm),yn.forEach(s),ji=n(j),ve=a(j,"DIV",{class:!0});var Mn=y(ve);p(Pt.$$.fragment,Mn),Ci=n(Mn),Bn=a(Mn,"P",{"data-svelte-h":!0}),l(Bn)!=="svelte-1arq2q9"&&(Bn.innerHTML=Om),Mn.forEach(s),Ji=n(j),ye=a(j,"DIV",{class:!0});var Tn=y(ye);p(Zt.$$.fragment,Tn),Ui=n(Tn),Gn=a(Tn,"P",{"data-svelte-h":!0}),l(Gn)!=="svelte-gf3f10"&&(Gn.textContent=Km),Tn.forEach(s),Pi=n(j),Z=a(j,"DIV",{class:!0});var I=y(Z);p(Ft.$$.fragment,I),Zi=n(I),Ln=a(I,"P",{"data-svelte-h":!0}),l(Ln)!=="svelte-1m220hc"&&(Ln.textContent=ec),Fi=n(I),Vn=a(I,"P",{"data-svelte-h":!0}),l(Vn)!=="svelte-1vvzid2"&&(Vn.innerHTML=tc),Ii=n(I),Hn=a(I,"P",{"data-svelte-h":!0}),l(Hn)!=="svelte-floidm"&&(Hn.innerHTML=oc),Wi=n(I),En=a(I,"P",{"data-svelte-h":!0}),l(En)!=="svelte-5vnnmn"&&(En.innerHTML=nc),zi=n(I),p(Me.$$.fragment,I),Bi=n(I),p(Te.$$.fragment,I),Gi=n(I),Yn=a(I,"UL",{"data-svelte-h":!0}),l(Yn)!=="svelte-14hq6us"&&(Yn.innerHTML=rc),Li=n(I),Nn=a(I,"P",{"data-svelte-h":!0}),l(Nn)!=="svelte-1ndujqx"&&(Nn.textContent=ac),Vi=n(I),qn=a(I,"P",{"data-svelte-h":!0}),l(qn)!=="svelte-h5finb"&&(qn.textContent=sc),Hi=n(I),Rn=a(I,"OL",{"data-svelte-h":!0}),l(Rn)!=="svelte-17iv4ty"&&(Rn.innerHTML=ic),Ei=n(I),Xn=a(I,"P",{"data-svelte-h":!0}),l(Xn)!=="svelte-1kh2krb"&&(Xn.textContent=lc),I.forEach(s),Yi=n(j),xe=a(j,"DIV",{class:!0});var xn=y(xe);p(It.$$.fragment,xn),Ni=n(xn),Dn=a(xn,"P",{"data-svelte-h":!0}),l(Dn)!=="svelte-1oe3d1l"&&(Dn.textContent=dc),xn.forEach(s),qi=n(j),we=a(j,"DIV",{class:!0});var wn=y(we);p(Wt.$$.fragment,wn),Ri=n(wn),Qn=a(wn,"P",{"data-svelte-h":!0}),l(Qn)!=="svelte-1o6lvix"&&(Qn.innerHTML=mc),wn.forEach(s),Xi=n(j),$e=a(j,"DIV",{class:!0});var $n=y($e);p(zt.$$.fragment,$n),Di=n($n),An=a($n,"P",{"data-svelte-h":!0}),l(An)!=="svelte-1en7lnm"&&(An.textContent=cc),$n.forEach(s),Qi=n(j),S=a(j,"DIV",{class:!0});var ue=y(S);p(Bt.$$.fragment,ue),Ai=n(ue),Sn=a(ue,"P",{"data-svelte-h":!0}),l(Sn)!=="svelte-x1yzxn"&&(Sn.textContent=pc),Si=n(ue),On=a(ue,"P",{"data-svelte-h":!0}),l(On)!=="svelte-1c0vp3s"&&(On.textContent=hc),ue.forEach(s),Oi=n(j),H=a(j,"DIV",{class:!0});var X=y(H);p(Gt.$$.fragment,X),Ki=n(X),Kn=a(X,"P",{"data-svelte-h":!0}),l(Kn)!=="svelte-vu1mp6"&&(Kn.textContent=fc),el=n(X),er=a(X,"P",{"data-svelte-h":!0}),l(er)!=="svelte-1c0vp3s"&&(er.textContent=uc),tl=n(X),tr=a(X,"P",{"data-svelte-h":!0}),l(tr)!=="svelte-1entg0x"&&(tr.innerHTML=gc),X.forEach(s),ol=n(j),ke=a(j,"DIV",{class:!0});var kn=y(ke);p(Lt.$$.fragment,kn),nl=n(kn),or=a(kn,"P",{"data-svelte-h":!0}),l(or)!=="svelte-1gceydr"&&(or.innerHTML=_c),kn.forEach(s),rl=n(j),je=a(j,"DIV",{class:!0});var jn=y(je);p(Vt.$$.fragment,jn),al=n(jn),nr=a(jn,"P",{"data-svelte-h":!0}),l(nr)!=="svelte-kxy0hj"&&(nr.textContent=bc),jn.forEach(s),sl=n(j),Ce=a(j,"DIV",{class:!0});var Cn=y(Ce);p(Ht.$$.fragment,Cn),il=n(Cn),rr=a(Cn,"P",{"data-svelte-h":!0}),l(rr)!=="svelte-qvrpxu"&&(rr.textContent=vc),Cn.forEach(s),ll=n(j),O=a(j,"DIV",{class:!0});var Ua=y(O);p(Et.$$.fragment,Ua),dl=n(Ua),ar=a(Ua,"P",{"data-svelte-h":!0}),l(ar)!=="svelte-1ie4sav"&&(ar.textContent=yc),ml=n(Ua),p(Je.$$.fragment,Ua),Ua.forEach(s),cl=n(j),K=a(j,"DIV",{class:!0});var Pa=y(K);p(Yt.$$.fragment,Pa),pl=n(Pa),sr=a(Pa,"P",{"data-svelte-h":!0}),l(sr)!=="svelte-sgsur1"&&(sr.innerHTML=Mc),hl=n(Pa),ir=a(Pa,"P",{"data-svelte-h":!0}),l(ir)!=="svelte-1t4xas4"&&(ir.innerHTML=Tc),Pa.forEach(s),fl=n(j),Ue=a(j,"DIV",{class:!0});var Fs=y(Ue);p(Nt.$$.fragment,Fs),ul=n(Fs),lr=a(Fs,"P",{"data-svelte-h":!0}),l(lr)!=="svelte-82zzvf"&&(lr.innerHTML=xc),Fs.forEach(s),gl=n(j),Pe=a(j,"DIV",{class:!0});var Is=y(Pe);p(qt.$$.fragment,Is),_l=n(Is),dr=a(Is,"P",{"data-svelte-h":!0}),l(dr)!=="svelte-xt7asw"&&(dr.innerHTML=wc),Is.forEach(s),bl=n(j),Ze=a(j,"DIV",{class:!0});var Ws=y(Ze);p(Rt.$$.fragment,Ws),vl=n(Ws),mr=a(Ws,"P",{"data-svelte-h":!0}),l(mr)!=="svelte-107jmv5"&&(mr.textContent=$c),Ws.forEach(s),yl=n(j),ee=a(j,"DIV",{class:!0});var Za=y(ee);p(Xt.$$.fragment,Za),Ml=n(Za),cr=a(Za,"P",{"data-svelte-h":!0}),l(cr)!=="svelte-5nt4be"&&(cr.textContent=kc),Tl=n(Za),pr=a(Za,"P",{"data-svelte-h":!0}),l(pr)!=="svelte-1ti0hxu"&&(pr.innerHTML=jc),Za.forEach(s),xl=n(j),te=a(j,"DIV",{class:!0});var Fa=y(te);p(Dt.$$.fragment,Fa),wl=n(Fa),hr=a(Fa,"P",{"data-svelte-h":!0}),l(hr)!=="svelte-1sq1344"&&(hr.innerHTML=Cc),$l=n(Fa),fr=a(Fa,"P",{"data-svelte-h":!0}),l(fr)!=="svelte-1p16ejc"&&(fr.innerHTML=Jc),Fa.forEach(s),kl=n(j),Fe=a(j,"DIV",{class:!0});var zs=y(Fe);p(Qt.$$.fragment,zs),jl=n(zs),ur=a(zs,"P",{"data-svelte-h":!0}),l(ur)!=="svelte-nkp8sx"&&(ur.textContent=Uc),zs.forEach(s),j.forEach(s),Oa=n(e),gr=a(e,"A",{id:!0}),y(gr).forEach(s),Ka=n(e),p(At.$$.fragment,e),es=n(e),St=a(e,"P",{"data-svelte-h":!0}),l(St)!=="svelte-nfcprv"&&(St.innerHTML=Pc),ts=n(e),Ot=a(e,"P",{"data-svelte-h":!0}),l(Ot)!=="svelte-qrb1dj"&&(Ot.innerHTML=Zc),os=n(e),p(Kt.$$.fragment,e),ns=n(e),eo=a(e,"P",{"data-svelte-h":!0}),l(eo)!=="svelte-xmvuux"&&(eo.innerHTML=Fc),rs=n(e),to=a(e,"P",{"data-svelte-h":!0}),l(to)!=="svelte-7m1yxv"&&(to.innerHTML=Ic),as=n(e),p(oo.$$.fragment,e),ss=n(e),no=a(e,"P",{"data-svelte-h":!0}),l(no)!=="svelte-ojcu9d"&&(no.innerHTML=Wc),is=n(e),p(ro.$$.fragment,e),ls=n(e),ao=a(e,"P",{"data-svelte-h":!0}),l(ao)!=="svelte-1mbamxm"&&(ao.textContent=zc),ds=n(e),p(so.$$.fragment,e),ms=n(e),io=a(e,"P",{"data-svelte-h":!0}),l(io)!=="svelte-lqp8cl"&&(io.innerHTML=Bc),cs=n(e),p(lo.$$.fragment,e),ps=n(e),mo=a(e,"P",{"data-svelte-h":!0}),l(mo)!=="svelte-1yg4npf"&&(mo.innerHTML=Gc),hs=n(e),p(co.$$.fragment,e),fs=n(e),po=a(e,"P",{"data-svelte-h":!0}),l(po)!=="svelte-1sbnz4p"&&(po.innerHTML=Lc),us=n(e),p(ho.$$.fragment,e),gs=n(e),fo=a(e,"P",{"data-svelte-h":!0}),l(fo)!=="svelte-1vubc7v"&&(fo.innerHTML=Vc),_s=n(e),p(uo.$$.fragment,e),bs=n(e),go=a(e,"P",{"data-svelte-h":!0}),l(go)!=="svelte-1mmpgkn"&&(go.textContent=Hc),vs=n(e),p(_o.$$.fragment,e),ys=n(e),W=a(e,"DIV",{class:!0});var z=y(W);p(bo.$$.fragment,z),Cl=n(z),_r=a(z,"P",{"data-svelte-h":!0}),l(_r)!=="svelte-9daxpl"&&(_r.innerHTML=Ec),Jl=n(z),oe=a(z,"DIV",{class:!0});var Ia=y(oe);p(vo.$$.fragment,Ia),Ul=n(Ia),br=a(Ia,"P",{"data-svelte-h":!0}),l(br)!=="svelte-bszdl"&&(br.textContent=Yc),Pl=n(Ia),vr=a(Ia,"P",{"data-svelte-h":!0}),l(vr)!=="svelte-1yhz50g"&&(vr.innerHTML=Nc),Ia.forEach(s),Zl=n(z),Ie=a(z,"DIV",{class:!0});var Bs=y(Ie);p(yo.$$.fragment,Bs),Fl=n(Bs),yr=a(Bs,"P",{"data-svelte-h":!0}),l(yr)!=="svelte-1vzpsnb"&&(yr.textContent=qc),Bs.forEach(s),Il=n(z),We=a(z,"DIV",{class:!0});var Gs=y(We);p(Mo.$$.fragment,Gs),Wl=n(Gs),Mr=a(Gs,"P",{"data-svelte-h":!0}),l(Mr)!=="svelte-1quexap"&&(Mr.innerHTML=Rc),Gs.forEach(s),zl=n(z),ze=a(z,"DIV",{class:!0});var Ls=y(ze);p(To.$$.fragment,Ls),Bl=n(Ls),Tr=a(Ls,"P",{"data-svelte-h":!0}),l(Tr)!=="svelte-qy1xxb"&&(Tr.textContent=Xc),Ls.forEach(s),Gl=n(z),Be=a(z,"DIV",{class:!0});var Vs=y(Be);p(xo.$$.fragment,Vs),Ll=n(Vs),xr=a(Vs,"P",{"data-svelte-h":!0}),l(xr)!=="svelte-1y1rtu0"&&(xr.textContent=Dc),Vs.forEach(s),Vl=n(z),Ge=a(z,"DIV",{class:!0});var Hs=y(Ge);p(wo.$$.fragment,Hs),Hl=n(Hs),wr=a(Hs,"P",{"data-svelte-h":!0}),l(wr)!=="svelte-1tbhnug"&&(wr.textContent=Qc),Hs.forEach(s),El=n(z),Le=a(z,"DIV",{class:!0});var Es=y(Le);p($o.$$.fragment,Es),Yl=n(Es),$r=a(Es,"P",{"data-svelte-h":!0}),l($r)!=="svelte-vktrn"&&($r.textContent=Ac),Es.forEach(s),Nl=n(z),Ve=a(z,"DIV",{class:!0});var Ys=y(Ve);p(ko.$$.fragment,Ys),ql=n(Ys),kr=a(Ys,"P",{"data-svelte-h":!0}),l(kr)!=="svelte-17dokk"&&(kr.innerHTML=Sc),Ys.forEach(s),z.forEach(s),Ms=n(e),jo=a(e,"P",{"data-svelte-h":!0}),l(jo)!=="svelte-t5gx7b"&&(jo.textContent=Oc),Ts=n(e),x=a(e,"DIV",{class:!0});var $=y(x);p(Co.$$.fragment,$),Rl=n($),jr=a($,"P",{"data-svelte-h":!0}),l(jr)!=="svelte-ho56tp"&&(jr.textContent=Kc),Xl=n($),Cr=a($,"P",{"data-svelte-h":!0}),l(Cr)!=="svelte-14b9gvp"&&(Cr.innerHTML=ep),Dl=n($),Jr=a($,"UL",{"data-svelte-h":!0}),l(Jr)!=="svelte-6o6r8w"&&(Jr.innerHTML=tp),Ql=n($),Ur=a($,"P",{"data-svelte-h":!0}),l(Ur)!=="svelte-1qxxkvo"&&(Ur.textContent=op),Al=n($),Pr=a($,"UL",{"data-svelte-h":!0}),l(Pr)!=="svelte-1skzrdh"&&(Pr.innerHTML=np),Sl=n($),ne=a($,"DIV",{class:!0});var Wa=y(ne);p(Jo.$$.fragment,Wa),Ol=n(Wa),Zr=a(Wa,"P",{"data-svelte-h":!0}),l(Zr)!=="svelte-8nftbo"&&(Zr.innerHTML=rp),Kl=n(Wa),p(He.$$.fragment,Wa),Wa.forEach(s),ed=n($),Ee=a($,"DIV",{class:!0});var Ns=y(Ee);p(Uo.$$.fragment,Ns),td=n(Ns),Fr=a(Ns,"P",{"data-svelte-h":!0}),l(Fr)!=="svelte-1r2xt0l"&&(Fr.innerHTML=ap),Ns.forEach(s),od=n($),Ye=a($,"DIV",{class:!0});var qs=y(Ye);p(Po.$$.fragment,qs),nd=n(qs),Ir=a(qs,"P",{"data-svelte-h":!0}),l(Ir)!=="svelte-wsnq9n"&&(Ir.textContent=sp),qs.forEach(s),rd=n($),Ne=a($,"DIV",{class:!0});var Rs=y(Ne);p(Zo.$$.fragment,Rs),ad=n(Rs),Wr=a(Rs,"P",{"data-svelte-h":!0}),l(Wr)!=="svelte-1mh859w"&&(Wr.innerHTML=ip),Rs.forEach(s),sd=n($),L=a($,"DIV",{class:!0});var ce=y(L);p(Fo.$$.fragment,ce),id=n(ce),zr=a(ce,"P",{"data-svelte-h":!0}),l(zr)!=="svelte-vc5x03"&&(zr.textContent=lp),ld=n(ce),Br=a(ce,"P",{"data-svelte-h":!0}),l(Br)!=="svelte-floidm"&&(Br.innerHTML=dp),dd=n(ce),Gr=a(ce,"P",{"data-svelte-h":!0}),l(Gr)!=="svelte-5vnnmn"&&(Gr.innerHTML=mp),md=n(ce),p(qe.$$.fragment,ce),ce.forEach(s),cd=n($),Re=a($,"DIV",{class:!0});var Xs=y(Re);p(Io.$$.fragment,Xs),pd=n(Xs),Lr=a(Xs,"P",{"data-svelte-h":!0}),l(Lr)!=="svelte-ja4l5b"&&(Lr.textContent=cp),Xs.forEach(s),hd=n($),Xe=a($,"DIV",{class:!0});var Ds=y(Xe);p(Wo.$$.fragment,Ds),fd=n(Ds),Vr=a(Ds,"P",{"data-svelte-h":!0}),l(Vr)!=="svelte-1y1rtu0"&&(Vr.textContent=pp),Ds.forEach(s),ud=n($),De=a($,"DIV",{class:!0});var Qs=y(De);p(zo.$$.fragment,Qs),gd=n(Qs),Hr=a(Qs,"P",{"data-svelte-h":!0}),l(Hr)!=="svelte-1g2truu"&&(Hr.textContent=hp),Qs.forEach(s),_d=n($),Qe=a($,"DIV",{class:!0});var As=y(Qe);p(Bo.$$.fragment,As),bd=n(As),Er=a(As,"P",{"data-svelte-h":!0}),l(Er)!=="svelte-1hvwe3j"&&(Er.textContent=fp),As.forEach(s),vd=n($),Ae=a($,"DIV",{class:!0});var Ss=y(Ae);p(Go.$$.fragment,Ss),yd=n(Ss),Yr=a(Ss,"P",{"data-svelte-h":!0}),l(Yr)!=="svelte-1mu3td8"&&(Yr.textContent=up),Ss.forEach(s),Md=n($),Se=a($,"DIV",{class:!0});var Os=y(Se);p(Lo.$$.fragment,Os),Td=n(Os),Nr=a(Os,"P",{"data-svelte-h":!0}),l(Nr)!=="svelte-ib1802"&&(Nr.textContent=gp),Os.forEach(s),xd=n($),Oe=a($,"DIV",{class:!0});var Ks=y(Oe);p(Vo.$$.fragment,Ks),wd=n(Ks),qr=a(Ks,"P",{"data-svelte-h":!0}),l(qr)!=="svelte-1vipzyv"&&(qr.textContent=_p),Ks.forEach(s),$d=n($),Ke=a($,"DIV",{class:!0});var ei=y(Ke);p(Ho.$$.fragment,ei),kd=n(ei),Rr=a(ei,"P",{"data-svelte-h":!0}),l(Rr)!=="svelte-inz2xi"&&(Rr.textContent=bp),ei.forEach(s),jd=n($),et=a($,"DIV",{class:!0});var ti=y(et);p(Eo.$$.fragment,ti),Cd=n(ti),Xr=a(ti,"P",{"data-svelte-h":!0}),l(Xr)!=="svelte-q8rs5u"&&(Xr.innerHTML=vp),ti.forEach(s),Jd=n($),tt=a($,"DIV",{class:!0});var oi=y(tt);p(Yo.$$.fragment,oi),Ud=n(oi),Dr=a(oi,"P",{"data-svelte-h":!0}),l(Dr)!=="svelte-qvrpxu"&&(Dr.textContent=yp),oi.forEach(s),Pd=n($),re=a($,"DIV",{class:!0});var za=y(re);p(No.$$.fragment,za),Zd=n(za),Qr=a(za,"P",{"data-svelte-h":!0}),l(Qr)!=="svelte-1ie4sav"&&(Qr.textContent=Mp),Fd=n(za),p(ot.$$.fragment,za),za.forEach(s),Id=n($),ae=a($,"DIV",{class:!0});var Ba=y(ae);p(qo.$$.fragment,Ba),Wd=n(Ba),Ar=a(Ba,"P",{"data-svelte-h":!0}),l(Ar)!=="svelte-sgsur1"&&(Ar.innerHTML=Tp),zd=n(Ba),Sr=a(Ba,"P",{"data-svelte-h":!0}),l(Sr)!=="svelte-1t4xas4"&&(Sr.innerHTML=xp),Ba.forEach(s),Bd=n($),nt=a($,"DIV",{class:!0});var ni=y(nt);p(Ro.$$.fragment,ni),Gd=n(ni),Or=a(ni,"P",{"data-svelte-h":!0}),l(Or)!=="svelte-1olaqb6"&&(Or.innerHTML=wp),ni.forEach(s),Ld=n($),Kr=a($,"DIV",{class:!0});var oh=y(Kr);p(Xo.$$.fragment,oh),oh.forEach(s),Vd=n($),rt=a($,"DIV",{class:!0});var ri=y(rt);p(Do.$$.fragment,ri),Hd=n(ri),ea=a(ri,"P",{"data-svelte-h":!0}),l(ea)!=="svelte-4zpnur"&&(ea.textContent=$p),ri.forEach(s),Ed=n($),at=a($,"DIV",{class:!0});var ai=y(at);p(Qo.$$.fragment,ai),Yd=n(ai),ta=a(ai,"P",{"data-svelte-h":!0}),l(ta)!=="svelte-cmhrcy"&&(ta.textContent=kp),ai.forEach(s),Nd=n($),st=a($,"DIV",{class:!0});var si=y(st);p(Ao.$$.fragment,si),qd=n(si),oa=a(si,"P",{"data-svelte-h":!0}),l(oa)!=="svelte-1ouwbwr"&&(oa.textContent=jp),si.forEach(s),Rd=n($),it=a($,"DIV",{class:!0});var ii=y(it);p(So.$$.fragment,ii),Xd=n(ii),na=a(ii,"P",{"data-svelte-h":!0}),l(na)!=="svelte-x8fgs0"&&(na.textContent=Cp),ii.forEach(s),Dd=n($),lt=a($,"DIV",{class:!0});var li=y(lt);p(Oo.$$.fragment,li),Qd=n(li),ra=a(li,"P",{"data-svelte-h":!0}),l(ra)!=="svelte-oo8tit"&&(ra.innerHTML=Jp),li.forEach(s),Ad=n($),dt=a($,"DIV",{class:!0});var di=y(dt);p(Ko.$$.fragment,di),Sd=n(di),aa=a(di,"P",{"data-svelte-h":!0}),l(aa)!=="svelte-oo8tit"&&(aa.innerHTML=Up),di.forEach(s),$.forEach(s),xs=n(e),p(en.$$.fragment,e),ws=n(e),N=a(e,"DIV",{class:!0});var Ga=y(N);p(tn.$$.fragment,Ga),Od=n(Ga),sa=a(Ga,"P",{"data-svelte-h":!0}),l(sa)!=="svelte-1dqi2f3"&&(sa.innerHTML=Pp),Kd=n(Ga),mt=a(Ga,"DIV",{class:!0});var mi=y(mt);p(on.$$.fragment,mi),em=n(mi),ia=a(mi,"P",{"data-svelte-h":!0}),l(ia)!=="svelte-im20fs"&&(ia.textContent=Zp),mi.forEach(s),Ga.forEach(s),$s=n(e),nn=a(e,"P",{"data-svelte-h":!0}),l(nn)!=="svelte-11sh6ng"&&(nn.textContent=Fp),ks=n(e),U=a(e,"DIV",{class:!0});var F=y(U);p(rn.$$.fragment,F),tm=n(F),la=a(F,"P",{"data-svelte-h":!0}),l(la)!=="svelte-12nk4t7"&&(la.textContent=Ip),om=n(F),da=a(F,"P",{"data-svelte-h":!0}),l(da)!=="svelte-v1s2xo"&&(da.innerHTML=Wp),nm=n(F),ma=a(F,"P",{"data-svelte-h":!0}),l(ma)!=="svelte-1qxxkvo"&&(ma.textContent=zp),rm=n(F),ca=a(F,"UL",{"data-svelte-h":!0}),l(ca)!=="svelte-1skzrdh"&&(ca.innerHTML=Bp),am=n(F),se=a(F,"DIV",{class:!0});var La=y(se);p(an.$$.fragment,La),sm=n(La),pa=a(La,"P",{"data-svelte-h":!0}),l(pa)!=="svelte-a8hf5e"&&(pa.textContent=Gp),im=n(La),p(ct.$$.fragment,La),La.forEach(s),lm=n(F),pt=a(F,"DIV",{class:!0});var ci=y(pt);p(sn.$$.fragment,ci),dm=n(ci),ha=a(ci,"P",{"data-svelte-h":!0}),l(ha)!=="svelte-12hq10t"&&(ha.innerHTML=Lp),ci.forEach(s),mm=n(F),V=a(F,"DIV",{class:!0});var pe=y(V);p(ln.$$.fragment,pe),cm=n(pe),fa=a(pe,"P",{"data-svelte-h":!0}),l(fa)!=="svelte-1oaqdrm"&&(fa.textContent=Vp),pm=n(pe),ua=a(pe,"P",{"data-svelte-h":!0}),l(ua)!=="svelte-floidm"&&(ua.innerHTML=Hp),hm=n(pe),ga=a(pe,"P",{"data-svelte-h":!0}),l(ga)!=="svelte-5vnnmn"&&(ga.innerHTML=Ep),fm=n(pe),p(ht.$$.fragment,pe),pe.forEach(s),um=n(F),ie=a(F,"DIV",{class:!0});var Va=y(ie);p(dn.$$.fragment,Va),gm=n(Va),_a=a(Va,"P",{"data-svelte-h":!0}),l(_a)!=="svelte-plzzd0"&&(_a.innerHTML=Yp),_m=n(Va),ba=a(Va,"P",{"data-svelte-h":!0}),l(ba)!=="svelte-bzl1lx"&&(ba.textContent=Np),Va.forEach(s),bm=n(F),le=a(F,"DIV",{class:!0});var Ha=y(le);p(mn.$$.fragment,Ha),vm=n(Ha),va=a(Ha,"P",{"data-svelte-h":!0}),l(va)!=="svelte-1ie4sav"&&(va.textContent=qp),ym=n(Ha),p(ft.$$.fragment,Ha),Ha.forEach(s),Mm=n(F),ut=a(F,"DIV",{class:!0});var pi=y(ut);p(cn.$$.fragment,pi),Tm=n(pi),ya=a(pi,"P",{"data-svelte-h":!0}),l(ya)!=="svelte-xd56p6"&&(ya.innerHTML=Rp),pi.forEach(s),xm=n(F),E=a(F,"DIV",{class:!0});var yt=y(E);p(pn.$$.fragment,yt),wm=n(yt),Ma=a(yt,"P",{"data-svelte-h":!0}),l(Ma)!=="svelte-16uni9u"&&(Ma.innerHTML=Xp),$m=n(yt),Ta=a(yt,"P",{"data-svelte-h":!0}),l(Ta)!=="svelte-qh3hgx"&&(Ta.textContent=Dp),km=n(yt),p(gt.$$.fragment,yt),yt.forEach(s),jm=n(F),Y=a(F,"DIV",{class:!0});var Mt=y(Y);p(hn.$$.fragment,Mt),Cm=n(Mt),xa=a(Mt,"P",{"data-svelte-h":!0}),l(xa)!=="svelte-uock64"&&(xa.innerHTML=Qp),Jm=n(Mt),wa=a(Mt,"P",{"data-svelte-h":!0}),l(wa)!=="svelte-1rko7go"&&(wa.textContent=Ap),Um=n(Mt),p(_t.$$.fragment,Mt),Mt.forEach(s),Pm=n(F),de=a(F,"DIV",{class:!0});var Ea=y(de);p(fn.$$.fragment,Ea),Zm=n(Ea),$a=a(Ea,"P",{"data-svelte-h":!0}),l($a)!=="svelte-1jvan3s"&&($a.innerHTML=Sp),Fm=n(Ea),p(bt.$$.fragment,Ea),Ea.forEach(s),F.forEach(s),js=n(e),p(un.$$.fragment,e),Cs=n(e),q=a(e,"DIV",{class:!0});var Ya=y(q);p(gn.$$.fragment,Ya),Im=n(Ya),ka=a(Ya,"P",{"data-svelte-h":!0}),l(ka)!=="svelte-s2i98"&&(ka.textContent=Op),Wm=n(Ya),me=a(Ya,"DIV",{class:!0});var Na=y(me);p(_n.$$.fragment,Na),zm=n(Na),ja=a(Na,"P",{"data-svelte-h":!0}),l(ja)!=="svelte-am4l6x"&&(ja.textContent=Kp),Bm=n(Na),p(vt.$$.fragment,Na),Na.forEach(s),Ya.forEach(s),Js=n(e),p(bn.$$.fragment,e),Us=n(e),R=a(e,"DIV",{class:!0});var qa=y(R);p(vn.$$.fragment,qa),Gm=n(qa),Ca=a(qa,"P",{"data-svelte-h":!0}),l(Ca)!=="svelte-16tfby7"&&(Ca.innerHTML=eh),Lm=n(qa),Ja=a(qa,"P",{"data-svelte-h":!0}),l(Ja)!=="svelte-bzl1lx"&&(Ja.textContent=th),qa.forEach(s),Ps=n(e),Ra=a(e,"P",{}),y(Ra).forEach(s),this.h()},h(){M(d,"name","hf:doc:metadata"),M(d,"content",wh),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(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(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(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(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(Z,"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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(gr,"id","from_pretrained-torch-dtype"),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(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(Le,"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(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(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(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(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(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(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(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(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(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(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(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(tt,"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(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(Kr,"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(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(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(mt,"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(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(pt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(V,"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(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ut,"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(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(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(U,"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(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(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(e,m){t(document.head,d),b(e,J,m),b(e,v,m),b(e,_,m),h(w,e,m),b(e,i,m),b(e,C,m),b(e,Xa,m),b(e,xt,m),b(e,Da,m),b(e,wt,m),b(e,Qa,m),b(e,$t,m),b(e,Aa,m),h(kt,e,m),b(e,Sa,m),b(e,k,m),h(jt,k,null),t(k,fi),t(k,Jn),t(k,ui),t(k,Un),t(k,gi),t(k,Pn),t(k,_i),t(k,Zn),t(k,bi),t(k,Fn),t(k,vi),t(k,Q),h(Ct,Q,null),t(Q,yi),t(Q,In),t(Q,Mi),h(ge,Q,null),t(k,Ti),t(k,A),h(Jt,A,null),t(A,xi),t(A,Wn),t(A,wi),h(_e,A,null),t(k,$i),t(k,be),h(Ut,be,null),t(be,ki),t(be,zn),t(k,ji),t(k,ve),h(Pt,ve,null),t(ve,Ci),t(ve,Bn),t(k,Ji),t(k,ye),h(Zt,ye,null),t(ye,Ui),t(ye,Gn),t(k,Pi),t(k,Z),h(Ft,Z,null),t(Z,Zi),t(Z,Ln),t(Z,Fi),t(Z,Vn),t(Z,Ii),t(Z,Hn),t(Z,Wi),t(Z,En),t(Z,zi),h(Me,Z,null),t(Z,Bi),h(Te,Z,null),t(Z,Gi),t(Z,Yn),t(Z,Li),t(Z,Nn),t(Z,Vi),t(Z,qn),t(Z,Hi),t(Z,Rn),t(Z,Ei),t(Z,Xn),t(k,Yi),t(k,xe),h(It,xe,null),t(xe,Ni),t(xe,Dn),t(k,qi),t(k,we),h(Wt,we,null),t(we,Ri),t(we,Qn),t(k,Xi),t(k,$e),h(zt,$e,null),t($e,Di),t($e,An),t(k,Qi),t(k,S),h(Bt,S,null),t(S,Ai),t(S,Sn),t(S,Si),t(S,On),t(k,Oi),t(k,H),h(Gt,H,null),t(H,Ki),t(H,Kn),t(H,el),t(H,er),t(H,tl),t(H,tr),t(k,ol),t(k,ke),h(Lt,ke,null),t(ke,nl),t(ke,or),t(k,rl),t(k,je),h(Vt,je,null),t(je,al),t(je,nr),t(k,sl),t(k,Ce),h(Ht,Ce,null),t(Ce,il),t(Ce,rr),t(k,ll),t(k,O),h(Et,O,null),t(O,dl),t(O,ar),t(O,ml),h(Je,O,null),t(k,cl),t(k,K),h(Yt,K,null),t(K,pl),t(K,sr),t(K,hl),t(K,ir),t(k,fl),t(k,Ue),h(Nt,Ue,null),t(Ue,ul),t(Ue,lr),t(k,gl),t(k,Pe),h(qt,Pe,null),t(Pe,_l),t(Pe,dr),t(k,bl),t(k,Ze),h(Rt,Ze,null),t(Ze,vl),t(Ze,mr),t(k,yl),t(k,ee),h(Xt,ee,null),t(ee,Ml),t(ee,cr),t(ee,Tl),t(ee,pr),t(k,xl),t(k,te),h(Dt,te,null),t(te,wl),t(te,hr),t(te,$l),t(te,fr),t(k,kl),t(k,Fe),h(Qt,Fe,null),t(Fe,jl),t(Fe,ur),b(e,Oa,m),b(e,gr,m),b(e,Ka,m),h(At,e,m),b(e,es,m),b(e,St,m),b(e,ts,m),b(e,Ot,m),b(e,os,m),h(Kt,e,m),b(e,ns,m),b(e,eo,m),b(e,rs,m),b(e,to,m),b(e,as,m),h(oo,e,m),b(e,ss,m),b(e,no,m),b(e,is,m),h(ro,e,m),b(e,ls,m),b(e,ao,m),b(e,ds,m),h(so,e,m),b(e,ms,m),b(e,io,m),b(e,cs,m),h(lo,e,m),b(e,ps,m),b(e,mo,m),b(e,hs,m),h(co,e,m),b(e,fs,m),b(e,po,m),b(e,us,m),h(ho,e,m),b(e,gs,m),b(e,fo,m),b(e,_s,m),h(uo,e,m),b(e,bs,m),b(e,go,m),b(e,vs,m),h(_o,e,m),b(e,ys,m),b(e,W,m),h(bo,W,null),t(W,Cl),t(W,_r),t(W,Jl),t(W,oe),h(vo,oe,null),t(oe,Ul),t(oe,br),t(oe,Pl),t(oe,vr),t(W,Zl),t(W,Ie),h(yo,Ie,null),t(Ie,Fl),t(Ie,yr),t(W,Il),t(W,We),h(Mo,We,null),t(We,Wl),t(We,Mr),t(W,zl),t(W,ze),h(To,ze,null),t(ze,Bl),t(ze,Tr),t(W,Gl),t(W,Be),h(xo,Be,null),t(Be,Ll),t(Be,xr),t(W,Vl),t(W,Ge),h(wo,Ge,null),t(Ge,Hl),t(Ge,wr),t(W,El),t(W,Le),h($o,Le,null),t(Le,Yl),t(Le,$r),t(W,Nl),t(W,Ve),h(ko,Ve,null),t(Ve,ql),t(Ve,kr),b(e,Ms,m),b(e,jo,m),b(e,Ts,m),b(e,x,m),h(Co,x,null),t(x,Rl),t(x,jr),t(x,Xl),t(x,Cr),t(x,Dl),t(x,Jr),t(x,Ql),t(x,Ur),t(x,Al),t(x,Pr),t(x,Sl),t(x,ne),h(Jo,ne,null),t(ne,Ol),t(ne,Zr),t(ne,Kl),h(He,ne,null),t(x,ed),t(x,Ee),h(Uo,Ee,null),t(Ee,td),t(Ee,Fr),t(x,od),t(x,Ye),h(Po,Ye,null),t(Ye,nd),t(Ye,Ir),t(x,rd),t(x,Ne),h(Zo,Ne,null),t(Ne,ad),t(Ne,Wr),t(x,sd),t(x,L),h(Fo,L,null),t(L,id),t(L,zr),t(L,ld),t(L,Br),t(L,dd),t(L,Gr),t(L,md),h(qe,L,null),t(x,cd),t(x,Re),h(Io,Re,null),t(Re,pd),t(Re,Lr),t(x,hd),t(x,Xe),h(Wo,Xe,null),t(Xe,fd),t(Xe,Vr),t(x,ud),t(x,De),h(zo,De,null),t(De,gd),t(De,Hr),t(x,_d),t(x,Qe),h(Bo,Qe,null),t(Qe,bd),t(Qe,Er),t(x,vd),t(x,Ae),h(Go,Ae,null),t(Ae,yd),t(Ae,Yr),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,qr),t(x,$d),t(x,Ke),h(Ho,Ke,null),t(Ke,kd),t(Ke,Rr),t(x,jd),t(x,et),h(Eo,et,null),t(et,Cd),t(et,Xr),t(x,Jd),t(x,tt),h(Yo,tt,null),t(tt,Ud),t(tt,Dr),t(x,Pd),t(x,re),h(No,re,null),t(re,Zd),t(re,Qr),t(re,Fd),h(ot,re,null),t(x,Id),t(x,ae),h(qo,ae,null),t(ae,Wd),t(ae,Ar),t(ae,zd),t(ae,Sr),t(x,Bd),t(x,nt),h(Ro,nt,null),t(nt,Gd),t(nt,Or),t(x,Ld),t(x,Kr),h(Xo,Kr,null),t(x,Vd),t(x,rt),h(Do,rt,null),t(rt,Hd),t(rt,ea),t(x,Ed),t(x,at),h(Qo,at,null),t(at,Yd),t(at,ta),t(x,Nd),t(x,st),h(Ao,st,null),t(st,qd),t(st,oa),t(x,Rd),t(x,it),h(So,it,null),t(it,Xd),t(it,na),t(x,Dd),t(x,lt),h(Oo,lt,null),t(lt,Qd),t(lt,ra),t(x,Ad),t(x,dt),h(Ko,dt,null),t(dt,Sd),t(dt,aa),b(e,xs,m),h(en,e,m),b(e,ws,m),b(e,N,m),h(tn,N,null),t(N,Od),t(N,sa),t(N,Kd),t(N,mt),h(on,mt,null),t(mt,em),t(mt,ia),b(e,$s,m),b(e,nn,m),b(e,ks,m),b(e,U,m),h(rn,U,null),t(U,tm),t(U,la),t(U,om),t(U,da),t(U,nm),t(U,ma),t(U,rm),t(U,ca),t(U,am),t(U,se),h(an,se,null),t(se,sm),t(se,pa),t(se,im),h(ct,se,null),t(U,lm),t(U,pt),h(sn,pt,null),t(pt,dm),t(pt,ha),t(U,mm),t(U,V),h(ln,V,null),t(V,cm),t(V,fa),t(V,pm),t(V,ua),t(V,hm),t(V,ga),t(V,fm),h(ht,V,null),t(U,um),t(U,ie),h(dn,ie,null),t(ie,gm),t(ie,_a),t(ie,_m),t(ie,ba),t(U,bm),t(U,le),h(mn,le,null),t(le,vm),t(le,va),t(le,ym),h(ft,le,null),t(U,Mm),t(U,ut),h(cn,ut,null),t(ut,Tm),t(ut,ya),t(U,xm),t(U,E),h(pn,E,null),t(E,wm),t(E,Ma),t(E,$m),t(E,Ta),t(E,km),h(gt,E,null),t(U,jm),t(U,Y),h(hn,Y,null),t(Y,Cm),t(Y,xa),t(Y,Jm),t(Y,wa),t(Y,Um),h(_t,Y,null),t(U,Pm),t(U,de),h(fn,de,null),t(de,Zm),t(de,$a),t(de,Fm),h(bt,de,null),b(e,js,m),h(un,e,m),b(e,Cs,m),b(e,q,m),h(gn,q,null),t(q,Im),t(q,ka),t(q,Wm),t(q,me),h(_n,me,null),t(me,zm),t(me,ja),t(me,Bm),h(vt,me,null),b(e,Js,m),h(bn,e,m),b(e,Us,m),b(e,R,m),h(vn,R,null),t(R,Gm),t(R,Ca),t(R,Lm),t(R,Ja),b(e,Ps,m),b(e,Ra,m),Zs=!0},p(e,[m]){const j={};m&2&&(j.$$scope={dirty:m,ctx:e}),ge.$set(j);const he={};m&2&&(he.$$scope={dirty:m,ctx:e}),_e.$set(he);const fe={};m&2&&(fe.$$scope={dirty:m,ctx:e}),Me.$set(fe);const yn={};m&2&&(yn.$$scope={dirty:m,ctx:e}),Te.$set(yn);const Mn={};m&2&&(Mn.$$scope={dirty:m,ctx:e}),Je.$set(Mn);const Tn={};m&2&&(Tn.$$scope={dirty:m,ctx:e}),He.$set(Tn);const I={};m&2&&(I.$$scope={dirty:m,ctx:e}),qe.$set(I);const xn={};m&2&&(xn.$$scope={dirty:m,ctx:e}),ot.$set(xn);const wn={};m&2&&(wn.$$scope={dirty:m,ctx:e}),ct.$set(wn);const $n={};m&2&&($n.$$scope={dirty:m,ctx:e}),ht.$set($n);const ue={};m&2&&(ue.$$scope={dirty:m,ctx:e}),ft.$set(ue);const X={};m&2&&(X.$$scope={dirty:m,ctx:e}),gt.$set(X);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);const Cn={};m&2&&(Cn.$$scope={dirty:m,ctx:e}),vt.$set(Cn)},i(e){Zs||(f(w.$$.fragment,e),f(kt.$$.fragment,e),f(jt.$$.fragment,e),f(Ct.$$.fragment,e),f(ge.$$.fragment,e),f(Jt.$$.fragment,e),f(_e.$$.fragment,e),f(Ut.$$.fragment,e),f(Pt.$$.fragment,e),f(Zt.$$.fragment,e),f(Ft.$$.fragment,e),f(Me.$$.fragment,e),f(Te.$$.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(Vt.$$.fragment,e),f(Ht.$$.fragment,e),f(Et.$$.fragment,e),f(Je.$$.fragment,e),f(Yt.$$.fragment,e),f(Nt.$$.fragment,e),f(qt.$$.fragment,e),f(Rt.$$.fragment,e),f(Xt.$$.fragment,e),f(Dt.$$.fragment,e),f(Qt.$$.fragment,e),f(At.$$.fragment,e),f(Kt.$$.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(_o.$$.fragment,e),f(bo.$$.fragment,e),f(vo.$$.fragment,e),f(yo.$$.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(Co.$$.fragment,e),f(Jo.$$.fragment,e),f(He.$$.fragment,e),f(Uo.$$.fragment,e),f(Po.$$.fragment,e),f(Zo.$$.fragment,e),f(Fo.$$.fragment,e),f(qe.$$.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(Ho.$$.fragment,e),f(Eo.$$.fragment,e),f(Yo.$$.fragment,e),f(No.$$.fragment,e),f(ot.$$.fragment,e),f(qo.$$.fragment,e),f(Ro.$$.fragment,e),f(Xo.$$.fragment,e),f(Do.$$.fragment,e),f(Qo.$$.fragment,e),f(Ao.$$.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(rn.$$.fragment,e),f(an.$$.fragment,e),f(ct.$$.fragment,e),f(sn.$$.fragment,e),f(ln.$$.fragment,e),f(ht.$$.fragment,e),f(dn.$$.fragment,e),f(mn.$$.fragment,e),f(ft.$$.fragment,e),f(cn.$$.fragment,e),f(pn.$$.fragment,e),f(gt.$$.fragment,e),f(hn.$$.fragment,e),f(_t.$$.fragment,e),f(fn.$$.fragment,e),f(bt.$$.fragment,e),f(un.$$.fragment,e),f(gn.$$.fragment,e),f(_n.$$.fragment,e),f(vt.$$.fragment,e),f(bn.$$.fragment,e),f(vn.$$.fragment,e),Zs=!0)},o(e){u(w.$$.fragment,e),u(kt.$$.fragment,e),u(jt.$$.fragment,e),u(Ct.$$.fragment,e),u(ge.$$.fragment,e),u(Jt.$$.fragment,e),u(_e.$$.fragment,e),u(Ut.$$.fragment,e),u(Pt.$$.fragment,e),u(Zt.$$.fragment,e),u(Ft.$$.fragment,e),u(Me.$$.fragment,e),u(Te.$$.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(Vt.$$.fragment,e),u(Ht.$$.fragment,e),u(Et.$$.fragment,e),u(Je.$$.fragment,e),u(Yt.$$.fragment,e),u(Nt.$$.fragment,e),u(qt.$$.fragment,e),u(Rt.$$.fragment,e),u(Xt.$$.fragment,e),u(Dt.$$.fragment,e),u(Qt.$$.fragment,e),u(At.$$.fragment,e),u(Kt.$$.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(_o.$$.fragment,e),u(bo.$$.fragment,e),u(vo.$$.fragment,e),u(yo.$$.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(Co.$$.fragment,e),u(Jo.$$.fragment,e),u(He.$$.fragment,e),u(Uo.$$.fragment,e),u(Po.$$.fragment,e),u(Zo.$$.fragment,e),u(Fo.$$.fragment,e),u(qe.$$.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(Ho.$$.fragment,e),u(Eo.$$.fragment,e),u(Yo.$$.fragment,e),u(No.$$.fragment,e),u(ot.$$.fragment,e),u(qo.$$.fragment,e),u(Ro.$$.fragment,e),u(Xo.$$.fragment,e),u(Do.$$.fragment,e),u(Qo.$$.fragment,e),u(Ao.$$.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(rn.$$.fragment,e),u(an.$$.fragment,e),u(ct.$$.fragment,e),u(sn.$$.fragment,e),u(ln.$$.fragment,e),u(ht.$$.fragment,e),u(dn.$$.fragment,e),u(mn.$$.fragment,e),u(ft.$$.fragment,e),u(cn.$$.fragment,e),u(pn.$$.fragment,e),u(gt.$$.fragment,e),u(hn.$$.fragment,e),u(_t.$$.fragment,e),u(fn.$$.fragment,e),u(bt.$$.fragment,e),u(un.$$.fragment,e),u(gn.$$.fragment,e),u(_n.$$.fragment,e),u(vt.$$.fragment,e),u(bn.$$.fragment,e),u(vn.$$.fragment,e),Zs=!1},d(e){e&&(s(J),s(v),s(_),s(i),s(C),s(Xa),s(xt),s(Da),s(wt),s(Qa),s($t),s(Aa),s(Sa),s(k),s(Oa),s(gr),s(Ka),s(es),s(St),s(ts),s(Ot),s(os),s(ns),s(eo),s(rs),s(to),s(as),s(ss),s(no),s(is),s(ls),s(ao),s(ds),s(ms),s(io),s(cs),s(ps),s(mo),s(hs),s(fs),s(po),s(us),s(gs),s(fo),s(_s),s(bs),s(go),s(vs),s(ys),s(W),s(Ms),s(jo),s(Ts),s(x),s(xs),s(ws),s(N),s($s),s(nn),s(ks),s(U),s(js),s(Cs),s(q),s(Js),s(Us),s(R),s(Ps),s(Ra)),s(d),g(w,e),g(kt,e),g(jt),g(Ct),g(ge),g(Jt),g(_e),g(Ut),g(Pt),g(Zt),g(Ft),g(Me),g(Te),g(It),g(Wt),g(zt),g(Bt),g(Gt),g(Lt),g(Vt),g(Ht),g(Et),g(Je),g(Yt),g(Nt),g(qt),g(Rt),g(Xt),g(Dt),g(Qt),g(At,e),g(Kt,e),g(oo,e),g(ro,e),g(so,e),g(lo,e),g(co,e),g(ho,e),g(uo,e),g(_o,e),g(bo),g(vo),g(yo),g(Mo),g(To),g(xo),g(wo),g($o),g(ko),g(Co),g(Jo),g(He),g(Uo),g(Po),g(Zo),g(Fo),g(qe),g(Io),g(Wo),g(zo),g(Bo),g(Go),g(Lo),g(Vo),g(Ho),g(Eo),g(Yo),g(No),g(ot),g(qo),g(Ro),g(Xo),g(Do),g(Qo),g(Ao),g(So),g(Oo),g(Ko),g(en,e),g(tn),g(on),g(rn),g(an),g(ct),g(sn),g(ln),g(ht),g(dn),g(mn),g(ft),g(cn),g(pn),g(gt),g(hn),g(_t),g(fn),g(bt),g(un,e),g(gn),g(_n),g(vt),g(bn,e),g(vn)}}}const wh='{"title":"模型","local":"模型","sections":[{"title":"PreTrainedModel","local":"transformers.PreTrainedModel","sections":[{"title":"大模型加载","local":"大模型加载","sections":[],"depth":3},{"title":"模型实例化 dtype","local":"模型实例化-dtype","sections":[],"depth":3}],"depth":2},{"title":"ModuleUtilsMixin","local":"transformers.modeling_utils.ModuleUtilsMixin","sections":[],"depth":2},{"title":"TFModelUtilsMixin","local":"transformers.modeling_tf_utils.TFModelUtilsMixin","sections":[],"depth":2},{"title":"推送到 Hub","local":"transformers.utils.PushToHubMixin","sections":[],"depth":2},{"title":"分片检查点","local":"transformers.modeling_utils.load_sharded_checkpoint","sections":[],"depth":2}],"depth":1}';function $h(P){return rh(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Fh extends ah{constructor(d){super(),sh(this,d,$h,xh,nh,{})}}export{Fh as component};
