import{s as AT,o as qT,n as P}from"../chunks/scheduler.9bc65507.js";import{S as CT,i as jT,g as r,s as n,u,A as IT,h as s,f as t,c as a,j as v,v as h,y as d,k as m,o,a as l,w as g,d as f,t as _,x as b}from"../chunks/index.78c82d43.js";import{T as Ve}from"../chunks/Tip.87d55b76.js";import{D as k}from"../chunks/Docstring.4e7352e2.js";import{C as j}from"../chunks/CodeBlock.73e038be.js";import{I as L}from"../chunks/IconCopyLink.bedaa44d.js";import{E as Me}from"../chunks/ExampleCodeBlock.872b014d.js";function JT(C){let p,$=`The <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a> class is optimized for 🤗 Transformers models and can have surprising behaviors
when you use it on other models. When using it on your own model, make sure:`,y,T,M=`<li>your model always return tuples or subclasses of <a href="/docs/transformers/v4.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a>.</li> <li>your model can compute the loss if a <code>labels</code> argument is provided and that loss is returned as the first
element of the tuple (if your model returns tuples)</li> <li>your model can accept multiple label arguments (use the <code>label_names</code> in your <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> to indicate their name to the <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>) but none of them should be named <code>&quot;label&quot;</code>.</li>`;return{c(){p=r("p"),p.innerHTML=$,y=n(),T=r("ul"),T.innerHTML=M},l(c){p=s(c,"P",{"data-svelte-h":!0}),d(p)!=="svelte-1x0k3s3"&&(p.innerHTML=$),y=a(c),T=s(c,"UL",{"data-svelte-h":!0}),d(T)!=="svelte-12ba3ra"&&(T.innerHTML=M)},m(c,A){l(c,p,A),l(c,y,A),l(c,T,A)},p:P,d(c){c&&(t(p),t(y),t(T))}}}function ST(C){let p,$=`To use this method, you need to have provided a <code>model_init</code> when initializing your <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>: we need to
reinitialize the model at each new run. This is incompatible with the <code>optimizers</code> argument, so you need to
subclass <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a> and override the method <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer.create_optimizer_and_scheduler">create_optimizer_and_scheduler()</a> for custom
optimizer/scheduler.`;return{c(){p=r("p"),p.innerHTML=$},l(y){p=s(y,"P",{"data-svelte-h":!0}),d(p)!=="svelte-vp4133"&&(p.innerHTML=$)},m(y,T){l(y,p,T)},p:P,d(y){y&&t(p)}}}function UT(C){let p,$="This function is deprecated and will be removed in v4.34.0 of Transformers.";return{c(){p=r("p"),p.textContent=$},l(y){p=s(y,"P",{"data-svelte-h":!0}),d(p)!=="svelte-1bkq44s"&&(p.textContent=$)},m(y,T){l(y,p,T)},p:P,d(y){y&&t(p)}}}function PT(C){let p,$="Now when this method is run, you will see a report that will include: :",y,T,M;return T=new j({props:{code:"aW5pdF9tZW1fY3B1X2FsbG9jX2RlbHRhJTIwJTIwJTIwJTNEJTIwJTIwJTIwJTIwJTIwMTMwMU1CJTBBaW5pdF9tZW1fY3B1X3BlYWtlZF9kZWx0YSUyMCUyMCUzRCUyMCUyMCUyMCUyMCUyMCUyMDE1NE1CJTBBaW5pdF9tZW1fZ3B1X2FsbG9jX2RlbHRhJTIwJTIwJTIwJTNEJTIwJTIwJTIwJTIwJTIwJTIwMjMwTUIlMEFpbml0X21lbV9ncHVfcGVha2VkX2RlbHRhJTIwJTIwJTNEJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwME1CJTBBdHJhaW5fbWVtX2NwdV9hbGxvY19kZWx0YSUyMCUyMCUzRCUyMCUyMCUyMCUyMCUyMDEzNDVNQiUwQXRyYWluX21lbV9jcHVfcGVha2VkX2RlbHRhJTIwJTNEJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwME1CJTBBdHJhaW5fbWVtX2dwdV9hbGxvY19kZWx0YSUyMCUyMCUzRCUyMCUyMCUyMCUyMCUyMCUyMDY5M01CJTBBdHJhaW5fbWVtX2dwdV9wZWFrZWRfZGVsdGElMjAlM0QlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjA3TUI=",highlighted:`<span class="hljs-attr">init_mem_cpu_alloc_delta</span>   =     <span class="hljs-number">1301</span>MB
<span class="hljs-attr">init_mem_cpu_peaked_delta</span>  =      <span class="hljs-number">154</span>MB
<span class="hljs-attr">init_mem_gpu_alloc_delta</span>   =      <span class="hljs-number">230</span>MB
<span class="hljs-attr">init_mem_gpu_peaked_delta</span>  =        <span class="hljs-number">0</span>MB
<span class="hljs-attr">train_mem_cpu_alloc_delta</span>  =     <span class="hljs-number">1345</span>MB
<span class="hljs-attr">train_mem_cpu_peaked_delta</span> =        <span class="hljs-number">0</span>MB
<span class="hljs-attr">train_mem_gpu_alloc_delta</span>  =      <span class="hljs-number">693</span>MB
<span class="hljs-attr">train_mem_gpu_peaked_delta</span> =        <span class="hljs-number">7</span>MB`,wrap:!1}}),{c(){p=r("p"),p.textContent=$,y=n(),u(T.$$.fragment)},l(c){p=s(c,"P",{"data-svelte-h":!0}),d(p)!=="svelte-2hs27k"&&(p.textContent=$),y=a(c),h(T.$$.fragment,c)},m(c,A){l(c,p,A),l(c,y,A),g(T,c,A),M=!0},p:P,i(c){M||(f(T.$$.fragment,c),M=!0)},o(c){_(T.$$.fragment,c),M=!1},d(c){c&&(t(p),t(y)),b(T,c)}}}function LT(C){let p,$=`If your predictions or labels have different sequence length (for instance because you’re doing dynamic padding
in a token classification task) the predictions will be padded (on the right) to allow for concatenation into
one array. The padding index is -100.`;return{c(){p=r("p"),p.textContent=$},l(y){p=s(y,"P",{"data-svelte-h":!0}),d(p)!=="svelte-vq7haq"&&(p.textContent=$)},m(y,T){l(y,p,T)},p:P,d(y){y&&t(p)}}}function NT(C){let p,$=`If your predictions or labels have different sequence lengths (for instance because you’re doing dynamic
padding in a token classification task) the predictions will be padded (on the right) to allow for
concatenation into one array. The padding index is -100.`;return{c(){p=r("p"),p.textContent=$},l(y){p=s(y,"P",{"data-svelte-h":!0}),d(p)!=="svelte-1c3ugfb"&&(p.textContent=$)},m(y,T){l(y,p,T)},p:P,d(y){y&&t(p)}}}function FT(C){let p,$="Example:",y,T,M;return T=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRyYWluaW5nQXJndW1lbnRzJTBBJTBBYXJncyUyMCUzRCUyMFRyYWluaW5nQXJndW1lbnRzKCUyMndvcmtpbmdfZGlyJTIyKSUwQWFyZ3MlMjAlM0QlMjBhcmdzLnNldF9kYXRhbG9hZGVyKHRyYWluX2JhdGNoX3NpemUlM0QxNiUyQyUyMGV2YWxfYmF0Y2hfc2l6ZSUzRDY0KSUwQWFyZ3MucGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXpl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TrainingArguments

<span class="hljs-meta">&gt;&gt;&gt; </span>args = TrainingArguments(<span class="hljs-string">&quot;working_dir&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args = args.set_dataloader(train_batch_size=<span class="hljs-number">16</span>, eval_batch_size=<span class="hljs-number">64</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args.per_device_train_batch_size
<span class="hljs-number">16</span>`,wrap:!1}}),{c(){p=r("p"),p.textContent=$,y=n(),u(T.$$.fragment)},l(c){p=s(c,"P",{"data-svelte-h":!0}),d(p)!=="svelte-11lpom8"&&(p.textContent=$),y=a(c),h(T.$$.fragment,c)},m(c,A){l(c,p,A),l(c,y,A),g(T,c,A),M=!0},p:P,i(c){M||(f(T.$$.fragment,c),M=!0)},o(c){_(T.$$.fragment,c),M=!1},d(c){c&&(t(p),t(y)),b(T,c)}}}function zT(C){let p,$="Example:",y,T,M;return T=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRyYWluaW5nQXJndW1lbnRzJTBBJTBBYXJncyUyMCUzRCUyMFRyYWluaW5nQXJndW1lbnRzKCUyMndvcmtpbmdfZGlyJTIyKSUwQWFyZ3MlMjAlM0QlMjBhcmdzLnNldF9ldmFsdWF0ZShzdHJhdGVneSUzRCUyMnN0ZXBzJTIyJTJDJTIwc3RlcHMlM0QxMDApJTBBYXJncy5ldmFsX3N0ZXBz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TrainingArguments

<span class="hljs-meta">&gt;&gt;&gt; </span>args = TrainingArguments(<span class="hljs-string">&quot;working_dir&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args = args.set_evaluate(strategy=<span class="hljs-string">&quot;steps&quot;</span>, steps=<span class="hljs-number">100</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args.eval_steps
<span class="hljs-number">100</span>`,wrap:!1}}),{c(){p=r("p"),p.textContent=$,y=n(),u(T.$$.fragment)},l(c){p=s(c,"P",{"data-svelte-h":!0}),d(p)!=="svelte-11lpom8"&&(p.textContent=$),y=a(c),h(T.$$.fragment,c)},m(c,A){l(c,p,A),l(c,y,A),g(T,c,A),M=!0},p:P,i(c){M||(f(T.$$.fragment,c),M=!0)},o(c){_(T.$$.fragment,c),M=!1},d(c){c&&(t(p),t(y)),b(T,c)}}}function DT(C){let p,$="Example:",y,T,M;return T=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRyYWluaW5nQXJndW1lbnRzJTBBJTBBYXJncyUyMCUzRCUyMFRyYWluaW5nQXJndW1lbnRzKCUyMndvcmtpbmdfZGlyJTIyKSUwQWFyZ3MlMjAlM0QlMjBhcmdzLnNldF9sb2dnaW5nKHN0cmF0ZWd5JTNEJTIyc3RlcHMlMjIlMkMlMjBzdGVwcyUzRDEwMCklMEFhcmdzLmxvZ2dpbmdfc3RlcHM=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TrainingArguments

<span class="hljs-meta">&gt;&gt;&gt; </span>args = TrainingArguments(<span class="hljs-string">&quot;working_dir&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args = args.set_logging(strategy=<span class="hljs-string">&quot;steps&quot;</span>, steps=<span class="hljs-number">100</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args.logging_steps
<span class="hljs-number">100</span>`,wrap:!1}}),{c(){p=r("p"),p.textContent=$,y=n(),u(T.$$.fragment)},l(c){p=s(c,"P",{"data-svelte-h":!0}),d(p)!=="svelte-11lpom8"&&(p.textContent=$),y=a(c),h(T.$$.fragment,c)},m(c,A){l(c,p,A),l(c,y,A),g(T,c,A),M=!0},p:P,i(c){M||(f(T.$$.fragment,c),M=!0)},o(c){_(T.$$.fragment,c),M=!1},d(c){c&&(t(p),t(y)),b(T,c)}}}function WT(C){let p,$="Example:",y,T,M;return T=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRyYWluaW5nQXJndW1lbnRzJTBBJTBBYXJncyUyMCUzRCUyMFRyYWluaW5nQXJndW1lbnRzKCUyMndvcmtpbmdfZGlyJTIyKSUwQWFyZ3MlMjAlM0QlMjBhcmdzLnNldF9scl9zY2hlZHVsZXIobmFtZSUzRCUyMmNvc2luZSUyMiUyQyUyMHdhcm11cF9yYXRpbyUzRDAuMDUpJTBBYXJncy53YXJtdXBfcmF0aW8=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TrainingArguments

<span class="hljs-meta">&gt;&gt;&gt; </span>args = TrainingArguments(<span class="hljs-string">&quot;working_dir&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args = args.set_lr_scheduler(name=<span class="hljs-string">&quot;cosine&quot;</span>, warmup_ratio=<span class="hljs-number">0.05</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args.warmup_ratio
<span class="hljs-number">0.05</span>`,wrap:!1}}),{c(){p=r("p"),p.textContent=$,y=n(),u(T.$$.fragment)},l(c){p=s(c,"P",{"data-svelte-h":!0}),d(p)!=="svelte-11lpom8"&&(p.textContent=$),y=a(c),h(T.$$.fragment,c)},m(c,A){l(c,p,A),l(c,y,A),g(T,c,A),M=!0},p:P,i(c){M||(f(T.$$.fragment,c),M=!0)},o(c){_(T.$$.fragment,c),M=!1},d(c){c&&(t(p),t(y)),b(T,c)}}}function HT(C){let p,$="Example:",y,T,M;return T=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRyYWluaW5nQXJndW1lbnRzJTBBJTBBYXJncyUyMCUzRCUyMFRyYWluaW5nQXJndW1lbnRzKCUyMndvcmtpbmdfZGlyJTIyKSUwQWFyZ3MlMjAlM0QlMjBhcmdzLnNldF9vcHRpbWl6ZXIobmFtZSUzRCUyMmFkYW13X3RvcmNoJTIyJTJDJTIwYmV0YTElM0QwLjgpJTBBYXJncy5vcHRpbQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TrainingArguments

<span class="hljs-meta">&gt;&gt;&gt; </span>args = TrainingArguments(<span class="hljs-string">&quot;working_dir&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args = args.set_optimizer(name=<span class="hljs-string">&quot;adamw_torch&quot;</span>, beta1=<span class="hljs-number">0.8</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args.optim
<span class="hljs-string">&#x27;adamw_torch&#x27;</span>`,wrap:!1}}),{c(){p=r("p"),p.textContent=$,y=n(),u(T.$$.fragment)},l(c){p=s(c,"P",{"data-svelte-h":!0}),d(p)!=="svelte-11lpom8"&&(p.textContent=$),y=a(c),h(T.$$.fragment,c)},m(c,A){l(c,p,A),l(c,y,A),g(T,c,A),M=!0},p:P,i(c){M||(f(T.$$.fragment,c),M=!0)},o(c){_(T.$$.fragment,c),M=!1},d(c){c&&(t(p),t(y)),b(T,c)}}}function ET(C){let p,$=`Calling this method will set <code>self.push_to_hub</code> to <code>True</code>, which means the <code>output_dir</code> will begin a git
directory synced with the repo (determined by <code>model_id</code>) and the content will be pushed each time a save is
triggered (depending on<code>self.save_strategy</code>). Calling <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer.save_model">save_model()</a> will also trigger a push.`;return{c(){p=r("p"),p.innerHTML=$},l(y){p=s(y,"P",{"data-svelte-h":!0}),d(p)!=="svelte-42lln1"&&(p.innerHTML=$)},m(y,T){l(y,p,T)},p:P,d(y){y&&t(p)}}}function RT(C){let p,$="Example:",y,T,M;return T=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRyYWluaW5nQXJndW1lbnRzJTBBJTBBYXJncyUyMCUzRCUyMFRyYWluaW5nQXJndW1lbnRzKCUyMndvcmtpbmdfZGlyJTIyKSUwQWFyZ3MlMjAlM0QlMjBhcmdzLnNldF9wdXNoX3RvX2h1YiglMjJtZSUyRmF3ZXNvbWUtbW9kZWwlMjIpJTBBYXJncy5odWJfbW9kZWxfaWQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TrainingArguments

<span class="hljs-meta">&gt;&gt;&gt; </span>args = TrainingArguments(<span class="hljs-string">&quot;working_dir&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args = args.set_push_to_hub(<span class="hljs-string">&quot;me/awesome-model&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args.hub_model_id
<span class="hljs-string">&#x27;me/awesome-model&#x27;</span>`,wrap:!1}}),{c(){p=r("p"),p.textContent=$,y=n(),u(T.$$.fragment)},l(c){p=s(c,"P",{"data-svelte-h":!0}),d(p)!=="svelte-11lpom8"&&(p.textContent=$),y=a(c),h(T.$$.fragment,c)},m(c,A){l(c,p,A),l(c,y,A),g(T,c,A),M=!0},p:P,i(c){M||(f(T.$$.fragment,c),M=!0)},o(c){_(T.$$.fragment,c),M=!1},d(c){c&&(t(p),t(y)),b(T,c)}}}function BT(C){let p,$="Example:",y,T,M;return T=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRyYWluaW5nQXJndW1lbnRzJTBBJTBBYXJncyUyMCUzRCUyMFRyYWluaW5nQXJndW1lbnRzKCUyMndvcmtpbmdfZGlyJTIyKSUwQWFyZ3MlMjAlM0QlMjBhcmdzLnNldF9zYXZlKHN0cmF0ZWd5JTNEJTIyc3RlcHMlMjIlMkMlMjBzdGVwcyUzRDEwMCklMEFhcmdzLnNhdmVfc3RlcHM=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TrainingArguments

<span class="hljs-meta">&gt;&gt;&gt; </span>args = TrainingArguments(<span class="hljs-string">&quot;working_dir&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args = args.set_save(strategy=<span class="hljs-string">&quot;steps&quot;</span>, steps=<span class="hljs-number">100</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args.save_steps
<span class="hljs-number">100</span>`,wrap:!1}}),{c(){p=r("p"),p.textContent=$,y=n(),u(T.$$.fragment)},l(c){p=s(c,"P",{"data-svelte-h":!0}),d(p)!=="svelte-11lpom8"&&(p.textContent=$),y=a(c),h(T.$$.fragment,c)},m(c,A){l(c,p,A),l(c,y,A),g(T,c,A),M=!0},p:P,i(c){M||(f(T.$$.fragment,c),M=!0)},o(c){_(T.$$.fragment,c),M=!1},d(c){c&&(t(p),t(y)),b(T,c)}}}function ZT(C){let p,$="Calling this method will automatically set <code>self.do_predict</code> to <code>True</code>.";return{c(){p=r("p"),p.innerHTML=$},l(y){p=s(y,"P",{"data-svelte-h":!0}),d(p)!=="svelte-ci4epi"&&(p.innerHTML=$)},m(y,T){l(y,p,T)},p:P,d(y){y&&t(p)}}}function VT(C){let p,$="Example:",y,T,M;return T=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRyYWluaW5nQXJndW1lbnRzJTBBJTBBYXJncyUyMCUzRCUyMFRyYWluaW5nQXJndW1lbnRzKCUyMndvcmtpbmdfZGlyJTIyKSUwQWFyZ3MlMjAlM0QlMjBhcmdzLnNldF90ZXN0aW5nKGJhdGNoX3NpemUlM0QzMiklMEFhcmdzLnBlcl9kZXZpY2VfZXZhbF9iYXRjaF9zaXpl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TrainingArguments

<span class="hljs-meta">&gt;&gt;&gt; </span>args = TrainingArguments(<span class="hljs-string">&quot;working_dir&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args = args.set_testing(batch_size=<span class="hljs-number">32</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args.per_device_eval_batch_size
<span class="hljs-number">32</span>`,wrap:!1}}),{c(){p=r("p"),p.textContent=$,y=n(),u(T.$$.fragment)},l(c){p=s(c,"P",{"data-svelte-h":!0}),d(p)!=="svelte-11lpom8"&&(p.textContent=$),y=a(c),h(T.$$.fragment,c)},m(c,A){l(c,p,A),l(c,y,A),g(T,c,A),M=!0},p:P,i(c){M||(f(T.$$.fragment,c),M=!0)},o(c){_(T.$$.fragment,c),M=!1},d(c){c&&(t(p),t(y)),b(T,c)}}}function XT(C){let p,$="Calling this method will automatically set <code>self.do_train</code> to <code>True</code>.";return{c(){p=r("p"),p.innerHTML=$},l(y){p=s(y,"P",{"data-svelte-h":!0}),d(p)!=="svelte-102o7rb"&&(p.innerHTML=$)},m(y,T){l(y,p,T)},p:P,d(y){y&&t(p)}}}function GT(C){let p,$="Example:",y,T,M;return T=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRyYWluaW5nQXJndW1lbnRzJTBBJTBBYXJncyUyMCUzRCUyMFRyYWluaW5nQXJndW1lbnRzKCUyMndvcmtpbmdfZGlyJTIyKSUwQWFyZ3MlMjAlM0QlMjBhcmdzLnNldF90cmFpbmluZyhsZWFybmluZ19yYXRlJTNEMWUtNCUyQyUyMGJhdGNoX3NpemUlM0QzMiklMEFhcmdzLmxlYXJuaW5nX3JhdGU=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TrainingArguments

<span class="hljs-meta">&gt;&gt;&gt; </span>args = TrainingArguments(<span class="hljs-string">&quot;working_dir&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args = args.set_training(learning_rate=<span class="hljs-number">1e-4</span>, batch_size=<span class="hljs-number">32</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args.learning_rate
<span class="hljs-number">1e-4</span>`,wrap:!1}}),{c(){p=r("p"),p.textContent=$,y=n(),u(T.$$.fragment)},l(c){p=s(c,"P",{"data-svelte-h":!0}),d(p)!=="svelte-11lpom8"&&(p.textContent=$),y=a(c),h(T.$$.fragment,c)},m(c,A){l(c,p,A),l(c,y,A),g(T,c,A),M=!0},p:P,i(c){M||(f(T.$$.fragment,c),M=!0)},o(c){_(T.$$.fragment,c),M=!1},d(c){c&&(t(p),t(y)),b(T,c)}}}function YT(C){let p,$=`We strongly recommend to install PyTorch &gt;= 1.13 (nightly version at the time of writing) on your MacOS machine.
It has major fixes related to model correctness and performance improvements for transformer based models.
Please refer to <a href="https://github.com/pytorch/pytorch/issues/82707" rel="nofollow">https://github.com/pytorch/pytorch/issues/82707</a> for more details.`;return{c(){p=r("p"),p.innerHTML=$},l(y){p=s(y,"P",{"data-svelte-h":!0}),d(p)!=="svelte-l49dll"&&(p.innerHTML=$)},m(y,T){l(y,p,T)},p:P,d(y){y&&t(p)}}}function OT(C){let p,$,y,T,M,c,A,so,Wm,ss,Jf="Trainer",bd,io,Sf='The <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a> class provides an API for feature-complete training in PyTorch for most standard use cases. It’s used in most of the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example scripts</a>.',vd,lo,Uf='Before instantiating your <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>, create a <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> to access all the points of customization during training.',yd,co,Pf='The API supports distributed training on multiple GPUs/TPUs, mixed precision through <a href="https://github.com/NVIDIA/apex" rel="nofollow">NVIDIA Apex</a> and Native AMP for PyTorch.',Td,po,Lf='The <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a> contains the basic training loop which supports the above features. To inject custom behavior you can subclass them and override the following methods:',wd,mo,Nf=`<li><strong>get_train_dataloader</strong> — Creates the training DataLoader.</li> <li><strong>get_eval_dataloader</strong> — Creates the evaluation DataLoader.</li> <li><strong>get_test_dataloader</strong> — Creates the test DataLoader.</li> <li><strong>log</strong> — Logs information on the various objects watching training.</li> <li><strong>create_optimizer_and_scheduler</strong> — Sets up the optimizer and learning rate scheduler if they were not passed at
init. Note, that you can also subclass or override the <code>create_optimizer</code> and <code>create_scheduler</code> methods
separately.</li> <li><strong>create_optimizer</strong> — Sets up the optimizer if it wasn’t passed at init.</li> <li><strong>create_scheduler</strong> — Sets up the learning rate scheduler if it wasn’t passed at init.</li> <li><strong>compute_loss</strong> - Computes the loss on a batch of training inputs.</li> <li><strong>training_step</strong> — Performs a training step.</li> <li><strong>prediction_step</strong> — Performs an evaluation/test step.</li> <li><strong>evaluate</strong> — Runs an evaluation loop and returns metrics.</li> <li><strong>predict</strong> — Returns predictions (with metrics if labels are available) on a test set.</li>`,xd,Xe,Md,uo,Ff='Here is an example of how to customize <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a> to use a weighted loss (useful when you have an unbalanced training set):',$d,ho,kd,go,zf='Another way to customize the training loop behavior for the PyTorch <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a> is to use <a href="callback">callbacks</a> that can inspect the training loop state (for progress reporting, logging on TensorBoard or other ML platforms…) and take decisions (like early stopping).',Ad,$e,Ge,Yl,fo,Hm,is,Df="Trainer",qd,w,_o,Em,ls,Wf="Trainer is a simple but feature-complete training and eval loop for PyTorch, optimized for 🤗 Transformers.",Rm,ds,Hf="Important attributes:",Bm,cs,Ef=`<li><strong>model</strong> — Always points to the core model. If using a transformers model, it will be a <a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>
subclass.</li> <li><strong>model_wrapped</strong> — Always points to the most external model in case one or more other modules wrap the
original model. This is the model that should be used for the forward pass. For example, under <code>DeepSpeed</code>,
the inner model is wrapped in <code>DeepSpeed</code> and then again in <code>torch.nn.DistributedDataParallel</code>. If the inner
model hasn’t been wrapped, then <code>self.model_wrapped</code> is the same as <code>self.model</code>.</li> <li><strong>is_model_parallel</strong> — Whether or not a model has been switched to a model parallel mode (different from
data parallelism, this means some of the model layers are split on different GPUs).</li> <li><strong>place_model_on_device</strong> — Whether or not to automatically place the model on the device - it will be set
to <code>False</code> if model parallel or deepspeed is used, or if the default
<code>TrainingArguments.place_model_on_device</code> is overridden to return <code>False</code> .</li> <li><strong>is_in_train</strong> — Whether or not a model is currently running <code>train</code> (e.g. when <code>evaluate</code> is called while
in <code>train</code>)</li>`,Zm,Ye,bo,Vm,ps,Rf="Add a callback to the current list of <code>~transformer.TrainerCallback</code>.",Xm,Oe,vo,Gm,ms,Bf=`A helper wrapper that creates an appropriate context manager for <code>autocast</code> while feeding it the desired
arguments, depending on the situation.`,Ym,K,yo,Om,us,Zf="How the loss is computed by Trainer. By default, all models return the loss in the first element.",Qm,hs,Vf="Subclass and override for custom behavior.",Km,Qe,To,eu,gs,Xf="A helper wrapper to group together context managers.",tu,Ke,wo,ou,fs,Gf="Creates a draft of a model card using the information available to the <code>Trainer</code>.",nu,ee,xo,au,_s,Yf="Setup the optimizer.",ru,bs,Of=`We provide a reasonable default that works well. If you want to use something else, you can pass a tuple in the
Trainer’s init through <code>optimizers</code>, or subclass and override this method in a subclass.`,su,te,Mo,iu,vs,Qf="Setup the optimizer and the learning rate scheduler.",lu,ys,Kf=`We provide a reasonable default that works well. If you want to use something else, you can pass a tuple in the
Trainer’s init through <code>optimizers</code>, or subclass and override this method (or <code>create_optimizer</code> and/or
<code>create_scheduler</code>) in a subclass.`,du,et,$o,cu,Ts,e_=`Setup the scheduler. The optimizer of the trainer must have been set up either before this method is called or
passed as an argument.`,pu,H,ko,mu,ws,t_="Run evaluation and returns metrics.",uu,xs,o_=`The calling script will be responsible for providing a method to compute metrics, as they are task-dependent
(pass it to the init <code>compute_metrics</code> argument).`,hu,Ms,n_="You can also subclass and override this method to inject custom behavior.",gu,oe,Ao,fu,$s,a_="Prediction/evaluation loop, shared by <code>Trainer.evaluate()</code> and <code>Trainer.predict()</code>.",_u,ks,r_="Works both with or without labels.",bu,tt,qo,vu,As,s_=`For models that inherit from <a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>, uses that method to compute the number of floating point
operations for every backward + forward pass. If using another model, either implement such a method in the
model or subclass and override this method.`,yu,ne,Co,Tu,qs,i_="Get all parameter names that weight decay will be applied to",wu,Cs,l_=`Note that some models implement their own layernorm instead of calling nn.LayerNorm, weight decay could still
apply to those modules since this function only filter out instance of nn.LayerNorm`,xu,ae,jo,Mu,js,d_="Returns the evaluation <code>~torch.utils.data.DataLoader</code>.",$u,Is,c_="Subclass and override this method if you want to inject some custom behavior.",ku,ot,Io,Au,Js,p_="Returns the optimizer class and optimizer parameters based on the training arguments.",qu,re,Jo,Cu,Ss,m_="Returns the test <code>~torch.utils.data.DataLoader</code>.",ju,Us,u_="Subclass and override this method if you want to inject some custom behavior.",Iu,E,So,Ju,Ps,h_="Returns the training <code>~torch.utils.data.DataLoader</code>.",Su,Ls,g_=`Will use no sampler if <code>train_dataset</code> does not implement <code>__len__</code>, a random sampler (adapted to distributed
training if necessary) otherwise.`,Uu,Ns,f_="Subclass and override this method if you want to inject some custom behavior.",Pu,se,Uo,Lu,Fs,__=`Launch an hyperparameter search using <code>optuna</code> or <code>Ray Tune</code> or <code>SigOpt</code>. The optimized quantity is determined
by <code>compute_objective</code>, which defaults to a function returning the evaluation loss when no metric is provided,
the sum of all metrics otherwise.`,Nu,nt,Fu,ie,Po,zu,zs,b_="Initializes a git repo in <code>self.args.hub_model_id</code>.",Du,at,Wu,rt,Lo,Hu,Ds,v_="Initializes a git repo in <code>self.args.hub_model_id</code>.",Eu,st,No,Ru,Ws,y_=`Whether or not this process is the local (e.g., on one machine if training in a distributed fashion on several
machines) main process.`,Bu,it,Fo,Zu,Hs,T_=`Whether or not this process is the global main process (when training in a distributed fashion on several
machines, this is only going to be <code>True</code> for one process).`,Vu,le,zo,Xu,Es,w_="Log <code>logs</code> on the various objects watching training.",Gu,Rs,x_="Subclass and override this method to inject custom behavior.",Yu,I,Do,Ou,Bs,M_="Log metrics in a specially formatted way",Qu,Zs,$_="Under distributed environment this is done only for a process with rank 0.",Ku,Vs,k_="Notes on memory reports:",eh,Xs,A_="In order to get memory usage report you need to install <code>psutil</code>. You can do that with <code>pip install psutil</code>.",th,lt,oh,Gs,q_="<strong>Understanding the reports:</strong>",nh,Ys,C_=`<li>the first segment, e.g., <code>train__</code>, tells you which stage the metrics are for. Reports starting with <code>init_</code>
will be added to the first stage that gets run. So that if only evaluation is run, the memory usage for the
<code>__init__</code> will be reported along with the <code>eval_</code> metrics.</li> <li>the third segment, is either <code>cpu</code> or <code>gpu</code>, tells you whether it’s the general RAM or the gpu0 memory
metric.</li> <li><code>*_alloc_delta</code> - is the difference in the used/allocated memory counter between the end and the start of the
stage - it can be negative if a function released more memory than it allocated.</li> <li><code>*_peaked_delta</code> - is any extra memory that was consumed and then freed - relative to the current allocated
memory counter - it is never negative. When you look at the metrics of any stage you add up <code>alloc_delta</code> +
<code>peaked_delta</code> and you know how much memory was needed to complete that stage.</li>`,ah,Os,j_=`The reporting happens only for process of rank 0 and gpu 0 (if there is a gpu). Typically this is enough since the
main process does the bulk of work, but it could be not quite so if model parallel is used and then other GPUs may
use a different amount of gpu memory. This is also not the same under DataParallel where gpu0 may require much more
memory than the rest since it stores the gradient and optimizer states for all participating GPUS. Perhaps in the
future these reports will evolve to measure those too.`,rh,Qs,I_=`The CPU RAM metric measures RSS (Resident Set Size) includes both the memory which is unique to the process and the
memory shared with other processes. It is important to note that it does not include swapped out memory, so the
reports could be imprecise.`,sh,Ks,J_=`The CPU peak memory is measured using a sampling thread. Due to python’s GIL it may miss some of the peak memory if
that thread didn’t get a chance to run when the highest memory was used. Therefore this report can be less than
reality. Using <code>tracemalloc</code> would have reported the exact peak memory, but it doesn’t report memory allocations
outside of python. So if some C++ CUDA extension allocated its own memory it won’t be reported. And therefore it
was dropped in favor of the memory sampling approach, which reads the current process memory usage.`,ih,ei,S_=`The GPU allocated and peak memory reporting is done with <code>torch.cuda.memory_allocated()</code> and
<code>torch.cuda.max_memory_allocated()</code>. This metric reports only “deltas” for pytorch-specific allocations, as
<code>torch.cuda</code> memory management system doesn’t track any memory allocated outside of pytorch. For example, the very
first cuda call typically loads CUDA kernels, which may take from 0.5 to 2GB of GPU memory.`,lh,ti,U_=`Note that this tracker doesn’t account for memory allocations outside of <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>’s <code>__init__</code>, <code>train</code>,
<code>evaluate</code> and <code>predict</code> calls.`,dh,oi,P_=`Because <code>evaluation</code> calls may happen during <code>train</code>, we can’t handle nested invocations because
<code>torch.cuda.max_memory_allocated</code> is a single counter, so if it gets reset by a nested eval call, <code>train</code>’s tracker
will report incorrect info. If this <a href="https://github.com/pytorch/pytorch/issues/16266" rel="nofollow">pytorch issue</a> gets resolved
it will be possible to change this class to be re-entrant. Until then we will only track the outer level of
<code>train</code>, <code>evaluate</code> and <code>predict</code> methods. Which means that if <code>eval</code> is called during <code>train</code>, it’s the latter
that will account for its memory usage and that of the former.`,ch,ni,L_=`This also means that if any other tool that is used along the <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a> calls
<code>torch.cuda.reset_peak_memory_stats</code>, the gpu peak memory stats could be invalid. And the <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a> will disrupt
the normal behavior of any such tools that rely on calling <code>torch.cuda.reset_peak_memory_stats</code> themselves.`,ph,ai,N_="For best performance you may want to consider turning the memory profiling off for production runs.",mh,dt,Wo,uh,ri,F_="Reformat Trainer metrics values to a human-readable format",hh,ct,Ho,gh,si,z_=`Helper to get number of samples in a <code>~torch.utils.data.DataLoader</code> by accessing its dataset. When
dataloader.dataset does not exist or has no length, estimates as best it can`,fh,pt,Eo,_h,ii,D_="Helper to get number of tokens in a <code>~torch.utils.data.DataLoader</code> by enumerating dataloader.",bh,de,Ro,vh,li,W_="Remove a callback from the current list of <code>~transformer.TrainerCallback</code> and returns it.",yh,di,H_="If the callback is not found, returns <code>None</code> (and no error is raised).",Th,N,Bo,wh,ci,E_="Run prediction and returns predictions and potential metrics.",xh,pi,R_=`Depending on the dataset and your use case, your test dataset may contain labels. In that case, this method
will also return metrics, like in <code>evaluate()</code>.`,Mh,mt,$h,mi,B_="Returns: <em>NamedTuple</em> A namedtuple with the following keys:",kh,ui,Z_=`<li>predictions (<code>np.ndarray</code>): The predictions on <code>test_dataset</code>.</li> <li>label_ids (<code>np.ndarray</code>, <em>optional</em>): The labels (if the dataset contained some).</li> <li>metrics (<code>Dict[str, float]</code>, <em>optional</em>): The potential dictionary of metrics (if the dataset contained
labels).</li>`,Ah,ce,Zo,qh,hi,V_="Prediction/evaluation loop, shared by <code>Trainer.evaluate()</code> and <code>Trainer.predict()</code>.",Ch,gi,X_="Works both with or without labels.",jh,pe,Vo,Ih,fi,G_="Perform an evaluation step on <code>model</code> using <code>inputs</code>.",Jh,_i,Y_="Subclass and override to inject custom behavior.",Sh,ut,Xo,Uh,bi,O_="Upload <code>self.model</code> and <code>self.tokenizer</code> to the 🤗 model hub on the repo <code>self.args.hub_model_id</code>.",Ph,ht,Go,Lh,vi,Q_="Remove a callback from the current list of <code>~transformer.TrainerCallback</code>.",Nh,R,Yo,Fh,yi,K_="Save metrics into a json file for that split, e.g. <code>train_results.json</code>.",zh,Ti,eb="Under distributed environment this is done only for a process with rank 0.",Dh,wi,tb=`To understand the metrics please read the docstring of <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer.log_metrics">log_metrics()</a>. The only difference is that raw
unformatted numbers are saved in the current method.`,Wh,me,Oo,Hh,xi,ob="Will save the model, so you can reload it using <code>from_pretrained()</code>.",Eh,Mi,nb="Will only save from the main process.",Rh,ue,Qo,Bh,$i,ab="Saves the Trainer state, since Trainer.save_model saves only the tokenizer with the model",Zh,ki,rb="Under distributed environment this is done only for a process with rank 0.",Vh,gt,Ko,Xh,Ai,sb="Main training entry point.",Gh,he,en,Yh,qi,ib="Perform a training step on a batch of inputs.",Oh,Ci,lb="Subclass and override to inject custom behavior.",Cd,ke,ft,Ol,tn,Qh,ji,db="Seq2SeqTrainer",jd,O,on,Kh,B,nn,eg,Ii,cb="Run evaluation and returns metrics.",tg,Ji,pb=`The calling script will be responsible for providing a method to compute metrics, as they are task-dependent
(pass it to the init <code>compute_metrics</code> argument).`,og,Si,mb="You can also subclass and override this method to inject custom behavior.",ng,F,an,ag,Ui,ub="Run prediction and returns predictions and potential metrics.",rg,Pi,hb=`Depending on the dataset and your use case, your test dataset may contain labels. In that case, this method
will also return metrics, like in <code>evaluate()</code>.`,sg,_t,ig,Li,gb="Returns: <em>NamedTuple</em> A namedtuple with the following keys:",lg,Ni,fb=`<li>predictions (<code>np.ndarray</code>): The predictions on <code>test_dataset</code>.</li> <li>label_ids (<code>np.ndarray</code>, <em>optional</em>): The labels (if the dataset contained some).</li> <li>metrics (<code>Dict[str, float]</code>, <em>optional</em>): The potential dictionary of metrics (if the dataset contained
labels).</li>`,Id,Ae,bt,Ql,rn,dg,Fi,_b="TrainingArguments",Jd,q,sn,cg,zi,bb=`TrainingArguments is the subset of the arguments we use in our example scripts <strong>which relate to the training loop
itself</strong>.`,pg,Di,vb=`Using <a href="/docs/transformers/v4.34.0/en/internal/trainer_utils#transformers.HfArgumentParser">HfArgumentParser</a> we can turn this class into
<a href="https://docs.python.org/3/library/argparse#module-argparse" rel="nofollow">argparse</a> arguments that can be specified on the
command line.`,mg,D,ln,ug,Wi,yb=`Returns the log level to be used depending on whether this process is the main process of node 0, main process
of node non-0, or a non-main process.`,hg,Hi,Tb=`For the main process the log level defaults to the logging level set (<code>logging.WARNING</code> if you didn’t do
anything) unless overridden by <code>log_level</code> argument.`,gg,Ei,wb=`For the replica processes the log level defaults to <code>logging.WARNING</code> unless overridden by <code>log_level_replica</code>
argument.`,fg,Ri,xb="The choice between the main and replica process settings is made according to the return value of <code>should_log</code>.",_g,vt,dn,bg,Bi,Mb="Get number of steps used for a linear warmup.",vg,ge,cn,yg,Zi,$b=`A context manager for torch distributed environment where on needs to do something on the main process, while
blocking replicas, and when it’s finished releasing the replicas.`,Tg,Vi,kb=`One such use is for <code>datasets</code>’s <code>map</code> feature which to be efficient should be run once on the main process,
which upon completion saves a cached version of results and which then automatically gets loaded by the
replicas.`,wg,fe,pn,xg,Xi,Ab="A method that regroups all arguments linked to the dataloaders creation.",Mg,yt,$g,_e,mn,kg,Gi,qb="A method that regroups all arguments linked to the evaluation.",Ag,Tt,qg,be,un,Cg,Yi,Cb="A method that regroups all arguments linked to the evaluation.",jg,wt,Ig,ve,hn,Jg,Oi,jb="A method that regroups all arguments linked to the learning rate scheduler and its hyperparameters.",Sg,xt,Ug,ye,gn,Pg,Qi,Ib="A method that regroups all arguments linked to the optimizer and its hyperparameters.",Lg,Mt,Ng,Z,fn,Fg,Ki,Jb="A method that regroups all arguments linked to synchronizing checkpoints with the Hub.",zg,$t,Dg,kt,Wg,Te,_n,Hg,el,Sb="A method that regroups all arguments linked to the evaluation.",Eg,At,Rg,V,bn,Bg,tl,Ub="A method that regroups all basic arguments linked to testing on a held-out dataset.",Zg,qt,Vg,Ct,Xg,X,vn,Gg,ol,Pb="A method that regroups all basic arguments linked to the training.",Yg,jt,Og,It,Qg,Jt,yn,Kg,nl,Lb=`Serializes this instance while replace <code>Enum</code> by their values (for JSON serialization support). It obfuscates
the token values by removing their value.`,ef,St,Tn,tf,al,Nb="Serializes this instance to a JSON string.",of,Ut,wn,nf,rl,Fb="Sanitized serialization to use with TensorBoard’s hparams",Sd,qe,Pt,Kl,xn,af,sl,zb="Seq2SeqTrainingArguments",Ud,W,Mn,rf,il,Db=`TrainingArguments is the subset of the arguments we use in our example scripts <strong>which relate to the training loop
itself</strong>.`,sf,ll,Wb=`Using <a href="/docs/transformers/v4.34.0/en/internal/trainer_utils#transformers.HfArgumentParser">HfArgumentParser</a> we can turn this class into
<a href="https://docs.python.org/3/library/argparse#module-argparse" rel="nofollow">argparse</a> arguments that can be specified on the
command line.`,lf,Lt,$n,df,dl,Hb=`Serializes this instance while replace <code>Enum</code> by their values and <code>GenerationConfig</code> by dictionaries (for JSON
serialization support). It obfuscates the token values by removing their value.`,Pd,Ce,Nt,ed,kn,cf,cl,Eb="Checkpoints",Ld,An,Rb=`By default, <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a> will save all checkpoints in the <code>output_dir</code> you set in the
<a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> you are using. Those will go in subfolder named <code>checkpoint-xxx</code> with xxx
being the step at which the training was at.`,Nd,qn,Bb='Resuming training from a checkpoint can be done when calling <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer.train">Trainer.train()</a> with either:',Fd,Cn,Zb=`<li><code>resume_from_checkpoint=True</code> which will resume training from the latest checkpoint</li> <li><code>resume_from_checkpoint=checkpoint_dir</code> which will resume training from the specific checkpoint in the directory
passed.</li>`,zd,jn,Vb=`In addition, you can easily save your checkpoints on the Model Hub when using <code>push_to_hub=True</code>. By default, all
the models saved in intermediate checkpoints are saved in different commits, but not the optimizer state. You can adapt
the <code>hub-strategy</code> value of your <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> to either:`,Dd,In,Xb=`<li><code>&quot;checkpoint&quot;</code>: the latest checkpoint is also pushed in a subfolder named last-checkpoint, allowing you to
resume training easily with <code>trainer.train(resume_from_checkpoint=&quot;output_dir/last-checkpoint&quot;)</code>.</li> <li><code>&quot;all_checkpoints&quot;</code>: all checkpoints are pushed like they appear in the output folder (so you will get one
checkpoint folder per folder in your final repository)</li>`,Wd,je,Ft,td,Jn,pf,pl,Gb="Logging",Hd,Sn,Yb='By default <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a> will use <code>logging.INFO</code> for the main process and <code>logging.WARNING</code> for the replicas if any.',Ed,Un,Ob=`These defaults can be overridden to use any of the 5 <code>logging</code> levels with <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>’s
arguments:`,Rd,Pn,Qb="<li><code>log_level</code> - for the main process</li> <li><code>log_level_replica</code> - for the replicas</li>",Bd,Ln,Kb=`Further, if <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>’s <code>log_on_each_node</code> is set to <code>False</code> only the main node will
use the log level settings for its main process, all other nodes will use the log level settings for replicas.`,Zd,Nn,ev=`Note that <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a> is going to set <code>transformers</code>’s log level separately for each node in its
<code>Trainer.__init__()</code>. So you may want to set this sooner (see the next example) if you tap into other
<code>transformers</code> functionality before creating the <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a> object.`,Vd,Fn,tv="Here is an example of how this can be used in an application:",Xd,zn,Gd,Dn,ov=`And then if you only want to see warnings on the main node and all other nodes to not print any most likely duplicated
warnings you could run it as:`,Yd,Wn,Od,Hn,nv=`In the multi-node environment if you also don’t want the logs to repeat for each node’s main process, you will want to
change the above to:`,Qd,En,Kd,Rn,av=`and then only the main process of the first node will log at the “warning” level, and all other processes on the main
node and all processes on other nodes will log at the “error” level.`,ec,Bn,rv="If you need your application to be as quiet as possible you could do:",tc,Zn,oc,Vn,sv="(add <code>--log_on_each_node 0</code> if on multi-node environment)",nc,Ie,zt,od,Xn,mf,ml,iv="Randomness",ac,Gn,lv=`When resuming from a checkpoint generated by <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a> all efforts are made to restore the
<em>python</em>, <em>numpy</em> and <em>pytorch</em> RNG states to the same states as they were at the moment of saving that checkpoint,
which should make the “stop and resume” style of training as close as possible to non-stop training.`,rc,Yn,dv=`However, due to various default non-deterministic pytorch settings this might not fully work. If you want full
determinism please refer to <a href="https://pytorch.org/docs/stable/notes/randomness" rel="nofollow">Controlling sources of randomness</a>. As explained in the document, that some of those settings
that make things deterministic (.e.g., <code>torch.backends.cudnn.deterministic</code>) may slow things down, therefore this
can’t be done by default, but you can enable those yourself if needed.`,sc,Je,Dt,nd,On,uf,ul,cv="Specific GPUs Selection",ic,Qn,pv="Let’s discuss how you can tell your program which GPUs are to be used and in what order.",lc,Kn,mv='When using <a href="https://pytorch.org/docs/stable/generated/torch.nn.parallel.DistributedDataParallel.html" rel="nofollow"><code>DistributedDataParallel</code></a> to use only a subset of your GPUs, you simply specify the number of GPUs to use. For example, if you have 4 GPUs, but you wish to use the first 2 you can do:',dc,ea,cc,ta,uv='if you have either <a href="https://github.com/huggingface/accelerate" rel="nofollow"><code>accelerate</code></a> or <a href="https://github.com/microsoft/DeepSpeed" rel="nofollow"><code>deepspeed</code></a> installed you can also accomplish the same by using one of:',pc,oa,mc,na,uc,aa,hv='You don’t need to use the Accelerate or <a href="Deepspeed">the Deepspeed integration</a> features to use these launchers.',hc,ra,gv="Until now you were able to tell the program how many GPUs to use. Now let’s discuss how to select specific GPUs and control their order.",gc,sa,fv="The following environment variables help you control which GPUs to use and their order.",fc,ia,_v="<strong><code>CUDA_VISIBLE_DEVICES</code></strong>",_c,la,bv="If you have multiple GPUs and you’d like to use only 1 or a few of those GPUs, set the environment variable <code>CUDA_VISIBLE_DEVICES</code> to a list of the GPUs to be used.",bc,da,vv="For example, let’s say you have 4 GPUs: 0, 1, 2 and 3. To run only on the physical GPUs 0 and 2, you can do:",vc,ca,yc,pa,yv="So now pytorch will see only 2 GPUs, where your physical GPUs 0 and 2 are mapped to <code>cuda:0</code> and <code>cuda:1</code> correspondingly.",Tc,ma,Tv="You can even change their order:",wc,ua,xc,ha,wv="Here your physical GPUs 0 and 2 are mapped to <code>cuda:1</code> and <code>cuda:0</code> correspondingly.",Mc,ga,xv='The above examples were all for <code>DistributedDataParallel</code> use pattern, but the same method works for <a href="https://pytorch.org/docs/stable/generated/torch.nn.DataParallel.html" rel="nofollow"><code>DataParallel</code></a> as well:',$c,fa,kc,_a,Mv="To emulate an environment without GPUs simply set this environment variable to an empty value like so:",Ac,ba,qc,va,$v="As with any environment variable you can, of course, export those instead of adding these to the command line, as in:",Cc,ya,jc,Ta,kv="but this approach can be confusing since you may forget you set up the environment variable earlier and not understand why the wrong GPUs are used. Therefore, it’s a common practice to set the environment variable just for a specific run on the same command line as it’s shown in most examples of this section.",Ic,wa,Av="<strong><code>CUDA_DEVICE_ORDER</code></strong>",Jc,xa,qv="There is an additional environment variable <code>CUDA_DEVICE_ORDER</code> that controls how the physical devices are ordered. The two choices are:",Sc,Ma,Cv="<li>ordered by PCIe bus IDs (matches <code>nvidia-smi</code>’s order) - this is the default.</li>",Uc,$a,Pc,Wt,jv="<li>ordered by GPU compute capabilities</li>",Lc,ka,Nc,Aa,Iv="Most of the time you don’t need to care about this environment variable, but it’s very helpful if you have a lopsided setup where you have an old and a new GPUs physically inserted in such a way so that the slow older card appears to be first. One way to fix that is to swap the cards. But if you can’t swap the cards (e.g., if the cooling of the devices gets impacted) then setting <code>CUDA_DEVICE_ORDER=FASTEST_FIRST</code> will always put the newer faster card first. It’ll be somewhat confusing though since <code>nvidia-smi</code> will still report them in the PCIe order.",Fc,qa,Jv="The other solution to swapping the order is to use:",zc,Ca,Dc,ja,Sv="In this example we are working with just 2 GPUs, but of course the same would apply to as many GPUs as your computer has.",Wc,Ia,Uv="Also if you do set this environment variable it’s the best to set it in your <code>~/.bashrc</code> file or some other startup config file and forget about it.",Hc,Se,Ht,ad,Ja,hf,hl,Pv="Trainer Integrations",Ec,Sa,Lv=`The <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a> has been extended to support libraries that may dramatically improve your training
time and fit much bigger models.`,Rc,Ua,Nv=`Currently it supports third party solutions, <a href="https://github.com/microsoft/DeepSpeed" rel="nofollow">DeepSpeed</a> and <a href="https://pytorch.org/docs/stable/fsdp.html" rel="nofollow">PyTorch FSDP</a>, which implement parts of the paper <a href="https://arxiv.org/abs/1910.02054" rel="nofollow">ZeRO: Memory Optimizations
Toward Training Trillion Parameter Models, by Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, Yuxiong He</a>.`,Bc,Pa,Fv='This provided support is new and experimental as of this writing. While the support for DeepSpeed and PyTorch FSDP is active and we welcome issues around it, we don’t support the FairScale integration anymore since it has been integrated in PyTorch main (see the <a href="#pytorch-fully-sharded-data-parallel">PyTorch FSDP integration</a>)',Zc,gl,Vc,Ue,Et,rd,La,gf,fl,zv="CUDA Extension Installation Notes",Xc,Na,Dv="As of this writing, Deepspeed require compilation of CUDA C++ code, before it can be used.",Gc,Fa,Wv=`While all installation issues should be dealt with through the corresponding GitHub Issues of <a href="https://github.com/microsoft/DeepSpeed/issues" rel="nofollow">Deepspeed</a>, there are a few common issues that one may encounter while building
any PyTorch extension that needs to build CUDA extensions.`,Yc,za,Hv="Therefore, if you encounter a CUDA-related build issue while doing the following:",Oc,Da,Qc,Wa,Ev="please, read the following notes first.",Kc,Ha,Rv=`In these notes we give examples for what to do when <code>pytorch</code> has been built with CUDA <code>10.2</code>. If your situation is
different remember to adjust the version number to the one you are after.`,ep,Pe,Rt,sd,Ea,ff,_l,Bv="Possible problem #1",tp,Ra,Zv=`While, Pytorch comes with its own CUDA toolkit, to build these two projects you must have an identical version of CUDA
installed system-wide.`,op,Ba,Vv=`For example, if you installed <code>pytorch</code> with <code>cudatoolkit==10.2</code> in the Python environment, you also need to have
CUDA <code>10.2</code> installed system-wide.`,np,Za,Xv=`The exact location may vary from system to system, but <code>/usr/local/cuda-10.2</code> is the most common location on many
Unix systems. When CUDA is correctly set up and added to the <code>PATH</code> environment variable, one can find the
installation location by doing:`,ap,Va,rp,Xa,Gv=`If you don’t have CUDA installed system-wide, install it first. You will find the instructions by using your favorite
search engine. For example, if you’re on Ubuntu you may want to search for: <a href="https://www.google.com/search?q=ubuntu+cuda+10.2+install" rel="nofollow">ubuntu cuda 10.2 install</a>.`,sp,Le,Bt,id,Ga,_f,bl,Yv="Possible problem #2",ip,Ya,Ov=`Another possible common problem is that you may have more than one CUDA toolkit installed system-wide. For example you
may have:`,lp,Oa,dp,Qa,Qv=`Now, in this situation you need to make sure that your <code>PATH</code> and <code>LD_LIBRARY_PATH</code> environment variables contain
the correct paths to the desired CUDA version. Typically, package installers will set these to contain whatever the
last version was installed. If you encounter the problem, where the package build fails because it can’t find the right
CUDA version despite you having it installed system-wide, it means that you need to adjust the 2 aforementioned
environment variables.`,cp,Ka,Kv="First, you may look at their contents:",pp,er,mp,tr,ey="so you get an idea of what is inside.",up,or,ty="It’s possible that <code>LD_LIBRARY_PATH</code> is empty.",hp,nr,oy=`<code>PATH</code> lists the locations of where executables can be found and <code>LD_LIBRARY_PATH</code> is for where shared libraries
are to looked for. In both cases, earlier entries have priority over the later ones. <code>:</code> is used to separate multiple
entries.`,gp,ar,ny=`Now, to tell the build program where to find the specific CUDA toolkit, insert the desired paths to be listed first by
doing:`,fp,rr,_p,sr,ay="Note that we aren’t overwriting the existing values, but prepending instead.",bp,ir,ry=`Of course, adjust the version number, the full path if need be. Check that the directories you assign actually do
exist. <code>lib64</code> sub-directory is where the various CUDA <code>.so</code> objects, like <code>libcudart.so</code> reside, it’s unlikely
that your system will have it named differently, but if it is adjust it to reflect your reality.`,vp,Ne,Zt,ld,lr,bf,vl,sy="Possible problem #3",yp,dr,iy=`Some older CUDA versions may refuse to build with newer compilers. For example, you my have <code>gcc-9</code> but it wants
<code>gcc-7</code>.`,Tp,cr,ly="There are various ways to go about it.",wp,pr,dy="If you can install the latest CUDA toolkit it typically should support the newer compiler.",xp,mr,cy=`Alternatively, you could install the lower version of the compiler in addition to the one you already have, or you may
already have it but it’s not the default one, so the build system can’t see it. If you have <code>gcc-7</code> installed but the
build system complains it can’t find it, the following might do the trick:`,Mp,ur,$p,hr,py=`Here, we are making a symlink to <code>gcc-7</code> from <code>/usr/local/cuda-10.2/bin/gcc</code> and since
<code>/usr/local/cuda-10.2/bin/</code> should be in the <code>PATH</code> environment variable (see the previous problem’s solution), it
should find <code>gcc-7</code> (and <code>g++7</code>) and then the build will succeed.`,kp,gr,my="As always make sure to edit the paths in the example to match your situation.",Ap,Fe,Vt,dd,fr,vf,yl,uy="PyTorch Fully Sharded Data parallel",qp,_r,hy=`To accelerate training huge models on larger batch sizes, we can use a fully sharded data parallel model.
This type of data parallel paradigm enables fitting more data and larger models by sharding the optimizer states, gradients and parameters.
To read more about it and the benefits, check out the <a href="https://pytorch.org/blog/introducing-pytorch-fully-sharded-data-parallel-api/" rel="nofollow">Fully Sharded Data Parallel blog</a>.
We have integrated the latest PyTorch’s Fully Sharded Data Parallel (FSDP) training feature.
All you need to do is enable it through the config.`,Cp,br,gy=`<strong>Required PyTorch version for FSDP support</strong>: PyTorch Nightly (or 1.12.0 if you read this after it has been released)
as the model saving with FSDP activated is only available with recent fixes.`,jp,vr,fy="<strong>Usage</strong>:",Ip,yr,_y=`<li><p>Make sure you have added the distributed launcher
<code>-m torch.distributed.launch --nproc_per_node=NUMBER_OF_GPUS_YOU_HAVE</code> if you haven’t been using it already.</p></li> <li><p><strong>Sharding Strategy</strong>:</p> <ul><li>FULL_SHARD : Shards optimizer states + gradients + model parameters across data parallel workers/GPUs.
For this, add <code>--fsdp full_shard</code> to the command line arguments.</li> <li>SHARD_GRAD_OP : Shards optimizer states + gradients across data parallel workers/GPUs.
For this, add <code>--fsdp shard_grad_op</code> to the command line arguments.</li> <li>NO_SHARD : No sharding. For this, add <code>--fsdp no_shard</code> to the command line arguments.</li></ul></li> <li><p>To offload the parameters and gradients to the CPU,
add <code>--fsdp &quot;full_shard offload&quot;</code> or <code>--fsdp &quot;shard_grad_op offload&quot;</code> to the command line arguments.</p></li> <li><p>To automatically recursively wrap layers with FSDP using <code>default_auto_wrap_policy</code>,
add <code>--fsdp &quot;full_shard auto_wrap&quot;</code> or <code>--fsdp &quot;shard_grad_op auto_wrap&quot;</code> to the command line arguments.</p></li> <li><p>To enable both CPU offloading and auto wrapping,
add <code>--fsdp &quot;full_shard offload auto_wrap&quot;</code> or <code>--fsdp &quot;shard_grad_op offload auto_wrap&quot;</code> to the command line arguments.</p></li> <li><p>Remaining FSDP config is passed via <code>--fsdp_config &lt;path_to_fsdp_config.json&gt;</code>. It is either a location of
FSDP json config file (e.g., <code>fsdp_config.json</code>) or an already loaded json file as <code>dict</code>.</p> <ul><li>If auto wrapping is enabled, you can either use transformer based auto wrap policy or size based auto wrap policy.<ul><li>For transformer based auto wrap policy, it is recommended to specify <code>fsdp_transformer_layer_cls_to_wrap</code> in the config file. If not specified, the default value is <code>model._no_split_modules</code> when available.
This specifies the list of transformer layer class name (case-sensitive) to wrap ,e.g, <code>BertLayer</code>, <code>GPTJBlock</code>, <code>T5Block</code> …
This is important because submodules that share weights (e.g., embedding layer) should not end up in different FSDP wrapped units.
Using this policy, wrapping happens for each block containing Multi-Head Attention followed by couple of MLP layers.
Remaining layers including the shared embeddings are conveniently wrapped in same outermost FSDP unit.
Therefore, use this for transformer based models.</li> <li>For size based auto wrap policy, please add <code>fsdp_min_num_params</code> in the config file.
It specifies FSDP’s minimum number of parameters for auto wrapping.</li></ul></li> <li><code>fsdp_backward_prefetch</code> can be specified in the config file. It controls when to prefetch next set of parameters.
<code>backward_pre</code> and <code>backward_pos</code> are available options.
For more information refer <code>torch.distributed.fsdp.fully_sharded_data_parallel.BackwardPrefetch</code></li> <li><code>fsdp_forward_prefetch</code> can be specified in the config file. It controls when to prefetch next set of parameters.
If <code>&quot;True&quot;</code>, FSDP explicitly prefetches the next upcoming all-gather while executing in the forward pass.</li> <li><code>limit_all_gathers</code> can be specified in the config file.
If <code>&quot;True&quot;</code>, FSDP explicitly synchronizes the CPU thread to prevent too many in-flight all-gathers.</li> <li><code>activation_checkpointing</code> can be specified in the config file.
If <code>&quot;True&quot;</code>, FSDP activation checkpointing is a technique to reduce memory usage by clearing activations of
certain layers and recomputing them during a backward pass. Effectively, this trades extra computation time
for reduced memory usage.</li></ul></li>`,Jp,Tr,by="<strong>Few caveats to be aware of</strong>",Sp,wr,vy=`<li>it is incompatible with <code>generate</code>, thus is incompatible with <code>--predict_with_generate</code>
in all seq2seq/clm scripts (translation/summarization/clm etc.).<br/>
Please refer issue <a href="https://github.com/huggingface/transformers/issues/21667" rel="nofollow">#21667</a></li>`,Up,ze,Xt,cd,xr,yf,Tl,yy="PyTorch/XLA Fully Sharded Data parallel",Pp,Mr,Ty=`For all the TPU users, great news! PyTorch/XLA now supports FSDP.
All the latest Fully Sharded Data Parallel (FSDP) training are supported.
For more information refer to the <a href="https://pytorch.org/blog/scaling-pytorch-models-on-cloud-tpus-with-fsdp/" rel="nofollow">Scaling PyTorch models on Cloud TPUs with FSDP</a> and <a href="https://github.com/pytorch/xla/tree/master/torch_xla/distributed/fsdp" rel="nofollow">PyTorch/XLA implementation of FSDP</a>
All you need to do is enable it through the config.`,Lp,$r,wy="<strong>Required PyTorch/XLA version for FSDP support</strong>: &gt;=2.0",Np,kr,xy="<strong>Usage</strong>:",Fp,Ar,My="Pass <code>--fsdp &quot;full shard&quot;</code> along with following changes to be made in <code>--fsdp_config &lt;path_to_fsdp_config.json&gt;</code>:",zp,qr,$y=`<li><code>xla</code> should be set to <code>True</code> to enable PyTorch/XLA FSDP.</li> <li><code>xla_fsdp_settings</code> The value is a dictionary which stores the XLA FSDP wrapping parameters.
For a complete list of options, please see <a href="https://github.com/pytorch/xla/blob/master/torch_xla/distributed/fsdp/xla_fully_sharded_data_parallel.py" rel="nofollow">here</a>.</li> <li><code>xla_fsdp_grad_ckpt</code>. When <code>True</code>, uses gradient checkpointing over each nested XLA FSDP wrapped layer.
This setting can only be used when the xla flag is set to true, and an auto wrapping policy is specified through
<code>fsdp_min_num_params</code> or <code>fsdp_transformer_layer_cls_to_wrap</code>.</li> <li>You can either use transformer based auto wrap policy or size based auto wrap policy.<ul><li>For transformer based auto wrap policy, it is recommended to specify <code>fsdp_transformer_layer_cls_to_wrap</code> in the config file. If not specified, the default value is <code>model._no_split_modules</code> when available.
This specifies the list of transformer layer class name (case-sensitive) to wrap ,e.g, <code>BertLayer</code>, <code>GPTJBlock</code>, <code>T5Block</code> …
This is important because submodules that share weights (e.g., embedding layer) should not end up in different FSDP wrapped units.
Using this policy, wrapping happens for each block containing Multi-Head Attention followed by couple of MLP layers.
Remaining layers including the shared embeddings are conveniently wrapped in same outermost FSDP unit.
Therefore, use this for transformer based models.</li> <li>For size based auto wrap policy, please add <code>fsdp_min_num_params</code> in the config file.
It specifies FSDP’s minimum number of parameters for auto wrapping.</li></ul></li>`,Dp,De,Gt,pd,Cr,Tf,wl,ky="Using Trainer for accelerated PyTorch Training on Mac",Wp,jr,Ay=`With PyTorch v1.12 release, developers and researchers can take advantage of Apple silicon GPUs for significantly faster model training.
This unlocks the ability to perform machine learning workflows like prototyping and fine-tuning locally, right on Mac.
Apple’s Metal Performance Shaders (MPS) as a backend for PyTorch enables this and can be used via the new <code>&quot;mps&quot;</code> device.
This will map computational graphs and primitives on the MPS Graph framework and tuned kernels provided by MPS.
For more information please refer official documents <a href="https://pytorch.org/blog/introducing-accelerated-pytorch-training-on-mac/" rel="nofollow">Introducing Accelerated PyTorch Training on Mac</a>
and <a href="https://pytorch.org/docs/stable/notes/mps.html" rel="nofollow">MPS BACKEND</a>.`,Hp,Yt,Ep,Ir,qy="<strong>Benefits of Training and Inference using Apple Silicon Chips</strong>",Rp,Jr,Cy=`<li>Enables users to train larger networks or batch sizes locally</li> <li>Reduces data retrieval latency and provides the GPU with direct access to the full memory store due to unified memory architecture.
Therefore, improving end-to-end performance.</li> <li>Reduces costs associated with cloud-based development or the need for additional local GPUs.</li>`,Bp,Sr,jy=`<strong>Pre-requisites</strong>: To install torch with mps support,
please follow this nice medium article <a href="https://medium.com/towards-data-science/gpu-acceleration-comes-to-pytorch-on-m1-macs-195c399efcc1" rel="nofollow">GPU-Acceleration Comes to PyTorch on M1 Macs</a>.`,Zp,Ur,Iy=`<strong>Usage</strong>:
<code>mps</code> device will be used by default if available similar to the way <code>cuda</code> device is used.
Therefore, no action from user is required.
For example, you can run the official Glue text classififcation task (from the root folder) using Apple Silicon GPU with below command:`,Vp,Pr,Xp,Lr,Jy="<strong>A few caveats to be aware of</strong>",Gp,Nr,Sy=`<li>Some PyTorch operations have not been implemented in mps and will throw an error.
One way to get around that is to set the environment variable <code>PYTORCH_ENABLE_MPS_FALLBACK=1</code>,
which will fallback to CPU for these operations. It still throws a UserWarning however.</li> <li>Distributed setups <code>gloo</code> and <code>nccl</code> are not working with <code>mps</code> device.
This means that currently only single GPU of <code>mps</code> device type can be used.</li>`,Yp,Fr,Uy=`Finally, please, remember that, 🤗 <code>Trainer</code> only integrates MPS backend, therefore if you
have any problems or questions with regards to MPS backend usage, please,
file an issue with <a href="https://github.com/pytorch/pytorch/issues" rel="nofollow">PyTorch GitHub</a>.`,Op,We,Ot,md,zr,wf,xl,Py="Using Accelerate Launcher with Trainer",Qp,Dr,Ly="Accelerate now powers Trainer. In terms of what users should expect:",Kp,Wr,Ny="<li>They can keep using the Trainer ingterations such as FSDP, DeepSpeed vis trainer arguments without any changes on their part.</li> <li>They can now use Accelerate Launcher with Trainer (recommended).</li>",em,Hr,Fy="Steps to use Accelerate Launcher with Trainer:",tm,we,Ml,zy="<p>Make sure 🤗 Accelerate is installed, you can’t use the <code>Trainer</code> without it anyway. If not <code>pip install accelerate</code>. You may also need to update your version of Accelerate: <code>pip install accelerate --upgrade</code></p>",xf,U,$l,Dy=`Run <code>accelerate config</code> and fill the questionnaire. Below are example accelerate configs:
a. DDP Multi-node Multi-GPU config:`,Mf,Er,$f,kl,Wy="b. FSDP config:",kf,Rr,Af,Al,Hy="c. DeepSpeed config pointing to a file:",qf,Br,Cf,ql,Ey="d. DeepSpeed config using accelerate plugin:",jf,Zr,If,Cl,Ry=`<p>Run the Trainer script with args other than the ones handled above by accelerate config or launcher args.
Below is an example to run <code>run_glue.py</code> using <code>accelerate launcher</code> with FSDP config from above.</p>`,om,Vr,nm,Qt,By="<li>You can also directly use the cmd args for <code>accelerate launch</code>. Above example would map to:</li>",am,Xr,rm,Gr,Zy='For more information, please refer the 🤗 Accelerate CLI guide: <a href="https://huggingface.co/docs/accelerate/basic_tutorials/launch" rel="nofollow">Launching your 🤗 Accelerate scripts</a>.',sm,Yr,Vy="Sections that were moved:",im,Or,Xy=`[ <a href="./deepspeed#deepspeed-trainer-integration">DeepSpeed</a><a id="deepspeed"></a>
| <a href="./deepspeed#deepspeed-installation">Installation</a><a id="installation"></a>
| <a href="./deepspeed#deepspeed-multi-gpu">Deployment with multiple GPUs</a><a id="deployment-with-multiple-gpus"></a>
| <a href="./deepspeed#deepspeed-one-gpu">Deployment with one GPU</a><a id="deployment-with-one-gpu"></a>
| <a href="./deepspeed#deepspeed-notebook">Deployment in Notebooks</a><a id="deployment-in-notebooks"></a>
| <a href="./deepspeed#deepspeed-config">Configuration</a><a id="configuration"></a>
| <a href="./deepspeed#deepspeed-config-passing">Passing Configuration</a><a id="passing-configuration"></a>
| <a href="./deepspeed#deepspeed-config-shared">Shared Configuration</a><a id="shared-configuration"></a>
| <a href="./deepspeed#deepspeed-zero">ZeRO</a><a id="zero"></a>
| <a href="./deepspeed#deepspeed-zero2-config">ZeRO-2 Config</a><a id="zero-2-config"></a>
| <a href="./deepspeed#deepspeed-zero3-config">ZeRO-3 Config</a><a id="zero-3-config"></a>
| <a href="./deepspeed#deepspeed-nvme">NVMe Support</a><a id="nvme-support"></a>
| <a href="./deepspeed#deepspeed-zero2-zero3-performance">ZeRO-2 vs ZeRO-3 Performance</a><a id="zero-2-vs-zero-3-performance"></a>
| <a href="./deepspeed#deepspeed-zero2-example">ZeRO-2 Example</a><a id="zero-2-example"></a>
| <a href="./deepspeed#deepspeed-zero3-example">ZeRO-3 Example</a><a id="zero-3-example"></a>
| <a href="./deepspeed#deepspeed-optimizer">Optimizer</a><a id="optimizer"></a>
| <a href="./deepspeed#deepspeed-scheduler">Scheduler</a><a id="scheduler"></a>
| <a href="./deepspeed#deepspeed-fp32">fp32 Precision</a><a id="fp32-precision"></a>
| <a href="./deepspeed#deepspeed-amp">Automatic Mixed Precision</a><a id="automatic-mixed-precision"></a>
| <a href="./deepspeed#deepspeed-bs">Batch Size</a><a id="batch-size"></a>
| <a href="./deepspeed#deepspeed-grad-acc">Gradient Accumulation</a><a id="gradient-accumulation"></a>
| <a href="./deepspeed#deepspeed-grad-clip">Gradient Clipping</a><a id="gradient-clipping"></a>
| <a href="./deepspeed#deepspeed-weight-extraction">Getting The Model Weights Out</a><a id="getting-the-model-weights-out"></a>
]`,lm,ud,dm;return so=new L({}),Xe=new Ve({props:{warning:!0,$$slots:{default:[JT]},$$scope:{ctx:C}}}),ho=new j({props:{code:"ZnJvbSUyMHRvcmNoJTIwaW1wb3J0JTIwbm4lMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwVHJhaW5lciUwQSUwQSUwQWNsYXNzJTIwQ3VzdG9tVHJhaW5lcihUcmFpbmVyKSUzQSUwQSUyMCUyMCUyMCUyMGRlZiUyMGNvbXB1dGVfbG9zcyhzZWxmJTJDJTIwbW9kZWwlMkMlMjBpbnB1dHMlMkMlMjByZXR1cm5fb3V0cHV0cyUzREZhbHNlKSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGxhYmVscyUyMCUzRCUyMGlucHV0cy5wb3AoJTIybGFiZWxzJTIyKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMyUyMGZvcndhcmQlMjBwYXNzJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGxvZ2l0cyUyMCUzRCUyMG91dHB1dHMuZ2V0KCUyMmxvZ2l0cyUyMiklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjMlMjBjb21wdXRlJTIwY3VzdG9tJTIwbG9zcyUyMChzdXBwb3NlJTIwb25lJTIwaGFzJTIwMyUyMGxhYmVscyUyMHdpdGglMjBkaWZmZXJlbnQlMjB3ZWlnaHRzKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGxvc3NfZmN0JTIwJTNEJTIwbm4uQ3Jvc3NFbnRyb3B5TG9zcyh3ZWlnaHQlM0R0b3JjaC50ZW5zb3IoJTVCMS4wJTJDJTIwMi4wJTJDJTIwMy4wJTVEJTJDJTIwZGV2aWNlJTNEbW9kZWwuZGV2aWNlKSklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBsb3NzJTIwJTNEJTIwbG9zc19mY3QobG9naXRzLnZpZXcoLTElMkMlMjBzZWxmLm1vZGVsLmNvbmZpZy5udW1fbGFiZWxzKSUyQyUyMGxhYmVscy52aWV3KC0xKSklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjByZXR1cm4lMjAobG9zcyUyQyUyMG91dHB1dHMpJTIwaWYlMjByZXR1cm5fb3V0cHV0cyUyMGVsc2UlMjBsb3Nz",highlighted:`<span class="hljs-keyword">from</span> torch <span class="hljs-keyword">import</span> nn
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> Trainer


<span class="hljs-keyword">class</span> <span class="hljs-title class_">CustomTrainer</span>(<span class="hljs-title class_ inherited__">Trainer</span>):
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">compute_loss</span>(<span class="hljs-params">self, model, inputs, return_outputs=<span class="hljs-literal">False</span></span>):
        labels = inputs.pop(<span class="hljs-string">&quot;labels&quot;</span>)
        <span class="hljs-comment"># forward pass</span>
        outputs = model(**inputs)
        logits = outputs.get(<span class="hljs-string">&quot;logits&quot;</span>)
        <span class="hljs-comment"># compute custom loss (suppose one has 3 labels with different weights)</span>
        loss_fct = nn.CrossEntropyLoss(weight=torch.tensor([<span class="hljs-number">1.0</span>, <span class="hljs-number">2.0</span>, <span class="hljs-number">3.0</span>], device=model.device))
        loss = loss_fct(logits.view(-<span class="hljs-number">1</span>, self.model.config.num_labels), labels.view(-<span class="hljs-number">1</span>))
        <span class="hljs-keyword">return</span> (loss, outputs) <span class="hljs-keyword">if</span> return_outputs <span class="hljs-keyword">else</span> loss`,wrap:!1}}),fo=new L({}),_o=new k({props:{name:"class transformers.Trainer",anchor:"transformers.Trainer",parameters:[{name:"model",val:": typing.Union[transformers.modeling_utils.PreTrainedModel, torch.nn.modules.module.Module] = None"},{name:"args",val:": TrainingArguments = None"},{name:"data_collator",val:": typing.Optional[DataCollator] = None"},{name:"train_dataset",val:": typing.Optional[torch.utils.data.dataset.Dataset] = None"},{name:"eval_dataset",val:": typing.Union[torch.utils.data.dataset.Dataset, typing.Dict[str, torch.utils.data.dataset.Dataset], NoneType] = None"},{name:"tokenizer",val:": typing.Optional[transformers.tokenization_utils_base.PreTrainedTokenizerBase] = None"},{name:"model_init",val:": typing.Union[typing.Callable[[], transformers.modeling_utils.PreTrainedModel], NoneType] = None"},{name:"compute_metrics",val:": typing.Union[typing.Callable[[transformers.trainer_utils.EvalPrediction], typing.Dict], NoneType] = None"},{name:"callbacks",val:": typing.Optional[typing.List[transformers.trainer_callback.TrainerCallback]] = None"},{name:"optimizers",val:": typing.Tuple[torch.optim.optimizer.Optimizer, torch.optim.lr_scheduler.LambdaLR] = (None, None)"},{name:"preprocess_logits_for_metrics",val:": typing.Union[typing.Callable[[torch.Tensor, torch.Tensor], torch.Tensor], NoneType] = None"}],parametersDescription:[{anchor:"transformers.Trainer.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <code>torch.nn.Module</code>, <em>optional</em>) &#x2014;
The model to train, evaluate or use for predictions. If not provided, a <code>model_init</code> must be passed.</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><a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a> is optimized to work with the <a href="/docs/transformers/v4.34.0/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> provided by the library. You can still use
your own models defined as <code>torch.nn.Module</code> as long as they work the same way as the &#x1F917; Transformers
models.</p>

					</div>`,name:"model"},{anchor:"transformers.Trainer.args",description:`<strong>args</strong> (<a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>, <em>optional</em>) &#x2014;
The arguments to tweak for training. Will default to a basic instance of <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> with the
<code>output_dir</code> set to a directory named <em>tmp_trainer</em> in the current directory if not provided.`,name:"args"},{anchor:"transformers.Trainer.data_collator",description:`<strong>data_collator</strong> (<code>DataCollator</code>, <em>optional</em>) &#x2014;
The function to use to form a batch from a list of elements of <code>train_dataset</code> or <code>eval_dataset</code>. Will
default to <a href="/docs/transformers/v4.34.0/en/main_classes/data_collator#transformers.default_data_collator">default_data_collator()</a> if no <code>tokenizer</code> is provided, an instance of
<a href="/docs/transformers/v4.34.0/en/main_classes/data_collator#transformers.DataCollatorWithPadding">DataCollatorWithPadding</a> otherwise.`,name:"data_collator"},{anchor:"transformers.Trainer.train_dataset",description:`<strong>train_dataset</strong> (<code>torch.utils.data.Dataset</code> or <code>torch.utils.data.IterableDataset</code>, <em>optional</em>) &#x2014;
The dataset to use for training. If it is a <a href="https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset" rel="nofollow">Dataset</a>, columns not accepted by the
<code>model.forward()</code> method are automatically removed.</p>
<p>Note that if it&#x2019;s a <code>torch.utils.data.IterableDataset</code> with some randomization and you are training in a
distributed fashion, your iterable dataset should either use a internal attribute <code>generator</code> that is a
<code>torch.Generator</code> for the randomization that must be identical on all processes (and the Trainer will
manually set the seed of this <code>generator</code> at each epoch) or have a <code>set_epoch()</code> method that internally
sets the seed of the RNGs used.`,name:"train_dataset"},{anchor:"transformers.Trainer.eval_dataset",description:`<strong>eval_dataset</strong> (Union[<code>torch.utils.data.Dataset</code>, Dict[str, <code>torch.utils.data.Dataset</code>]), <em>optional</em>) &#x2014;
The dataset to use for evaluation. If it is a <a href="https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset" rel="nofollow">Dataset</a>, columns not accepted by the
<code>model.forward()</code> method are automatically removed. If it is a dictionary, it will evaluate on each
dataset prepending the dictionary key to the metric name.`,name:"eval_dataset"},{anchor:"transformers.Trainer.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.34.0/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase">PreTrainedTokenizerBase</a>, <em>optional</em>) &#x2014;
The tokenizer used to preprocess the data. If provided, will be used to automatically pad the inputs to the
maximum length when batching inputs, and it will be saved along the model to make it easier to rerun an
interrupted training or reuse the fine-tuned model.`,name:"tokenizer"},{anchor:"transformers.Trainer.model_init",description:`<strong>model_init</strong> (<code>Callable[[], PreTrainedModel]</code>, <em>optional</em>) &#x2014;
A function that instantiates the model to be used. If provided, each call to <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer.train">train()</a> will start
from a new instance of the model as given by this function.</p>
<p>The function may have zero argument, or a single one containing the optuna/Ray Tune/SigOpt trial object, to
be able to choose different architectures according to hyper parameters (such as layer count, sizes of
inner layers, dropout probabilities etc).`,name:"model_init"},{anchor:"transformers.Trainer.compute_metrics",description:`<strong>compute_metrics</strong> (<code>Callable[[EvalPrediction], Dict]</code>, <em>optional</em>) &#x2014;
The function that will be used to compute metrics at evaluation. Must take a <a href="/docs/transformers/v4.34.0/en/internal/trainer_utils#transformers.EvalPrediction">EvalPrediction</a> and return
a dictionary string to metric values.`,name:"compute_metrics"},{anchor:"transformers.Trainer.callbacks",description:`<strong>callbacks</strong> (List of <a href="/docs/transformers/v4.34.0/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>, <em>optional</em>) &#x2014;
A list of callbacks to customize the training loop. Will add those to the list of default callbacks
detailed in <a href="callback">here</a>.</p>
<p>If you want to remove one of the default callbacks used, use the <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer.remove_callback">Trainer.remove_callback()</a> method.`,name:"callbacks"},{anchor:"transformers.Trainer.optimizers",description:`<strong>optimizers</strong> (<code>Tuple[torch.optim.Optimizer, torch.optim.lr_scheduler.LambdaLR]</code>, <em>optional</em>) &#x2014; A tuple
containing the optimizer and the scheduler to use. Will default to an instance of <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> on your model
and a scheduler given by <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.get_linear_schedule_with_warmup">get_linear_schedule_with_warmup()</a> controlled by <code>args</code>.`,name:"optimizers"},{anchor:"transformers.Trainer.preprocess_logits_for_metrics",description:`<strong>preprocess_logits_for_metrics</strong> (<code>Callable[[torch.Tensor, torch.Tensor], torch.Tensor]</code>, <em>optional</em>) &#x2014;
A function that preprocess the logits right before caching them at each evaluation step. Must take two
tensors, the logits and the labels, and return the logits once processed as desired. The modifications made
by this function will be reflected in the predictions received by <code>compute_metrics</code>.</p>
<p>Note that the labels (second parameter) will be <code>None</code> if the dataset does not have them.`,name:"preprocess_logits_for_metrics"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L236"}}),bo=new k({props:{name:"add_callback",anchor:"transformers.Trainer.add_callback",parameters:[{name:"callback",val:""}],parametersDescription:[{anchor:"transformers.Trainer.add_callback.callback",description:`<strong>callback</strong> (<code>type</code> or <code>~transformer.TrainerCallback</code>) &#x2014;
A <code>~transformer.TrainerCallback</code> class or an instance of a <code>~transformer.TrainerCallback</code>. In the
first case, will instantiate a member of that class.`,name:"callback"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L700"}}),vo=new k({props:{name:"autocast_smart_context_manager",anchor:"transformers.Trainer.autocast_smart_context_manager",parameters:[{name:"cache_enabled",val:": typing.Optional[bool] = True"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L2734"}}),yo=new k({props:{name:"compute_loss",anchor:"transformers.Trainer.compute_loss",parameters:[{name:"model",val:""},{name:"inputs",val:""},{name:"return_outputs",val:" = False"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L2791"}}),To=new k({props:{name:"compute_loss_context_manager",anchor:"transformers.Trainer.compute_loss_context_manager",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L2728"}}),wo=new k({props:{name:"create_model_card",anchor:"transformers.Trainer.create_model_card",parameters:[{name:"language",val:": typing.Optional[str] = None"},{name:"license",val:": typing.Optional[str] = None"},{name:"tags",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"model_name",val:": typing.Optional[str] = None"},{name:"finetuned_from",val:": typing.Optional[str] = None"},{name:"tasks",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"dataset_tags",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"dataset",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"dataset_args",val:": typing.Union[str, typing.List[str], NoneType] = None"}],parametersDescription:[{anchor:"transformers.Trainer.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.Trainer.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.Trainer.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.Trainer.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.Trainer.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.Trainer.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.Trainer.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.Trainer.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.Trainer.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/v4.34.0/src/transformers/trainer.py#L3594"}}),xo=new k({props:{name:"create_optimizer",anchor:"transformers.Trainer.create_optimizer",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L969"}}),Mo=new k({props:{name:"create_optimizer_and_scheduler",anchor:"transformers.Trainer.create_optimizer_and_scheduler",parameters:[{name:"num_training_steps",val:": int"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L942"}}),$o=new k({props:{name:"create_scheduler",anchor:"transformers.Trainer.create_scheduler",parameters:[{name:"num_training_steps",val:": int"},{name:"optimizer",val:": Optimizer = None"}],parametersDescription:[{anchor:"transformers.Trainer.create_scheduler.num_training_steps",description:"<strong>num_training_steps</strong> (int) &#x2014; The number of training steps to do.",name:"num_training_steps"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L1148"}}),ko=new k({props:{name:"evaluate",anchor:"transformers.Trainer.evaluate",parameters:[{name:"eval_dataset",val:": typing.Optional[torch.utils.data.dataset.Dataset] = None"},{name:"ignore_keys",val:": typing.Optional[typing.List[str]] = None"},{name:"metric_key_prefix",val:": str = 'eval'"}],parametersDescription:[{anchor:"transformers.Trainer.evaluate.eval_dataset",description:`<strong>eval_dataset</strong> (<code>Dataset</code>, <em>optional</em>) &#x2014;
Pass a dataset if you wish to override <code>self.eval_dataset</code>. If it is a <a href="https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset" rel="nofollow">Dataset</a>, columns
not accepted by the <code>model.forward()</code> method are automatically removed. It must implement the <code>__len__</code>
method.`,name:"eval_dataset"},{anchor:"transformers.Trainer.evaluate.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"},{anchor:"transformers.Trainer.evaluate.metric_key_prefix",description:`<strong>metric_key_prefix</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;eval&quot;</code>) &#x2014;
An optional prefix to be used as the metrics key prefix. For example the metrics &#x201C;bleu&#x201D; will be named
&#x201C;eval_bleu&#x201D; if the prefix is &#x201C;eval&#x201D; (default)`,name:"metric_key_prefix"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L3029",returnDescription:`
<p>A dictionary containing the evaluation loss and the potential metrics computed from the predictions. The
dictionary also contains the epoch number which comes from the training state.</p>
`}}),Ao=new k({props:{name:"evaluation_loop",anchor:"transformers.Trainer.evaluation_loop",parameters:[{name:"dataloader",val:": DataLoader"},{name:"description",val:": str"},{name:"prediction_loss_only",val:": typing.Optional[bool] = None"},{name:"ignore_keys",val:": typing.Optional[typing.List[str]] = None"},{name:"metric_key_prefix",val:": str = 'eval'"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L3162"}}),qo=new k({props:{name:"floating_point_ops",anchor:"transformers.Trainer.floating_point_ops",parameters:[{name:"inputs",val:": typing.Dict[str, typing.Union[torch.Tensor, typing.Any]]"}],parametersDescription:[{anchor:"transformers.Trainer.floating_point_ops.inputs",description:`<strong>inputs</strong> (<code>Dict[str, Union[torch.Tensor, Any]]</code>) &#x2014;
The inputs and targets of the model.`,name:"inputs"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L3502",returnDescription:`
<p>The number of floating-point operations.</p>
`,returnType:`
<p><code>int</code></p>
`}}),Co=new k({props:{name:"get_decay_parameter_names",anchor:"transformers.Trainer.get_decay_parameter_names",parameters:[{name:"model",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L958"}}),jo=new k({props:{name:"get_eval_dataloader",anchor:"transformers.Trainer.get_eval_dataloader",parameters:[{name:"eval_dataset",val:": typing.Optional[torch.utils.data.dataset.Dataset] = None"}],parametersDescription:[{anchor:"transformers.Trainer.get_eval_dataloader.eval_dataset",description:`<strong>eval_dataset</strong> (<code>torch.utils.data.Dataset</code>, <em>optional</em>) &#x2014;
If provided, will override <code>self.eval_dataset</code>. If it is a <a href="https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset" rel="nofollow">Dataset</a>, columns not accepted
by the <code>model.forward()</code> method are automatically removed. It must implement <code>__len__</code>.`,name:"eval_dataset"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L876"}}),Io=new k({props:{name:"get_optimizer_cls_and_kwargs",anchor:"transformers.Trainer.get_optimizer_cls_and_kwargs",parameters:[{name:"args",val:": TrainingArguments"}],parametersDescription:[{anchor:"transformers.Trainer.get_optimizer_cls_and_kwargs.args",description:`<strong>args</strong> (<code>transformers.training_args.TrainingArguments</code>) &#x2014;
The training arguments for the training session.`,name:"args"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L1024"}}),Jo=new k({props:{name:"get_test_dataloader",anchor:"transformers.Trainer.get_test_dataloader",parameters:[{name:"test_dataset",val:": Dataset"}],parametersDescription:[{anchor:"transformers.Trainer.get_test_dataloader.test_dataset",description:`<strong>test_dataset</strong> (<code>torch.utils.data.Dataset</code>, <em>optional</em>) &#x2014;
The test dataset to use. If it is a <a href="https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset" rel="nofollow">Dataset</a>, columns not accepted by the
<code>model.forward()</code> method are automatically removed. It must implement <code>__len__</code>.`,name:"test_dataset"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L910"}}),So=new k({props:{name:"get_train_dataloader",anchor:"transformers.Trainer.get_train_dataloader",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L821"}}),Uo=new k({props:{name:"hyperparameter_search",anchor:"transformers.Trainer.hyperparameter_search",parameters:[{name:"hp_space",val:": typing.Union[typing.Callable[[ForwardRef('optuna.Trial')], typing.Dict[str, float]], NoneType] = None"},{name:"compute_objective",val:": typing.Union[typing.Callable[[typing.Dict[str, float]], float], NoneType] = None"},{name:"n_trials",val:": int = 20"},{name:"direction",val:": typing.Union[str, typing.List[str]] = 'minimize'"},{name:"backend",val:": typing.Union[ForwardRef('str'), transformers.trainer_utils.HPSearchBackend, NoneType] = None"},{name:"hp_name",val:": typing.Union[typing.Callable[[ForwardRef('optuna.Trial')], str], NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Trainer.hyperparameter_search.hp_space",description:`<strong>hp_space</strong> (<code>Callable[[&quot;optuna.Trial&quot;], Dict[str, float]]</code>, <em>optional</em>) &#x2014;
A function that defines the hyperparameter search space. Will default to
<code>default_hp_space_optuna()</code> or <code>default_hp_space_ray()</code> or
<code>default_hp_space_sigopt()</code> depending on your backend.`,name:"hp_space"},{anchor:"transformers.Trainer.hyperparameter_search.compute_objective",description:`<strong>compute_objective</strong> (<code>Callable[[Dict[str, float]], float]</code>, <em>optional</em>) &#x2014;
A function computing the objective to minimize or maximize from the metrics returned by the <code>evaluate</code>
method. Will default to <code>default_compute_objective()</code>.`,name:"compute_objective"},{anchor:"transformers.Trainer.hyperparameter_search.n_trials",description:`<strong>n_trials</strong> (<code>int</code>, <em>optional</em>, defaults to 100) &#x2014;
The number of trial runs to test.`,name:"n_trials"},{anchor:"transformers.Trainer.hyperparameter_search.direction",description:`<strong>direction</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>, defaults to <code>&quot;minimize&quot;</code>) &#x2014;
If it&#x2019;s single objective optimization, direction is <code>str</code>, can be <code>&quot;minimize&quot;</code> or <code>&quot;maximize&quot;</code>, you
should pick <code>&quot;minimize&quot;</code> when optimizing the validation loss, <code>&quot;maximize&quot;</code> when optimizing one or
several metrics. If it&#x2019;s multi objectives optimization, direction is <code>List[str]</code>, can be List of
<code>&quot;minimize&quot;</code> and <code>&quot;maximize&quot;</code>, you should pick <code>&quot;minimize&quot;</code> when optimizing the validation loss,
<code>&quot;maximize&quot;</code> when optimizing one or several metrics.`,name:"direction"},{anchor:"transformers.Trainer.hyperparameter_search.backend",description:`<strong>backend</strong> (<code>str</code> or <code>~training_utils.HPSearchBackend</code>, <em>optional</em>) &#x2014;
The backend to use for hyperparameter search. Will default to optuna or Ray Tune or SigOpt, depending
on which one is installed. If all are installed, will default to optuna.`,name:"backend"},{anchor:"transformers.Trainer.hyperparameter_search.hp_name",description:`<strong>hp_name</strong> (<code>Callable[[&quot;optuna.Trial&quot;], str]]</code>, <em>optional</em>) &#x2014;
A function that defines the trial/run name. Will default to None.`,name:"hp_name"},{anchor:"transformers.Trainer.hyperparameter_search.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to <code>optuna.create_study</code> or <code>ray.tune.run</code>. For more
information see:</p>
<ul>
<li>the documentation of
<a href="https://optuna.readthedocs.io/en/stable/reference/generated/optuna.study.create_study.html" rel="nofollow">optuna.create_study</a></li>
<li>the documentation of <a href="https://docs.ray.io/en/latest/tune/api_docs/execution.html#tune-run" rel="nofollow">tune.run</a></li>
<li>the documentation of <a href="https://app.sigopt.com/docs/endpoints/experiments/create" rel="nofollow">sigopt</a></li>
</ul>`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L2598",returnDescription:`
<p>All the information about the best run or best
runs for multi-objective optimization. Experiment summary can be found in <code>run_summary</code> attribute for Ray
backend.</p>
`,returnType:`
<p>[<code>trainer_utils.BestRun</code> or <code>List[trainer_utils.BestRun]</code>]</p>
`}}),nt=new Ve({props:{warning:!0,$$slots:{default:[ST]},$$scope:{ctx:C}}}),Po=new k({props:{name:"init_git_repo",anchor:"transformers.Trainer.init_git_repo",parameters:[{name:"at_init",val:": bool = False"}],parametersDescription:[{anchor:"transformers.Trainer.init_git_repo.at_init",description:`<strong>at_init</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether this function is called before any training or not. If <code>self.args.overwrite_output_dir</code> is
<code>True</code> and <code>at_init</code> is <code>True</code>, the path to the repo (which is <code>self.args.output_dir</code>) might be wiped
out.`,name:"at_init"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L3537"}}),at=new Ve({props:{warning:!0,$$slots:{default:[UT]},$$scope:{ctx:C}}}),Lo=new k({props:{name:"init_hf_repo",anchor:"transformers.Trainer.init_hf_repo",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L3520"}}),No=new k({props:{name:"is_local_process_zero",anchor:"transformers.Trainer.is_local_process_zero",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L2827"}}),Fo=new k({props:{name:"is_world_process_zero",anchor:"transformers.Trainer.is_world_process_zero",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L2834"}}),zo=new k({props:{name:"log",anchor:"transformers.Trainer.log",parameters:[{name:"logs",val:": typing.Dict[str, float]"}],parametersDescription:[{anchor:"transformers.Trainer.log.logs",description:`<strong>logs</strong> (<code>Dict[str, float]</code>) &#x2014;
The values to log.`,name:"logs"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L2677"}}),Do=new k({props:{name:"log_metrics",anchor:"transformers.Trainer.log_metrics",parameters:[{name:"split",val:""},{name:"metrics",val:""}],parametersDescription:[{anchor:"transformers.Trainer.log_metrics.split",description:`<strong>split</strong> (<code>str</code>) &#x2014;
Mode/split name: one of <code>train</code>, <code>eval</code>, <code>test</code>`,name:"split"},{anchor:"transformers.Trainer.log_metrics.metrics",description:`<strong>metrics</strong> (<code>Dict[str, float]</code>) &#x2014;
The metrics returned from train/evaluate/predictmetrics: metrics dict`,name:"metrics"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer_pt_utils.py#L905"}}),lt=new Me({props:{anchor:"transformers.Trainer.log_metrics.example",$$slots:{default:[PT]},$$scope:{ctx:C}}}),Wo=new k({props:{name:"metrics_format",anchor:"transformers.Trainer.metrics_format",parameters:[{name:"metrics",val:": typing.Dict[str, float]"}],parametersDescription:[{anchor:"transformers.Trainer.metrics_format.metrics",description:`<strong>metrics</strong> (<code>Dict[str, float]</code>) &#x2014;
The metrics returned from train/evaluate/predict`,name:"metrics"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer_pt_utils.py#L879",returnDescription:`
<p>The reformatted metrics</p>
`,returnType:`
<p>metrics (<code>Dict[str, float]</code>)</p>
`}}),Ho=new k({props:{name:"num_examples",anchor:"transformers.Trainer.num_examples",parameters:[{name:"dataloader",val:": DataLoader"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L1166"}}),Eo=new k({props:{name:"num_tokens",anchor:"transformers.Trainer.num_tokens",parameters:[{name:"train_dl",val:": DataLoader"},{name:"max_steps",val:": typing.Optional[int] = None"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L1180"}}),Ro=new k({props:{name:"pop_callback",anchor:"transformers.Trainer.pop_callback",parameters:[{name:"callback",val:""}],parametersDescription:[{anchor:"transformers.Trainer.pop_callback.callback",description:`<strong>callback</strong> (<code>type</code> or <code>~transformer.TrainerCallback</code>) &#x2014;
A <code>~transformer.TrainerCallback</code> class or an instance of a <code>~transformer.TrainerCallback</code>. In the
first case, will pop the first member of that class found in the list of callbacks.`,name:"callback"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L711",returnDescription:`
<p>The callback removed, if found.</p>
`,returnType:`
<p><code>~transformer.TrainerCallback</code></p>
`}}),Bo=new k({props:{name:"predict",anchor:"transformers.Trainer.predict",parameters:[{name:"test_dataset",val:": Dataset"},{name:"ignore_keys",val:": typing.Optional[typing.List[str]] = None"},{name:"metric_key_prefix",val:": str = 'test'"}],parametersDescription:[{anchor:"transformers.Trainer.predict.test_dataset",description:`<strong>test_dataset</strong> (<code>Dataset</code>) &#x2014;
Dataset to run the predictions on. If it is an <code>datasets.Dataset</code>, columns not accepted by the
<code>model.forward()</code> method are automatically removed. Has to implement the method <code>__len__</code>`,name:"test_dataset"},{anchor:"transformers.Trainer.predict.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"},{anchor:"transformers.Trainer.predict.metric_key_prefix",description:`<strong>metric_key_prefix</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;test&quot;</code>) &#x2014;
An optional prefix to be used as the metrics key prefix. For example the metrics &#x201C;bleu&#x201D; will be named
&#x201C;test_bleu&#x201D; if the prefix is &#x201C;test&#x201D; (default)`,name:"metric_key_prefix"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L3100"}}),mt=new Ve({props:{$$slots:{default:[LT]},$$scope:{ctx:C}}}),Zo=new k({props:{name:"prediction_loop",anchor:"transformers.Trainer.prediction_loop",parameters:[{name:"dataloader",val:": DataLoader"},{name:"description",val:": str"},{name:"prediction_loss_only",val:": typing.Optional[bool] = None"},{name:"ignore_keys",val:": typing.Optional[typing.List[str]] = None"},{name:"metric_key_prefix",val:": str = 'eval'"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L3767"}}),Vo=new k({props:{name:"prediction_step",anchor:"transformers.Trainer.prediction_step",parameters:[{name:"model",val:": Module"},{name:"inputs",val:": typing.Dict[str, typing.Union[torch.Tensor, typing.Any]]"},{name:"prediction_loss_only",val:": bool"},{name:"ignore_keys",val:": typing.Optional[typing.List[str]] = None"}],parametersDescription:[{anchor:"transformers.Trainer.prediction_step.model",description:`<strong>model</strong> (<code>nn.Module</code>) &#x2014;
The model to evaluate.`,name:"model"},{anchor:"transformers.Trainer.prediction_step.inputs",description:`<strong>inputs</strong> (<code>Dict[str, Union[torch.Tensor, Any]]</code>) &#x2014;
The inputs and targets of the model.</p>
<p>The dictionary will be unpacked before being fed to the model. Most models expect the targets under the
argument <code>labels</code>. Check your model&#x2019;s documentation for all accepted arguments.`,name:"inputs"},{anchor:"transformers.Trainer.prediction_step.prediction_loss_only",description:`<strong>prediction_loss_only</strong> (<code>bool</code>) &#x2014;
Whether or not to return the loss only.`,name:"prediction_loss_only"},{anchor:"transformers.Trainer.prediction_step.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L3397",returnDescription:`
<p>A tuple with the loss,
logits and labels (each being optional).</p>
`,returnType:`
<p>Tuple[Optional[torch.Tensor], Optional[torch.Tensor], Optional[torch.Tensor]]</p>
`}}),Xo=new k({props:{name:"push_to_hub",anchor:"transformers.Trainer.push_to_hub",parameters:[{name:"commit_message",val:": typing.Optional[str] = 'End of training'"},{name:"blocking",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Trainer.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;End of training&quot;</code>) &#x2014;
Message to commit while pushing.`,name:"commit_message"},{anchor:"transformers.Trainer.push_to_hub.blocking",description:`<strong>blocking</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the function should return only when the <code>git push</code> has finished.`,name:"blocking"},{anchor:"transformers.Trainer.push_to_hub.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer.create_model_card">create_model_card()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L3714",returnDescription:`
<p>The URL of the repository where the model was pushed if <code>blocking=False</code>, or a <code>Future</code> object tracking the
progress of the commit if <code>blocking=True</code>.</p>
`}}),Go=new k({props:{name:"remove_callback",anchor:"transformers.Trainer.remove_callback",parameters:[{name:"callback",val:""}],parametersDescription:[{anchor:"transformers.Trainer.remove_callback.callback",description:`<strong>callback</strong> (<code>type</code> or <code>~transformer.TrainerCallback</code>) &#x2014;
A <code>~transformer.TrainerCallback</code> class or an instance of a <code>~transformer.TrainerCallback</code>. In the
first case, will remove the first member of that class found in the list of callbacks.`,name:"callback"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L727"}}),Yo=new k({props:{name:"save_metrics",anchor:"transformers.Trainer.save_metrics",parameters:[{name:"split",val:""},{name:"metrics",val:""},{name:"combined",val:" = True"}],parametersDescription:[{anchor:"transformers.Trainer.save_metrics.split",description:`<strong>split</strong> (<code>str</code>) &#x2014;
Mode/split name: one of <code>train</code>, <code>eval</code>, <code>test</code>, <code>all</code>`,name:"split"},{anchor:"transformers.Trainer.save_metrics.metrics",description:`<strong>metrics</strong> (<code>Dict[str, float]</code>) &#x2014;
The metrics returned from train/evaluate/predict`,name:"metrics"},{anchor:"transformers.Trainer.save_metrics.combined",description:`<strong>combined</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Creates combined metrics by updating <code>all_results.json</code> with metrics of this call`,name:"combined"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer_pt_utils.py#L995"}}),Oo=new k({props:{name:"save_model",anchor:"transformers.Trainer.save_model",parameters:[{name:"output_dir",val:": typing.Optional[str] = None"},{name:"_internal_call",val:": bool = False"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L2846"}}),Qo=new k({props:{name:"save_state",anchor:"transformers.Trainer.save_state",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer_pt_utils.py#L1033"}}),Ko=new k({props:{name:"train",anchor:"transformers.Trainer.train",parameters:[{name:"resume_from_checkpoint",val:": typing.Union[bool, str, NoneType] = None"},{name:"trial",val:": typing.Union[ForwardRef('optuna.Trial'), typing.Dict[str, typing.Any]] = None"},{name:"ignore_keys_for_eval",val:": typing.Optional[typing.List[str]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Trainer.train.resume_from_checkpoint",description:`<strong>resume_from_checkpoint</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
If a <code>str</code>, local path to a saved checkpoint as saved by a previous instance of <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>. If a
<code>bool</code> and equals <code>True</code>, load the last checkpoint in <em>args.output_dir</em> as saved by a previous instance
of <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>. If present, training will resume from the model/optimizer/scheduler states loaded here.`,name:"resume_from_checkpoint"},{anchor:"transformers.Trainer.train.trial",description:`<strong>trial</strong> (<code>optuna.Trial</code> or <code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
The trial run or the hyperparameter dictionary for hyperparameter search.`,name:"trial"},{anchor:"transformers.Trainer.train.ignore_keys_for_eval",description:`<strong>ignore_keys_for_eval</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions for evaluation during the training.`,name:"ignore_keys_for_eval"},{anchor:"transformers.Trainer.train.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments used to hide deprecated arguments`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L1494"}}),en=new k({props:{name:"training_step",anchor:"transformers.Trainer.training_step",parameters:[{name:"model",val:": Module"},{name:"inputs",val:": typing.Dict[str, typing.Union[torch.Tensor, typing.Any]]"}],parametersDescription:[{anchor:"transformers.Trainer.training_step.model",description:`<strong>model</strong> (<code>nn.Module</code>) &#x2014;
The model to train.`,name:"model"},{anchor:"transformers.Trainer.training_step.inputs",description:`<strong>inputs</strong> (<code>Dict[str, Union[torch.Tensor, Any]]</code>) &#x2014;
The inputs and targets of the model.</p>
<p>The dictionary will be unpacked before being fed to the model. Most models expect the targets under the
argument <code>labels</code>. Check your model&#x2019;s documentation for all accepted arguments.`,name:"inputs"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer.py#L2750",returnDescription:`
<p>The tensor with training loss on this batch.</p>
`,returnType:`
<p><code>torch.Tensor</code></p>
`}}),tn=new L({}),on=new k({props:{name:"class transformers.Seq2SeqTrainer",anchor:"transformers.Seq2SeqTrainer",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), torch.nn.modules.module.Module] = None"},{name:"args",val:": TrainingArguments = None"},{name:"data_collator",val:": typing.Optional[ForwardRef('DataCollator')] = None"},{name:"train_dataset",val:": typing.Optional[torch.utils.data.dataset.Dataset] = None"},{name:"eval_dataset",val:": typing.Union[torch.utils.data.dataset.Dataset, typing.Dict[str, torch.utils.data.dataset.Dataset], NoneType] = None"},{name:"tokenizer",val:": typing.Optional[ForwardRef('PreTrainedTokenizerBase')] = None"},{name:"model_init",val:": typing.Union[typing.Callable[[], ForwardRef('PreTrainedModel')], NoneType] = None"},{name:"compute_metrics",val:": typing.Union[typing.Callable[[ForwardRef('EvalPrediction')], typing.Dict], NoneType] = None"},{name:"callbacks",val:": typing.Optional[typing.List[ForwardRef('TrainerCallback')]] = None"},{name:"optimizers",val:": typing.Tuple[torch.optim.optimizer.Optimizer, torch.optim.lr_scheduler.LambdaLR] = (None, None)"},{name:"preprocess_logits_for_metrics",val:": typing.Union[typing.Callable[[torch.Tensor, torch.Tensor], torch.Tensor], NoneType] = None"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer_seq2seq.py#L41"}}),nn=new k({props:{name:"evaluate",anchor:"transformers.Seq2SeqTrainer.evaluate",parameters:[{name:"eval_dataset",val:": typing.Optional[torch.utils.data.dataset.Dataset] = None"},{name:"ignore_keys",val:": typing.Optional[typing.List[str]] = None"},{name:"metric_key_prefix",val:": str = 'eval'"},{name:"**gen_kwargs",val:""}],parametersDescription:[{anchor:"transformers.Seq2SeqTrainer.evaluate.eval_dataset",description:`<strong>eval_dataset</strong> (<code>Dataset</code>, <em>optional</em>) &#x2014;
Pass a dataset if you wish to override <code>self.eval_dataset</code>. If it is an <a href="https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset" rel="nofollow">Dataset</a>, columns
not accepted by the <code>model.forward()</code> method are automatically removed. It must implement the <code>__len__</code>
method.`,name:"eval_dataset"},{anchor:"transformers.Seq2SeqTrainer.evaluate.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"},{anchor:"transformers.Seq2SeqTrainer.evaluate.metric_key_prefix",description:`<strong>metric_key_prefix</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;eval&quot;</code>) &#x2014;
An optional prefix to be used as the metrics key prefix. For example the metrics &#x201C;bleu&#x201D; will be named
&#x201C;eval_bleu&#x201D; if the prefix is <code>&quot;eval&quot;</code> (default)`,name:"metric_key_prefix"},{anchor:"transformers.Seq2SeqTrainer.evaluate.max_length",description:`<strong>max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The maximum target length to use when predicting with the generate method.`,name:"max_length"},{anchor:"transformers.Seq2SeqTrainer.evaluate.num_beams",description:`<strong>num_beams</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of beams for beam search that will be used when predicting with the generate method. 1 means no
beam search.
gen_kwargs &#x2014;
Additional <code>generate</code> specific kwargs.`,name:"num_beams"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer_seq2seq.py#L112",returnDescription:`
<p>A dictionary containing the evaluation loss and the potential metrics computed from the predictions. The
dictionary also contains the epoch number which comes from the training state.</p>
`}}),an=new k({props:{name:"predict",anchor:"transformers.Seq2SeqTrainer.predict",parameters:[{name:"test_dataset",val:": Dataset"},{name:"ignore_keys",val:": typing.Optional[typing.List[str]] = None"},{name:"metric_key_prefix",val:": str = 'test'"},{name:"**gen_kwargs",val:""}],parametersDescription:[{anchor:"transformers.Seq2SeqTrainer.predict.test_dataset",description:`<strong>test_dataset</strong> (<code>Dataset</code>) &#x2014;
Dataset to run the predictions on. If it is a <a href="https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset" rel="nofollow">Dataset</a>, columns not accepted by the
<code>model.forward()</code> method are automatically removed. Has to implement the method <code>__len__</code>`,name:"test_dataset"},{anchor:"transformers.Seq2SeqTrainer.predict.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"},{anchor:"transformers.Seq2SeqTrainer.predict.metric_key_prefix",description:`<strong>metric_key_prefix</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;eval&quot;</code>) &#x2014;
An optional prefix to be used as the metrics key prefix. For example the metrics &#x201C;bleu&#x201D; will be named
&#x201C;eval_bleu&#x201D; if the prefix is <code>&quot;eval&quot;</code> (default)`,name:"metric_key_prefix"},{anchor:"transformers.Seq2SeqTrainer.predict.max_length",description:`<strong>max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The maximum target length to use when predicting with the generate method.`,name:"max_length"},{anchor:"transformers.Seq2SeqTrainer.predict.num_beams",description:`<strong>num_beams</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of beams for beam search that will be used when predicting with the generate method. 1 means no
beam search.
gen_kwargs &#x2014;
Additional <code>generate</code> specific kwargs.`,name:"num_beams"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/trainer_seq2seq.py#L167"}}),_t=new Ve({props:{$$slots:{default:[NT]},$$scope:{ctx:C}}}),rn=new L({}),sn=new k({props:{name:"class transformers.TrainingArguments",anchor:"transformers.TrainingArguments",parameters:[{name:"output_dir",val:": str"},{name:"overwrite_output_dir",val:": bool = False"},{name:"do_train",val:": bool = False"},{name:"do_eval",val:": bool = False"},{name:"do_predict",val:": bool = False"},{name:"evaluation_strategy",val:": typing.Union[transformers.trainer_utils.IntervalStrategy, str] = 'no'"},{name:"prediction_loss_only",val:": bool = False"},{name:"per_device_train_batch_size",val:": int = 8"},{name:"per_device_eval_batch_size",val:": int = 8"},{name:"per_gpu_train_batch_size",val:": typing.Optional[int] = None"},{name:"per_gpu_eval_batch_size",val:": typing.Optional[int] = None"},{name:"gradient_accumulation_steps",val:": int = 1"},{name:"eval_accumulation_steps",val:": typing.Optional[int] = None"},{name:"eval_delay",val:": typing.Optional[float] = 0"},{name:"learning_rate",val:": float = 5e-05"},{name:"weight_decay",val:": float = 0.0"},{name:"adam_beta1",val:": float = 0.9"},{name:"adam_beta2",val:": float = 0.999"},{name:"adam_epsilon",val:": float = 1e-08"},{name:"max_grad_norm",val:": float = 1.0"},{name:"num_train_epochs",val:": float = 3.0"},{name:"max_steps",val:": int = -1"},{name:"lr_scheduler_type",val:": typing.Union[transformers.trainer_utils.SchedulerType, str] = 'linear'"},{name:"warmup_ratio",val:": float = 0.0"},{name:"warmup_steps",val:": int = 0"},{name:"log_level",val:": typing.Optional[str] = 'passive'"},{name:"log_level_replica",val:": typing.Optional[str] = 'warning'"},{name:"log_on_each_node",val:": bool = True"},{name:"logging_dir",val:": typing.Optional[str] = None"},{name:"logging_strategy",val:": typing.Union[transformers.trainer_utils.IntervalStrategy, str] = 'steps'"},{name:"logging_first_step",val:": bool = False"},{name:"logging_steps",val:": float = 500"},{name:"logging_nan_inf_filter",val:": bool = True"},{name:"save_strategy",val:": typing.Union[transformers.trainer_utils.IntervalStrategy, str] = 'steps'"},{name:"save_steps",val:": float = 500"},{name:"save_total_limit",val:": typing.Optional[int] = None"},{name:"save_safetensors",val:": typing.Optional[bool] = False"},{name:"save_on_each_node",val:": bool = False"},{name:"no_cuda",val:": bool = False"},{name:"use_cpu",val:": bool = False"},{name:"use_mps_device",val:": bool = False"},{name:"seed",val:": int = 42"},{name:"data_seed",val:": typing.Optional[int] = None"},{name:"jit_mode_eval",val:": bool = False"},{name:"use_ipex",val:": bool = False"},{name:"bf16",val:": bool = False"},{name:"fp16",val:": bool = False"},{name:"fp16_opt_level",val:": str = 'O1'"},{name:"half_precision_backend",val:": str = 'auto'"},{name:"bf16_full_eval",val:": bool = False"},{name:"fp16_full_eval",val:": bool = False"},{name:"tf32",val:": typing.Optional[bool] = None"},{name:"local_rank",val:": int = -1"},{name:"ddp_backend",val:": typing.Optional[str] = None"},{name:"tpu_num_cores",val:": typing.Optional[int] = None"},{name:"tpu_metrics_debug",val:": bool = False"},{name:"debug",val:": typing.Union[str, typing.List[transformers.debug_utils.DebugOption]] = ''"},{name:"dataloader_drop_last",val:": bool = False"},{name:"eval_steps",val:": typing.Optional[float] = None"},{name:"dataloader_num_workers",val:": int = 0"},{name:"past_index",val:": int = -1"},{name:"run_name",val:": typing.Optional[str] = None"},{name:"disable_tqdm",val:": typing.Optional[bool] = None"},{name:"remove_unused_columns",val:": typing.Optional[bool] = True"},{name:"label_names",val:": typing.Optional[typing.List[str]] = None"},{name:"load_best_model_at_end",val:": typing.Optional[bool] = False"},{name:"metric_for_best_model",val:": typing.Optional[str] = None"},{name:"greater_is_better",val:": typing.Optional[bool] = None"},{name:"ignore_data_skip",val:": bool = False"},{name:"sharded_ddp",val:": typing.Union[typing.List[transformers.trainer_utils.ShardedDDPOption], str, NoneType] = ''"},{name:"fsdp",val:": typing.Union[typing.List[transformers.trainer_utils.FSDPOption], str, NoneType] = ''"},{name:"fsdp_min_num_params",val:": int = 0"},{name:"fsdp_config",val:": typing.Optional[str] = None"},{name:"fsdp_transformer_layer_cls_to_wrap",val:": typing.Optional[str] = None"},{name:"deepspeed",val:": typing.Optional[str] = None"},{name:"label_smoothing_factor",val:": float = 0.0"},{name:"optim",val:": typing.Union[transformers.training_args.OptimizerNames, str] = 'adamw_torch'"},{name:"optim_args",val:": typing.Optional[str] = None"},{name:"adafactor",val:": bool = False"},{name:"group_by_length",val:": bool = False"},{name:"length_column_name",val:": typing.Optional[str] = 'length'"},{name:"report_to",val:": typing.Optional[typing.List[str]] = None"},{name:"ddp_find_unused_parameters",val:": typing.Optional[bool] = None"},{name:"ddp_bucket_cap_mb",val:": typing.Optional[int] = None"},{name:"ddp_broadcast_buffers",val:": typing.Optional[bool] = None"},{name:"dataloader_pin_memory",val:": bool = True"},{name:"skip_memory_metrics",val:": bool = True"},{name:"use_legacy_prediction_loop",val:": bool = False"},{name:"push_to_hub",val:": bool = False"},{name:"resume_from_checkpoint",val:": typing.Optional[str] = None"},{name:"hub_model_id",val:": typing.Optional[str] = None"},{name:"hub_strategy",val:": typing.Union[transformers.trainer_utils.HubStrategy, str] = 'every_save'"},{name:"hub_token",val:": typing.Optional[str] = None"},{name:"hub_private_repo",val:": bool = False"},{name:"hub_always_push",val:": bool = False"},{name:"gradient_checkpointing",val:": bool = False"},{name:"include_inputs_for_metrics",val:": bool = False"},{name:"fp16_backend",val:": str = 'auto'"},{name:"push_to_hub_model_id",val:": typing.Optional[str] = None"},{name:"push_to_hub_organization",val:": typing.Optional[str] = None"},{name:"push_to_hub_token",val:": typing.Optional[str] = None"},{name:"mp_parameters",val:": str = ''"},{name:"auto_find_batch_size",val:": bool = False"},{name:"full_determinism",val:": bool = False"},{name:"torchdynamo",val:": typing.Optional[str] = None"},{name:"ray_scope",val:": typing.Optional[str] = 'last'"},{name:"ddp_timeout",val:": typing.Optional[int] = 1800"},{name:"torch_compile",val:": bool = False"},{name:"torch_compile_backend",val:": typing.Optional[str] = None"},{name:"torch_compile_mode",val:": typing.Optional[str] = None"},{name:"dispatch_batches",val:": typing.Optional[bool] = None"},{name:"include_tokens_per_second",val:": typing.Optional[bool] = False"}],parametersDescription:[{anchor:"transformers.TrainingArguments.output_dir",description:`<strong>output_dir</strong> (<code>str</code>) &#x2014;
The output directory where the model predictions and checkpoints will be written.`,name:"output_dir"},{anchor:"transformers.TrainingArguments.overwrite_output_dir",description:`<strong>overwrite_output_dir</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, overwrite the content of the output directory. Use this to continue training if <code>output_dir</code>
points to a checkpoint directory.`,name:"overwrite_output_dir"},{anchor:"transformers.TrainingArguments.do_train",description:`<strong>do_train</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to run training or not. This argument is not directly used by <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s intended to be used
by your training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"do_train"},{anchor:"transformers.TrainingArguments.do_eval",description:`<strong>do_eval</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to run evaluation on the validation set or not. Will be set to <code>True</code> if <code>evaluation_strategy</code> is
different from <code>&quot;no&quot;</code>. This argument is not directly used by <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s intended to be used by your
training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"do_eval"},{anchor:"transformers.TrainingArguments.do_predict",description:`<strong>do_predict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to run predictions on the test set or not. This argument is not directly used by <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s
intended to be used by your training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"do_predict"},{anchor:"transformers.TrainingArguments.evaluation_strategy",description:`<strong>evaluation_strategy</strong> (<code>str</code> or <a href="/docs/transformers/v4.34.0/en/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;no&quot;</code>) &#x2014;
The evaluation strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No evaluation is done during training.</li>
<li><code>&quot;steps&quot;</code>: Evaluation is done (and logged) every <code>eval_steps</code>.</li>
<li><code>&quot;epoch&quot;</code>: Evaluation is done at the end of each epoch.</li>
</ul>`,name:"evaluation_strategy"},{anchor:"transformers.TrainingArguments.prediction_loss_only",description:`<strong>prediction_loss_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When performing evaluation and generating predictions, only returns the loss.`,name:"prediction_loss_only"},{anchor:"transformers.TrainingArguments.per_device_train_batch_size",description:`<strong>per_device_train_batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
The batch size per GPU/XPU/TPU/MPS/NPU core/CPU for training.`,name:"per_device_train_batch_size"},{anchor:"transformers.TrainingArguments.per_device_eval_batch_size",description:`<strong>per_device_eval_batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
The batch size per GPU/XPU/TPU/MPS/NPU core/CPU for evaluation.`,name:"per_device_eval_batch_size"},{anchor:"transformers.TrainingArguments.gradient_accumulation_steps",description:`<strong>gradient_accumulation_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of updates steps to accumulate the gradients for, before performing a backward/update pass.</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>When using gradient accumulation, one step is counted as one step with backward pass. Therefore, logging,
evaluation, save will be conducted every <code>gradient_accumulation_steps * xxx_step</code> training examples.</p>

					</div>`,name:"gradient_accumulation_steps"},{anchor:"transformers.TrainingArguments.eval_accumulation_steps",description:`<strong>eval_accumulation_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of predictions steps to accumulate the output tensors for, before moving the results to the CPU. If
left unset, the whole predictions are accumulated on GPU/NPU/TPU before being moved to the CPU (faster but
requires more memory).`,name:"eval_accumulation_steps"},{anchor:"transformers.TrainingArguments.eval_delay",description:`<strong>eval_delay</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Number of epochs or steps to wait for before the first evaluation can be performed, depending on the
evaluation_strategy.`,name:"eval_delay"},{anchor:"transformers.TrainingArguments.learning_rate",description:`<strong>learning_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 5e-5) &#x2014;
The initial learning rate for <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> optimizer.`,name:"learning_rate"},{anchor:"transformers.TrainingArguments.weight_decay",description:`<strong>weight_decay</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The weight decay to apply (if not zero) to all layers except all bias and LayerNorm weights in <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a>
optimizer.`,name:"weight_decay"},{anchor:"transformers.TrainingArguments.adam_beta1",description:`<strong>adam_beta1</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
The beta1 hyperparameter for the <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> optimizer.`,name:"adam_beta1"},{anchor:"transformers.TrainingArguments.adam_beta2",description:`<strong>adam_beta2</strong> (<code>float</code>, <em>optional</em>, defaults to 0.999) &#x2014;
The beta2 hyperparameter for the <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> optimizer.`,name:"adam_beta2"},{anchor:"transformers.TrainingArguments.adam_epsilon",description:`<strong>adam_epsilon</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-8) &#x2014;
The epsilon hyperparameter for the <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> optimizer.`,name:"adam_epsilon"},{anchor:"transformers.TrainingArguments.max_grad_norm",description:`<strong>max_grad_norm</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
Maximum gradient norm (for gradient clipping).`,name:"max_grad_norm"},{anchor:"transformers.TrainingArguments.num_train_epochs(float,",description:`<strong>num_train_epochs(<code>float</code>,</strong> <em>optional</em>, defaults to 3.0) &#x2014;
Total number of training epochs to perform (if not an integer, will perform the decimal part percents of
the last epoch before stopping training).`,name:"num_train_epochs(float,"},{anchor:"transformers.TrainingArguments.max_steps",description:`<strong>max_steps</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
If set to a positive number, the total number of training steps to perform. Overrides <code>num_train_epochs</code>.
In case of using a finite iterable dataset the training may stop before reaching the set number of steps
when all data is exhausted`,name:"max_steps"},{anchor:"transformers.TrainingArguments.lr_scheduler_type",description:`<strong>lr_scheduler_type</strong> (<code>str</code> or <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.SchedulerType">SchedulerType</a>, <em>optional</em>, defaults to <code>&quot;linear&quot;</code>) &#x2014;
The scheduler type to use. See the documentation of <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.SchedulerType">SchedulerType</a> for all possible values.`,name:"lr_scheduler_type"},{anchor:"transformers.TrainingArguments.warmup_ratio",description:`<strong>warmup_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Ratio of total training steps used for a linear warmup from 0 to <code>learning_rate</code>.`,name:"warmup_ratio"},{anchor:"transformers.TrainingArguments.warmup_steps",description:`<strong>warmup_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of steps used for a linear warmup from 0 to <code>learning_rate</code>. Overrides any effect of <code>warmup_ratio</code>.`,name:"warmup_steps"},{anchor:"transformers.TrainingArguments.log_level",description:`<strong>log_level</strong> (<code>str</code>, <em>optional</em>, defaults to <code>passive</code>) &#x2014;
Logger log level to use on the main process. Possible choices are the log levels as strings: &#x2018;debug&#x2019;,
&#x2018;info&#x2019;, &#x2018;warning&#x2019;, &#x2018;error&#x2019; and &#x2018;critical&#x2019;, plus a &#x2018;passive&#x2019; level which doesn&#x2019;t set anything and keeps the
current log level for the Transformers library (which will be <code>&quot;warning&quot;</code> by default).`,name:"log_level"},{anchor:"transformers.TrainingArguments.log_level_replica",description:`<strong>log_level_replica</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;warning&quot;</code>) &#x2014;
Logger log level to use on replicas. Same choices as <code>log_level</code>&#x201D;`,name:"log_level_replica"},{anchor:"transformers.TrainingArguments.log_on_each_node",description:`<strong>log_on_each_node</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
In multinode distributed training, whether to log using <code>log_level</code> once per node, or only on the main
node.`,name:"log_on_each_node"},{anchor:"transformers.TrainingArguments.logging_dir",description:`<strong>logging_dir</strong> (<code>str</code>, <em>optional</em>) &#x2014;
<a href="https://www.tensorflow.org/tensorboard" rel="nofollow">TensorBoard</a> log directory. Will default to
*output_dir/runs/<strong>CURRENT_DATETIME_HOSTNAME*</strong>.`,name:"logging_dir"},{anchor:"transformers.TrainingArguments.logging_strategy",description:`<strong>logging_strategy</strong> (<code>str</code> or <a href="/docs/transformers/v4.34.0/en/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;steps&quot;</code>) &#x2014;
The logging strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No logging is done during training.</li>
<li><code>&quot;epoch&quot;</code>: Logging is done at the end of each epoch.</li>
<li><code>&quot;steps&quot;</code>: Logging is done every <code>logging_steps</code>.</li>
</ul>`,name:"logging_strategy"},{anchor:"transformers.TrainingArguments.logging_first_step",description:`<strong>logging_first_step</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to log and evaluate the first <code>global_step</code> or not.`,name:"logging_first_step"},{anchor:"transformers.TrainingArguments.logging_steps",description:`<strong>logging_steps</strong> (<code>int</code> or <code>float</code>, <em>optional</em>, defaults to 500) &#x2014;
Number of update steps between two logs if <code>logging_strategy=&quot;steps&quot;</code>. Should be an integer or a float in
range <code>[0,1)</code>. If smaller than 1, will be interpreted as ratio of total training steps.`,name:"logging_steps"},{anchor:"transformers.TrainingArguments.logging_nan_inf_filter",description:`<strong>logging_nan_inf_filter</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to filter <code>nan</code> and <code>inf</code> losses for logging. If set to <code>True</code> the loss of every step that is <code>nan</code>
or <code>inf</code> is filtered and the average loss of the current logging window is taken instead.</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><code>logging_nan_inf_filter</code> only influences the logging of loss values, it does not change the behavior the
gradient is computed or applied to the model.</p>

					</div>`,name:"logging_nan_inf_filter"},{anchor:"transformers.TrainingArguments.save_strategy",description:`<strong>save_strategy</strong> (<code>str</code> or <a href="/docs/transformers/v4.34.0/en/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;steps&quot;</code>) &#x2014;
The checkpoint save strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No save is done during training.</li>
<li><code>&quot;epoch&quot;</code>: Save is done at the end of each epoch.</li>
<li><code>&quot;steps&quot;</code>: Save is done every <code>save_steps</code>.</li>
</ul>`,name:"save_strategy"},{anchor:"transformers.TrainingArguments.save_steps",description:`<strong>save_steps</strong> (<code>int</code> or <code>float</code>, <em>optional</em>, defaults to 500) &#x2014;
Number of updates steps before two checkpoint saves if <code>save_strategy=&quot;steps&quot;</code>. Should be an integer or a
float in range <code>[0,1)</code>. If smaller than 1, will be interpreted as ratio of total training steps.`,name:"save_steps"},{anchor:"transformers.TrainingArguments.save_total_limit",description:`<strong>save_total_limit</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If a value is passed, will limit the total amount of checkpoints. Deletes the older checkpoints in
<code>output_dir</code>. When <code>load_best_model_at_end</code> is enabled, the &#x201C;best&#x201D; checkpoint according to
<code>metric_for_best_model</code> will always be retained in addition to the most recent ones. For example, for
<code>save_total_limit=5</code> and <code>load_best_model_at_end</code>, the four last checkpoints will always be retained
alongside the best model. When <code>save_total_limit=1</code> and <code>load_best_model_at_end</code>, it is possible that two
checkpoints are saved: the last one and the best one (if they are different).`,name:"save_total_limit"},{anchor:"transformers.TrainingArguments.save_safetensors",description:`<strong>save_safetensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Use <a href="https://huggingface.co/docs/safetensors" rel="nofollow">safetensors</a> saving and loading for state dicts instead of
default <code>torch.load</code> and <code>torch.save</code>.`,name:"save_safetensors"},{anchor:"transformers.TrainingArguments.save_on_each_node",description:`<strong>save_on_each_node</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When doing multi-node distributed training, whether to save models and checkpoints on each node, or only on
the main one.</p>
<p>This should not be activated when the different nodes use the same storage as the files will be saved with
the same names for each node.`,name:"save_on_each_node"},{anchor:"transformers.TrainingArguments.use_cpu",description:`<strong>use_cpu</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to use cpu. If set to False, we will use cuda or mps device if available.`,name:"use_cpu"},{anchor:"transformers.TrainingArguments.seed",description:`<strong>seed</strong> (<code>int</code>, <em>optional</em>, defaults to 42) &#x2014;
Random seed that will be set at the beginning of training. To ensure reproducibility across runs, use the
<code>~Trainer.model_init</code> function to instantiate the model if it has some randomly initialized parameters.`,name:"seed"},{anchor:"transformers.TrainingArguments.data_seed",description:`<strong>data_seed</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Random seed to be used with data samplers. If not set, random generators for data sampling will use the
same seed as <code>seed</code>. This can be used to ensure reproducibility of data sampling, independent of the model
seed.`,name:"data_seed"},{anchor:"transformers.TrainingArguments.jit_mode_eval",description:`<strong>jit_mode_eval</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to use PyTorch jit trace for inference.`,name:"jit_mode_eval"},{anchor:"transformers.TrainingArguments.use_ipex",description:`<strong>use_ipex</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Use Intel extension for PyTorch when it is available. <a href="https://github.com/intel/intel-extension-for-pytorch" rel="nofollow">IPEX
installation</a>.`,name:"use_ipex"},{anchor:"transformers.TrainingArguments.bf16",description:`<strong>bf16</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use bf16 16-bit (mixed) precision training instead of 32-bit training. Requires Ampere or higher
NVIDIA architecture or using CPU (use_cpu) or Ascend NPU. This is an experimental API and it may change.`,name:"bf16"},{anchor:"transformers.TrainingArguments.fp16",description:`<strong>fp16</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use fp16 16-bit (mixed) precision training instead of 32-bit training.`,name:"fp16"},{anchor:"transformers.TrainingArguments.fp16_opt_level",description:`<strong>fp16_opt_level</strong> (<code>str</code>, <em>optional</em>, defaults to &#x2018;O1&#x2019;) &#x2014;
For <code>fp16</code> training, Apex AMP optimization level selected in [&#x2018;O0&#x2019;, &#x2018;O1&#x2019;, &#x2018;O2&#x2019;, and &#x2018;O3&#x2019;]. See details on
the <a href="https://nvidia.github.io/apex/amp" rel="nofollow">Apex documentation</a>.`,name:"fp16_opt_level"},{anchor:"transformers.TrainingArguments.fp16_backend",description:`<strong>fp16_backend</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;auto&quot;</code>) &#x2014;
This argument is deprecated. Use <code>half_precision_backend</code> instead.`,name:"fp16_backend"},{anchor:"transformers.TrainingArguments.half_precision_backend",description:`<strong>half_precision_backend</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;auto&quot;</code>) &#x2014;
The backend to use for mixed precision training. Must be one of <code>&quot;auto&quot;, &quot;cuda_amp&quot;, &quot;apex&quot;, &quot;cpu_amp&quot;</code>.
<code>&quot;auto&quot;</code> will use CPU/CUDA AMP or APEX depending on the PyTorch version detected, while the other choices
will force the requested backend.`,name:"half_precision_backend"},{anchor:"transformers.TrainingArguments.bf16_full_eval",description:`<strong>bf16_full_eval</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use full bfloat16 evaluation instead of 32-bit. This will be faster and save memory but can harm
metric values. This is an experimental API and it may change.`,name:"bf16_full_eval"},{anchor:"transformers.TrainingArguments.fp16_full_eval",description:`<strong>fp16_full_eval</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use full float16 evaluation instead of 32-bit. This will be faster and save memory but can harm
metric values.`,name:"fp16_full_eval"},{anchor:"transformers.TrainingArguments.tf32",description:`<strong>tf32</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to enable the TF32 mode, available in Ampere and newer GPU architectures. The default value depends
on PyTorch&#x2019;s version default of <code>torch.backends.cuda.matmul.allow_tf32</code>. For more details please refer to
the <a href="https://huggingface.co/docs/transformers/performance#tf32" rel="nofollow">TF32</a> documentation. This is an
experimental API and it may change.`,name:"tf32"},{anchor:"transformers.TrainingArguments.local_rank",description:`<strong>local_rank</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Rank of the process during distributed training.`,name:"local_rank"},{anchor:"transformers.TrainingArguments.ddp_backend",description:`<strong>ddp_backend</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The backend to use for distributed training. Must be one of <code>&quot;nccl&quot;</code>, <code>&quot;mpi&quot;</code>, <code>&quot;ccl&quot;</code>, <code>&quot;gloo&quot;</code>, <code>&quot;hccl&quot;</code>.`,name:"ddp_backend"},{anchor:"transformers.TrainingArguments.tpu_num_cores",description:`<strong>tpu_num_cores</strong> (<code>int</code>, <em>optional</em>) &#x2014;
When training on TPU, the number of TPU cores (automatically passed by launcher script).`,name:"tpu_num_cores"},{anchor:"transformers.TrainingArguments.dataloader_drop_last",description:`<strong>dataloader_drop_last</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to drop the last incomplete batch (if the length of the dataset is not divisible by the batch size)
or not.`,name:"dataloader_drop_last"},{anchor:"transformers.TrainingArguments.eval_steps",description:`<strong>eval_steps</strong> (<code>int</code> or <code>float</code>, <em>optional</em>) &#x2014;
Number of update steps between two evaluations if <code>evaluation_strategy=&quot;steps&quot;</code>. Will default to the same
value as <code>logging_steps</code> if not set. Should be an integer or a float in range <code>[0,1)</code>. If smaller than 1,
will be interpreted as ratio of total training steps.`,name:"eval_steps"},{anchor:"transformers.TrainingArguments.dataloader_num_workers",description:`<strong>dataloader_num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of subprocesses to use for data loading (PyTorch only). 0 means that the data will be loaded in the
main process.`,name:"dataloader_num_workers"},{anchor:"transformers.TrainingArguments.past_index",description:`<strong>past_index</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Some models like <a href="../model_doc/transformerxl">TransformerXL</a> or <a href="../model_doc/xlnet">XLNet</a> can make use of
the past hidden states for their predictions. If this argument is set to a positive int, the <code>Trainer</code> will
use the corresponding output (usually index 2) as the past state and feed it to the model at the next
training step under the keyword argument <code>mems</code>.`,name:"past_index"},{anchor:"transformers.TrainingArguments.run_name",description:`<strong>run_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A descriptor for the run. Typically used for <a href="https://www.wandb.com/" rel="nofollow">wandb</a> and
<a href="https://www.mlflow.org/" rel="nofollow">mlflow</a> logging.`,name:"run_name"},{anchor:"transformers.TrainingArguments.disable_tqdm",description:`<strong>disable_tqdm</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to disable the tqdm progress bars and table of metrics produced by
<code>~notebook.NotebookTrainingTracker</code> in Jupyter Notebooks. Will default to <code>True</code> if the logging level is
set to warn or lower (default), <code>False</code> otherwise.`,name:"disable_tqdm"},{anchor:"transformers.TrainingArguments.remove_unused_columns",description:`<strong>remove_unused_columns</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to automatically remove the columns unused by the model forward method.</p>
<p>(Note that this behavior is not implemented for <code>TFTrainer</code> yet.)`,name:"remove_unused_columns"},{anchor:"transformers.TrainingArguments.label_names",description:`<strong>label_names</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
The list of keys in your dictionary of inputs that correspond to the labels.</p>
<p>Will eventually default to the list of argument names accepted by the model that contain the word &#x201C;label&#x201D;,
except if the model used is one of the <code>XxxForQuestionAnswering</code> in which case it will also include the
<code>[&quot;start_positions&quot;, &quot;end_positions&quot;]</code> keys.`,name:"label_names"},{anchor:"transformers.TrainingArguments.load_best_model_at_end",description:`<strong>load_best_model_at_end</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to load the best model found during training at the end of training. When this option is
enabled, the best checkpoint will always be saved. See
<a href="https://huggingface.co/docs/transformers/main_classes/trainer#transformers.TrainingArguments.save_total_limit" rel="nofollow"><code>save_total_limit</code></a>
for more.</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>When set to <code>True</code>, the parameters <code>save_strategy</code> needs to be the same as <code>evaluation_strategy</code>, and in
the case it is &#x201C;steps&#x201D;, <code>save_steps</code> must be a round multiple of <code>eval_steps</code>.</p>

					</div>`,name:"load_best_model_at_end"},{anchor:"transformers.TrainingArguments.metric_for_best_model",description:`<strong>metric_for_best_model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Use in conjunction with <code>load_best_model_at_end</code> to specify the metric to use to compare two different
models. Must be the name of a metric returned by the evaluation with or without the prefix <code>&quot;eval_&quot;</code>. Will
default to <code>&quot;loss&quot;</code> if unspecified and <code>load_best_model_at_end=True</code> (to use the evaluation loss).</p>
<p>If you set this value, <code>greater_is_better</code> will default to <code>True</code>. Don&#x2019;t forget to set it to <code>False</code> if
your metric is better when lower.`,name:"metric_for_best_model"},{anchor:"transformers.TrainingArguments.greater_is_better",description:`<strong>greater_is_better</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Use in conjunction with <code>load_best_model_at_end</code> and <code>metric_for_best_model</code> to specify if better models
should have a greater metric or not. Will default to:</p>
<ul>
<li><code>True</code> if <code>metric_for_best_model</code> is set to a value that isn&#x2019;t <code>&quot;loss&quot;</code> or <code>&quot;eval_loss&quot;</code>.</li>
<li><code>False</code> if <code>metric_for_best_model</code> is not set, or set to <code>&quot;loss&quot;</code> or <code>&quot;eval_loss&quot;</code>.</li>
</ul>`,name:"greater_is_better"},{anchor:"transformers.TrainingArguments.ignore_data_skip",description:`<strong>ignore_data_skip</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When resuming training, whether or not to skip the epochs and batches to get the data loading at the same
stage as in the previous training. If set to <code>True</code>, the training will begin faster (as that skipping step
can take a long time) but will not yield the same results as the interrupted training would have.`,name:"ignore_data_skip"},{anchor:"transformers.TrainingArguments.sharded_ddp",description:`<strong>sharded_ddp</strong> (<code>bool</code>, <code>str</code> or list of <code>ShardedDDPOption</code>, <em>optional</em>, defaults to <code>&apos;&apos;</code>) &#x2014;
Use Sharded DDP training from <a href="https://github.com/facebookresearch/fairscale" rel="nofollow">FairScale</a> (in distributed
training only). This is an experimental feature.</p>
<p>A list of options along the following:</p>
<ul>
<li><code>&quot;simple&quot;</code>: to use first instance of sharded DDP released by fairscale (<code>ShardedDDP</code>) similar to ZeRO-2.</li>
<li><code>&quot;zero_dp_2&quot;</code>: to use the second instance of sharded DPP released by fairscale (<code>FullyShardedDDP</code>) in
Zero-2 mode (with <code>reshard_after_forward=False</code>).</li>
<li><code>&quot;zero_dp_3&quot;</code>: to use the second instance of sharded DPP released by fairscale (<code>FullyShardedDDP</code>) in
Zero-3 mode (with <code>reshard_after_forward=True</code>).</li>
<li><code>&quot;offload&quot;</code>: to add ZeRO-offload (only compatible with <code>&quot;zero_dp_2&quot;</code> and <code>&quot;zero_dp_3&quot;</code>).</li>
</ul>
<p>If a string is passed, it will be split on space. If a bool is passed, it will be converted to an empty
list for <code>False</code> and <code>[&quot;simple&quot;]</code> for <code>True</code>.`,name:"sharded_ddp"},{anchor:"transformers.TrainingArguments.fsdp",description:`<strong>fsdp</strong> (<code>bool</code>, <code>str</code> or list of <code>FSDPOption</code>, <em>optional</em>, defaults to <code>&apos;&apos;</code>) &#x2014;
Use PyTorch Distributed Parallel Training (in distributed training only).</p>
<p>A list of options along the following:</p>
<ul>
<li><code>&quot;full_shard&quot;</code>: Shard parameters, gradients and optimizer states.</li>
<li><code>&quot;shard_grad_op&quot;</code>: Shard optimizer states and gradients.</li>
<li><code>&quot;offload&quot;</code>: Offload parameters and gradients to CPUs (only compatible with <code>&quot;full_shard&quot;</code> and
<code>&quot;shard_grad_op&quot;</code>).</li>
<li><code>&quot;auto_wrap&quot;</code>: Automatically recursively wrap layers with FSDP using <code>default_auto_wrap_policy</code>.</li>
</ul>`,name:"fsdp"},{anchor:"transformers.TrainingArguments.fsdp_config",description:`<strong>fsdp_config</strong> (<code>str</code> or <code>dict</code>, <em>optional</em>) &#x2014;
Config to be used with fsdp (Pytorch Distributed Parallel Training). The value is either a location of
deepspeed json config file (e.g., <code>ds_config.json</code>) or an already loaded json file as <code>dict</code>.</p>
<p>A List of config and its options:</p>
<ul>
<li>
<p>min_num_params (<code>int</code>, <em>optional</em>, defaults to <code>0</code>):
FSDP&#x2019;s minimum number of parameters for Default Auto Wrapping. (useful only when <code>fsdp</code> field is
passed).</p>
</li>
<li>
<p>transformer_layer_cls_to_wrap (<code>List[str]</code>, <em>optional</em>):
List of transformer layer class names (case-sensitive) to wrap, e.g, <code>BertLayer</code>, <code>GPTJBlock</code>,
<code>T5Block</code> &#x2026; (useful only when <code>fsdp</code> flag is passed).</p>
</li>
<li>
<p>backward_prefetch (<code>str</code>, <em>optional</em>)
FSDP&#x2019;s backward prefetch mode. Controls when to prefetch next set of parameters (useful only when
<code>fsdp</code> field is passed).</p>
<p>A list of options along the following:</p>
<ul>
<li><code>&quot;backward_pre&quot;</code> : Prefetches the next set of parameters before the current set of parameter&#x2019;s
gradient
computation.</li>
<li><code>&quot;backward_post&quot;</code> : This prefetches the next set of parameters after the current set of
parameter&#x2019;s
gradient computation.</li>
</ul>
</li>
<li>
<p>forward_prefetch (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
FSDP&#x2019;s forward prefetch mode (useful only when <code>fsdp</code> field is passed).
If <code>&quot;True&quot;</code>, then FSDP explicitly prefetches the next upcoming all-gather while executing in the
forward pass.</p>
</li>
<li>
<p>limit_all_gathers (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
FSDP&#x2019;s limit_all_gathers (useful only when <code>fsdp</code> field is passed).
If <code>&quot;True&quot;</code>, FSDP explicitly synchronizes the CPU thread to prevent too many in-flight
all-gathers.</p>
</li>
<li>
<p>use_orig_params (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
If <code>&quot;True&quot;</code>, allows non-uniform <code>requires_grad</code> during init, which means support for interspersed
frozen and trainable paramteres. Useful in cases such as parameter-efficient fine-tuning. Please
refer this
[blog](<a href="https://dev-discuss.pytorch.org/t/rethinking-pytorch-fully-sharded-data-parallel-fsdp-from-first-principles/1019" rel="nofollow">https://dev-discuss.pytorch.org/t/rethinking-pytorch-fully-sharded-data-parallel-fsdp-from-first-principles/1019</a></p>
</li>
<li>
<p>sync_module_states (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>)
If <code>&quot;True&quot;</code>, each individually wrapped FSDP unit will broadcast module parameters from rank 0 to
ensure they are the same across all ranks after initialization</p>
</li>
<li>
<p>xla (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether to use PyTorch/XLA Fully Sharded Data Parallel Training. This is an experimental feature
and its API may evolve in the future.</p>
</li>
<li>
<p>xla_fsdp_settings (<code>dict</code>, <em>optional</em>)
The value is a dictionary which stores the XLA FSDP wrapping parameters.</p>
<p>For a complete list of options, please see <a href="https://github.com/pytorch/xla/blob/master/torch_xla/distributed/fsdp/xla_fully_sharded_data_parallel.py" rel="nofollow">here</a>.</p>
</li>
<li>
<p>xla_fsdp_grad_ckpt (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Will use gradient checkpointing over each nested XLA FSDP wrapped layer. This setting can only be
used when the xla flag is set to true, and an auto wrapping policy is specified through
fsdp_min_num_params or fsdp_transformer_layer_cls_to_wrap.</p>
</li>
<li>
<p>activation_checkpointing (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
If True, activation checkpointing is a technique to reduce memory usage by clearing activations of
certain layers and recomputing them during a backward pass. Effectively, this trades extra
computation time for reduced memory usage.</p>
</li>
</ul>`,name:"fsdp_config"},{anchor:"transformers.TrainingArguments.deepspeed",description:`<strong>deepspeed</strong> (<code>str</code> or <code>dict</code>, <em>optional</em>) &#x2014;
Use <a href="https://github.com/microsoft/deepspeed" rel="nofollow">Deepspeed</a>. This is an experimental feature and its API may
evolve in the future. The value is either the location of DeepSpeed json config file (e.g.,
<code>ds_config.json</code>) or an already loaded json file as a <code>dict</code>&#x201D;`,name:"deepspeed"},{anchor:"transformers.TrainingArguments.label_smoothing_factor",description:`<strong>label_smoothing_factor</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The label smoothing factor to use. Zero means no label smoothing, otherwise the underlying onehot-encoded
labels are changed from 0s and 1s to <code>label_smoothing_factor/num_labels</code> and <code>1 - label_smoothing_factor + label_smoothing_factor/num_labels</code> respectively.`,name:"label_smoothing_factor"},{anchor:"transformers.TrainingArguments.debug",description:`<strong>debug</strong> (<code>str</code> or list of <code>DebugOption</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
Enable one or more debug features. This is an experimental feature.</p>
<p>Possible options are:</p>
<ul>
<li><code>&quot;underflow_overflow&quot;</code>: detects overflow in model&#x2019;s input/outputs and reports the last frames that led to
the event</li>
<li><code>&quot;tpu_metrics_debug&quot;</code>: print debug metrics on TPU</li>
</ul>
<p>The options should be separated by whitespaces.`,name:"debug"},{anchor:"transformers.TrainingArguments.optim",description:`<strong>optim</strong> (<code>str</code> or <code>training_args.OptimizerNames</code>, <em>optional</em>, defaults to <code>&quot;adamw_torch&quot;</code>) &#x2014;
The optimizer to use: adamw_hf, adamw_torch, adamw_torch_fused, adamw_apex_fused, adamw_anyprecision or
adafactor.`,name:"optim"},{anchor:"transformers.TrainingArguments.optim_args",description:`<strong>optim_args</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Optional arguments that are supplied to AnyPrecisionAdamW.`,name:"optim_args"},{anchor:"transformers.TrainingArguments.group_by_length",description:`<strong>group_by_length</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to group together samples of roughly the same length in the training dataset (to minimize
padding applied and be more efficient). Only useful if applying dynamic padding.`,name:"group_by_length"},{anchor:"transformers.TrainingArguments.length_column_name",description:`<strong>length_column_name</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;length&quot;</code>) &#x2014;
Column name for precomputed lengths. If the column exists, grouping by length will use these values rather
than computing them on train startup. Ignored unless <code>group_by_length</code> is <code>True</code> and the dataset is an
instance of <code>Dataset</code>.`,name:"length_column_name"},{anchor:"transformers.TrainingArguments.report_to",description:`<strong>report_to</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>, defaults to <code>&quot;all&quot;</code>) &#x2014;
The list of integrations to report the results and logs to. Supported platforms are <code>&quot;azure_ml&quot;</code>,
<code>&quot;clearml&quot;</code>, <code>&quot;codecarbon&quot;</code>, <code>&quot;comet_ml&quot;</code>, <code>&quot;dagshub&quot;</code>, <code>&quot;flyte&quot;</code>, <code>&quot;mlflow&quot;</code>, <code>&quot;neptune&quot;</code>,
<code>&quot;tensorboard&quot;</code>, and <code>&quot;wandb&quot;</code>. Use <code>&quot;all&quot;</code> to report to all integrations installed, <code>&quot;none&quot;</code> for no
integrations.`,name:"report_to"},{anchor:"transformers.TrainingArguments.ddp_find_unused_parameters",description:`<strong>ddp_find_unused_parameters</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>find_unused_parameters</code> passed to
<code>DistributedDataParallel</code>. Will default to <code>False</code> if gradient checkpointing is used, <code>True</code> otherwise.`,name:"ddp_find_unused_parameters"},{anchor:"transformers.TrainingArguments.ddp_bucket_cap_mb",description:`<strong>ddp_bucket_cap_mb</strong> (<code>int</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>bucket_cap_mb</code> passed to <code>DistributedDataParallel</code>.`,name:"ddp_bucket_cap_mb"},{anchor:"transformers.TrainingArguments.ddp_broadcast_buffers",description:`<strong>ddp_broadcast_buffers</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>broadcast_buffers</code> passed to
<code>DistributedDataParallel</code>. Will default to <code>False</code> if gradient checkpointing is used, <code>True</code> otherwise.`,name:"ddp_broadcast_buffers"},{anchor:"transformers.TrainingArguments.dataloader_pin_memory",description:`<strong>dataloader_pin_memory</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether you want to pin memory in data loaders or not. Will default to <code>True</code>.`,name:"dataloader_pin_memory"},{anchor:"transformers.TrainingArguments.skip_memory_metrics",description:`<strong>skip_memory_metrics</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to skip adding of memory profiler reports to metrics. This is skipped by default because it slows
down the training and evaluation speed.`,name:"skip_memory_metrics"},{anchor:"transformers.TrainingArguments.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 the model to the Hub every time the model is saved. If this is activated,
<code>output_dir</code> will begin a git directory synced with the repo (determined by <code>hub_model_id</code>) and the content
will be pushed each time a save is triggered (depending on your <code>save_strategy</code>). Calling
<a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer.save_model">save_model()</a> will also trigger a push.</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 <code>output_dir</code> exists, it needs to be a local clone of the repository to which the <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a> will be
pushed.</p>

					</div>`,name:"push_to_hub"},{anchor:"transformers.TrainingArguments.resume_from_checkpoint",description:`<strong>resume_from_checkpoint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The path to a folder with a valid checkpoint for your model. This argument is not directly used by
<a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s intended to be used by your training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"resume_from_checkpoint"},{anchor:"transformers.TrainingArguments.hub_model_id",description:`<strong>hub_model_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the repository to keep in sync with the local <em>output_dir</em>. It can be a simple model ID in
which case the model will be pushed in your namespace. Otherwise it should be the whole repository name,
for instance <code>&quot;user_name/model&quot;</code>, which allows you to push to an organization you are a member of with
<code>&quot;organization_name/model&quot;</code>. Will default to <code>user_name/output_dir_name</code> with <em>output_dir_name</em> being the
name of <code>output_dir</code>.</p>
<p>Will default to the name of <code>output_dir</code>.`,name:"hub_model_id"},{anchor:"transformers.TrainingArguments.hub_strategy",description:`<strong>hub_strategy</strong> (<code>str</code> or <code>HubStrategy</code>, <em>optional</em>, defaults to <code>&quot;every_save&quot;</code>) &#x2014;
Defines the scope of what is pushed to the Hub and when. Possible values are:</p>
<ul>
<li><code>&quot;end&quot;</code>: push the model, its configuration, the tokenizer (if passed along to the <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>) and a
draft of a model card when the <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer.save_model">save_model()</a> method is called.</li>
<li><code>&quot;every_save&quot;</code>: push the model, its configuration, the tokenizer (if passed along to the <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>) and
a draft of a model card each time there is a model save. The pushes are asynchronous to not block
training, and in case the save are very frequent, a new push is only attempted if the previous one is
finished. A last push is made with the final model at the end of training.</li>
<li><code>&quot;checkpoint&quot;</code>: like <code>&quot;every_save&quot;</code> but the latest checkpoint is also pushed in a subfolder named
last-checkpoint, allowing you to resume training easily with
<code>trainer.train(resume_from_checkpoint=&quot;last-checkpoint&quot;)</code>.</li>
<li><code>&quot;all_checkpoints&quot;</code>: like <code>&quot;checkpoint&quot;</code> but all checkpoints are pushed like they appear in the output
folder (so you will get one checkpoint folder per folder in your final repository)</li>
</ul>`,name:"hub_strategy"},{anchor:"transformers.TrainingArguments.hub_token",description:`<strong>hub_token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to use to push the model to the Hub. Will default to the token in the cache folder obtained with
<code>huggingface-cli login</code>.`,name:"hub_token"},{anchor:"transformers.TrainingArguments.hub_private_repo",description:`<strong>hub_private_repo</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, the Hub repo will be set to private.`,name:"hub_private_repo"},{anchor:"transformers.TrainingArguments.hub_always_push",description:`<strong>hub_always_push</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Unless this is <code>True</code>, the <code>Trainer</code> will skip pushing a checkpoint when the previous push is not finished.`,name:"hub_always_push"},{anchor:"transformers.TrainingArguments.gradient_checkpointing",description:`<strong>gradient_checkpointing</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, use gradient checkpointing to save memory at the expense of slower backward pass.`,name:"gradient_checkpointing"},{anchor:"transformers.TrainingArguments.include_inputs_for_metrics",description:`<strong>include_inputs_for_metrics</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the inputs will be passed to the <code>compute_metrics</code> function. This is intended for metrics
that need inputs, predictions and references for scoring calculation in Metric class.`,name:"include_inputs_for_metrics"},{anchor:"transformers.TrainingArguments.auto_find_batch_size",description:`<strong>auto_find_batch_size</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to find a batch size that will fit into memory automatically through exponential decay, avoiding
CUDA Out-of-Memory errors. Requires accelerate to be installed (<code>pip install accelerate</code>)`,name:"auto_find_batch_size"},{anchor:"transformers.TrainingArguments.full_determinism",description:`<strong>full_determinism</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, <a href="/docs/transformers/v4.34.0/en/internal/trainer_utils#transformers.enable_full_determinism">enable_full_determinism()</a> is called instead of <a href="/docs/transformers/v4.34.0/en/internal/trainer_utils#transformers.set_seed">set_seed()</a> to ensure reproducible results in
distributed training. Important: this will negatively impact the performance, so only use it for debugging.`,name:"full_determinism"},{anchor:"transformers.TrainingArguments.torchdynamo",description:`<strong>torchdynamo</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If set, the backend compiler for TorchDynamo. Possible choices are <code>&quot;eager&quot;</code>, <code>&quot;aot_eager&quot;</code>, <code>&quot;inductor&quot;</code>,
<code>&quot;nvfuser&quot;</code>, <code>&quot;aot_nvfuser&quot;</code>, <code>&quot;aot_cudagraphs&quot;</code>, <code>&quot;ofi&quot;</code>, <code>&quot;fx2trt&quot;</code>, <code>&quot;onnxrt&quot;</code> and <code>&quot;ipex&quot;</code>.`,name:"torchdynamo"},{anchor:"transformers.TrainingArguments.ray_scope",description:`<strong>ray_scope</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;last&quot;</code>) &#x2014;
The scope to use when doing hyperparameter search with Ray. By default, <code>&quot;last&quot;</code> will be used. Ray will
then use the last checkpoint of all trials, compare those, and select the best one. However, other options
are also available. See the <a href="https://docs.ray.io/en/latest/tune/api_docs/analysis.html#ray.tune.ExperimentAnalysis.get_best_trial" rel="nofollow">Ray documentation</a> for
more options.`,name:"ray_scope"},{anchor:"transformers.TrainingArguments.ddp_timeout",description:`<strong>ddp_timeout</strong> (<code>int</code>, <em>optional</em>, defaults to 1800) &#x2014;
The timeout for <code>torch.distributed.init_process_group</code> calls, used to avoid GPU socket timeouts when
performing slow operations in distributed runnings. Please refer the [PyTorch documentation]
(<a href="https://pytorch.org/docs/stable/distributed.html#torch.distributed.init_process_group" rel="nofollow">https://pytorch.org/docs/stable/distributed.html#torch.distributed.init_process_group</a>) for more
information.`,name:"ddp_timeout"},{anchor:"transformers.TrainingArguments.use_mps_device",description:`<strong>use_mps_device</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
This argument is deprecated.<code>mps</code> device will be used if it is available similar to <code>cuda</code> device.`,name:"use_mps_device"},{anchor:"transformers.TrainingArguments.torch_compile",description:`<strong>torch_compile</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to compile the model using PyTorch 2.0
<a href="https://pytorch.org/get-started/pytorch-2.0/" rel="nofollow"><code>torch.compile</code></a>.</p>
<p>This will use the best defaults for the <a href="https://pytorch.org/docs/stable/generated/torch.compile.html?highlight=torch+compile#torch.compile" rel="nofollow"><code>torch.compile</code>
API</a>.
You can customize the defaults with the argument <code>torch_compile_backend</code> and <code>torch_compile_mode</code> but we
don&#x2019;t guarantee any of them will work as the support is progressively rolled in in PyTorch.</p>
<p>This flag and the whole compile API is experimental and subject to change in future releases.`,name:"torch_compile"},{anchor:"transformers.TrainingArguments.torch_compile_backend",description:`<strong>torch_compile_backend</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The backend to use in <code>torch.compile</code>. If set to any value, <code>torch_compile</code> will be set to <code>True</code>.</p>
<p>Refer to the PyTorch doc for possible values and note that they may change across PyTorch versions.</p>
<p>This flag is experimental and subject to change in future releases.`,name:"torch_compile_backend"},{anchor:"transformers.TrainingArguments.torch_compile_mode",description:`<strong>torch_compile_mode</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The mode to use in <code>torch.compile</code>. If set to any value, <code>torch_compile</code> will be set to <code>True</code>.</p>
<p>Refer to the PyTorch doc for possible values and note that they may change across PyTorch versions.</p>
<p>This flag is experimental and subject to change in future releases.`,name:"torch_compile_mode"},{anchor:"transformers.TrainingArguments.include_tokens_per_second",description:`<strong>include_tokens_per_second</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to compute the number of tokens per second per device for training speed metrics.</p>
<p>This will iterate over the entire training dataloader once beforehand,</p>
<p>and will slow down the entire process.`,name:"include_tokens_per_second"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args.py#L161"}}),ln=new k({props:{name:"get_process_log_level",anchor:"transformers.TrainingArguments.get_process_log_level",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args.py#L2008"}}),dn=new k({props:{name:"get_warmup_steps",anchor:"transformers.TrainingArguments.get_warmup_steps",parameters:[{name:"num_training_steps",val:": int"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args.py#L2097"}}),cn=new k({props:{name:"main_process_first",anchor:"transformers.TrainingArguments.main_process_first",parameters:[{name:"local",val:" = True"},{name:"desc",val:" = 'work'"}],parametersDescription:[{anchor:"transformers.TrainingArguments.main_process_first.local",description:`<strong>local</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
if <code>True</code> first means process of rank 0 of each node if <code>False</code> first means process of rank 0 of node
rank 0 In multi-node environment with a shared filesystem you most likely will want to use
<code>local=False</code> so that only the main process of the first node will do the processing. If however, the
filesystem is not shared, then the main process of each node will need to do the processing, which is
the default behavior.`,name:"local"},{anchor:"transformers.TrainingArguments.main_process_first.desc",description:`<strong>desc</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;work&quot;</code>) &#x2014;
a work description to be used in debug logs`,name:"desc"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args.py#L2046"}}),pn=new k({props:{name:"set_dataloader",anchor:"transformers.TrainingArguments.set_dataloader",parameters:[{name:"train_batch_size",val:": int = 8"},{name:"eval_batch_size",val:": int = 8"},{name:"drop_last",val:": bool = False"},{name:"num_workers",val:": int = 0"},{name:"pin_memory",val:": bool = True"},{name:"auto_find_batch_size",val:": bool = False"},{name:"ignore_data_skip",val:": bool = False"},{name:"sampler_seed",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_dataloader.drop_last",description:`<strong>drop_last</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to drop the last incomplete batch (if the length of the dataset is not divisible by the batch
size) or not.`,name:"drop_last"},{anchor:"transformers.TrainingArguments.set_dataloader.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of subprocesses to use for data loading (PyTorch only). 0 means that the data will be loaded in
the main process.`,name:"num_workers"},{anchor:"transformers.TrainingArguments.set_dataloader.pin_memory",description:`<strong>pin_memory</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether you want to pin memory in data loaders or not. Will default to <code>True</code>.`,name:"pin_memory"},{anchor:"transformers.TrainingArguments.set_dataloader.auto_find_batch_size",description:`<strong>auto_find_batch_size</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to find a batch size that will fit into memory automatically through exponential decay,
avoiding CUDA Out-of-Memory errors. Requires accelerate to be installed (<code>pip install accelerate</code>)`,name:"auto_find_batch_size"},{anchor:"transformers.TrainingArguments.set_dataloader.ignore_data_skip",description:`<strong>ignore_data_skip</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When resuming training, whether or not to skip the epochs and batches to get the data loading at the
same stage as in the previous training. If set to <code>True</code>, the training will begin faster (as that
skipping step can take a long time) but will not yield the same results as the interrupted training
would have.`,name:"ignore_data_skip"},{anchor:"transformers.TrainingArguments.set_dataloader.sampler_seed",description:`<strong>sampler_seed</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Random seed to be used with data samplers. If not set, random generators for data sampling will use the
same seed as <code>self.seed</code>. This can be used to ensure reproducibility of data sampling, independent of
the model seed.`,name:"sampler_seed"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args.py#L2608"}}),yt=new Me({props:{anchor:"transformers.TrainingArguments.set_dataloader.example",$$slots:{default:[FT]},$$scope:{ctx:C}}}),mn=new k({props:{name:"set_evaluate",anchor:"transformers.TrainingArguments.set_evaluate",parameters:[{name:"strategy",val:": typing.Union[str, transformers.trainer_utils.IntervalStrategy] = 'no'"},{name:"steps",val:": int = 500"},{name:"batch_size",val:": int = 8"},{name:"accumulation_steps",val:": typing.Optional[int] = None"},{name:"delay",val:": typing.Optional[float] = None"},{name:"loss_only",val:": bool = False"},{name:"jit_mode",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_evaluate.strategy",description:`<strong>strategy</strong> (<code>str</code> or <a href="/docs/transformers/v4.34.0/en/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;no&quot;</code>) &#x2014;
The evaluation strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No evaluation is done during training.</li>
<li><code>&quot;steps&quot;</code>: Evaluation is done (and logged) every <code>steps</code>.</li>
<li><code>&quot;epoch&quot;</code>: Evaluation is done at the end of each epoch.</li>
</ul>
<p>Setting a <code>strategy</code> different from <code>&quot;no&quot;</code> will set <code>self.do_eval</code> to <code>True</code>.`,name:"strategy"},{anchor:"transformers.TrainingArguments.set_evaluate.steps",description:`<strong>steps</strong> (<code>int</code>, <em>optional</em>, defaults to 500) &#x2014;
Number of update steps between two evaluations if <code>strategy=&quot;steps&quot;</code>.`,name:"steps"},{anchor:"transformers.TrainingArguments.set_evaluate.batch_size",description:`<strong>batch_size</strong> (<code>int</code> <em>optional</em>, defaults to 8) &#x2014;
The batch size per device (GPU/TPU core/CPU&#x2026;) used for evaluation.`,name:"batch_size"},{anchor:"transformers.TrainingArguments.set_evaluate.accumulation_steps",description:`<strong>accumulation_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of predictions steps to accumulate the output tensors for, before moving the results to the CPU.
If left unset, the whole predictions are accumulated on GPU/TPU before being moved to the CPU (faster
but requires more memory).`,name:"accumulation_steps"},{anchor:"transformers.TrainingArguments.set_evaluate.delay",description:`<strong>delay</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Number of epochs or steps to wait for before the first evaluation can be performed, depending on the
evaluation_strategy.`,name:"delay"},{anchor:"transformers.TrainingArguments.set_evaluate.loss_only",description:`<strong>loss_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Ignores all outputs except the loss.`,name:"loss_only"},{anchor:"transformers.TrainingArguments.set_evaluate.jit_mode",description:`<strong>jit_mode</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use PyTorch jit trace for inference.`,name:"jit_mode"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args.py#L2218"}}),Tt=new Me({props:{anchor:"transformers.TrainingArguments.set_evaluate.example",$$slots:{default:[zT]},$$scope:{ctx:C}}}),un=new k({props:{name:"set_logging",anchor:"transformers.TrainingArguments.set_logging",parameters:[{name:"strategy",val:": typing.Union[str, transformers.trainer_utils.IntervalStrategy] = 'steps'"},{name:"steps",val:": int = 500"},{name:"report_to",val:": typing.Union[str, typing.List[str]] = 'none'"},{name:"level",val:": str = 'passive'"},{name:"first_step",val:": bool = False"},{name:"nan_inf_filter",val:": bool = False"},{name:"on_each_node",val:": bool = False"},{name:"replica_level",val:": str = 'passive'"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_logging.strategy",description:`<strong>strategy</strong> (<code>str</code> or <a href="/docs/transformers/v4.34.0/en/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;steps&quot;</code>) &#x2014;
The logging strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No save is done during training.</li>
<li><code>&quot;epoch&quot;</code>: Save is done at the end of each epoch.</li>
<li><code>&quot;steps&quot;</code>: Save is done every <code>save_steps</code>.</li>
</ul>`,name:"strategy"},{anchor:"transformers.TrainingArguments.set_logging.steps",description:`<strong>steps</strong> (<code>int</code>, <em>optional</em>, defaults to 500) &#x2014;
Number of update steps between two logs if <code>strategy=&quot;steps&quot;</code>.`,name:"steps"},{anchor:"transformers.TrainingArguments.set_logging.level",description:`<strong>level</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;passive&quot;</code>) &#x2014;
Logger log level to use on the main process. Possible choices are the log levels as strings: <code>&quot;debug&quot;</code>,
<code>&quot;info&quot;</code>, <code>&quot;warning&quot;</code>, <code>&quot;error&quot;</code> and <code>&quot;critical&quot;</code>, plus a <code>&quot;passive&quot;</code> level which doesn&#x2019;t set anything
and lets the application set the level.`,name:"level"},{anchor:"transformers.TrainingArguments.set_logging.report_to",description:`<strong>report_to</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>, defaults to <code>&quot;none&quot;</code>) &#x2014;
The list of integrations to report the results and logs to. Supported platforms are <code>&quot;azure_ml&quot;</code>,
<code>&quot;comet_ml&quot;</code>, <code>&quot;mlflow&quot;</code>, <code>&quot;neptune&quot;</code>, <code>&quot;tensorboard&quot;</code>,<code>&quot;clearml&quot;</code> and <code>&quot;wandb&quot;</code>. Use <code>&quot;all&quot;</code> to report
to all integrations installed, <code>&quot;none&quot;</code> for no integrations.`,name:"report_to"},{anchor:"transformers.TrainingArguments.set_logging.first_step",description:`<strong>first_step</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to log and evaluate the first <code>global_step</code> or not.`,name:"first_step"},{anchor:"transformers.TrainingArguments.set_logging.nan_inf_filter",description:`<strong>nan_inf_filter</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to filter <code>nan</code> and <code>inf</code> losses for logging. If set to <code>True</code> the loss of every step that is
<code>nan</code> or <code>inf</code> is filtered and the average loss of the current logging window is taken instead.</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><code>nan_inf_filter</code> only influences the logging of loss values, it does not change the behavior the
gradient is computed or applied to the model.</p>

					</div>`,name:"nan_inf_filter"},{anchor:"transformers.TrainingArguments.set_logging.on_each_node",description:`<strong>on_each_node</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
In multinode distributed training, whether to log using <code>log_level</code> once per node, or only on the main
node.`,name:"on_each_node"},{anchor:"transformers.TrainingArguments.set_logging.replica_level",description:`<strong>replica_level</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;passive&quot;</code>) &#x2014;
Logger log level to use on replicas. Same choices as <code>log_level</code>`,name:"replica_level"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args.py#L2368"}}),wt=new Me({props:{anchor:"transformers.TrainingArguments.set_logging.example",$$slots:{default:[DT]},$$scope:{ctx:C}}}),hn=new k({props:{name:"set_lr_scheduler",anchor:"transformers.TrainingArguments.set_lr_scheduler",parameters:[{name:"name",val:": typing.Union[str, transformers.trainer_utils.SchedulerType] = 'linear'"},{name:"num_epochs",val:": float = 3.0"},{name:"max_steps",val:": int = -1"},{name:"warmup_ratio",val:": float = 0"},{name:"warmup_steps",val:": int = 0"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_lr_scheduler.name",description:`<strong>name</strong> (<code>str</code> or <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.SchedulerType">SchedulerType</a>, <em>optional</em>, defaults to <code>&quot;linear&quot;</code>) &#x2014;
The scheduler type to use. See the documentation of <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.SchedulerType">SchedulerType</a> for all possible values.`,name:"name"},{anchor:"transformers.TrainingArguments.set_lr_scheduler.num_epochs(float,",description:`<strong>num_epochs(<code>float</code>,</strong> <em>optional</em>, defaults to 3.0) &#x2014;
Total number of training epochs to perform (if not an integer, will perform the decimal part percents
of the last epoch before stopping training).`,name:"num_epochs(float,"},{anchor:"transformers.TrainingArguments.set_lr_scheduler.max_steps",description:`<strong>max_steps</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
If set to a positive number, the total number of training steps to perform. Overrides
<code>num_train_epochs</code>. In case of using a finite iterable dataset the training may stop before reaching
the set number of steps when all data is exhausted.`,name:"max_steps"},{anchor:"transformers.TrainingArguments.set_lr_scheduler.warmup_ratio",description:`<strong>warmup_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Ratio of total training steps used for a linear warmup from 0 to <code>learning_rate</code>.`,name:"warmup_ratio"},{anchor:"transformers.TrainingArguments.set_lr_scheduler.warmup_steps",description:`<strong>warmup_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of steps used for a linear warmup from 0 to <code>learning_rate</code>. Overrides any effect of
<code>warmup_ratio</code>.`,name:"warmup_steps"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args.py#L2563"}}),xt=new Me({props:{anchor:"transformers.TrainingArguments.set_lr_scheduler.example",$$slots:{default:[WT]},$$scope:{ctx:C}}}),gn=new k({props:{name:"set_optimizer",anchor:"transformers.TrainingArguments.set_optimizer",parameters:[{name:"name",val:": typing.Union[str, transformers.training_args.OptimizerNames] = 'adamw_torch'"},{name:"learning_rate",val:": float = 5e-05"},{name:"weight_decay",val:": float = 0"},{name:"beta1",val:": float = 0.9"},{name:"beta2",val:": float = 0.999"},{name:"epsilon",val:": float = 1e-08"},{name:"args",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_optimizer.name",description:`<strong>name</strong> (<code>str</code> or <code>training_args.OptimizerNames</code>, <em>optional</em>, defaults to <code>&quot;adamw_torch&quot;</code>) &#x2014;
The optimizer to use: <code>&quot;adamw_hf&quot;</code>, <code>&quot;adamw_torch&quot;</code>, <code>&quot;adamw_torch_fused&quot;</code>, <code>&quot;adamw_apex_fused&quot;</code>,
<code>&quot;adamw_anyprecision&quot;</code> or <code>&quot;adafactor&quot;</code>.`,name:"name"},{anchor:"transformers.TrainingArguments.set_optimizer.learning_rate",description:`<strong>learning_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 5e-5) &#x2014;
The initial learning rate.`,name:"learning_rate"},{anchor:"transformers.TrainingArguments.set_optimizer.weight_decay",description:`<strong>weight_decay</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The weight decay to apply (if not zero) to all layers except all bias and LayerNorm weights.`,name:"weight_decay"},{anchor:"transformers.TrainingArguments.set_optimizer.beta1",description:`<strong>beta1</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
The beta1 hyperparameter for the adam optimizer or its variants.`,name:"beta1"},{anchor:"transformers.TrainingArguments.set_optimizer.beta2",description:`<strong>beta2</strong> (<code>float</code>, <em>optional</em>, defaults to 0.999) &#x2014;
The beta2 hyperparameter for the adam optimizer or its variants.`,name:"beta2"},{anchor:"transformers.TrainingArguments.set_optimizer.epsilon",description:`<strong>epsilon</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-8) &#x2014;
The epsilon hyperparameter for the adam optimizer or its variants.`,name:"epsilon"},{anchor:"transformers.TrainingArguments.set_optimizer.args",description:`<strong>args</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Optional arguments that are supplied to AnyPrecisionAdamW (only useful when
<code>optim=&quot;adamw_anyprecision&quot;</code>).`,name:"args"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args.py#L2512"}}),Mt=new Me({props:{anchor:"transformers.TrainingArguments.set_optimizer.example",$$slots:{default:[HT]},$$scope:{ctx:C}}}),fn=new k({props:{name:"set_push_to_hub",anchor:"transformers.TrainingArguments.set_push_to_hub",parameters:[{name:"model_id",val:": str"},{name:"strategy",val:": typing.Union[str, transformers.trainer_utils.HubStrategy] = 'every_save'"},{name:"token",val:": typing.Optional[str] = None"},{name:"private_repo",val:": bool = False"},{name:"always_push",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_push_to_hub.model_id",description:`<strong>model_id</strong> (<code>str</code>) &#x2014;
The name of the repository to keep in sync with the local <em>output_dir</em>. It can be a simple model ID in
which case the model will be pushed in your namespace. Otherwise it should be the whole repository
name, for instance <code>&quot;user_name/model&quot;</code>, which allows you to push to an organization you are a member of
with <code>&quot;organization_name/model&quot;</code>.`,name:"model_id"},{anchor:"transformers.TrainingArguments.set_push_to_hub.strategy",description:`<strong>strategy</strong> (<code>str</code> or <code>HubStrategy</code>, <em>optional</em>, defaults to <code>&quot;every_save&quot;</code>) &#x2014;
Defines the scope of what is pushed to the Hub and when. Possible values are:</p>
<ul>
<li><code>&quot;end&quot;</code>: push the model, its configuration, the tokenizer (if passed along to the <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>) and a
draft of a model card when the <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer.save_model">save_model()</a> method is called.</li>
<li><code>&quot;every_save&quot;</code>: push the model, its configuration, the tokenizer (if passed along to the <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>)
and
a draft of a model card each time there is a model save. The pushes are asynchronous to not block
training, and in case the save are very frequent, a new push is only attempted if the previous one is
finished. A last push is made with the final model at the end of training.</li>
<li><code>&quot;checkpoint&quot;</code>: like <code>&quot;every_save&quot;</code> but the latest checkpoint is also pushed in a subfolder named
last-checkpoint, allowing you to resume training easily with
<code>trainer.train(resume_from_checkpoint=&quot;last-checkpoint&quot;)</code>.</li>
<li><code>&quot;all_checkpoints&quot;</code>: like <code>&quot;checkpoint&quot;</code> but all checkpoints are pushed like they appear in the
output
folder (so you will get one checkpoint folder per folder in your final repository)</li>
</ul>`,name:"strategy"},{anchor:"transformers.TrainingArguments.set_push_to_hub.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to use to push the model to the Hub. Will default to the token in the cache folder obtained
with <code>huggingface-cli login</code>.`,name:"token"},{anchor:"transformers.TrainingArguments.set_push_to_hub.private_repo",description:`<strong>private_repo</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, the Hub repo will be set to private.`,name:"private_repo"},{anchor:"transformers.TrainingArguments.set_push_to_hub.always_push",description:`<strong>always_push</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Unless this is <code>True</code>, the <code>Trainer</code> will skip pushing a checkpoint when the previous push is not
finished.`,name:"always_push"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args.py#L2442"}}),$t=new Ve({props:{$$slots:{default:[ET]},$$scope:{ctx:C}}}),kt=new Me({props:{anchor:"transformers.TrainingArguments.set_push_to_hub.example",$$slots:{default:[RT]},$$scope:{ctx:C}}}),_n=new k({props:{name:"set_save",anchor:"transformers.TrainingArguments.set_save",parameters:[{name:"strategy",val:": typing.Union[str, transformers.trainer_utils.IntervalStrategy] = 'steps'"},{name:"steps",val:": int = 500"},{name:"total_limit",val:": typing.Optional[int] = None"},{name:"on_each_node",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_save.strategy",description:`<strong>strategy</strong> (<code>str</code> or <a href="/docs/transformers/v4.34.0/en/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;steps&quot;</code>) &#x2014;
The checkpoint save strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No save is done during training.</li>
<li><code>&quot;epoch&quot;</code>: Save is done at the end of each epoch.</li>
<li><code>&quot;steps&quot;</code>: Save is done every <code>save_steps</code>.</li>
</ul>`,name:"strategy"},{anchor:"transformers.TrainingArguments.set_save.steps",description:`<strong>steps</strong> (<code>int</code>, <em>optional</em>, defaults to 500) &#x2014;
Number of updates steps before two checkpoint saves if <code>strategy=&quot;steps&quot;</code>.`,name:"steps"},{anchor:"transformers.TrainingArguments.set_save.total_limit",description:`<strong>total_limit</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If a value is passed, will limit the total amount of checkpoints. Deletes the older checkpoints in
<code>output_dir</code>.`,name:"total_limit"},{anchor:"transformers.TrainingArguments.set_save.on_each_node",description:`<strong>on_each_node</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When doing multi-node distributed training, whether to save models and checkpoints on each node, or
only on the main one.</p>
<p>This should not be activated when the different nodes use the same storage as the files will be saved
with the same names for each node.`,name:"on_each_node"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args.py#L2319"}}),At=new Me({props:{anchor:"transformers.TrainingArguments.set_save.example",$$slots:{default:[BT]},$$scope:{ctx:C}}}),bn=new k({props:{name:"set_testing",anchor:"transformers.TrainingArguments.set_testing",parameters:[{name:"batch_size",val:": int = 8"},{name:"loss_only",val:": bool = False"},{name:"jit_mode",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_testing.batch_size",description:`<strong>batch_size</strong> (<code>int</code> <em>optional</em>, defaults to 8) &#x2014;
The batch size per device (GPU/TPU core/CPU&#x2026;) used for testing.`,name:"batch_size"},{anchor:"transformers.TrainingArguments.set_testing.loss_only",description:`<strong>loss_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Ignores all outputs except the loss.`,name:"loss_only"},{anchor:"transformers.TrainingArguments.set_testing.jit_mode",description:`<strong>jit_mode</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use PyTorch jit trace for inference.`,name:"jit_mode"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args.py#L2279"}}),qt=new Ve({props:{$$slots:{default:[ZT]},$$scope:{ctx:C}}}),Ct=new Me({props:{anchor:"transformers.TrainingArguments.set_testing.example",$$slots:{default:[VT]},$$scope:{ctx:C}}}),vn=new k({props:{name:"set_training",anchor:"transformers.TrainingArguments.set_training",parameters:[{name:"learning_rate",val:": float = 5e-05"},{name:"batch_size",val:": int = 8"},{name:"weight_decay",val:": float = 0"},{name:"num_epochs",val:": float = 3"},{name:"max_steps",val:": int = -1"},{name:"gradient_accumulation_steps",val:": int = 1"},{name:"seed",val:": int = 42"},{name:"gradient_checkpointing",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_training.learning_rate",description:`<strong>learning_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 5e-5) &#x2014;
The initial learning rate for the optimizer.`,name:"learning_rate"},{anchor:"transformers.TrainingArguments.set_training.batch_size",description:`<strong>batch_size</strong> (<code>int</code> <em>optional</em>, defaults to 8) &#x2014;
The batch size per device (GPU/TPU core/CPU&#x2026;) used for training.`,name:"batch_size"},{anchor:"transformers.TrainingArguments.set_training.weight_decay",description:`<strong>weight_decay</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The weight decay to apply (if not zero) to all layers except all bias and LayerNorm weights in the
optimizer.`,name:"weight_decay"},{anchor:"transformers.TrainingArguments.set_training.num_train_epochs(float,",description:`<strong>num_train_epochs(<code>float</code>,</strong> <em>optional</em>, defaults to 3.0) &#x2014;
Total number of training epochs to perform (if not an integer, will perform the decimal part percents
of the last epoch before stopping training).`,name:"num_train_epochs(float,"},{anchor:"transformers.TrainingArguments.set_training.max_steps",description:`<strong>max_steps</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
If set to a positive number, the total number of training steps to perform. Overrides
<code>num_train_epochs</code>. In case of using a finite iterable dataset the training may stop before reaching
the set number of steps when all data is exhausted.`,name:"max_steps"},{anchor:"transformers.TrainingArguments.set_training.gradient_accumulation_steps",description:`<strong>gradient_accumulation_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of updates steps to accumulate the gradients for, before performing a backward/update pass.</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>When using gradient accumulation, one step is counted as one step with backward pass. Therefore,
logging, evaluation, save will be conducted every <code>gradient_accumulation_steps * xxx_step</code> training
examples.</p>

					</div>`,name:"gradient_accumulation_steps"},{anchor:"transformers.TrainingArguments.set_training.seed",description:`<strong>seed</strong> (<code>int</code>, <em>optional</em>, defaults to 42) &#x2014;
Random seed that will be set at the beginning of training. To ensure reproducibility across runs, use
the <code>~Trainer.model_init</code> function to instantiate the model if it has some randomly initialized
parameters.`,name:"seed"},{anchor:"transformers.TrainingArguments.set_training.gradient_checkpointing",description:`<strong>gradient_checkpointing</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, use gradient checkpointing to save memory at the expense of slower backward pass.`,name:"gradient_checkpointing"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args.py#L2143"}}),jt=new Ve({props:{$$slots:{default:[XT]},$$scope:{ctx:C}}}),It=new Me({props:{anchor:"transformers.TrainingArguments.set_training.example",$$slots:{default:[GT]},$$scope:{ctx:C}}}),yn=new k({props:{name:"to_dict",anchor:"transformers.TrainingArguments.to_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args.py#L2106"}}),Tn=new k({props:{name:"to_json_string",anchor:"transformers.TrainingArguments.to_json_string",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args.py#L2123"}}),wn=new k({props:{name:"to_sanitized_dict",anchor:"transformers.TrainingArguments.to_sanitized_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args.py#L2129"}}),xn=new L({}),Mn=new k({props:{name:"class transformers.Seq2SeqTrainingArguments",anchor:"transformers.Seq2SeqTrainingArguments",parameters:[{name:"output_dir",val:": str"},{name:"overwrite_output_dir",val:": bool = False"},{name:"do_train",val:": bool = False"},{name:"do_eval",val:": bool = False"},{name:"do_predict",val:": bool = False"},{name:"evaluation_strategy",val:": typing.Union[transformers.trainer_utils.IntervalStrategy, str] = 'no'"},{name:"prediction_loss_only",val:": bool = False"},{name:"per_device_train_batch_size",val:": int = 8"},{name:"per_device_eval_batch_size",val:": int = 8"},{name:"per_gpu_train_batch_size",val:": typing.Optional[int] = None"},{name:"per_gpu_eval_batch_size",val:": typing.Optional[int] = None"},{name:"gradient_accumulation_steps",val:": int = 1"},{name:"eval_accumulation_steps",val:": typing.Optional[int] = None"},{name:"eval_delay",val:": typing.Optional[float] = 0"},{name:"learning_rate",val:": float = 5e-05"},{name:"weight_decay",val:": float = 0.0"},{name:"adam_beta1",val:": float = 0.9"},{name:"adam_beta2",val:": float = 0.999"},{name:"adam_epsilon",val:": float = 1e-08"},{name:"max_grad_norm",val:": float = 1.0"},{name:"num_train_epochs",val:": float = 3.0"},{name:"max_steps",val:": int = -1"},{name:"lr_scheduler_type",val:": typing.Union[transformers.trainer_utils.SchedulerType, str] = 'linear'"},{name:"warmup_ratio",val:": float = 0.0"},{name:"warmup_steps",val:": int = 0"},{name:"log_level",val:": typing.Optional[str] = 'passive'"},{name:"log_level_replica",val:": typing.Optional[str] = 'warning'"},{name:"log_on_each_node",val:": bool = True"},{name:"logging_dir",val:": typing.Optional[str] = None"},{name:"logging_strategy",val:": typing.Union[transformers.trainer_utils.IntervalStrategy, str] = 'steps'"},{name:"logging_first_step",val:": bool = False"},{name:"logging_steps",val:": float = 500"},{name:"logging_nan_inf_filter",val:": bool = True"},{name:"save_strategy",val:": typing.Union[transformers.trainer_utils.IntervalStrategy, str] = 'steps'"},{name:"save_steps",val:": float = 500"},{name:"save_total_limit",val:": typing.Optional[int] = None"},{name:"save_safetensors",val:": typing.Optional[bool] = False"},{name:"save_on_each_node",val:": bool = False"},{name:"no_cuda",val:": bool = False"},{name:"use_cpu",val:": bool = False"},{name:"use_mps_device",val:": bool = False"},{name:"seed",val:": int = 42"},{name:"data_seed",val:": typing.Optional[int] = None"},{name:"jit_mode_eval",val:": bool = False"},{name:"use_ipex",val:": bool = False"},{name:"bf16",val:": bool = False"},{name:"fp16",val:": bool = False"},{name:"fp16_opt_level",val:": str = 'O1'"},{name:"half_precision_backend",val:": str = 'auto'"},{name:"bf16_full_eval",val:": bool = False"},{name:"fp16_full_eval",val:": bool = False"},{name:"tf32",val:": typing.Optional[bool] = None"},{name:"local_rank",val:": int = -1"},{name:"ddp_backend",val:": typing.Optional[str] = None"},{name:"tpu_num_cores",val:": typing.Optional[int] = None"},{name:"tpu_metrics_debug",val:": bool = False"},{name:"debug",val:": typing.Union[str, typing.List[transformers.debug_utils.DebugOption]] = ''"},{name:"dataloader_drop_last",val:": bool = False"},{name:"eval_steps",val:": typing.Optional[float] = None"},{name:"dataloader_num_workers",val:": int = 0"},{name:"past_index",val:": int = -1"},{name:"run_name",val:": typing.Optional[str] = None"},{name:"disable_tqdm",val:": typing.Optional[bool] = None"},{name:"remove_unused_columns",val:": typing.Optional[bool] = True"},{name:"label_names",val:": typing.Optional[typing.List[str]] = None"},{name:"load_best_model_at_end",val:": typing.Optional[bool] = False"},{name:"metric_for_best_model",val:": typing.Optional[str] = None"},{name:"greater_is_better",val:": typing.Optional[bool] = None"},{name:"ignore_data_skip",val:": bool = False"},{name:"sharded_ddp",val:": typing.Union[typing.List[transformers.trainer_utils.ShardedDDPOption], str, NoneType] = ''"},{name:"fsdp",val:": typing.Union[typing.List[transformers.trainer_utils.FSDPOption], str, NoneType] = ''"},{name:"fsdp_min_num_params",val:": int = 0"},{name:"fsdp_config",val:": typing.Optional[str] = None"},{name:"fsdp_transformer_layer_cls_to_wrap",val:": typing.Optional[str] = None"},{name:"deepspeed",val:": typing.Optional[str] = None"},{name:"label_smoothing_factor",val:": float = 0.0"},{name:"optim",val:": typing.Union[transformers.training_args.OptimizerNames, str] = 'adamw_torch'"},{name:"optim_args",val:": typing.Optional[str] = None"},{name:"adafactor",val:": bool = False"},{name:"group_by_length",val:": bool = False"},{name:"length_column_name",val:": typing.Optional[str] = 'length'"},{name:"report_to",val:": typing.Optional[typing.List[str]] = None"},{name:"ddp_find_unused_parameters",val:": typing.Optional[bool] = None"},{name:"ddp_bucket_cap_mb",val:": typing.Optional[int] = None"},{name:"ddp_broadcast_buffers",val:": typing.Optional[bool] = None"},{name:"dataloader_pin_memory",val:": bool = True"},{name:"skip_memory_metrics",val:": bool = True"},{name:"use_legacy_prediction_loop",val:": bool = False"},{name:"push_to_hub",val:": bool = False"},{name:"resume_from_checkpoint",val:": typing.Optional[str] = None"},{name:"hub_model_id",val:": typing.Optional[str] = None"},{name:"hub_strategy",val:": typing.Union[transformers.trainer_utils.HubStrategy, str] = 'every_save'"},{name:"hub_token",val:": typing.Optional[str] = None"},{name:"hub_private_repo",val:": bool = False"},{name:"hub_always_push",val:": bool = False"},{name:"gradient_checkpointing",val:": bool = False"},{name:"include_inputs_for_metrics",val:": bool = False"},{name:"fp16_backend",val:": str = 'auto'"},{name:"push_to_hub_model_id",val:": typing.Optional[str] = None"},{name:"push_to_hub_organization",val:": typing.Optional[str] = None"},{name:"push_to_hub_token",val:": typing.Optional[str] = None"},{name:"mp_parameters",val:": str = ''"},{name:"auto_find_batch_size",val:": bool = False"},{name:"full_determinism",val:": bool = False"},{name:"torchdynamo",val:": typing.Optional[str] = None"},{name:"ray_scope",val:": typing.Optional[str] = 'last'"},{name:"ddp_timeout",val:": typing.Optional[int] = 1800"},{name:"torch_compile",val:": bool = False"},{name:"torch_compile_backend",val:": typing.Optional[str] = None"},{name:"torch_compile_mode",val:": typing.Optional[str] = None"},{name:"dispatch_batches",val:": typing.Optional[bool] = None"},{name:"include_tokens_per_second",val:": typing.Optional[bool] = False"},{name:"sortish_sampler",val:": bool = False"},{name:"predict_with_generate",val:": bool = False"},{name:"generation_max_length",val:": typing.Optional[int] = None"},{name:"generation_num_beams",val:": typing.Optional[int] = None"},{name:"generation_config",val:": typing.Union[str, pathlib.Path, transformers.generation.configuration_utils.GenerationConfig, NoneType] = None"}],parametersDescription:[{anchor:"transformers.Seq2SeqTrainingArguments.output_dir",description:`<strong>output_dir</strong> (<code>str</code>) &#x2014;
The output directory where the model predictions and checkpoints will be written.`,name:"output_dir"},{anchor:"transformers.Seq2SeqTrainingArguments.overwrite_output_dir",description:`<strong>overwrite_output_dir</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, overwrite the content of the output directory. Use this to continue training if <code>output_dir</code>
points to a checkpoint directory.`,name:"overwrite_output_dir"},{anchor:"transformers.Seq2SeqTrainingArguments.do_train",description:`<strong>do_train</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to run training or not. This argument is not directly used by <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s intended to be used
by your training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"do_train"},{anchor:"transformers.Seq2SeqTrainingArguments.do_eval",description:`<strong>do_eval</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to run evaluation on the validation set or not. Will be set to <code>True</code> if <code>evaluation_strategy</code> is
different from <code>&quot;no&quot;</code>. This argument is not directly used by <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s intended to be used by your
training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"do_eval"},{anchor:"transformers.Seq2SeqTrainingArguments.do_predict",description:`<strong>do_predict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to run predictions on the test set or not. This argument is not directly used by <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s
intended to be used by your training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"do_predict"},{anchor:"transformers.Seq2SeqTrainingArguments.evaluation_strategy",description:`<strong>evaluation_strategy</strong> (<code>str</code> or <a href="/docs/transformers/v4.34.0/en/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;no&quot;</code>) &#x2014;
The evaluation strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No evaluation is done during training.</li>
<li><code>&quot;steps&quot;</code>: Evaluation is done (and logged) every <code>eval_steps</code>.</li>
<li><code>&quot;epoch&quot;</code>: Evaluation is done at the end of each epoch.</li>
</ul>`,name:"evaluation_strategy"},{anchor:"transformers.Seq2SeqTrainingArguments.prediction_loss_only",description:`<strong>prediction_loss_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When performing evaluation and generating predictions, only returns the loss.`,name:"prediction_loss_only"},{anchor:"transformers.Seq2SeqTrainingArguments.per_device_train_batch_size",description:`<strong>per_device_train_batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
The batch size per GPU/XPU/TPU/MPS/NPU core/CPU for training.`,name:"per_device_train_batch_size"},{anchor:"transformers.Seq2SeqTrainingArguments.per_device_eval_batch_size",description:`<strong>per_device_eval_batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
The batch size per GPU/XPU/TPU/MPS/NPU core/CPU for evaluation.`,name:"per_device_eval_batch_size"},{anchor:"transformers.Seq2SeqTrainingArguments.gradient_accumulation_steps",description:`<strong>gradient_accumulation_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of updates steps to accumulate the gradients for, before performing a backward/update pass.</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>When using gradient accumulation, one step is counted as one step with backward pass. Therefore, logging,
evaluation, save will be conducted every <code>gradient_accumulation_steps * xxx_step</code> training examples.</p>

					</div>`,name:"gradient_accumulation_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.eval_accumulation_steps",description:`<strong>eval_accumulation_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of predictions steps to accumulate the output tensors for, before moving the results to the CPU. If
left unset, the whole predictions are accumulated on GPU/NPU/TPU before being moved to the CPU (faster but
requires more memory).`,name:"eval_accumulation_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.eval_delay",description:`<strong>eval_delay</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Number of epochs or steps to wait for before the first evaluation can be performed, depending on the
evaluation_strategy.`,name:"eval_delay"},{anchor:"transformers.Seq2SeqTrainingArguments.learning_rate",description:`<strong>learning_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 5e-5) &#x2014;
The initial learning rate for <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> optimizer.`,name:"learning_rate"},{anchor:"transformers.Seq2SeqTrainingArguments.weight_decay",description:`<strong>weight_decay</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The weight decay to apply (if not zero) to all layers except all bias and LayerNorm weights in <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a>
optimizer.`,name:"weight_decay"},{anchor:"transformers.Seq2SeqTrainingArguments.adam_beta1",description:`<strong>adam_beta1</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
The beta1 hyperparameter for the <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> optimizer.`,name:"adam_beta1"},{anchor:"transformers.Seq2SeqTrainingArguments.adam_beta2",description:`<strong>adam_beta2</strong> (<code>float</code>, <em>optional</em>, defaults to 0.999) &#x2014;
The beta2 hyperparameter for the <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> optimizer.`,name:"adam_beta2"},{anchor:"transformers.Seq2SeqTrainingArguments.adam_epsilon",description:`<strong>adam_epsilon</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-8) &#x2014;
The epsilon hyperparameter for the <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> optimizer.`,name:"adam_epsilon"},{anchor:"transformers.Seq2SeqTrainingArguments.max_grad_norm",description:`<strong>max_grad_norm</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
Maximum gradient norm (for gradient clipping).`,name:"max_grad_norm"},{anchor:"transformers.Seq2SeqTrainingArguments.num_train_epochs(float,",description:`<strong>num_train_epochs(<code>float</code>,</strong> <em>optional</em>, defaults to 3.0) &#x2014;
Total number of training epochs to perform (if not an integer, will perform the decimal part percents of
the last epoch before stopping training).`,name:"num_train_epochs(float,"},{anchor:"transformers.Seq2SeqTrainingArguments.max_steps",description:`<strong>max_steps</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
If set to a positive number, the total number of training steps to perform. Overrides <code>num_train_epochs</code>.
In case of using a finite iterable dataset the training may stop before reaching the set number of steps
when all data is exhausted`,name:"max_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.lr_scheduler_type",description:`<strong>lr_scheduler_type</strong> (<code>str</code> or <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.SchedulerType">SchedulerType</a>, <em>optional</em>, defaults to <code>&quot;linear&quot;</code>) &#x2014;
The scheduler type to use. See the documentation of <a href="/docs/transformers/v4.34.0/en/main_classes/optimizer_schedules#transformers.SchedulerType">SchedulerType</a> for all possible values.`,name:"lr_scheduler_type"},{anchor:"transformers.Seq2SeqTrainingArguments.warmup_ratio",description:`<strong>warmup_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Ratio of total training steps used for a linear warmup from 0 to <code>learning_rate</code>.`,name:"warmup_ratio"},{anchor:"transformers.Seq2SeqTrainingArguments.warmup_steps",description:`<strong>warmup_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of steps used for a linear warmup from 0 to <code>learning_rate</code>. Overrides any effect of <code>warmup_ratio</code>.`,name:"warmup_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.log_level",description:`<strong>log_level</strong> (<code>str</code>, <em>optional</em>, defaults to <code>passive</code>) &#x2014;
Logger log level to use on the main process. Possible choices are the log levels as strings: &#x2018;debug&#x2019;,
&#x2018;info&#x2019;, &#x2018;warning&#x2019;, &#x2018;error&#x2019; and &#x2018;critical&#x2019;, plus a &#x2018;passive&#x2019; level which doesn&#x2019;t set anything and keeps the
current log level for the Transformers library (which will be <code>&quot;warning&quot;</code> by default).`,name:"log_level"},{anchor:"transformers.Seq2SeqTrainingArguments.log_level_replica",description:`<strong>log_level_replica</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;warning&quot;</code>) &#x2014;
Logger log level to use on replicas. Same choices as <code>log_level</code>&#x201D;`,name:"log_level_replica"},{anchor:"transformers.Seq2SeqTrainingArguments.log_on_each_node",description:`<strong>log_on_each_node</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
In multinode distributed training, whether to log using <code>log_level</code> once per node, or only on the main
node.`,name:"log_on_each_node"},{anchor:"transformers.Seq2SeqTrainingArguments.logging_dir",description:`<strong>logging_dir</strong> (<code>str</code>, <em>optional</em>) &#x2014;
<a href="https://www.tensorflow.org/tensorboard" rel="nofollow">TensorBoard</a> log directory. Will default to
*output_dir/runs/<strong>CURRENT_DATETIME_HOSTNAME*</strong>.`,name:"logging_dir"},{anchor:"transformers.Seq2SeqTrainingArguments.logging_strategy",description:`<strong>logging_strategy</strong> (<code>str</code> or <a href="/docs/transformers/v4.34.0/en/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;steps&quot;</code>) &#x2014;
The logging strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No logging is done during training.</li>
<li><code>&quot;epoch&quot;</code>: Logging is done at the end of each epoch.</li>
<li><code>&quot;steps&quot;</code>: Logging is done every <code>logging_steps</code>.</li>
</ul>`,name:"logging_strategy"},{anchor:"transformers.Seq2SeqTrainingArguments.logging_first_step",description:`<strong>logging_first_step</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to log and evaluate the first <code>global_step</code> or not.`,name:"logging_first_step"},{anchor:"transformers.Seq2SeqTrainingArguments.logging_steps",description:`<strong>logging_steps</strong> (<code>int</code> or <code>float</code>, <em>optional</em>, defaults to 500) &#x2014;
Number of update steps between two logs if <code>logging_strategy=&quot;steps&quot;</code>. Should be an integer or a float in
range <code>[0,1)</code>. If smaller than 1, will be interpreted as ratio of total training steps.`,name:"logging_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.logging_nan_inf_filter",description:`<strong>logging_nan_inf_filter</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to filter <code>nan</code> and <code>inf</code> losses for logging. If set to <code>True</code> the loss of every step that is <code>nan</code>
or <code>inf</code> is filtered and the average loss of the current logging window is taken instead.</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><code>logging_nan_inf_filter</code> only influences the logging of loss values, it does not change the behavior the
gradient is computed or applied to the model.</p>

					</div>`,name:"logging_nan_inf_filter"},{anchor:"transformers.Seq2SeqTrainingArguments.save_strategy",description:`<strong>save_strategy</strong> (<code>str</code> or <a href="/docs/transformers/v4.34.0/en/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;steps&quot;</code>) &#x2014;
The checkpoint save strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No save is done during training.</li>
<li><code>&quot;epoch&quot;</code>: Save is done at the end of each epoch.</li>
<li><code>&quot;steps&quot;</code>: Save is done every <code>save_steps</code>.</li>
</ul>`,name:"save_strategy"},{anchor:"transformers.Seq2SeqTrainingArguments.save_steps",description:`<strong>save_steps</strong> (<code>int</code> or <code>float</code>, <em>optional</em>, defaults to 500) &#x2014;
Number of updates steps before two checkpoint saves if <code>save_strategy=&quot;steps&quot;</code>. Should be an integer or a
float in range <code>[0,1)</code>. If smaller than 1, will be interpreted as ratio of total training steps.`,name:"save_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.save_total_limit",description:`<strong>save_total_limit</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If a value is passed, will limit the total amount of checkpoints. Deletes the older checkpoints in
<code>output_dir</code>. When <code>load_best_model_at_end</code> is enabled, the &#x201C;best&#x201D; checkpoint according to
<code>metric_for_best_model</code> will always be retained in addition to the most recent ones. For example, for
<code>save_total_limit=5</code> and <code>load_best_model_at_end</code>, the four last checkpoints will always be retained
alongside the best model. When <code>save_total_limit=1</code> and <code>load_best_model_at_end</code>, it is possible that two
checkpoints are saved: the last one and the best one (if they are different).`,name:"save_total_limit"},{anchor:"transformers.Seq2SeqTrainingArguments.save_safetensors",description:`<strong>save_safetensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Use <a href="https://huggingface.co/docs/safetensors" rel="nofollow">safetensors</a> saving and loading for state dicts instead of
default <code>torch.load</code> and <code>torch.save</code>.`,name:"save_safetensors"},{anchor:"transformers.Seq2SeqTrainingArguments.save_on_each_node",description:`<strong>save_on_each_node</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When doing multi-node distributed training, whether to save models and checkpoints on each node, or only on
the main one.</p>
<p>This should not be activated when the different nodes use the same storage as the files will be saved with
the same names for each node.`,name:"save_on_each_node"},{anchor:"transformers.Seq2SeqTrainingArguments.use_cpu",description:`<strong>use_cpu</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to use cpu. If set to False, we will use cuda or mps device if available.`,name:"use_cpu"},{anchor:"transformers.Seq2SeqTrainingArguments.seed",description:`<strong>seed</strong> (<code>int</code>, <em>optional</em>, defaults to 42) &#x2014;
Random seed that will be set at the beginning of training. To ensure reproducibility across runs, use the
<code>~Trainer.model_init</code> function to instantiate the model if it has some randomly initialized parameters.`,name:"seed"},{anchor:"transformers.Seq2SeqTrainingArguments.data_seed",description:`<strong>data_seed</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Random seed to be used with data samplers. If not set, random generators for data sampling will use the
same seed as <code>seed</code>. This can be used to ensure reproducibility of data sampling, independent of the model
seed.`,name:"data_seed"},{anchor:"transformers.Seq2SeqTrainingArguments.jit_mode_eval",description:`<strong>jit_mode_eval</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to use PyTorch jit trace for inference.`,name:"jit_mode_eval"},{anchor:"transformers.Seq2SeqTrainingArguments.use_ipex",description:`<strong>use_ipex</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Use Intel extension for PyTorch when it is available. <a href="https://github.com/intel/intel-extension-for-pytorch" rel="nofollow">IPEX
installation</a>.`,name:"use_ipex"},{anchor:"transformers.Seq2SeqTrainingArguments.bf16",description:`<strong>bf16</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use bf16 16-bit (mixed) precision training instead of 32-bit training. Requires Ampere or higher
NVIDIA architecture or using CPU (use_cpu) or Ascend NPU. This is an experimental API and it may change.`,name:"bf16"},{anchor:"transformers.Seq2SeqTrainingArguments.fp16",description:`<strong>fp16</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use fp16 16-bit (mixed) precision training instead of 32-bit training.`,name:"fp16"},{anchor:"transformers.Seq2SeqTrainingArguments.fp16_opt_level",description:`<strong>fp16_opt_level</strong> (<code>str</code>, <em>optional</em>, defaults to &#x2018;O1&#x2019;) &#x2014;
For <code>fp16</code> training, Apex AMP optimization level selected in [&#x2018;O0&#x2019;, &#x2018;O1&#x2019;, &#x2018;O2&#x2019;, and &#x2018;O3&#x2019;]. See details on
the <a href="https://nvidia.github.io/apex/amp" rel="nofollow">Apex documentation</a>.`,name:"fp16_opt_level"},{anchor:"transformers.Seq2SeqTrainingArguments.fp16_backend",description:`<strong>fp16_backend</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;auto&quot;</code>) &#x2014;
This argument is deprecated. Use <code>half_precision_backend</code> instead.`,name:"fp16_backend"},{anchor:"transformers.Seq2SeqTrainingArguments.half_precision_backend",description:`<strong>half_precision_backend</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;auto&quot;</code>) &#x2014;
The backend to use for mixed precision training. Must be one of <code>&quot;auto&quot;, &quot;cuda_amp&quot;, &quot;apex&quot;, &quot;cpu_amp&quot;</code>.
<code>&quot;auto&quot;</code> will use CPU/CUDA AMP or APEX depending on the PyTorch version detected, while the other choices
will force the requested backend.`,name:"half_precision_backend"},{anchor:"transformers.Seq2SeqTrainingArguments.bf16_full_eval",description:`<strong>bf16_full_eval</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use full bfloat16 evaluation instead of 32-bit. This will be faster and save memory but can harm
metric values. This is an experimental API and it may change.`,name:"bf16_full_eval"},{anchor:"transformers.Seq2SeqTrainingArguments.fp16_full_eval",description:`<strong>fp16_full_eval</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use full float16 evaluation instead of 32-bit. This will be faster and save memory but can harm
metric values.`,name:"fp16_full_eval"},{anchor:"transformers.Seq2SeqTrainingArguments.tf32",description:`<strong>tf32</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to enable the TF32 mode, available in Ampere and newer GPU architectures. The default value depends
on PyTorch&#x2019;s version default of <code>torch.backends.cuda.matmul.allow_tf32</code>. For more details please refer to
the <a href="https://huggingface.co/docs/transformers/performance#tf32" rel="nofollow">TF32</a> documentation. This is an
experimental API and it may change.`,name:"tf32"},{anchor:"transformers.Seq2SeqTrainingArguments.local_rank",description:`<strong>local_rank</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Rank of the process during distributed training.`,name:"local_rank"},{anchor:"transformers.Seq2SeqTrainingArguments.ddp_backend",description:`<strong>ddp_backend</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The backend to use for distributed training. Must be one of <code>&quot;nccl&quot;</code>, <code>&quot;mpi&quot;</code>, <code>&quot;ccl&quot;</code>, <code>&quot;gloo&quot;</code>, <code>&quot;hccl&quot;</code>.`,name:"ddp_backend"},{anchor:"transformers.Seq2SeqTrainingArguments.tpu_num_cores",description:`<strong>tpu_num_cores</strong> (<code>int</code>, <em>optional</em>) &#x2014;
When training on TPU, the number of TPU cores (automatically passed by launcher script).`,name:"tpu_num_cores"},{anchor:"transformers.Seq2SeqTrainingArguments.dataloader_drop_last",description:`<strong>dataloader_drop_last</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to drop the last incomplete batch (if the length of the dataset is not divisible by the batch size)
or not.`,name:"dataloader_drop_last"},{anchor:"transformers.Seq2SeqTrainingArguments.eval_steps",description:`<strong>eval_steps</strong> (<code>int</code> or <code>float</code>, <em>optional</em>) &#x2014;
Number of update steps between two evaluations if <code>evaluation_strategy=&quot;steps&quot;</code>. Will default to the same
value as <code>logging_steps</code> if not set. Should be an integer or a float in range <code>[0,1)</code>. If smaller than 1,
will be interpreted as ratio of total training steps.`,name:"eval_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.dataloader_num_workers",description:`<strong>dataloader_num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of subprocesses to use for data loading (PyTorch only). 0 means that the data will be loaded in the
main process.`,name:"dataloader_num_workers"},{anchor:"transformers.Seq2SeqTrainingArguments.past_index",description:`<strong>past_index</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Some models like <a href="../model_doc/transformerxl">TransformerXL</a> or <a href="../model_doc/xlnet">XLNet</a> can make use of
the past hidden states for their predictions. If this argument is set to a positive int, the <code>Trainer</code> will
use the corresponding output (usually index 2) as the past state and feed it to the model at the next
training step under the keyword argument <code>mems</code>.`,name:"past_index"},{anchor:"transformers.Seq2SeqTrainingArguments.run_name",description:`<strong>run_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A descriptor for the run. Typically used for <a href="https://www.wandb.com/" rel="nofollow">wandb</a> and
<a href="https://www.mlflow.org/" rel="nofollow">mlflow</a> logging.`,name:"run_name"},{anchor:"transformers.Seq2SeqTrainingArguments.disable_tqdm",description:`<strong>disable_tqdm</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to disable the tqdm progress bars and table of metrics produced by
<code>~notebook.NotebookTrainingTracker</code> in Jupyter Notebooks. Will default to <code>True</code> if the logging level is
set to warn or lower (default), <code>False</code> otherwise.`,name:"disable_tqdm"},{anchor:"transformers.Seq2SeqTrainingArguments.remove_unused_columns",description:`<strong>remove_unused_columns</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to automatically remove the columns unused by the model forward method.</p>
<p>(Note that this behavior is not implemented for <code>TFTrainer</code> yet.)`,name:"remove_unused_columns"},{anchor:"transformers.Seq2SeqTrainingArguments.label_names",description:`<strong>label_names</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
The list of keys in your dictionary of inputs that correspond to the labels.</p>
<p>Will eventually default to the list of argument names accepted by the model that contain the word &#x201C;label&#x201D;,
except if the model used is one of the <code>XxxForQuestionAnswering</code> in which case it will also include the
<code>[&quot;start_positions&quot;, &quot;end_positions&quot;]</code> keys.`,name:"label_names"},{anchor:"transformers.Seq2SeqTrainingArguments.load_best_model_at_end",description:`<strong>load_best_model_at_end</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to load the best model found during training at the end of training. When this option is
enabled, the best checkpoint will always be saved. See
<a href="https://huggingface.co/docs/transformers/main_classes/trainer#transformers.TrainingArguments.save_total_limit" rel="nofollow"><code>save_total_limit</code></a>
for more.</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>When set to <code>True</code>, the parameters <code>save_strategy</code> needs to be the same as <code>evaluation_strategy</code>, and in
the case it is &#x201C;steps&#x201D;, <code>save_steps</code> must be a round multiple of <code>eval_steps</code>.</p>

					</div>`,name:"load_best_model_at_end"},{anchor:"transformers.Seq2SeqTrainingArguments.metric_for_best_model",description:`<strong>metric_for_best_model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Use in conjunction with <code>load_best_model_at_end</code> to specify the metric to use to compare two different
models. Must be the name of a metric returned by the evaluation with or without the prefix <code>&quot;eval_&quot;</code>. Will
default to <code>&quot;loss&quot;</code> if unspecified and <code>load_best_model_at_end=True</code> (to use the evaluation loss).</p>
<p>If you set this value, <code>greater_is_better</code> will default to <code>True</code>. Don&#x2019;t forget to set it to <code>False</code> if
your metric is better when lower.`,name:"metric_for_best_model"},{anchor:"transformers.Seq2SeqTrainingArguments.greater_is_better",description:`<strong>greater_is_better</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Use in conjunction with <code>load_best_model_at_end</code> and <code>metric_for_best_model</code> to specify if better models
should have a greater metric or not. Will default to:</p>
<ul>
<li><code>True</code> if <code>metric_for_best_model</code> is set to a value that isn&#x2019;t <code>&quot;loss&quot;</code> or <code>&quot;eval_loss&quot;</code>.</li>
<li><code>False</code> if <code>metric_for_best_model</code> is not set, or set to <code>&quot;loss&quot;</code> or <code>&quot;eval_loss&quot;</code>.</li>
</ul>`,name:"greater_is_better"},{anchor:"transformers.Seq2SeqTrainingArguments.ignore_data_skip",description:`<strong>ignore_data_skip</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When resuming training, whether or not to skip the epochs and batches to get the data loading at the same
stage as in the previous training. If set to <code>True</code>, the training will begin faster (as that skipping step
can take a long time) but will not yield the same results as the interrupted training would have.`,name:"ignore_data_skip"},{anchor:"transformers.Seq2SeqTrainingArguments.sharded_ddp",description:`<strong>sharded_ddp</strong> (<code>bool</code>, <code>str</code> or list of <code>ShardedDDPOption</code>, <em>optional</em>, defaults to <code>&apos;&apos;</code>) &#x2014;
Use Sharded DDP training from <a href="https://github.com/facebookresearch/fairscale" rel="nofollow">FairScale</a> (in distributed
training only). This is an experimental feature.</p>
<p>A list of options along the following:</p>
<ul>
<li><code>&quot;simple&quot;</code>: to use first instance of sharded DDP released by fairscale (<code>ShardedDDP</code>) similar to ZeRO-2.</li>
<li><code>&quot;zero_dp_2&quot;</code>: to use the second instance of sharded DPP released by fairscale (<code>FullyShardedDDP</code>) in
Zero-2 mode (with <code>reshard_after_forward=False</code>).</li>
<li><code>&quot;zero_dp_3&quot;</code>: to use the second instance of sharded DPP released by fairscale (<code>FullyShardedDDP</code>) in
Zero-3 mode (with <code>reshard_after_forward=True</code>).</li>
<li><code>&quot;offload&quot;</code>: to add ZeRO-offload (only compatible with <code>&quot;zero_dp_2&quot;</code> and <code>&quot;zero_dp_3&quot;</code>).</li>
</ul>
<p>If a string is passed, it will be split on space. If a bool is passed, it will be converted to an empty
list for <code>False</code> and <code>[&quot;simple&quot;]</code> for <code>True</code>.`,name:"sharded_ddp"},{anchor:"transformers.Seq2SeqTrainingArguments.fsdp",description:`<strong>fsdp</strong> (<code>bool</code>, <code>str</code> or list of <code>FSDPOption</code>, <em>optional</em>, defaults to <code>&apos;&apos;</code>) &#x2014;
Use PyTorch Distributed Parallel Training (in distributed training only).</p>
<p>A list of options along the following:</p>
<ul>
<li><code>&quot;full_shard&quot;</code>: Shard parameters, gradients and optimizer states.</li>
<li><code>&quot;shard_grad_op&quot;</code>: Shard optimizer states and gradients.</li>
<li><code>&quot;offload&quot;</code>: Offload parameters and gradients to CPUs (only compatible with <code>&quot;full_shard&quot;</code> and
<code>&quot;shard_grad_op&quot;</code>).</li>
<li><code>&quot;auto_wrap&quot;</code>: Automatically recursively wrap layers with FSDP using <code>default_auto_wrap_policy</code>.</li>
</ul>`,name:"fsdp"},{anchor:"transformers.Seq2SeqTrainingArguments.fsdp_config",description:`<strong>fsdp_config</strong> (<code>str</code> or <code>dict</code>, <em>optional</em>) &#x2014;
Config to be used with fsdp (Pytorch Distributed Parallel Training). The value is either a location of
deepspeed json config file (e.g., <code>ds_config.json</code>) or an already loaded json file as <code>dict</code>.</p>
<p>A List of config and its options:</p>
<ul>
<li>
<p>min_num_params (<code>int</code>, <em>optional</em>, defaults to <code>0</code>):
FSDP&#x2019;s minimum number of parameters for Default Auto Wrapping. (useful only when <code>fsdp</code> field is
passed).</p>
</li>
<li>
<p>transformer_layer_cls_to_wrap (<code>List[str]</code>, <em>optional</em>):
List of transformer layer class names (case-sensitive) to wrap, e.g, <code>BertLayer</code>, <code>GPTJBlock</code>,
<code>T5Block</code> &#x2026; (useful only when <code>fsdp</code> flag is passed).</p>
</li>
<li>
<p>backward_prefetch (<code>str</code>, <em>optional</em>)
FSDP&#x2019;s backward prefetch mode. Controls when to prefetch next set of parameters (useful only when
<code>fsdp</code> field is passed).</p>
<p>A list of options along the following:</p>
<ul>
<li><code>&quot;backward_pre&quot;</code> : Prefetches the next set of parameters before the current set of parameter&#x2019;s
gradient
computation.</li>
<li><code>&quot;backward_post&quot;</code> : This prefetches the next set of parameters after the current set of
parameter&#x2019;s
gradient computation.</li>
</ul>
</li>
<li>
<p>forward_prefetch (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
FSDP&#x2019;s forward prefetch mode (useful only when <code>fsdp</code> field is passed).
If <code>&quot;True&quot;</code>, then FSDP explicitly prefetches the next upcoming all-gather while executing in the
forward pass.</p>
</li>
<li>
<p>limit_all_gathers (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
FSDP&#x2019;s limit_all_gathers (useful only when <code>fsdp</code> field is passed).
If <code>&quot;True&quot;</code>, FSDP explicitly synchronizes the CPU thread to prevent too many in-flight
all-gathers.</p>
</li>
<li>
<p>use_orig_params (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
If <code>&quot;True&quot;</code>, allows non-uniform <code>requires_grad</code> during init, which means support for interspersed
frozen and trainable paramteres. Useful in cases such as parameter-efficient fine-tuning. Please
refer this
[blog](<a href="https://dev-discuss.pytorch.org/t/rethinking-pytorch-fully-sharded-data-parallel-fsdp-from-first-principles/1019" rel="nofollow">https://dev-discuss.pytorch.org/t/rethinking-pytorch-fully-sharded-data-parallel-fsdp-from-first-principles/1019</a></p>
</li>
<li>
<p>sync_module_states (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>)
If <code>&quot;True&quot;</code>, each individually wrapped FSDP unit will broadcast module parameters from rank 0 to
ensure they are the same across all ranks after initialization</p>
</li>
<li>
<p>xla (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether to use PyTorch/XLA Fully Sharded Data Parallel Training. This is an experimental feature
and its API may evolve in the future.</p>
</li>
<li>
<p>xla_fsdp_settings (<code>dict</code>, <em>optional</em>)
The value is a dictionary which stores the XLA FSDP wrapping parameters.</p>
<p>For a complete list of options, please see <a href="https://github.com/pytorch/xla/blob/master/torch_xla/distributed/fsdp/xla_fully_sharded_data_parallel.py" rel="nofollow">here</a>.</p>
</li>
<li>
<p>xla_fsdp_grad_ckpt (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Will use gradient checkpointing over each nested XLA FSDP wrapped layer. This setting can only be
used when the xla flag is set to true, and an auto wrapping policy is specified through
fsdp_min_num_params or fsdp_transformer_layer_cls_to_wrap.</p>
</li>
<li>
<p>activation_checkpointing (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
If True, activation checkpointing is a technique to reduce memory usage by clearing activations of
certain layers and recomputing them during a backward pass. Effectively, this trades extra
computation time for reduced memory usage.</p>
</li>
</ul>`,name:"fsdp_config"},{anchor:"transformers.Seq2SeqTrainingArguments.deepspeed",description:`<strong>deepspeed</strong> (<code>str</code> or <code>dict</code>, <em>optional</em>) &#x2014;
Use <a href="https://github.com/microsoft/deepspeed" rel="nofollow">Deepspeed</a>. This is an experimental feature and its API may
evolve in the future. The value is either the location of DeepSpeed json config file (e.g.,
<code>ds_config.json</code>) or an already loaded json file as a <code>dict</code>&#x201D;`,name:"deepspeed"},{anchor:"transformers.Seq2SeqTrainingArguments.label_smoothing_factor",description:`<strong>label_smoothing_factor</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The label smoothing factor to use. Zero means no label smoothing, otherwise the underlying onehot-encoded
labels are changed from 0s and 1s to <code>label_smoothing_factor/num_labels</code> and <code>1 - label_smoothing_factor + label_smoothing_factor/num_labels</code> respectively.`,name:"label_smoothing_factor"},{anchor:"transformers.Seq2SeqTrainingArguments.debug",description:`<strong>debug</strong> (<code>str</code> or list of <code>DebugOption</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
Enable one or more debug features. This is an experimental feature.</p>
<p>Possible options are:</p>
<ul>
<li><code>&quot;underflow_overflow&quot;</code>: detects overflow in model&#x2019;s input/outputs and reports the last frames that led to
the event</li>
<li><code>&quot;tpu_metrics_debug&quot;</code>: print debug metrics on TPU</li>
</ul>
<p>The options should be separated by whitespaces.`,name:"debug"},{anchor:"transformers.Seq2SeqTrainingArguments.optim",description:`<strong>optim</strong> (<code>str</code> or <code>training_args.OptimizerNames</code>, <em>optional</em>, defaults to <code>&quot;adamw_torch&quot;</code>) &#x2014;
The optimizer to use: adamw_hf, adamw_torch, adamw_torch_fused, adamw_apex_fused, adamw_anyprecision or
adafactor.`,name:"optim"},{anchor:"transformers.Seq2SeqTrainingArguments.optim_args",description:`<strong>optim_args</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Optional arguments that are supplied to AnyPrecisionAdamW.`,name:"optim_args"},{anchor:"transformers.Seq2SeqTrainingArguments.group_by_length",description:`<strong>group_by_length</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to group together samples of roughly the same length in the training dataset (to minimize
padding applied and be more efficient). Only useful if applying dynamic padding.`,name:"group_by_length"},{anchor:"transformers.Seq2SeqTrainingArguments.length_column_name",description:`<strong>length_column_name</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;length&quot;</code>) &#x2014;
Column name for precomputed lengths. If the column exists, grouping by length will use these values rather
than computing them on train startup. Ignored unless <code>group_by_length</code> is <code>True</code> and the dataset is an
instance of <code>Dataset</code>.`,name:"length_column_name"},{anchor:"transformers.Seq2SeqTrainingArguments.report_to",description:`<strong>report_to</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>, defaults to <code>&quot;all&quot;</code>) &#x2014;
The list of integrations to report the results and logs to. Supported platforms are <code>&quot;azure_ml&quot;</code>,
<code>&quot;clearml&quot;</code>, <code>&quot;codecarbon&quot;</code>, <code>&quot;comet_ml&quot;</code>, <code>&quot;dagshub&quot;</code>, <code>&quot;flyte&quot;</code>, <code>&quot;mlflow&quot;</code>, <code>&quot;neptune&quot;</code>,
<code>&quot;tensorboard&quot;</code>, and <code>&quot;wandb&quot;</code>. Use <code>&quot;all&quot;</code> to report to all integrations installed, <code>&quot;none&quot;</code> for no
integrations.`,name:"report_to"},{anchor:"transformers.Seq2SeqTrainingArguments.ddp_find_unused_parameters",description:`<strong>ddp_find_unused_parameters</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>find_unused_parameters</code> passed to
<code>DistributedDataParallel</code>. Will default to <code>False</code> if gradient checkpointing is used, <code>True</code> otherwise.`,name:"ddp_find_unused_parameters"},{anchor:"transformers.Seq2SeqTrainingArguments.ddp_bucket_cap_mb",description:`<strong>ddp_bucket_cap_mb</strong> (<code>int</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>bucket_cap_mb</code> passed to <code>DistributedDataParallel</code>.`,name:"ddp_bucket_cap_mb"},{anchor:"transformers.Seq2SeqTrainingArguments.ddp_broadcast_buffers",description:`<strong>ddp_broadcast_buffers</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>broadcast_buffers</code> passed to
<code>DistributedDataParallel</code>. Will default to <code>False</code> if gradient checkpointing is used, <code>True</code> otherwise.`,name:"ddp_broadcast_buffers"},{anchor:"transformers.Seq2SeqTrainingArguments.dataloader_pin_memory",description:`<strong>dataloader_pin_memory</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether you want to pin memory in data loaders or not. Will default to <code>True</code>.`,name:"dataloader_pin_memory"},{anchor:"transformers.Seq2SeqTrainingArguments.skip_memory_metrics",description:`<strong>skip_memory_metrics</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to skip adding of memory profiler reports to metrics. This is skipped by default because it slows
down the training and evaluation speed.`,name:"skip_memory_metrics"},{anchor:"transformers.Seq2SeqTrainingArguments.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 the model to the Hub every time the model is saved. If this is activated,
<code>output_dir</code> will begin a git directory synced with the repo (determined by <code>hub_model_id</code>) and the content
will be pushed each time a save is triggered (depending on your <code>save_strategy</code>). Calling
<a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer.save_model">save_model()</a> will also trigger a push.</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 <code>output_dir</code> exists, it needs to be a local clone of the repository to which the <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a> will be
pushed.</p>

					</div>`,name:"push_to_hub"},{anchor:"transformers.Seq2SeqTrainingArguments.resume_from_checkpoint",description:`<strong>resume_from_checkpoint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The path to a folder with a valid checkpoint for your model. This argument is not directly used by
<a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s intended to be used by your training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"resume_from_checkpoint"},{anchor:"transformers.Seq2SeqTrainingArguments.hub_model_id",description:`<strong>hub_model_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the repository to keep in sync with the local <em>output_dir</em>. It can be a simple model ID in
which case the model will be pushed in your namespace. Otherwise it should be the whole repository name,
for instance <code>&quot;user_name/model&quot;</code>, which allows you to push to an organization you are a member of with
<code>&quot;organization_name/model&quot;</code>. Will default to <code>user_name/output_dir_name</code> with <em>output_dir_name</em> being the
name of <code>output_dir</code>.</p>
<p>Will default to the name of <code>output_dir</code>.`,name:"hub_model_id"},{anchor:"transformers.Seq2SeqTrainingArguments.hub_strategy",description:`<strong>hub_strategy</strong> (<code>str</code> or <code>HubStrategy</code>, <em>optional</em>, defaults to <code>&quot;every_save&quot;</code>) &#x2014;
Defines the scope of what is pushed to the Hub and when. Possible values are:</p>
<ul>
<li><code>&quot;end&quot;</code>: push the model, its configuration, the tokenizer (if passed along to the <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>) and a
draft of a model card when the <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer.save_model">save_model()</a> method is called.</li>
<li><code>&quot;every_save&quot;</code>: push the model, its configuration, the tokenizer (if passed along to the <a href="/docs/transformers/v4.34.0/en/main_classes/trainer#transformers.Trainer">Trainer</a>) and
a draft of a model card each time there is a model save. The pushes are asynchronous to not block
training, and in case the save are very frequent, a new push is only attempted if the previous one is
finished. A last push is made with the final model at the end of training.</li>
<li><code>&quot;checkpoint&quot;</code>: like <code>&quot;every_save&quot;</code> but the latest checkpoint is also pushed in a subfolder named
last-checkpoint, allowing you to resume training easily with
<code>trainer.train(resume_from_checkpoint=&quot;last-checkpoint&quot;)</code>.</li>
<li><code>&quot;all_checkpoints&quot;</code>: like <code>&quot;checkpoint&quot;</code> but all checkpoints are pushed like they appear in the output
folder (so you will get one checkpoint folder per folder in your final repository)</li>
</ul>`,name:"hub_strategy"},{anchor:"transformers.Seq2SeqTrainingArguments.hub_token",description:`<strong>hub_token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to use to push the model to the Hub. Will default to the token in the cache folder obtained with
<code>huggingface-cli login</code>.`,name:"hub_token"},{anchor:"transformers.Seq2SeqTrainingArguments.hub_private_repo",description:`<strong>hub_private_repo</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, the Hub repo will be set to private.`,name:"hub_private_repo"},{anchor:"transformers.Seq2SeqTrainingArguments.hub_always_push",description:`<strong>hub_always_push</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Unless this is <code>True</code>, the <code>Trainer</code> will skip pushing a checkpoint when the previous push is not finished.`,name:"hub_always_push"},{anchor:"transformers.Seq2SeqTrainingArguments.gradient_checkpointing",description:`<strong>gradient_checkpointing</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, use gradient checkpointing to save memory at the expense of slower backward pass.`,name:"gradient_checkpointing"},{anchor:"transformers.Seq2SeqTrainingArguments.include_inputs_for_metrics",description:`<strong>include_inputs_for_metrics</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the inputs will be passed to the <code>compute_metrics</code> function. This is intended for metrics
that need inputs, predictions and references for scoring calculation in Metric class.`,name:"include_inputs_for_metrics"},{anchor:"transformers.Seq2SeqTrainingArguments.auto_find_batch_size",description:`<strong>auto_find_batch_size</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to find a batch size that will fit into memory automatically through exponential decay, avoiding
CUDA Out-of-Memory errors. Requires accelerate to be installed (<code>pip install accelerate</code>)`,name:"auto_find_batch_size"},{anchor:"transformers.Seq2SeqTrainingArguments.full_determinism",description:`<strong>full_determinism</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, <a href="/docs/transformers/v4.34.0/en/internal/trainer_utils#transformers.enable_full_determinism">enable_full_determinism()</a> is called instead of <a href="/docs/transformers/v4.34.0/en/internal/trainer_utils#transformers.set_seed">set_seed()</a> to ensure reproducible results in
distributed training. Important: this will negatively impact the performance, so only use it for debugging.`,name:"full_determinism"},{anchor:"transformers.Seq2SeqTrainingArguments.torchdynamo",description:`<strong>torchdynamo</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If set, the backend compiler for TorchDynamo. Possible choices are <code>&quot;eager&quot;</code>, <code>&quot;aot_eager&quot;</code>, <code>&quot;inductor&quot;</code>,
<code>&quot;nvfuser&quot;</code>, <code>&quot;aot_nvfuser&quot;</code>, <code>&quot;aot_cudagraphs&quot;</code>, <code>&quot;ofi&quot;</code>, <code>&quot;fx2trt&quot;</code>, <code>&quot;onnxrt&quot;</code> and <code>&quot;ipex&quot;</code>.`,name:"torchdynamo"},{anchor:"transformers.Seq2SeqTrainingArguments.ray_scope",description:`<strong>ray_scope</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;last&quot;</code>) &#x2014;
The scope to use when doing hyperparameter search with Ray. By default, <code>&quot;last&quot;</code> will be used. Ray will
then use the last checkpoint of all trials, compare those, and select the best one. However, other options
are also available. See the <a href="https://docs.ray.io/en/latest/tune/api_docs/analysis.html#ray.tune.ExperimentAnalysis.get_best_trial" rel="nofollow">Ray documentation</a> for
more options.`,name:"ray_scope"},{anchor:"transformers.Seq2SeqTrainingArguments.ddp_timeout",description:`<strong>ddp_timeout</strong> (<code>int</code>, <em>optional</em>, defaults to 1800) &#x2014;
The timeout for <code>torch.distributed.init_process_group</code> calls, used to avoid GPU socket timeouts when
performing slow operations in distributed runnings. Please refer the [PyTorch documentation]
(<a href="https://pytorch.org/docs/stable/distributed.html#torch.distributed.init_process_group" rel="nofollow">https://pytorch.org/docs/stable/distributed.html#torch.distributed.init_process_group</a>) for more
information.`,name:"ddp_timeout"},{anchor:"transformers.Seq2SeqTrainingArguments.use_mps_device",description:`<strong>use_mps_device</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
This argument is deprecated.<code>mps</code> device will be used if it is available similar to <code>cuda</code> device.`,name:"use_mps_device"},{anchor:"transformers.Seq2SeqTrainingArguments.torch_compile",description:`<strong>torch_compile</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to compile the model using PyTorch 2.0
<a href="https://pytorch.org/get-started/pytorch-2.0/" rel="nofollow"><code>torch.compile</code></a>.</p>
<p>This will use the best defaults for the <a href="https://pytorch.org/docs/stable/generated/torch.compile.html?highlight=torch+compile#torch.compile" rel="nofollow"><code>torch.compile</code>
API</a>.
You can customize the defaults with the argument <code>torch_compile_backend</code> and <code>torch_compile_mode</code> but we
don&#x2019;t guarantee any of them will work as the support is progressively rolled in in PyTorch.</p>
<p>This flag and the whole compile API is experimental and subject to change in future releases.`,name:"torch_compile"},{anchor:"transformers.Seq2SeqTrainingArguments.torch_compile_backend",description:`<strong>torch_compile_backend</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The backend to use in <code>torch.compile</code>. If set to any value, <code>torch_compile</code> will be set to <code>True</code>.</p>
<p>Refer to the PyTorch doc for possible values and note that they may change across PyTorch versions.</p>
<p>This flag is experimental and subject to change in future releases.`,name:"torch_compile_backend"},{anchor:"transformers.Seq2SeqTrainingArguments.torch_compile_mode",description:`<strong>torch_compile_mode</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The mode to use in <code>torch.compile</code>. If set to any value, <code>torch_compile</code> will be set to <code>True</code>.</p>
<p>Refer to the PyTorch doc for possible values and note that they may change across PyTorch versions.</p>
<p>This flag is experimental and subject to change in future releases.`,name:"torch_compile_mode"},{anchor:"transformers.Seq2SeqTrainingArguments.include_tokens_per_second",description:`<strong>include_tokens_per_second</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to compute the number of tokens per second per device for training speed metrics.</p>
<p>This will iterate over the entire training dataloader once beforehand,</p>
<p>and will slow down the entire process.`,name:"include_tokens_per_second"},{anchor:"transformers.Seq2SeqTrainingArguments.sortish_sampler",description:`<strong>sortish_sampler</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use a <em>sortish sampler</em> or not. Only possible if the underlying datasets are <em>Seq2SeqDataset</em>
for now but will become generally available in the near future.</p>
<p>It sorts the inputs according to lengths in order to minimize the padding size, with a bit of randomness
for the training set.`,name:"sortish_sampler"},{anchor:"transformers.Seq2SeqTrainingArguments.predict_with_generate",description:`<strong>predict_with_generate</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use generate to calculate generative metrics (ROUGE, BLEU).`,name:"predict_with_generate"},{anchor:"transformers.Seq2SeqTrainingArguments.generation_max_length",description:`<strong>generation_max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The <code>max_length</code> to use on each evaluation loop when <code>predict_with_generate=True</code>. Will default to the
<code>max_length</code> value of the model configuration.`,name:"generation_max_length"},{anchor:"transformers.Seq2SeqTrainingArguments.generation_num_beams",description:`<strong>generation_num_beams</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The <code>num_beams</code> to use on each evaluation loop when <code>predict_with_generate=True</code>. Will default to the
<code>num_beams</code> value of the model configuration.`,name:"generation_num_beams"},{anchor:"transformers.Seq2SeqTrainingArguments.generation_config",description:`<strong>generation_config</strong> (<code>str</code> or <code>Path</code> or <a href="/docs/transformers/v4.34.0/en/main_classes/text_generation#transformers.GenerationConfig">GenerationConfig</a>, <em>optional</em>) &#x2014;
Allows to load a <a href="/docs/transformers/v4.34.0/en/main_classes/text_generation#transformers.GenerationConfig">GenerationConfig</a> from the <code>from_pretrained</code> method. This can be either:</p>
<ul>
<li>a string, the <em>model id</em> of a pretrained model configuration 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 a configuration file saved using the
<a href="/docs/transformers/v4.34.0/en/main_classes/text_generation#transformers.GenerationConfig.save_pretrained">save_pretrained()</a> method, e.g., <code>./my_model_directory/</code>.</li>
<li>a <a href="/docs/transformers/v4.34.0/en/main_classes/text_generation#transformers.GenerationConfig">GenerationConfig</a> object.</li>
</ul>`,name:"generation_config"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args_seq2seq.py#L30"}}),$n=new k({props:{name:"to_dict",anchor:"transformers.Seq2SeqTrainingArguments.to_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/training_args_seq2seq.py#L87"}}),kn=new L({}),Jn=new L({}),zn=new j({props:{code:"JTVCLi4uJTVEJTBBbG9nZ2VyJTIwJTNEJTIwbG9nZ2luZy5nZXRMb2dnZXIoX19uYW1lX18pJTBBJTBBJTIzJTIwU2V0dXAlMjBsb2dnaW5nJTBBbG9nZ2luZy5iYXNpY0NvbmZpZyglMEElMjAlMjAlMjAlMjBmb3JtYXQlM0QlMjIlMjUoYXNjdGltZSlzJTIwLSUyMCUyNShsZXZlbG5hbWUpcyUyMC0lMjAlMjUobmFtZSlzJTIwLSUyMCUyNShtZXNzYWdlKXMlMjIlMkMlMEElMjAlMjAlMjAlMjBkYXRlZm10JTNEJTIyJTI1bSUyRiUyNWQlMkYlMjVZJTIwJTI1SCUzQSUyNU0lM0ElMjVTJTIyJTJDJTBBJTIwJTIwJTIwJTIwaGFuZGxlcnMlM0QlNUJsb2dnaW5nLlN0cmVhbUhhbmRsZXIoc3lzLnN0ZG91dCklNUQlMkMlMEEpJTBBJTBBJTIzJTIwc2V0JTIwdGhlJTIwbWFpbiUyMGNvZGUlMjBhbmQlMjB0aGUlMjBtb2R1bGVzJTIwaXQlMjB1c2VzJTIwdG8lMjB0aGUlMjBzYW1lJTIwbG9nLWxldmVsJTIwYWNjb3JkaW5nJTIwdG8lMjB0aGUlMjBub2RlJTBBbG9nX2xldmVsJTIwJTNEJTIwdHJhaW5pbmdfYXJncy5nZXRfcHJvY2Vzc19sb2dfbGV2ZWwoKSUwQWxvZ2dlci5zZXRMZXZlbChsb2dfbGV2ZWwpJTBBZGF0YXNldHMudXRpbHMubG9nZ2luZy5zZXRfdmVyYm9zaXR5KGxvZ19sZXZlbCklMEF0cmFuc2Zvcm1lcnMudXRpbHMubG9nZ2luZy5zZXRfdmVyYm9zaXR5KGxvZ19sZXZlbCklMEElMEF0cmFpbmVyJTIwJTNEJTIwVHJhaW5lciguLi4p",highlighted:`[...]
logger = logging.getLogger(__name__)

<span class="hljs-comment"># Setup logging</span>
logging.basicConfig(
    <span class="hljs-built_in">format</span>=<span class="hljs-string">&quot;%(asctime)s - %(levelname)s - %(name)s - %(message)s&quot;</span>,
    datefmt=<span class="hljs-string">&quot;%m/%d/%Y %H:%M:%S&quot;</span>,
    handlers=[logging.StreamHandler(sys.stdout)],
)

<span class="hljs-comment"># set the main code and the modules it uses to the same log-level according to the node</span>
log_level = training_args.get_process_log_level()
logger.setLevel(log_level)
datasets.utils.logging.set_verbosity(log_level)
transformers.utils.logging.set_verbosity(log_level)

trainer = Trainer(...)`,wrap:!1}}),Wn=new j({props:{code:"bXlfYXBwLnB5JTIwLi4uJTIwLS1sb2dfbGV2ZWwlMjB3YXJuaW5nJTIwLS1sb2dfbGV2ZWxfcmVwbGljYSUyMGVycm9y",highlighted:"my_app.py ... --log_level warning --log_level_replica error",wrap:!1}}),En=new j({props:{code:"bXlfYXBwLnB5JTIwLi4uJTIwLS1sb2dfbGV2ZWwlMjB3YXJuaW5nJTIwLS1sb2dfbGV2ZWxfcmVwbGljYSUyMGVycm9yJTIwLS1sb2dfb25fZWFjaF9ub2RlJTIwMA==",highlighted:"my_app.py ... --log_level warning --log_level_replica error --log_on_each_node 0",wrap:!1}}),Zn=new j({props:{code:"bXlfYXBwLnB5JTIwLi4uJTIwLS1sb2dfbGV2ZWwlMjBlcnJvciUyMC0tbG9nX2xldmVsX3JlcGxpY2ElMjBlcnJvciUyMC0tbG9nX29uX2VhY2hfbm9kZSUyMDA=",highlighted:"my_app.py ... --log_level error --log_level_replica error --log_on_each_node 0",wrap:!1}}),Xn=new L({}),On=new L({}),ea=new j({props:{code:"cHl0aG9uJTIwLW0lMjB0b3JjaC5kaXN0cmlidXRlZC5sYXVuY2glMjAtLW5wcm9jX3Blcl9ub2RlJTNEMiUyMCUyMHRyYWluZXItcHJvZ3JhbS5weSUyMC4uLg==",highlighted:"python -m torch.distributed.launch --nproc_per_node=2  trainer-program.py ...",wrap:!1}}),oa=new j({props:{code:"YWNjZWxlcmF0ZSUyMGxhdW5jaCUyMC0tbnVtX3Byb2Nlc3NlcyUyMDIlMjB0cmFpbmVyLXByb2dyYW0ucHklMjAuLi4=",highlighted:"accelerate launch --num_processes 2 trainer-program.py ...",wrap:!1}}),na=new j({props:{code:"ZGVlcHNwZWVkJTIwLS1udW1fZ3B1cyUyMDIlMjB0cmFpbmVyLXByb2dyYW0ucHklMjAuLi4=",highlighted:"deepspeed --num_gpus 2 trainer-program.py ...",wrap:!1}}),ca=new j({props:{code:"Q1VEQV9WSVNJQkxFX0RFVklDRVMlM0QwJTJDMiUyMHB5dGhvbiUyMC1tJTIwdG9yY2guZGlzdHJpYnV0ZWQubGF1bmNoJTIwdHJhaW5lci1wcm9ncmFtLnB5JTIwLi4u",highlighted:"CUDA_VISIBLE_DEVICES=0,2 python -m torch.distributed.launch trainer-program.py ...",wrap:!1}}),ua=new j({props:{code:"Q1VEQV9WSVNJQkxFX0RFVklDRVMlM0QyJTJDMCUyMHB5dGhvbiUyMC1tJTIwdG9yY2guZGlzdHJpYnV0ZWQubGF1bmNoJTIwdHJhaW5lci1wcm9ncmFtLnB5JTIwLi4u",highlighted:"CUDA_VISIBLE_DEVICES=2,0 python -m torch.distributed.launch trainer-program.py ...",wrap:!1}}),fa=new j({props:{code:"Q1VEQV9WSVNJQkxFX0RFVklDRVMlM0QyJTJDMCUyMHB5dGhvbiUyMHRyYWluZXItcHJvZ3JhbS5weSUyMC4uLg==",highlighted:"CUDA_VISIBLE_DEVICES=2,0 python trainer-program.py ...",wrap:!1}}),ba=new j({props:{code:"Q1VEQV9WSVNJQkxFX0RFVklDRVMlM0QlMjBweXRob24lMjB0cmFpbmVyLXByb2dyYW0ucHklMjAuLi4=",highlighted:"CUDA_VISIBLE_DEVICES= python trainer-program.py ...",wrap:!1}}),ya=new j({props:{code:"ZXhwb3J0JTIwQ1VEQV9WSVNJQkxFX0RFVklDRVMlM0QwJTJDMiUwQXB5dGhvbiUyMC1tJTIwdG9yY2guZGlzdHJpYnV0ZWQubGF1bmNoJTIwdHJhaW5lci1wcm9ncmFtLnB5JTIwLi4u",highlighted:`<span class="hljs-built_in">export</span> CUDA_VISIBLE_DEVICES=0,2
python -m torch.distributed.launch trainer-program.py ...`,wrap:!1}}),$a=new j({props:{code:"ZXhwb3J0JTIwQ1VEQV9ERVZJQ0VfT1JERVIlM0RQQ0lfQlVTX0lE",highlighted:'<span class="hljs-built_in">export</span> CUDA_DEVICE_ORDER=PCI_BUS_ID',wrap:!1}}),ka=new j({props:{code:"ZXhwb3J0JTIwQ1VEQV9ERVZJQ0VfT1JERVIlM0RGQVNURVNUX0ZJUlNU",highlighted:'<span class="hljs-built_in">export</span> CUDA_DEVICE_ORDER=FASTEST_FIRST',wrap:!1}}),Ca=new j({props:{code:"ZXhwb3J0JTIwQ1VEQV9WSVNJQkxFX0RFVklDRVMlM0QxJTJDMA==",highlighted:'<span class="hljs-built_in">export</span> CUDA_VISIBLE_DEVICES=1,0',wrap:!1}}),Ja=new L({}),La=new L({}),Da=new j({props:{code:"cGlwJTIwaW5zdGFsbCUyMGRlZXBzcGVlZA==",highlighted:"pip install deepspeed",wrap:!1}}),Ea=new L({}),Va=new j({props:{code:"d2hpY2glMjBudmNj",highlighted:'<span class="hljs-built_in">which</span> nvcc',wrap:!1}}),Ga=new L({}),Oa=new j({props:{code:"JTJGdXNyJTJGbG9jYWwlMkZjdWRhLTEwLjIlMEElMkZ1c3IlMkZsb2NhbCUyRmN1ZGEtMTEuMA==",highlighted:`/usr/local/cuda-10.2
/usr/local/cuda-11.0`,wrap:!1}}),er=new j({props:{code:"ZWNobyUyMCUyNFBBVEglMEFlY2hvJTIwJTI0TERfTElCUkFSWV9QQVRI",highlighted:`<span class="hljs-built_in">echo</span> <span class="hljs-variable">$PATH</span>
<span class="hljs-built_in">echo</span> <span class="hljs-variable">$LD_LIBRARY_PATH</span>`,wrap:!1}}),rr=new j({props:{code:"ZXhwb3J0JTIwUEFUSCUzRCUyRnVzciUyRmxvY2FsJTJGY3VkYS0xMC4yJTJGYmluJTNBJTI0UEFUSCUwQWV4cG9ydCUyMExEX0xJQlJBUllfUEFUSCUzRCUyRnVzciUyRmxvY2FsJTJGY3VkYS0xMC4yJTJGbGliNjQlM0ElMjRMRF9MSUJSQVJZX1BBVEg=",highlighted:`<span class="hljs-built_in">export</span> PATH=/usr/local/cuda-10.2/bin:<span class="hljs-variable">$PATH</span>
<span class="hljs-built_in">export</span> LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64:<span class="hljs-variable">$LD_LIBRARY_PATH</span>`,wrap:!1}}),lr=new L({}),ur=new j({props:{code:"c3VkbyUyMGxuJTIwLXMlMjAlMkZ1c3IlMkZiaW4lMkZnY2MtNyUyMCUyMCUyRnVzciUyRmxvY2FsJTJGY3VkYS0xMC4yJTJGYmluJTJGZ2NjJTBBc3VkbyUyMGxuJTIwLXMlMjAlMkZ1c3IlMkZiaW4lMkZnJTJCJTJCLTclMjAlMjAlMkZ1c3IlMkZsb2NhbCUyRmN1ZGEtMTAuMiUyRmJpbiUyRmclMkIlMkI=",highlighted:`sudo <span class="hljs-built_in">ln</span> -s /usr/bin/gcc-7  /usr/local/cuda-10.2/bin/gcc
sudo <span class="hljs-built_in">ln</span> -s /usr/bin/g++-7  /usr/local/cuda-10.2/bin/g++`,wrap:!1}}),fr=new L({}),xr=new L({}),Cr=new L({}),Yt=new Ve({props:{warning:!1,$$slots:{default:[YT]},$$scope:{ctx:C}}}),Pr=new j({props:{code:"ZXhwb3J0JTIwVEFTS19OQU1FJTNEbXJwYyUwQSUwQXB5dGhvbiUyMGV4YW1wbGVzJTJGcHl0b3JjaCUyRnRleHQtY2xhc3NpZmljYXRpb24lMkZydW5fZ2x1ZS5weSUyMCU1QyUwQSUyMCUyMC0tbW9kZWxfbmFtZV9vcl9wYXRoJTIwYmVydC1iYXNlLWNhc2VkJTIwJTVDJTBBJTIwJTIwLS10YXNrX25hbWUlMjAlMjRUQVNLX05BTUUlMjAlNUMlMEElMjAlMjAtLWRvX3RyYWluJTIwJTVDJTBBJTIwJTIwLS1kb19ldmFsJTIwJTVDJTBBJTIwJTIwLS1tYXhfc2VxX2xlbmd0aCUyMDEyOCUyMCU1QyUwQSUyMCUyMC0tcGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTIwMzIlMjAlNUMlMEElMjAlMjAtLWxlYXJuaW5nX3JhdGUlMjAyZS01JTIwJTVDJTBBJTIwJTIwLS1udW1fdHJhaW5fZXBvY2hzJTIwMyUyMCU1QyUwQSUyMCUyMC0tb3V0cHV0X2RpciUyMCUyRnRtcCUyRiUyNFRBU0tfTkFNRSUyRiUyMCU1QyUwQSUyMCUyMC0tb3ZlcndyaXRlX291dHB1dF9kaXI=",highlighted:`<span class="hljs-built_in">export</span> TASK_NAME=mrpc

python examples/pytorch/text-classification/run_glue.py \\
  --model_name_or_path bert-base-cased \\
  --task_name <span class="hljs-variable">$TASK_NAME</span> \\
  --do_train \\
  --do_eval \\
  --max_seq_length 128 \\
  --per_device_train_batch_size 32 \\
  --learning_rate 2e-5 \\
  --num_train_epochs 3 \\
  --output_dir /tmp/<span class="hljs-variable">$TASK_NAME</span>/ \\
  --overwrite_output_dir`,wrap:!1}}),zr=new L({}),Er=new j({props:{code:"Y29tcHV0ZV9lbnZpcm9ubWVudCUzQSUyMExPQ0FMX01BQ0hJTkUlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMEFkaXN0cmlidXRlZF90eXBlJTNBJTIwTVVMVElfR1BVJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTBBZG93bmNhc3RfYmYxNiUzQSUyMCdubyclMEFncHVfaWRzJTNBJTIwYWxsJTBBbWFjaGluZV9yYW5rJTNBJTIwMCUyMCUyM2NoYW5nZSUyMHJhbmslMjBhcyUyMHBlciUyMHRoZSUyMG5vZGUlMEFtYWluX3Byb2Nlc3NfaXAlM0ElMjAxOTIuMTY4LjIwLjElMEFtYWluX3Byb2Nlc3NfcG9ydCUzQSUyMDk4OTglMEFtYWluX3RyYWluaW5nX2Z1bmN0aW9uJTNBJTIwbWFpbiUwQW1peGVkX3ByZWNpc2lvbiUzQSUyMGZwMTYlMEFudW1fbWFjaGluZXMlM0ElMjAyJTBBbnVtX3Byb2Nlc3NlcyUzQSUyMDglMEFyZHp2X2JhY2tlbmQlM0ElMjBzdGF0aWMlMEFzYW1lX25ldHdvcmslM0ElMjB0cnVlJTBBdHB1X2VudiUzQSUyMCU1QiU1RCUwQXRwdV91c2VfY2x1c3RlciUzQSUyMGZhbHNlJTBBdHB1X3VzZV9zdWRvJTNBJTIwZmFsc2UlMEF1c2VfY3B1JTNBJTIwZmFsc2U=",highlighted:`<span class="hljs-attr">compute_environment:</span> <span class="hljs-string">LOCAL_MACHINE</span>                                                                                             
<span class="hljs-attr">distributed_type:</span> <span class="hljs-string">MULTI_GPU</span>                                                                                                    
<span class="hljs-attr">downcast_bf16:</span> <span class="hljs-string">&#x27;no&#x27;</span>
<span class="hljs-attr">gpu_ids:</span> <span class="hljs-string">all</span>
<span class="hljs-attr">machine_rank:</span> <span class="hljs-number">0</span> <span class="hljs-comment">#change rank as per the node</span>
<span class="hljs-attr">main_process_ip:</span> <span class="hljs-number">192.168</span><span class="hljs-number">.20</span><span class="hljs-number">.1</span>
<span class="hljs-attr">main_process_port:</span> <span class="hljs-number">9898</span>
<span class="hljs-attr">main_training_function:</span> <span class="hljs-string">main</span>
<span class="hljs-attr">mixed_precision:</span> <span class="hljs-string">fp16</span>
<span class="hljs-attr">num_machines:</span> <span class="hljs-number">2</span>
<span class="hljs-attr">num_processes:</span> <span class="hljs-number">8</span>
<span class="hljs-attr">rdzv_backend:</span> <span class="hljs-string">static</span>
<span class="hljs-attr">same_network:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">tpu_env:</span> []
<span class="hljs-attr">tpu_use_cluster:</span> <span class="hljs-literal">false</span>
<span class="hljs-attr">tpu_use_sudo:</span> <span class="hljs-literal">false</span>
<span class="hljs-attr">use_cpu:</span> <span class="hljs-literal">false</span>`,wrap:!1}}),Rr=new j({props:{code:"Y29tcHV0ZV9lbnZpcm9ubWVudCUzQSUyMExPQ0FMX01BQ0hJTkUlMEFkaXN0cmlidXRlZF90eXBlJTNBJTIwRlNEUCUwQWRvd25jYXN0X2JmMTYlM0ElMjAnbm8nJTBBZnNkcF9jb25maWclM0ElMEElMjAlMjBmc2RwX2F1dG9fd3JhcF9wb2xpY3klM0ElMjBUUkFOU0ZPUk1FUl9CQVNFRF9XUkFQJTBBJTIwJTIwZnNkcF9iYWNrd2FyZF9wcmVmZXRjaF9wb2xpY3klM0ElMjBCQUNLV0FSRF9QUkUlMEElMjAlMjBmc2RwX2ZvcndhcmRfcHJlZmV0Y2glM0ElMjB0cnVlJTBBJTIwJTIwZnNkcF9vZmZsb2FkX3BhcmFtcyUzQSUyMGZhbHNlJTBBJTIwJTIwZnNkcF9zaGFyZGluZ19zdHJhdGVneSUzQSUyMDElMEElMjAlMjBmc2RwX3N0YXRlX2RpY3RfdHlwZSUzQSUyMEZVTExfU1RBVEVfRElDVCUwQSUyMCUyMGZzZHBfc3luY19tb2R1bGVfc3RhdGVzJTNBJTIwdHJ1ZSUwQSUyMCUyMGZzZHBfdHJhbnNmb3JtZXJfbGF5ZXJfY2xzX3RvX3dyYXAlM0ElMjBCZXJ0TGF5ZXIlMEElMjAlMjBmc2RwX3VzZV9vcmlnX3BhcmFtcyUzQSUyMHRydWUlMEFtYWNoaW5lX3JhbmslM0ElMjAwJTBBbWFpbl90cmFpbmluZ19mdW5jdGlvbiUzQSUyMG1haW4lMEFtaXhlZF9wcmVjaXNpb24lM0ElMjBiZjE2JTBBbnVtX21hY2hpbmVzJTNBJTIwMSUwQW51bV9wcm9jZXNzZXMlM0ElMjAyJTBBcmR6dl9iYWNrZW5kJTNBJTIwc3RhdGljJTBBc2FtZV9uZXR3b3JrJTNBJTIwdHJ1ZSUwQXRwdV9lbnYlM0ElMjAlNUIlNUQlMEF0cHVfdXNlX2NsdXN0ZXIlM0ElMjBmYWxzZSUwQXRwdV91c2Vfc3VkbyUzQSUyMGZhbHNlJTBBdXNlX2NwdSUzQSUyMGZhbHNl",highlighted:`<span class="hljs-attr">compute_environment:</span> <span class="hljs-string">LOCAL_MACHINE</span>
<span class="hljs-attr">distributed_type:</span> <span class="hljs-string">FSDP</span>
<span class="hljs-attr">downcast_bf16:</span> <span class="hljs-string">&#x27;no&#x27;</span>
<span class="hljs-attr">fsdp_config:</span>
  <span class="hljs-attr">fsdp_auto_wrap_policy:</span> <span class="hljs-string">TRANSFORMER_BASED_WRAP</span>
  <span class="hljs-attr">fsdp_backward_prefetch_policy:</span> <span class="hljs-string">BACKWARD_PRE</span>
  <span class="hljs-attr">fsdp_forward_prefetch:</span> <span class="hljs-literal">true</span>
  <span class="hljs-attr">fsdp_offload_params:</span> <span class="hljs-literal">false</span>
  <span class="hljs-attr">fsdp_sharding_strategy:</span> <span class="hljs-number">1</span>
  <span class="hljs-attr">fsdp_state_dict_type:</span> <span class="hljs-string">FULL_STATE_DICT</span>
  <span class="hljs-attr">fsdp_sync_module_states:</span> <span class="hljs-literal">true</span>
  <span class="hljs-attr">fsdp_transformer_layer_cls_to_wrap:</span> <span class="hljs-string">BertLayer</span>
  <span class="hljs-attr">fsdp_use_orig_params:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">machine_rank:</span> <span class="hljs-number">0</span>
<span class="hljs-attr">main_training_function:</span> <span class="hljs-string">main</span>
<span class="hljs-attr">mixed_precision:</span> <span class="hljs-string">bf16</span>
<span class="hljs-attr">num_machines:</span> <span class="hljs-number">1</span>
<span class="hljs-attr">num_processes:</span> <span class="hljs-number">2</span>
<span class="hljs-attr">rdzv_backend:</span> <span class="hljs-string">static</span>
<span class="hljs-attr">same_network:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">tpu_env:</span> []
<span class="hljs-attr">tpu_use_cluster:</span> <span class="hljs-literal">false</span>
<span class="hljs-attr">tpu_use_sudo:</span> <span class="hljs-literal">false</span>
<span class="hljs-attr">use_cpu:</span> <span class="hljs-literal">false</span>`,wrap:!1}}),Br=new j({props:{code:"Y29tcHV0ZV9lbnZpcm9ubWVudCUzQSUyMExPQ0FMX01BQ0hJTkUlMEFkZWVwc3BlZWRfY29uZmlnJTNBJTBBJTIwJTIwZGVlcHNwZWVkX2NvbmZpZ19maWxlJTNBJTIwJTJGaG9tZSUyRnVzZXIlMkZjb25maWdzJTJGZHNfemVybzNfY29uZmlnLmpzb24lMEElMjAlMjB6ZXJvM19pbml0X2ZsYWclM0ElMjB0cnVlJTBBZGlzdHJpYnV0ZWRfdHlwZSUzQSUyMERFRVBTUEVFRCUwQWRvd25jYXN0X2JmMTYlM0ElMjAnbm8nJTBBbWFjaGluZV9yYW5rJTNBJTIwMCUwQW1haW5fdHJhaW5pbmdfZnVuY3Rpb24lM0ElMjBtYWluJTBBbnVtX21hY2hpbmVzJTNBJTIwMSUwQW51bV9wcm9jZXNzZXMlM0ElMjA0JTBBcmR6dl9iYWNrZW5kJTNBJTIwc3RhdGljJTBBc2FtZV9uZXR3b3JrJTNBJTIwdHJ1ZSUwQXRwdV9lbnYlM0ElMjAlNUIlNUQlMEF0cHVfdXNlX2NsdXN0ZXIlM0ElMjBmYWxzZSUwQXRwdV91c2Vfc3VkbyUzQSUyMGZhbHNlJTBBdXNlX2NwdSUzQSUyMGZhbHNl",highlighted:`<span class="hljs-attr">compute_environment:</span> <span class="hljs-string">LOCAL_MACHINE</span>
<span class="hljs-attr">deepspeed_config:</span>
  <span class="hljs-attr">deepspeed_config_file:</span> <span class="hljs-string">/home/user/configs/ds_zero3_config.json</span>
  <span class="hljs-attr">zero3_init_flag:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">distributed_type:</span> <span class="hljs-string">DEEPSPEED</span>
<span class="hljs-attr">downcast_bf16:</span> <span class="hljs-string">&#x27;no&#x27;</span>
<span class="hljs-attr">machine_rank:</span> <span class="hljs-number">0</span>
<span class="hljs-attr">main_training_function:</span> <span class="hljs-string">main</span>
<span class="hljs-attr">num_machines:</span> <span class="hljs-number">1</span>
<span class="hljs-attr">num_processes:</span> <span class="hljs-number">4</span>
<span class="hljs-attr">rdzv_backend:</span> <span class="hljs-string">static</span>
<span class="hljs-attr">same_network:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">tpu_env:</span> []
<span class="hljs-attr">tpu_use_cluster:</span> <span class="hljs-literal">false</span>
<span class="hljs-attr">tpu_use_sudo:</span> <span class="hljs-literal">false</span>
<span class="hljs-attr">use_cpu:</span> <span class="hljs-literal">false</span>`,wrap:!1}}),Zr=new j({props:{code:"Y29tcHV0ZV9lbnZpcm9ubWVudCUzQSUyMExPQ0FMX01BQ0hJTkUlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMEFkZWVwc3BlZWRfY29uZmlnJTNBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTBBJTIwJTIwZ3JhZGllbnRfYWNjdW11bGF0aW9uX3N0ZXBzJTNBJTIwMSUwQSUyMCUyMGdyYWRpZW50X2NsaXBwaW5nJTNBJTIwMC43JTBBJTIwJTIwb2ZmbG9hZF9vcHRpbWl6ZXJfZGV2aWNlJTNBJTIwY3B1JTBBJTIwJTIwb2ZmbG9hZF9wYXJhbV9kZXZpY2UlM0ElMjBjcHUlMEElMjAlMjB6ZXJvM19pbml0X2ZsYWclM0ElMjB0cnVlJTBBJTIwJTIwemVyb19zdGFnZSUzQSUyMDIlMEFkaXN0cmlidXRlZF90eXBlJTNBJTIwREVFUFNQRUVEJTBBZG93bmNhc3RfYmYxNiUzQSUyMCdubyclMEFtYWNoaW5lX3JhbmslM0ElMjAwJTBBbWFpbl90cmFpbmluZ19mdW5jdGlvbiUzQSUyMG1haW4lMEFtaXhlZF9wcmVjaXNpb24lM0ElMjBiZjE2JTBBbnVtX21hY2hpbmVzJTNBJTIwMSUwQW51bV9wcm9jZXNzZXMlM0ElMjA0JTBBcmR6dl9iYWNrZW5kJTNBJTIwc3RhdGljJTBBc2FtZV9uZXR3b3JrJTNBJTIwdHJ1ZSUwQXRwdV9lbnYlM0ElMjAlNUIlNUQlMEF0cHVfdXNlX2NsdXN0ZXIlM0ElMjBmYWxzZSUwQXRwdV91c2Vfc3VkbyUzQSUyMGZhbHNlJTBBdXNlX2NwdSUzQSUyMGZhbHNl",highlighted:`<span class="hljs-attr">compute_environment:</span> <span class="hljs-string">LOCAL_MACHINE</span>                                                                                             
<span class="hljs-attr">deepspeed_config:</span>                                                                                                              
  <span class="hljs-attr">gradient_accumulation_steps:</span> <span class="hljs-number">1</span>
  <span class="hljs-attr">gradient_clipping:</span> <span class="hljs-number">0.7</span>
  <span class="hljs-attr">offload_optimizer_device:</span> <span class="hljs-string">cpu</span>
  <span class="hljs-attr">offload_param_device:</span> <span class="hljs-string">cpu</span>
  <span class="hljs-attr">zero3_init_flag:</span> <span class="hljs-literal">true</span>
  <span class="hljs-attr">zero_stage:</span> <span class="hljs-number">2</span>
<span class="hljs-attr">distributed_type:</span> <span class="hljs-string">DEEPSPEED</span>
<span class="hljs-attr">downcast_bf16:</span> <span class="hljs-string">&#x27;no&#x27;</span>
<span class="hljs-attr">machine_rank:</span> <span class="hljs-number">0</span>
<span class="hljs-attr">main_training_function:</span> <span class="hljs-string">main</span>
<span class="hljs-attr">mixed_precision:</span> <span class="hljs-string">bf16</span>
<span class="hljs-attr">num_machines:</span> <span class="hljs-number">1</span>
<span class="hljs-attr">num_processes:</span> <span class="hljs-number">4</span>
<span class="hljs-attr">rdzv_backend:</span> <span class="hljs-string">static</span>
<span class="hljs-attr">same_network:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">tpu_env:</span> []
<span class="hljs-attr">tpu_use_cluster:</span> <span class="hljs-literal">false</span>
<span class="hljs-attr">tpu_use_sudo:</span> <span class="hljs-literal">false</span>
<span class="hljs-attr">use_cpu:</span> <span class="hljs-literal">false</span>`,wrap:!1}}),Vr=new j({props:{code:"Y2QlMjB0cmFuc2Zvcm1lcnMlMEElMEFhY2NlbGVyYXRlJTIwbGF1bmNoJTIwJTVDJTBBLiUyRmV4YW1wbGVzJTJGcHl0b3JjaCUyRnRleHQtY2xhc3NpZmljYXRpb24lMkZydW5fZ2x1ZS5weSUyMCU1QyUwQS0tbW9kZWxfbmFtZV9vcl9wYXRoJTIwYmVydC1iYXNlLWNhc2VkJTIwJTVDJTBBLS10YXNrX25hbWUlMjAlMjRUQVNLX05BTUUlMjAlNUMlMEEtLWRvX3RyYWluJTIwJTVDJTBBLS1kb19ldmFsJTIwJTVDJTBBLS1tYXhfc2VxX2xlbmd0aCUyMDEyOCUyMCU1QyUwQS0tcGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTIwMTYlMjAlNUMlMEEtLWxlYXJuaW5nX3JhdGUlMjA1ZS01JTIwJTVDJTBBLS1udW1fdHJhaW5fZXBvY2hzJTIwMyUyMCU1QyUwQS0tb3V0cHV0X2RpciUyMCUyRnRtcCUyRiUyNFRBU0tfTkFNRSUyRiUyMCU1QyUwQS0tb3ZlcndyaXRlX291dHB1dF9kaXI=",highlighted:`<span class="hljs-built_in">cd</span> transformers

accelerate launch \\
./examples/pytorch/text-classification/run_glue.py \\
--model_name_or_path bert-base-cased \\
--task_name <span class="hljs-variable">$TASK_NAME</span> \\
--do_train \\
--do_eval \\
--max_seq_length 128 \\
--per_device_train_batch_size 16 \\
--learning_rate 5e-5 \\
--num_train_epochs 3 \\
--output_dir /tmp/<span class="hljs-variable">$TASK_NAME</span>/ \\
--overwrite_output_dir`,wrap:!1}}),Xr=new j({props:{code:"Y2QlMjB0cmFuc2Zvcm1lcnMlMEElMEFhY2NlbGVyYXRlJTIwbGF1bmNoJTIwLS1udW1fcHJvY2Vzc2VzJTNEMiUyMCU1QyUwQS0tdXNlX2ZzZHAlMjAlNUMlMEEtLW1peGVkX3ByZWNpc2lvbiUzRGJmMTYlMjAlNUMlMEEtLWZzZHBfYXV0b193cmFwX3BvbGljeSUzRFRSQU5TRk9STUVSX0JBU0VEX1dSQVAlMjAlMjAlNUMlMEEtLWZzZHBfdHJhbnNmb3JtZXJfbGF5ZXJfY2xzX3RvX3dyYXAlM0QlMjJCZXJ0TGF5ZXIlMjIlMjAlNUMlMEEtLWZzZHBfc2hhcmRpbmdfc3RyYXRlZ3klM0QxJTIwJTVDJTBBLS1mc2RwX3N0YXRlX2RpY3RfdHlwZSUzREZVTExfU1RBVEVfRElDVCUyMCU1QyUwQS4lMkZleGFtcGxlcyUyRnB5dG9yY2glMkZ0ZXh0LWNsYXNzaWZpY2F0aW9uJTJGcnVuX2dsdWUucHklMEEtLW1vZGVsX25hbWVfb3JfcGF0aCUyMGJlcnQtYmFzZS1jYXNlZCUyMCU1QyUwQS0tdGFza19uYW1lJTIwJTI0VEFTS19OQU1FJTIwJTVDJTBBLS1kb190cmFpbiUyMCU1QyUwQS0tZG9fZXZhbCUyMCU1QyUwQS0tbWF4X3NlcV9sZW5ndGglMjAxMjglMjAlNUMlMEEtLXBlcl9kZXZpY2VfdHJhaW5fYmF0Y2hfc2l6ZSUyMDE2JTIwJTVDJTBBLS1sZWFybmluZ19yYXRlJTIwNWUtNSUyMCU1QyUwQS0tbnVtX3RyYWluX2Vwb2NocyUyMDMlMjAlNUMlMEEtLW91dHB1dF9kaXIlMjAlMkZ0bXAlMkYlMjRUQVNLX05BTUUlMkYlMjAlNUMlMEEtLW92ZXJ3cml0ZV9vdXRwdXRfZGly",highlighted:`<span class="hljs-built_in">cd</span> transformers

accelerate launch --num_processes=2 \\
--use_fsdp \\
--mixed_precision=bf16 \\
--fsdp_auto_wrap_policy=TRANSFORMER_BASED_WRAP  \\
--fsdp_transformer_layer_cls_to_wrap=<span class="hljs-string">&quot;BertLayer&quot;</span> \\
--fsdp_sharding_strategy=1 \\
--fsdp_state_dict_type=FULL_STATE_DICT \\
./examples/pytorch/text-classification/run_glue.py
--model_name_or_path bert-base-cased \\
--task_name <span class="hljs-variable">$TASK_NAME</span> \\
--do_train \\
--do_eval \\
--max_seq_length 128 \\
--per_device_train_batch_size 16 \\
--learning_rate 5e-5 \\
--num_train_epochs 3 \\
--output_dir /tmp/<span class="hljs-variable">$TASK_NAME</span>/ \\
--overwrite_output_dir`,wrap:!1}}),{c(){p=r("meta"),$=n(),y=r("p"),T=n(),M=r("h1"),c=r("a"),A=r("span"),u(so.$$.fragment),Wm=n(),ss=r("span"),ss.textContent=Jf,bd=n(),io=r("p"),io.innerHTML=Sf,vd=n(),lo=r("p"),lo.innerHTML=Uf,yd=n(),co=r("p"),co.innerHTML=Pf,Td=n(),po=r("p"),po.innerHTML=Lf,wd=n(),mo=r("ul"),mo.innerHTML=Nf,xd=n(),u(Xe.$$.fragment),Md=n(),uo=r("p"),uo.innerHTML=Ff,$d=n(),u(ho.$$.fragment),kd=n(),go=r("p"),go.innerHTML=zf,Ad=n(),$e=r("h2"),Ge=r("a"),Yl=r("span"),u(fo.$$.fragment),Hm=n(),is=r("span"),is.textContent=Df,qd=n(),w=r("div"),u(_o.$$.fragment),Em=n(),ls=r("p"),ls.textContent=Wf,Rm=n(),ds=r("p"),ds.textContent=Hf,Bm=n(),cs=r("ul"),cs.innerHTML=Ef,Zm=n(),Ye=r("div"),u(bo.$$.fragment),Vm=n(),ps=r("p"),ps.innerHTML=Rf,Xm=n(),Oe=r("div"),u(vo.$$.fragment),Gm=n(),ms=r("p"),ms.innerHTML=Bf,Ym=n(),K=r("div"),u(yo.$$.fragment),Om=n(),us=r("p"),us.textContent=Zf,Qm=n(),hs=r("p"),hs.textContent=Vf,Km=n(),Qe=r("div"),u(To.$$.fragment),eu=n(),gs=r("p"),gs.textContent=Xf,tu=n(),Ke=r("div"),u(wo.$$.fragment),ou=n(),fs=r("p"),fs.innerHTML=Gf,nu=n(),ee=r("div"),u(xo.$$.fragment),au=n(),_s=r("p"),_s.textContent=Yf,ru=n(),bs=r("p"),bs.innerHTML=Of,su=n(),te=r("div"),u(Mo.$$.fragment),iu=n(),vs=r("p"),vs.textContent=Qf,lu=n(),ys=r("p"),ys.innerHTML=Kf,du=n(),et=r("div"),u($o.$$.fragment),cu=n(),Ts=r("p"),Ts.textContent=e_,pu=n(),H=r("div"),u(ko.$$.fragment),mu=n(),ws=r("p"),ws.textContent=t_,uu=n(),xs=r("p"),xs.innerHTML=o_,hu=n(),Ms=r("p"),Ms.textContent=n_,gu=n(),oe=r("div"),u(Ao.$$.fragment),fu=n(),$s=r("p"),$s.innerHTML=a_,_u=n(),ks=r("p"),ks.textContent=r_,bu=n(),tt=r("div"),u(qo.$$.fragment),vu=n(),As=r("p"),As.innerHTML=s_,yu=n(),ne=r("div"),u(Co.$$.fragment),Tu=n(),qs=r("p"),qs.textContent=i_,wu=n(),Cs=r("p"),Cs.textContent=l_,xu=n(),ae=r("div"),u(jo.$$.fragment),Mu=n(),js=r("p"),js.innerHTML=d_,$u=n(),Is=r("p"),Is.textContent=c_,ku=n(),ot=r("div"),u(Io.$$.fragment),Au=n(),Js=r("p"),Js.textContent=p_,qu=n(),re=r("div"),u(Jo.$$.fragment),Cu=n(),Ss=r("p"),Ss.innerHTML=m_,ju=n(),Us=r("p"),Us.textContent=u_,Iu=n(),E=r("div"),u(So.$$.fragment),Ju=n(),Ps=r("p"),Ps.innerHTML=h_,Su=n(),Ls=r("p"),Ls.innerHTML=g_,Uu=n(),Ns=r("p"),Ns.textContent=f_,Pu=n(),se=r("div"),u(Uo.$$.fragment),Lu=n(),Fs=r("p"),Fs.innerHTML=__,Nu=n(),u(nt.$$.fragment),Fu=n(),ie=r("div"),u(Po.$$.fragment),zu=n(),zs=r("p"),zs.innerHTML=b_,Du=n(),u(at.$$.fragment),Wu=n(),rt=r("div"),u(Lo.$$.fragment),Hu=n(),Ds=r("p"),Ds.innerHTML=v_,Eu=n(),st=r("div"),u(No.$$.fragment),Ru=n(),Ws=r("p"),Ws.textContent=y_,Bu=n(),it=r("div"),u(Fo.$$.fragment),Zu=n(),Hs=r("p"),Hs.innerHTML=T_,Vu=n(),le=r("div"),u(zo.$$.fragment),Xu=n(),Es=r("p"),Es.innerHTML=w_,Gu=n(),Rs=r("p"),Rs.textContent=x_,Yu=n(),I=r("div"),u(Do.$$.fragment),Ou=n(),Bs=r("p"),Bs.textContent=M_,Qu=n(),Zs=r("p"),Zs.textContent=$_,Ku=n(),Vs=r("p"),Vs.textContent=k_,eh=n(),Xs=r("p"),Xs.innerHTML=A_,th=n(),u(lt.$$.fragment),oh=n(),Gs=r("p"),Gs.innerHTML=q_,nh=n(),Ys=r("ul"),Ys.innerHTML=C_,ah=n(),Os=r("p"),Os.textContent=j_,rh=n(),Qs=r("p"),Qs.textContent=I_,sh=n(),Ks=r("p"),Ks.innerHTML=J_,ih=n(),ei=r("p"),ei.innerHTML=S_,lh=n(),ti=r("p"),ti.innerHTML=U_,dh=n(),oi=r("p"),oi.innerHTML=P_,ch=n(),ni=r("p"),ni.innerHTML=L_,ph=n(),ai=r("p"),ai.textContent=N_,mh=n(),dt=r("div"),u(Wo.$$.fragment),uh=n(),ri=r("p"),ri.textContent=F_,hh=n(),ct=r("div"),u(Ho.$$.fragment),gh=n(),si=r("p"),si.innerHTML=z_,fh=n(),pt=r("div"),u(Eo.$$.fragment),_h=n(),ii=r("p"),ii.innerHTML=D_,bh=n(),de=r("div"),u(Ro.$$.fragment),vh=n(),li=r("p"),li.innerHTML=W_,yh=n(),di=r("p"),di.innerHTML=H_,Th=n(),N=r("div"),u(Bo.$$.fragment),wh=n(),ci=r("p"),ci.textContent=E_,xh=n(),pi=r("p"),pi.innerHTML=R_,Mh=n(),u(mt.$$.fragment),$h=n(),mi=r("p"),mi.innerHTML=B_,kh=n(),ui=r("ul"),ui.innerHTML=Z_,Ah=n(),ce=r("div"),u(Zo.$$.fragment),qh=n(),hi=r("p"),hi.innerHTML=V_,Ch=n(),gi=r("p"),gi.textContent=X_,jh=n(),pe=r("div"),u(Vo.$$.fragment),Ih=n(),fi=r("p"),fi.innerHTML=G_,Jh=n(),_i=r("p"),_i.textContent=Y_,Sh=n(),ut=r("div"),u(Xo.$$.fragment),Uh=n(),bi=r("p"),bi.innerHTML=O_,Ph=n(),ht=r("div"),u(Go.$$.fragment),Lh=n(),vi=r("p"),vi.innerHTML=Q_,Nh=n(),R=r("div"),u(Yo.$$.fragment),Fh=n(),yi=r("p"),yi.innerHTML=K_,zh=n(),Ti=r("p"),Ti.textContent=eb,Dh=n(),wi=r("p"),wi.innerHTML=tb,Wh=n(),me=r("div"),u(Oo.$$.fragment),Hh=n(),xi=r("p"),xi.innerHTML=ob,Eh=n(),Mi=r("p"),Mi.textContent=nb,Rh=n(),ue=r("div"),u(Qo.$$.fragment),Bh=n(),$i=r("p"),$i.textContent=ab,Zh=n(),ki=r("p"),ki.textContent=rb,Vh=n(),gt=r("div"),u(Ko.$$.fragment),Xh=n(),Ai=r("p"),Ai.textContent=sb,Gh=n(),he=r("div"),u(en.$$.fragment),Yh=n(),qi=r("p"),qi.textContent=ib,Oh=n(),Ci=r("p"),Ci.textContent=lb,Cd=n(),ke=r("h2"),ft=r("a"),Ol=r("span"),u(tn.$$.fragment),Qh=n(),ji=r("span"),ji.textContent=db,jd=n(),O=r("div"),u(on.$$.fragment),Kh=n(),B=r("div"),u(nn.$$.fragment),eg=n(),Ii=r("p"),Ii.textContent=cb,tg=n(),Ji=r("p"),Ji.innerHTML=pb,og=n(),Si=r("p"),Si.textContent=mb,ng=n(),F=r("div"),u(an.$$.fragment),ag=n(),Ui=r("p"),Ui.textContent=ub,rg=n(),Pi=r("p"),Pi.innerHTML=hb,sg=n(),u(_t.$$.fragment),ig=n(),Li=r("p"),Li.innerHTML=gb,lg=n(),Ni=r("ul"),Ni.innerHTML=fb,Id=n(),Ae=r("h2"),bt=r("a"),Ql=r("span"),u(rn.$$.fragment),dg=n(),Fi=r("span"),Fi.textContent=_b,Jd=n(),q=r("div"),u(sn.$$.fragment),cg=n(),zi=r("p"),zi.innerHTML=bb,pg=n(),Di=r("p"),Di.innerHTML=vb,mg=n(),D=r("div"),u(ln.$$.fragment),ug=n(),Wi=r("p"),Wi.textContent=yb,hg=n(),Hi=r("p"),Hi.innerHTML=Tb,gg=n(),Ei=r("p"),Ei.innerHTML=wb,fg=n(),Ri=r("p"),Ri.innerHTML=xb,_g=n(),vt=r("div"),u(dn.$$.fragment),bg=n(),Bi=r("p"),Bi.textContent=Mb,vg=n(),ge=r("div"),u(cn.$$.fragment),yg=n(),Zi=r("p"),Zi.textContent=$b,Tg=n(),Vi=r("p"),Vi.innerHTML=kb,wg=n(),fe=r("div"),u(pn.$$.fragment),xg=n(),Xi=r("p"),Xi.textContent=Ab,Mg=n(),u(yt.$$.fragment),$g=n(),_e=r("div"),u(mn.$$.fragment),kg=n(),Gi=r("p"),Gi.textContent=qb,Ag=n(),u(Tt.$$.fragment),qg=n(),be=r("div"),u(un.$$.fragment),Cg=n(),Yi=r("p"),Yi.textContent=Cb,jg=n(),u(wt.$$.fragment),Ig=n(),ve=r("div"),u(hn.$$.fragment),Jg=n(),Oi=r("p"),Oi.textContent=jb,Sg=n(),u(xt.$$.fragment),Ug=n(),ye=r("div"),u(gn.$$.fragment),Pg=n(),Qi=r("p"),Qi.textContent=Ib,Lg=n(),u(Mt.$$.fragment),Ng=n(),Z=r("div"),u(fn.$$.fragment),Fg=n(),Ki=r("p"),Ki.textContent=Jb,zg=n(),u($t.$$.fragment),Dg=n(),u(kt.$$.fragment),Wg=n(),Te=r("div"),u(_n.$$.fragment),Hg=n(),el=r("p"),el.textContent=Sb,Eg=n(),u(At.$$.fragment),Rg=n(),V=r("div"),u(bn.$$.fragment),Bg=n(),tl=r("p"),tl.textContent=Ub,Zg=n(),u(qt.$$.fragment),Vg=n(),u(Ct.$$.fragment),Xg=n(),X=r("div"),u(vn.$$.fragment),Gg=n(),ol=r("p"),ol.textContent=Pb,Yg=n(),u(jt.$$.fragment),Og=n(),u(It.$$.fragment),Qg=n(),Jt=r("div"),u(yn.$$.fragment),Kg=n(),nl=r("p"),nl.innerHTML=Lb,ef=n(),St=r("div"),u(Tn.$$.fragment),tf=n(),al=r("p"),al.textContent=Nb,of=n(),Ut=r("div"),u(wn.$$.fragment),nf=n(),rl=r("p"),rl.textContent=Fb,Sd=n(),qe=r("h2"),Pt=r("a"),Kl=r("span"),u(xn.$$.fragment),af=n(),sl=r("span"),sl.textContent=zb,Ud=n(),W=r("div"),u(Mn.$$.fragment),rf=n(),il=r("p"),il.innerHTML=Db,sf=n(),ll=r("p"),ll.innerHTML=Wb,lf=n(),Lt=r("div"),u($n.$$.fragment),df=n(),dl=r("p"),dl.innerHTML=Hb,Pd=n(),Ce=r("h2"),Nt=r("a"),ed=r("span"),u(kn.$$.fragment),cf=n(),cl=r("span"),cl.textContent=Eb,Ld=n(),An=r("p"),An.innerHTML=Rb,Nd=n(),qn=r("p"),qn.innerHTML=Bb,Fd=n(),Cn=r("ul"),Cn.innerHTML=Zb,zd=n(),jn=r("p"),jn.innerHTML=Vb,Dd=n(),In=r("ul"),In.innerHTML=Xb,Wd=n(),je=r("h2"),Ft=r("a"),td=r("span"),u(Jn.$$.fragment),pf=n(),pl=r("span"),pl.textContent=Gb,Hd=n(),Sn=r("p"),Sn.innerHTML=Yb,Ed=n(),Un=r("p"),Un.innerHTML=Ob,Rd=n(),Pn=r("ul"),Pn.innerHTML=Qb,Bd=n(),Ln=r("p"),Ln.innerHTML=Kb,Zd=n(),Nn=r("p"),Nn.innerHTML=ev,Vd=n(),Fn=r("p"),Fn.textContent=tv,Xd=n(),u(zn.$$.fragment),Gd=n(),Dn=r("p"),Dn.textContent=ov,Yd=n(),u(Wn.$$.fragment),Od=n(),Hn=r("p"),Hn.textContent=nv,Qd=n(),u(En.$$.fragment),Kd=n(),Rn=r("p"),Rn.textContent=av,ec=n(),Bn=r("p"),Bn.textContent=rv,tc=n(),u(Zn.$$.fragment),oc=n(),Vn=r("p"),Vn.innerHTML=sv,nc=n(),Ie=r("h2"),zt=r("a"),od=r("span"),u(Xn.$$.fragment),mf=n(),ml=r("span"),ml.textContent=iv,ac=n(),Gn=r("p"),Gn.innerHTML=lv,rc=n(),Yn=r("p"),Yn.innerHTML=dv,sc=n(),Je=r("h2"),Dt=r("a"),nd=r("span"),u(On.$$.fragment),uf=n(),ul=r("span"),ul.textContent=cv,ic=n(),Qn=r("p"),Qn.textContent=pv,lc=n(),Kn=r("p"),Kn.innerHTML=mv,dc=n(),u(ea.$$.fragment),cc=n(),ta=r("p"),ta.innerHTML=uv,pc=n(),u(oa.$$.fragment),mc=n(),u(na.$$.fragment),uc=n(),aa=r("p"),aa.innerHTML=hv,hc=n(),ra=r("p"),ra.textContent=gv,gc=n(),sa=r("p"),sa.textContent=fv,fc=n(),ia=r("p"),ia.innerHTML=_v,_c=n(),la=r("p"),la.innerHTML=bv,bc=n(),da=r("p"),da.textContent=vv,vc=n(),u(ca.$$.fragment),yc=n(),pa=r("p"),pa.innerHTML=yv,Tc=n(),ma=r("p"),ma.textContent=Tv,wc=n(),u(ua.$$.fragment),xc=n(),ha=r("p"),ha.innerHTML=wv,Mc=n(),ga=r("p"),ga.innerHTML=xv,$c=n(),u(fa.$$.fragment),kc=n(),_a=r("p"),_a.textContent=Mv,Ac=n(),u(ba.$$.fragment),qc=n(),va=r("p"),va.textContent=$v,Cc=n(),u(ya.$$.fragment),jc=n(),Ta=r("p"),Ta.textContent=kv,Ic=n(),wa=r("p"),wa.innerHTML=Av,Jc=n(),xa=r("p"),xa.innerHTML=qv,Sc=n(),Ma=r("ol"),Ma.innerHTML=Cv,Uc=n(),u($a.$$.fragment),Pc=n(),Wt=r("ol"),Wt.innerHTML=jv,Lc=n(),u(ka.$$.fragment),Nc=n(),Aa=r("p"),Aa.innerHTML=Iv,Fc=n(),qa=r("p"),qa.textContent=Jv,zc=n(),u(Ca.$$.fragment),Dc=n(),ja=r("p"),ja.textContent=Sv,Wc=n(),Ia=r("p"),Ia.innerHTML=Uv,Hc=n(),Se=r("h2"),Ht=r("a"),ad=r("span"),u(Ja.$$.fragment),hf=n(),hl=r("span"),hl.textContent=Pv,Ec=n(),Sa=r("p"),Sa.innerHTML=Lv,Rc=n(),Ua=r("p"),Ua.innerHTML=Nv,Bc=n(),Pa=r("p"),Pa.innerHTML=Fv,Zc=n(),gl=r("a"),Vc=n(),Ue=r("h3"),Et=r("a"),rd=r("span"),u(La.$$.fragment),gf=n(),fl=r("span"),fl.textContent=zv,Xc=n(),Na=r("p"),Na.textContent=Dv,Gc=n(),Fa=r("p"),Fa.innerHTML=Wv,Yc=n(),za=r("p"),za.textContent=Hv,Oc=n(),u(Da.$$.fragment),Qc=n(),Wa=r("p"),Wa.textContent=Ev,Kc=n(),Ha=r("p"),Ha.innerHTML=Rv,ep=n(),Pe=r("h4"),Rt=r("a"),sd=r("span"),u(Ea.$$.fragment),ff=n(),_l=r("span"),_l.textContent=Bv,tp=n(),Ra=r("p"),Ra.textContent=Zv,op=n(),Ba=r("p"),Ba.innerHTML=Vv,np=n(),Za=r("p"),Za.innerHTML=Xv,ap=n(),u(Va.$$.fragment),rp=n(),Xa=r("p"),Xa.innerHTML=Gv,sp=n(),Le=r("h4"),Bt=r("a"),id=r("span"),u(Ga.$$.fragment),_f=n(),bl=r("span"),bl.textContent=Yv,ip=n(),Ya=r("p"),Ya.textContent=Ov,lp=n(),u(Oa.$$.fragment),dp=n(),Qa=r("p"),Qa.innerHTML=Qv,cp=n(),Ka=r("p"),Ka.textContent=Kv,pp=n(),u(er.$$.fragment),mp=n(),tr=r("p"),tr.textContent=ey,up=n(),or=r("p"),or.innerHTML=ty,hp=n(),nr=r("p"),nr.innerHTML=oy,gp=n(),ar=r("p"),ar.textContent=ny,fp=n(),u(rr.$$.fragment),_p=n(),sr=r("p"),sr.textContent=ay,bp=n(),ir=r("p"),ir.innerHTML=ry,vp=n(),Ne=r("h4"),Zt=r("a"),ld=r("span"),u(lr.$$.fragment),bf=n(),vl=r("span"),vl.textContent=sy,yp=n(),dr=r("p"),dr.innerHTML=iy,Tp=n(),cr=r("p"),cr.textContent=ly,wp=n(),pr=r("p"),pr.textContent=dy,xp=n(),mr=r("p"),mr.innerHTML=cy,Mp=n(),u(ur.$$.fragment),$p=n(),hr=r("p"),hr.innerHTML=py,kp=n(),gr=r("p"),gr.textContent=my,Ap=n(),Fe=r("h3"),Vt=r("a"),dd=r("span"),u(fr.$$.fragment),vf=n(),yl=r("span"),yl.textContent=uy,qp=n(),_r=r("p"),_r.innerHTML=hy,Cp=n(),br=r("p"),br.innerHTML=gy,jp=n(),vr=r("p"),vr.innerHTML=fy,Ip=n(),yr=r("ul"),yr.innerHTML=_y,Jp=n(),Tr=r("p"),Tr.innerHTML=by,Sp=n(),wr=r("ul"),wr.innerHTML=vy,Up=n(),ze=r("h3"),Xt=r("a"),cd=r("span"),u(xr.$$.fragment),yf=n(),Tl=r("span"),Tl.textContent=yy,Pp=n(),Mr=r("p"),Mr.innerHTML=Ty,Lp=n(),$r=r("p"),$r.innerHTML=wy,Np=n(),kr=r("p"),kr.innerHTML=xy,Fp=n(),Ar=r("p"),Ar.innerHTML=My,zp=n(),qr=r("ul"),qr.innerHTML=$y,Dp=n(),De=r("h3"),Gt=r("a"),pd=r("span"),u(Cr.$$.fragment),Tf=n(),wl=r("span"),wl.textContent=ky,Wp=n(),jr=r("p"),jr.innerHTML=Ay,Hp=n(),u(Yt.$$.fragment),Ep=n(),Ir=r("p"),Ir.innerHTML=qy,Rp=n(),Jr=r("ol"),Jr.innerHTML=Cy,Bp=n(),Sr=r("p"),Sr.innerHTML=jy,Zp=n(),Ur=r("p"),Ur.innerHTML=Iy,Vp=n(),u(Pr.$$.fragment),Xp=n(),Lr=r("p"),Lr.innerHTML=Jy,Gp=n(),Nr=r("ol"),Nr.innerHTML=Sy,Yp=n(),Fr=r("p"),Fr.innerHTML=Uy,Op=n(),We=r("h2"),Ot=r("a"),md=r("span"),u(zr.$$.fragment),wf=n(),xl=r("span"),xl.textContent=Py,Qp=n(),Dr=r("p"),Dr.textContent=Ly,Kp=n(),Wr=r("ul"),Wr.innerHTML=Ny,em=n(),Hr=r("p"),Hr.textContent=Fy,tm=n(),we=r("ol"),Ml=r("li"),Ml.innerHTML=zy,xf=n(),U=r("li"),$l=r("p"),$l.innerHTML=Dy,Mf=n(),u(Er.$$.fragment),$f=n(),kl=r("p"),kl.textContent=Wy,kf=n(),u(Rr.$$.fragment),Af=n(),Al=r("p"),Al.textContent=Hy,qf=n(),u(Br.$$.fragment),Cf=n(),ql=r("p"),ql.textContent=Ey,jf=n(),u(Zr.$$.fragment),If=n(),Cl=r("li"),Cl.innerHTML=Ry,om=n(),u(Vr.$$.fragment),nm=n(),Qt=r("ol"),Qt.innerHTML=By,am=n(),u(Xr.$$.fragment),rm=n(),Gr=r("p"),Gr.innerHTML=Zy,sm=n(),Yr=r("p"),Yr.textContent=Vy,im=n(),Or=r("p"),Or.innerHTML=Xy,lm=n(),ud=r("p"),this.h()},l(e){const i=IT("svelte-1phssyn",document.head);p=s(i,"META",{name:!0,content:!0}),i.forEach(t),$=a(e),y=s(e,"P",{}),v(y).forEach(t),T=a(e),M=s(e,"H1",{class:!0});var Qr=v(M);c=s(Qr,"A",{id:!0,class:!0,href:!0});var hd=v(c);A=s(hd,"SPAN",{});var gd=v(A);h(so.$$.fragment,gd),gd.forEach(t),hd.forEach(t),Wm=a(Qr),ss=s(Qr,"SPAN",{"data-svelte-h":!0}),d(ss)!=="svelte-1db8bfa"&&(ss.textContent=Jf),Qr.forEach(t),bd=a(e),io=s(e,"P",{"data-svelte-h":!0}),d(io)!=="svelte-87ekr"&&(io.innerHTML=Sf),vd=a(e),lo=s(e,"P",{"data-svelte-h":!0}),d(lo)!=="svelte-grellp"&&(lo.innerHTML=Uf),yd=a(e),co=s(e,"P",{"data-svelte-h":!0}),d(co)!=="svelte-1afczgr"&&(co.innerHTML=Pf),Td=a(e),po=s(e,"P",{"data-svelte-h":!0}),d(po)!=="svelte-10ajqho"&&(po.innerHTML=Lf),wd=a(e),mo=s(e,"UL",{"data-svelte-h":!0}),d(mo)!=="svelte-1akoqi1"&&(mo.innerHTML=Nf),xd=a(e),h(Xe.$$.fragment,e),Md=a(e),uo=s(e,"P",{"data-svelte-h":!0}),d(uo)!=="svelte-1qlfpm9"&&(uo.innerHTML=Ff),$d=a(e),h(ho.$$.fragment,e),kd=a(e),go=s(e,"P",{"data-svelte-h":!0}),d(go)!=="svelte-d65prl"&&(go.innerHTML=zf),Ad=a(e),$e=s(e,"H2",{class:!0});var Kr=v($e);Ge=s(Kr,"A",{id:!0,class:!0,href:!0});var fd=v(Ge);Yl=s(fd,"SPAN",{});var _d=v(Yl);h(fo.$$.fragment,_d),_d.forEach(t),fd.forEach(t),Hm=a(Kr),is=s(Kr,"SPAN",{"data-svelte-h":!0}),d(is)!=="svelte-1db8bfa"&&(is.textContent=Df),Kr.forEach(t),qd=a(e),w=s(e,"DIV",{class:!0});var x=v(w);h(_o.$$.fragment,x),Em=a(x),ls=s(x,"P",{"data-svelte-h":!0}),d(ls)!=="svelte-xa06uv"&&(ls.textContent=Wf),Rm=a(x),ds=s(x,"P",{"data-svelte-h":!0}),d(ds)!=="svelte-1tbd587"&&(ds.textContent=Hf),Bm=a(x),cs=s(x,"UL",{"data-svelte-h":!0}),d(cs)!=="svelte-uyw8du"&&(cs.innerHTML=Ef),Zm=a(x),Ye=s(x,"DIV",{class:!0});var es=v(Ye);h(bo.$$.fragment,es),Vm=a(es),ps=s(es,"P",{"data-svelte-h":!0}),d(ps)!=="svelte-39sh5j"&&(ps.innerHTML=Rf),es.forEach(t),Xm=a(x),Oe=s(x,"DIV",{class:!0});var ts=v(Oe);h(vo.$$.fragment,ts),Gm=a(ts),ms=s(ts,"P",{"data-svelte-h":!0}),d(ms)!=="svelte-9kwitf"&&(ms.innerHTML=Bf),ts.forEach(t),Ym=a(x),K=s(x,"DIV",{class:!0});var He=v(K);h(yo.$$.fragment,He),Om=a(He),us=s(He,"P",{"data-svelte-h":!0}),d(us)!=="svelte-1feheyo"&&(us.textContent=Zf),Qm=a(He),hs=s(He,"P",{"data-svelte-h":!0}),d(hs)!=="svelte-1be1oij"&&(hs.textContent=Vf),He.forEach(t),Km=a(x),Qe=s(x,"DIV",{class:!0});var os=v(Qe);h(To.$$.fragment,os),eu=a(os),gs=s(os,"P",{"data-svelte-h":!0}),d(gs)!=="svelte-1agg8ch"&&(gs.textContent=Xf),os.forEach(t),tu=a(x),Ke=s(x,"DIV",{class:!0});var ns=v(Ke);h(wo.$$.fragment,ns),ou=a(ns),fs=s(ns,"P",{"data-svelte-h":!0}),d(fs)!=="svelte-1mh859w"&&(fs.innerHTML=Gf),ns.forEach(t),nu=a(x),ee=s(x,"DIV",{class:!0});var Ee=v(ee);h(xo.$$.fragment,Ee),au=a(Ee),_s=s(Ee,"P",{"data-svelte-h":!0}),d(_s)!=="svelte-1w438iv"&&(_s.textContent=Yf),ru=a(Ee),bs=s(Ee,"P",{"data-svelte-h":!0}),d(bs)!=="svelte-nadplw"&&(bs.innerHTML=Of),Ee.forEach(t),su=a(x),te=s(x,"DIV",{class:!0});var Re=v(te);h(Mo.$$.fragment,Re),iu=a(Re),vs=s(Re,"P",{"data-svelte-h":!0}),d(vs)!=="svelte-wdco14"&&(vs.textContent=Qf),lu=a(Re),ys=s(Re,"P",{"data-svelte-h":!0}),d(ys)!=="svelte-zasfqr"&&(ys.innerHTML=Kf),Re.forEach(t),du=a(x),et=s(x,"DIV",{class:!0});var as=v(et);h($o.$$.fragment,as),cu=a(as),Ts=s(as,"P",{"data-svelte-h":!0}),d(Ts)!=="svelte-qi4mtl"&&(Ts.textContent=e_),as.forEach(t),pu=a(x),H=s(x,"DIV",{class:!0});var Q=v(H);h(ko.$$.fragment,Q),mu=a(Q),ws=s(Q,"P",{"data-svelte-h":!0}),d(ws)!=="svelte-1mcvryw"&&(ws.textContent=t_),uu=a(Q),xs=s(Q,"P",{"data-svelte-h":!0}),d(xs)!=="svelte-1339kj6"&&(xs.innerHTML=o_),hu=a(Q),Ms=s(Q,"P",{"data-svelte-h":!0}),d(Ms)!=="svelte-1h30111"&&(Ms.textContent=n_),Q.forEach(t),gu=a(x),oe=s(x,"DIV",{class:!0});var Be=v(oe);h(Ao.$$.fragment,Be),fu=a(Be),$s=s(Be,"P",{"data-svelte-h":!0}),d($s)!=="svelte-1v5gmc1"&&($s.innerHTML=a_),_u=a(Be),ks=s(Be,"P",{"data-svelte-h":!0}),d(ks)!=="svelte-1tyo99t"&&(ks.textContent=r_),Be.forEach(t),bu=a(x),tt=s(x,"DIV",{class:!0});var rs=v(tt);h(qo.$$.fragment,rs),vu=a(rs),As=s(rs,"P",{"data-svelte-h":!0}),d(As)!=="svelte-u7d2i2"&&(As.innerHTML=s_),rs.forEach(t),yu=a(x),ne=s(x,"DIV",{class:!0});var Ze=v(ne);h(Co.$$.fragment,Ze),Tu=a(Ze),qs=s(Ze,"P",{"data-svelte-h":!0}),d(qs)!=="svelte-yguuq6"&&(qs.textContent=i_),wu=a(Ze),Cs=s(Ze,"P",{"data-svelte-h":!0}),d(Cs)!=="svelte-452p7a"&&(Cs.textContent=l_),Ze.forEach(t),xu=a(x),ae=s(x,"DIV",{class:!0});var jl=v(ae);h(jo.$$.fragment,jl),Mu=a(jl),js=s(jl,"P",{"data-svelte-h":!0}),d(js)!=="svelte-xesobz"&&(js.innerHTML=d_),$u=a(jl),Is=s(jl,"P",{"data-svelte-h":!0}),d(Is)!=="svelte-1v6sccr"&&(Is.textContent=c_),jl.forEach(t),ku=a(x),ot=s(x,"DIV",{class:!0});var cm=v(ot);h(Io.$$.fragment,cm),Au=a(cm),Js=s(cm,"P",{"data-svelte-h":!0}),d(Js)!=="svelte-1enq7q"&&(Js.textContent=p_),cm.forEach(t),qu=a(x),re=s(x,"DIV",{class:!0});var Il=v(re);h(Jo.$$.fragment,Il),Cu=a(Il),Ss=s(Il,"P",{"data-svelte-h":!0}),d(Ss)!=="svelte-upvtbd"&&(Ss.innerHTML=m_),ju=a(Il),Us=s(Il,"P",{"data-svelte-h":!0}),d(Us)!=="svelte-1v6sccr"&&(Us.textContent=u_),Il.forEach(t),Iu=a(x),E=s(x,"DIV",{class:!0});var Kt=v(E);h(So.$$.fragment,Kt),Ju=a(Kt),Ps=s(Kt,"P",{"data-svelte-h":!0}),d(Ps)!=="svelte-dkae9b"&&(Ps.innerHTML=h_),Su=a(Kt),Ls=s(Kt,"P",{"data-svelte-h":!0}),d(Ls)!=="svelte-2uvyde"&&(Ls.innerHTML=g_),Uu=a(Kt),Ns=s(Kt,"P",{"data-svelte-h":!0}),d(Ns)!=="svelte-1v6sccr"&&(Ns.textContent=f_),Kt.forEach(t),Pu=a(x),se=s(x,"DIV",{class:!0});var Jl=v(se);h(Uo.$$.fragment,Jl),Lu=a(Jl),Fs=s(Jl,"P",{"data-svelte-h":!0}),d(Fs)!=="svelte-mf62ka"&&(Fs.innerHTML=__),Nu=a(Jl),h(nt.$$.fragment,Jl),Jl.forEach(t),Fu=a(x),ie=s(x,"DIV",{class:!0});var Sl=v(ie);h(Po.$$.fragment,Sl),zu=a(Sl),zs=s(Sl,"P",{"data-svelte-h":!0}),d(zs)!=="svelte-rjlxwe"&&(zs.innerHTML=b_),Du=a(Sl),h(at.$$.fragment,Sl),Sl.forEach(t),Wu=a(x),rt=s(x,"DIV",{class:!0});var pm=v(rt);h(Lo.$$.fragment,pm),Hu=a(pm),Ds=s(pm,"P",{"data-svelte-h":!0}),d(Ds)!=="svelte-rjlxwe"&&(Ds.innerHTML=v_),pm.forEach(t),Eu=a(x),st=s(x,"DIV",{class:!0});var mm=v(st);h(No.$$.fragment,mm),Ru=a(mm),Ws=s(mm,"P",{"data-svelte-h":!0}),d(Ws)!=="svelte-16imdke"&&(Ws.textContent=y_),mm.forEach(t),Bu=a(x),it=s(x,"DIV",{class:!0});var um=v(it);h(Fo.$$.fragment,um),Zu=a(um),Hs=s(um,"P",{"data-svelte-h":!0}),d(Hs)!=="svelte-1s7jdq8"&&(Hs.innerHTML=T_),um.forEach(t),Vu=a(x),le=s(x,"DIV",{class:!0});var Ul=v(le);h(zo.$$.fragment,Ul),Xu=a(Ul),Es=s(Ul,"P",{"data-svelte-h":!0}),d(Es)!=="svelte-19fk55y"&&(Es.innerHTML=w_),Gu=a(Ul),Rs=s(Ul,"P",{"data-svelte-h":!0}),d(Rs)!=="svelte-1tz9xhn"&&(Rs.textContent=x_),Ul.forEach(t),Yu=a(x),I=s(x,"DIV",{class:!0});var S=v(I);h(Do.$$.fragment,S),Ou=a(S),Bs=s(S,"P",{"data-svelte-h":!0}),d(Bs)!=="svelte-1q4m3ey"&&(Bs.textContent=M_),Qu=a(S),Zs=s(S,"P",{"data-svelte-h":!0}),d(Zs)!=="svelte-5vrny9"&&(Zs.textContent=$_),Ku=a(S),Vs=s(S,"P",{"data-svelte-h":!0}),d(Vs)!=="svelte-k63f70"&&(Vs.textContent=k_),eh=a(S),Xs=s(S,"P",{"data-svelte-h":!0}),d(Xs)!=="svelte-y2g1lw"&&(Xs.innerHTML=A_),th=a(S),h(lt.$$.fragment,S),oh=a(S),Gs=s(S,"P",{"data-svelte-h":!0}),d(Gs)!=="svelte-ny4g3p"&&(Gs.innerHTML=q_),nh=a(S),Ys=s(S,"UL",{"data-svelte-h":!0}),d(Ys)!=="svelte-9luch7"&&(Ys.innerHTML=C_),ah=a(S),Os=s(S,"P",{"data-svelte-h":!0}),d(Os)!=="svelte-100tlvw"&&(Os.textContent=j_),rh=a(S),Qs=s(S,"P",{"data-svelte-h":!0}),d(Qs)!=="svelte-1d82c6u"&&(Qs.textContent=I_),sh=a(S),Ks=s(S,"P",{"data-svelte-h":!0}),d(Ks)!=="svelte-d1rr2j"&&(Ks.innerHTML=J_),ih=a(S),ei=s(S,"P",{"data-svelte-h":!0}),d(ei)!=="svelte-m7v5wt"&&(ei.innerHTML=S_),lh=a(S),ti=s(S,"P",{"data-svelte-h":!0}),d(ti)!=="svelte-kwruzn"&&(ti.innerHTML=U_),dh=a(S),oi=s(S,"P",{"data-svelte-h":!0}),d(oi)!=="svelte-1lmh4zl"&&(oi.innerHTML=P_),ch=a(S),ni=s(S,"P",{"data-svelte-h":!0}),d(ni)!=="svelte-3ticmd"&&(ni.innerHTML=L_),ph=a(S),ai=s(S,"P",{"data-svelte-h":!0}),d(ai)!=="svelte-1ocu6t3"&&(ai.textContent=N_),S.forEach(t),mh=a(x),dt=s(x,"DIV",{class:!0});var hm=v(dt);h(Wo.$$.fragment,hm),uh=a(hm),ri=s(hm,"P",{"data-svelte-h":!0}),d(ri)!=="svelte-otcx5b"&&(ri.textContent=F_),hm.forEach(t),hh=a(x),ct=s(x,"DIV",{class:!0});var gm=v(ct);h(Ho.$$.fragment,gm),gh=a(gm),si=s(gm,"P",{"data-svelte-h":!0}),d(si)!=="svelte-19inmpu"&&(si.innerHTML=z_),gm.forEach(t),fh=a(x),pt=s(x,"DIV",{class:!0});var fm=v(pt);h(Eo.$$.fragment,fm),_h=a(fm),ii=s(fm,"P",{"data-svelte-h":!0}),d(ii)!=="svelte-tkw811"&&(ii.innerHTML=D_),fm.forEach(t),bh=a(x),de=s(x,"DIV",{class:!0});var Pl=v(de);h(Ro.$$.fragment,Pl),vh=a(Pl),li=s(Pl,"P",{"data-svelte-h":!0}),d(li)!=="svelte-1jtxon0"&&(li.innerHTML=W_),yh=a(Pl),di=s(Pl,"P",{"data-svelte-h":!0}),d(di)!=="svelte-1ojzwr1"&&(di.innerHTML=H_),Pl.forEach(t),Th=a(x),N=s(x,"DIV",{class:!0});var G=v(N);h(Bo.$$.fragment,G),wh=a(G),ci=s(G,"P",{"data-svelte-h":!0}),d(ci)!=="svelte-1b6cpoy"&&(ci.textContent=E_),xh=a(G),pi=s(G,"P",{"data-svelte-h":!0}),d(pi)!=="svelte-o30dtk"&&(pi.innerHTML=R_),Mh=a(G),h(mt.$$.fragment,G),$h=a(G),mi=s(G,"P",{"data-svelte-h":!0}),d(mi)!=="svelte-1t1ea6f"&&(mi.innerHTML=B_),kh=a(G),ui=s(G,"UL",{"data-svelte-h":!0}),d(ui)!=="svelte-15ctb4a"&&(ui.innerHTML=Z_),G.forEach(t),Ah=a(x),ce=s(x,"DIV",{class:!0});var Ll=v(ce);h(Zo.$$.fragment,Ll),qh=a(Ll),hi=s(Ll,"P",{"data-svelte-h":!0}),d(hi)!=="svelte-1v5gmc1"&&(hi.innerHTML=V_),Ch=a(Ll),gi=s(Ll,"P",{"data-svelte-h":!0}),d(gi)!=="svelte-1tyo99t"&&(gi.textContent=X_),Ll.forEach(t),jh=a(x),pe=s(x,"DIV",{class:!0});var Nl=v(pe);h(Vo.$$.fragment,Nl),Ih=a(Nl),fi=s(Nl,"P",{"data-svelte-h":!0}),d(fi)!=="svelte-1y56pc5"&&(fi.innerHTML=G_),Jh=a(Nl),_i=s(Nl,"P",{"data-svelte-h":!0}),d(_i)!=="svelte-qjfexy"&&(_i.textContent=Y_),Nl.forEach(t),Sh=a(x),ut=s(x,"DIV",{class:!0});var _m=v(ut);h(Xo.$$.fragment,_m),Uh=a(_m),bi=s(_m,"P",{"data-svelte-h":!0}),d(bi)!=="svelte-1jhnoxo"&&(bi.innerHTML=O_),_m.forEach(t),Ph=a(x),ht=s(x,"DIV",{class:!0});var bm=v(ht);h(Go.$$.fragment,bm),Lh=a(bm),vi=s(bm,"P",{"data-svelte-h":!0}),d(vi)!=="svelte-7re89v"&&(vi.innerHTML=Q_),bm.forEach(t),Nh=a(x),R=s(x,"DIV",{class:!0});var eo=v(R);h(Yo.$$.fragment,eo),Fh=a(eo),yi=s(eo,"P",{"data-svelte-h":!0}),d(yi)!=="svelte-9dohab"&&(yi.innerHTML=K_),zh=a(eo),Ti=s(eo,"P",{"data-svelte-h":!0}),d(Ti)!=="svelte-5vrny9"&&(Ti.textContent=eb),Dh=a(eo),wi=s(eo,"P",{"data-svelte-h":!0}),d(wi)!=="svelte-g7qkad"&&(wi.innerHTML=tb),eo.forEach(t),Wh=a(x),me=s(x,"DIV",{class:!0});var Fl=v(me);h(Oo.$$.fragment,Fl),Hh=a(Fl),xi=s(Fl,"P",{"data-svelte-h":!0}),d(xi)!=="svelte-r8h4ov"&&(xi.innerHTML=ob),Eh=a(Fl),Mi=s(Fl,"P",{"data-svelte-h":!0}),d(Mi)!=="svelte-1e6bius"&&(Mi.textContent=nb),Fl.forEach(t),Rh=a(x),ue=s(x,"DIV",{class:!0});var zl=v(ue);h(Qo.$$.fragment,zl),Bh=a(zl),$i=s(zl,"P",{"data-svelte-h":!0}),d($i)!=="svelte-1g3hgx9"&&($i.textContent=ab),Zh=a(zl),ki=s(zl,"P",{"data-svelte-h":!0}),d(ki)!=="svelte-5vrny9"&&(ki.textContent=rb),zl.forEach(t),Vh=a(x),gt=s(x,"DIV",{class:!0});var vm=v(gt);h(Ko.$$.fragment,vm),Xh=a(vm),Ai=s(vm,"P",{"data-svelte-h":!0}),d(Ai)!=="svelte-1cilnet"&&(Ai.textContent=sb),vm.forEach(t),Gh=a(x),he=s(x,"DIV",{class:!0});var Dl=v(he);h(en.$$.fragment,Dl),Yh=a(Dl),qi=s(Dl,"P",{"data-svelte-h":!0}),d(qi)!=="svelte-4qplkw"&&(qi.textContent=ib),Oh=a(Dl),Ci=s(Dl,"P",{"data-svelte-h":!0}),d(Ci)!=="svelte-qjfexy"&&(Ci.textContent=lb),Dl.forEach(t),x.forEach(t),Cd=a(e),ke=s(e,"H2",{class:!0});var ym=v(ke);ft=s(ym,"A",{id:!0,class:!0,href:!0});var Gy=v(ft);Ol=s(Gy,"SPAN",{});var Yy=v(Ol);h(tn.$$.fragment,Yy),Yy.forEach(t),Gy.forEach(t),Qh=a(ym),ji=s(ym,"SPAN",{"data-svelte-h":!0}),d(ji)!=="svelte-2ut5xo"&&(ji.textContent=db),ym.forEach(t),jd=a(e),O=s(e,"DIV",{class:!0});var Wl=v(O);h(on.$$.fragment,Wl),Kh=a(Wl),B=s(Wl,"DIV",{class:!0});var to=v(B);h(nn.$$.fragment,to),eg=a(to),Ii=s(to,"P",{"data-svelte-h":!0}),d(Ii)!=="svelte-1mcvryw"&&(Ii.textContent=cb),tg=a(to),Ji=s(to,"P",{"data-svelte-h":!0}),d(Ji)!=="svelte-1339kj6"&&(Ji.innerHTML=pb),og=a(to),Si=s(to,"P",{"data-svelte-h":!0}),d(Si)!=="svelte-1h30111"&&(Si.textContent=mb),to.forEach(t),ng=a(Wl),F=s(Wl,"DIV",{class:!0});var Y=v(F);h(an.$$.fragment,Y),ag=a(Y),Ui=s(Y,"P",{"data-svelte-h":!0}),d(Ui)!=="svelte-1b6cpoy"&&(Ui.textContent=ub),rg=a(Y),Pi=s(Y,"P",{"data-svelte-h":!0}),d(Pi)!=="svelte-o30dtk"&&(Pi.innerHTML=hb),sg=a(Y),h(_t.$$.fragment,Y),ig=a(Y),Li=s(Y,"P",{"data-svelte-h":!0}),d(Li)!=="svelte-1t1ea6f"&&(Li.innerHTML=gb),lg=a(Y),Ni=s(Y,"UL",{"data-svelte-h":!0}),d(Ni)!=="svelte-15ctb4a"&&(Ni.innerHTML=fb),Y.forEach(t),Wl.forEach(t),Id=a(e),Ae=s(e,"H2",{class:!0});var Tm=v(Ae);bt=s(Tm,"A",{id:!0,class:!0,href:!0});var Oy=v(bt);Ql=s(Oy,"SPAN",{});var Qy=v(Ql);h(rn.$$.fragment,Qy),Qy.forEach(t),Oy.forEach(t),dg=a(Tm),Fi=s(Tm,"SPAN",{"data-svelte-h":!0}),d(Fi)!=="svelte-zwb24x"&&(Fi.textContent=_b),Tm.forEach(t),Jd=a(e),q=s(e,"DIV",{class:!0});var J=v(q);h(sn.$$.fragment,J),cg=a(J),zi=s(J,"P",{"data-svelte-h":!0}),d(zi)!=="svelte-avfxjl"&&(zi.innerHTML=bb),pg=a(J),Di=s(J,"P",{"data-svelte-h":!0}),d(Di)!=="svelte-17xzequ"&&(Di.innerHTML=vb),mg=a(J),D=s(J,"DIV",{class:!0});var xe=v(D);h(ln.$$.fragment,xe),ug=a(xe),Wi=s(xe,"P",{"data-svelte-h":!0}),d(Wi)!=="svelte-hj8f41"&&(Wi.textContent=yb),hg=a(xe),Hi=s(xe,"P",{"data-svelte-h":!0}),d(Hi)!=="svelte-1iq1lj0"&&(Hi.innerHTML=Tb),gg=a(xe),Ei=s(xe,"P",{"data-svelte-h":!0}),d(Ei)!=="svelte-18bal86"&&(Ei.innerHTML=wb),fg=a(xe),Ri=s(xe,"P",{"data-svelte-h":!0}),d(Ri)!=="svelte-oacj0p"&&(Ri.innerHTML=xb),xe.forEach(t),_g=a(J),vt=s(J,"DIV",{class:!0});var wm=v(vt);h(dn.$$.fragment,wm),bg=a(wm),Bi=s(wm,"P",{"data-svelte-h":!0}),d(Bi)!=="svelte-9pbc1"&&(Bi.textContent=Mb),wm.forEach(t),vg=a(J),ge=s(J,"DIV",{class:!0});var Hl=v(ge);h(cn.$$.fragment,Hl),yg=a(Hl),Zi=s(Hl,"P",{"data-svelte-h":!0}),d(Zi)!=="svelte-13fy4lg"&&(Zi.textContent=$b),Tg=a(Hl),Vi=s(Hl,"P",{"data-svelte-h":!0}),d(Vi)!=="svelte-1aa165w"&&(Vi.innerHTML=kb),Hl.forEach(t),wg=a(J),fe=s(J,"DIV",{class:!0});var El=v(fe);h(pn.$$.fragment,El),xg=a(El),Xi=s(El,"P",{"data-svelte-h":!0}),d(Xi)!=="svelte-12p68tr"&&(Xi.textContent=Ab),Mg=a(El),h(yt.$$.fragment,El),El.forEach(t),$g=a(J),_e=s(J,"DIV",{class:!0});var Rl=v(_e);h(mn.$$.fragment,Rl),kg=a(Rl),Gi=s(Rl,"P",{"data-svelte-h":!0}),d(Gi)!=="svelte-1n23rxg"&&(Gi.textContent=qb),Ag=a(Rl),h(Tt.$$.fragment,Rl),Rl.forEach(t),qg=a(J),be=s(J,"DIV",{class:!0});var Bl=v(be);h(un.$$.fragment,Bl),Cg=a(Bl),Yi=s(Bl,"P",{"data-svelte-h":!0}),d(Yi)!=="svelte-1n23rxg"&&(Yi.textContent=Cb),jg=a(Bl),h(wt.$$.fragment,Bl),Bl.forEach(t),Ig=a(J),ve=s(J,"DIV",{class:!0});var Zl=v(ve);h(hn.$$.fragment,Zl),Jg=a(Zl),Oi=s(Zl,"P",{"data-svelte-h":!0}),d(Oi)!=="svelte-mc54aq"&&(Oi.textContent=jb),Sg=a(Zl),h(xt.$$.fragment,Zl),Zl.forEach(t),Ug=a(J),ye=s(J,"DIV",{class:!0});var Vl=v(ye);h(gn.$$.fragment,Vl),Pg=a(Vl),Qi=s(Vl,"P",{"data-svelte-h":!0}),d(Qi)!=="svelte-18hco78"&&(Qi.textContent=Ib),Lg=a(Vl),h(Mt.$$.fragment,Vl),Vl.forEach(t),Ng=a(J),Z=s(J,"DIV",{class:!0});var oo=v(Z);h(fn.$$.fragment,oo),Fg=a(oo),Ki=s(oo,"P",{"data-svelte-h":!0}),d(Ki)!=="svelte-y1tcex"&&(Ki.textContent=Jb),zg=a(oo),h($t.$$.fragment,oo),Dg=a(oo),h(kt.$$.fragment,oo),oo.forEach(t),Wg=a(J),Te=s(J,"DIV",{class:!0});var Xl=v(Te);h(_n.$$.fragment,Xl),Hg=a(Xl),el=s(Xl,"P",{"data-svelte-h":!0}),d(el)!=="svelte-1n23rxg"&&(el.textContent=Sb),Eg=a(Xl),h(At.$$.fragment,Xl),Xl.forEach(t),Rg=a(J),V=s(J,"DIV",{class:!0});var no=v(V);h(bn.$$.fragment,no),Bg=a(no),tl=s(no,"P",{"data-svelte-h":!0}),d(tl)!=="svelte-lhuo6p"&&(tl.textContent=Ub),Zg=a(no),h(qt.$$.fragment,no),Vg=a(no),h(Ct.$$.fragment,no),no.forEach(t),Xg=a(J),X=s(J,"DIV",{class:!0});var ao=v(X);h(vn.$$.fragment,ao),Gg=a(ao),ol=s(ao,"P",{"data-svelte-h":!0}),d(ol)!=="svelte-1h65v06"&&(ol.textContent=Pb),Yg=a(ao),h(jt.$$.fragment,ao),Og=a(ao),h(It.$$.fragment,ao),ao.forEach(t),Qg=a(J),Jt=s(J,"DIV",{class:!0});var xm=v(Jt);h(yn.$$.fragment,xm),Kg=a(xm),nl=s(xm,"P",{"data-svelte-h":!0}),d(nl)!=="svelte-1ciob6u"&&(nl.innerHTML=Lb),xm.forEach(t),ef=a(J),St=s(J,"DIV",{class:!0});var Mm=v(St);h(Tn.$$.fragment,Mm),tf=a(Mm),al=s(Mm,"P",{"data-svelte-h":!0}),d(al)!=="svelte-5ayq1f"&&(al.textContent=Nb),Mm.forEach(t),of=a(J),Ut=s(J,"DIV",{class:!0});var $m=v(Ut);h(wn.$$.fragment,$m),nf=a($m),rl=s($m,"P",{"data-svelte-h":!0}),d(rl)!=="svelte-lg45ly"&&(rl.textContent=Fb),$m.forEach(t),J.forEach(t),Sd=a(e),qe=s(e,"H2",{class:!0});var km=v(qe);Pt=s(km,"A",{id:!0,class:!0,href:!0});var Ky=v(Pt);Kl=s(Ky,"SPAN",{});var eT=v(Kl);h(xn.$$.fragment,eT),eT.forEach(t),Ky.forEach(t),af=a(km),sl=s(km,"SPAN",{"data-svelte-h":!0}),d(sl)!=="svelte-1sdfvvd"&&(sl.textContent=zb),km.forEach(t),Ud=a(e),W=s(e,"DIV",{class:!0});var ro=v(W);h(Mn.$$.fragment,ro),rf=a(ro),il=s(ro,"P",{"data-svelte-h":!0}),d(il)!=="svelte-avfxjl"&&(il.innerHTML=Db),sf=a(ro),ll=s(ro,"P",{"data-svelte-h":!0}),d(ll)!=="svelte-17xzequ"&&(ll.innerHTML=Wb),lf=a(ro),Lt=s(ro,"DIV",{class:!0});var Am=v(Lt);h($n.$$.fragment,Am),df=a(Am),dl=s(Am,"P",{"data-svelte-h":!0}),d(dl)!=="svelte-yrflrv"&&(dl.innerHTML=Hb),Am.forEach(t),ro.forEach(t),Pd=a(e),Ce=s(e,"H2",{class:!0});var qm=v(Ce);Nt=s(qm,"A",{id:!0,class:!0,href:!0});var tT=v(Nt);ed=s(tT,"SPAN",{});var oT=v(ed);h(kn.$$.fragment,oT),oT.forEach(t),tT.forEach(t),cf=a(qm),cl=s(qm,"SPAN",{"data-svelte-h":!0}),d(cl)!=="svelte-k5w17g"&&(cl.textContent=Eb),qm.forEach(t),Ld=a(e),An=s(e,"P",{"data-svelte-h":!0}),d(An)!=="svelte-17nvosh"&&(An.innerHTML=Rb),Nd=a(e),qn=s(e,"P",{"data-svelte-h":!0}),d(qn)!=="svelte-2axx5e"&&(qn.innerHTML=Bb),Fd=a(e),Cn=s(e,"UL",{"data-svelte-h":!0}),d(Cn)!=="svelte-1w2oero"&&(Cn.innerHTML=Zb),zd=a(e),jn=s(e,"P",{"data-svelte-h":!0}),d(jn)!=="svelte-dy2s4f"&&(jn.innerHTML=Vb),Dd=a(e),In=s(e,"UL",{"data-svelte-h":!0}),d(In)!=="svelte-9cmlap"&&(In.innerHTML=Xb),Wd=a(e),je=s(e,"H2",{class:!0});var Cm=v(je);Ft=s(Cm,"A",{id:!0,class:!0,href:!0});var nT=v(Ft);td=s(nT,"SPAN",{});var aT=v(td);h(Jn.$$.fragment,aT),aT.forEach(t),nT.forEach(t),pf=a(Cm),pl=s(Cm,"SPAN",{"data-svelte-h":!0}),d(pl)!=="svelte-1mk9dii"&&(pl.textContent=Gb),Cm.forEach(t),Hd=a(e),Sn=s(e,"P",{"data-svelte-h":!0}),d(Sn)!=="svelte-141fyxu"&&(Sn.innerHTML=Yb),Ed=a(e),Un=s(e,"P",{"data-svelte-h":!0}),d(Un)!=="svelte-199hsvm"&&(Un.innerHTML=Ob),Rd=a(e),Pn=s(e,"UL",{"data-svelte-h":!0}),d(Pn)!=="svelte-1gs5ihu"&&(Pn.innerHTML=Qb),Bd=a(e),Ln=s(e,"P",{"data-svelte-h":!0}),d(Ln)!=="svelte-hbttej"&&(Ln.innerHTML=Kb),Zd=a(e),Nn=s(e,"P",{"data-svelte-h":!0}),d(Nn)!=="svelte-8xqfm9"&&(Nn.innerHTML=ev),Vd=a(e),Fn=s(e,"P",{"data-svelte-h":!0}),d(Fn)!=="svelte-t0gca0"&&(Fn.textContent=tv),Xd=a(e),h(zn.$$.fragment,e),Gd=a(e),Dn=s(e,"P",{"data-svelte-h":!0}),d(Dn)!=="svelte-14wgcuj"&&(Dn.textContent=ov),Yd=a(e),h(Wn.$$.fragment,e),Od=a(e),Hn=s(e,"P",{"data-svelte-h":!0}),d(Hn)!=="svelte-cong9"&&(Hn.textContent=nv),Qd=a(e),h(En.$$.fragment,e),Kd=a(e),Rn=s(e,"P",{"data-svelte-h":!0}),d(Rn)!=="svelte-gqoin8"&&(Rn.textContent=av),ec=a(e),Bn=s(e,"P",{"data-svelte-h":!0}),d(Bn)!=="svelte-at3v05"&&(Bn.textContent=rv),tc=a(e),h(Zn.$$.fragment,e),oc=a(e),Vn=s(e,"P",{"data-svelte-h":!0}),d(Vn)!=="svelte-eroj03"&&(Vn.innerHTML=sv),nc=a(e),Ie=s(e,"H2",{class:!0});var jm=v(Ie);zt=s(jm,"A",{id:!0,class:!0,href:!0});var rT=v(zt);od=s(rT,"SPAN",{});var sT=v(od);h(Xn.$$.fragment,sT),sT.forEach(t),rT.forEach(t),mf=a(jm),ml=s(jm,"SPAN",{"data-svelte-h":!0}),d(ml)!=="svelte-16sa4dh"&&(ml.textContent=iv),jm.forEach(t),ac=a(e),Gn=s(e,"P",{"data-svelte-h":!0}),d(Gn)!=="svelte-1wpedqo"&&(Gn.innerHTML=lv),rc=a(e),Yn=s(e,"P",{"data-svelte-h":!0}),d(Yn)!=="svelte-1ynnmq3"&&(Yn.innerHTML=dv),sc=a(e),Je=s(e,"H2",{class:!0});var Im=v(Je);Dt=s(Im,"A",{id:!0,class:!0,href:!0});var iT=v(Dt);nd=s(iT,"SPAN",{});var lT=v(nd);h(On.$$.fragment,lT),lT.forEach(t),iT.forEach(t),uf=a(Im),ul=s(Im,"SPAN",{"data-svelte-h":!0}),d(ul)!=="svelte-t7n8a"&&(ul.textContent=cv),Im.forEach(t),ic=a(e),Qn=s(e,"P",{"data-svelte-h":!0}),d(Qn)!=="svelte-aegtz3"&&(Qn.textContent=pv),lc=a(e),Kn=s(e,"P",{"data-svelte-h":!0}),d(Kn)!=="svelte-dm16xb"&&(Kn.innerHTML=mv),dc=a(e),h(ea.$$.fragment,e),cc=a(e),ta=s(e,"P",{"data-svelte-h":!0}),d(ta)!=="svelte-ay9pn2"&&(ta.innerHTML=uv),pc=a(e),h(oa.$$.fragment,e),mc=a(e),h(na.$$.fragment,e),uc=a(e),aa=s(e,"P",{"data-svelte-h":!0}),d(aa)!=="svelte-1yvlrqz"&&(aa.innerHTML=hv),hc=a(e),ra=s(e,"P",{"data-svelte-h":!0}),d(ra)!=="svelte-95qu2c"&&(ra.textContent=gv),gc=a(e),sa=s(e,"P",{"data-svelte-h":!0}),d(sa)!=="svelte-1ix8sdw"&&(sa.textContent=fv),fc=a(e),ia=s(e,"P",{"data-svelte-h":!0}),d(ia)!=="svelte-1w89bwu"&&(ia.innerHTML=_v),_c=a(e),la=s(e,"P",{"data-svelte-h":!0}),d(la)!=="svelte-jnbgek"&&(la.innerHTML=bv),bc=a(e),da=s(e,"P",{"data-svelte-h":!0}),d(da)!=="svelte-8rwpsh"&&(da.textContent=vv),vc=a(e),h(ca.$$.fragment,e),yc=a(e),pa=s(e,"P",{"data-svelte-h":!0}),d(pa)!=="svelte-psnjqi"&&(pa.innerHTML=yv),Tc=a(e),ma=s(e,"P",{"data-svelte-h":!0}),d(ma)!=="svelte-aa2f2r"&&(ma.textContent=Tv),wc=a(e),h(ua.$$.fragment,e),xc=a(e),ha=s(e,"P",{"data-svelte-h":!0}),d(ha)!=="svelte-q3twea"&&(ha.innerHTML=wv),Mc=a(e),ga=s(e,"P",{"data-svelte-h":!0}),d(ga)!=="svelte-1skzhs8"&&(ga.innerHTML=xv),$c=a(e),h(fa.$$.fragment,e),kc=a(e),_a=s(e,"P",{"data-svelte-h":!0}),d(_a)!=="svelte-7zdyb3"&&(_a.textContent=Mv),Ac=a(e),h(ba.$$.fragment,e),qc=a(e),va=s(e,"P",{"data-svelte-h":!0}),d(va)!=="svelte-tulmmy"&&(va.textContent=$v),Cc=a(e),h(ya.$$.fragment,e),jc=a(e),Ta=s(e,"P",{"data-svelte-h":!0}),d(Ta)!=="svelte-s8042f"&&(Ta.textContent=kv),Ic=a(e),wa=s(e,"P",{"data-svelte-h":!0}),d(wa)!=="svelte-sdywfx"&&(wa.innerHTML=Av),Jc=a(e),xa=s(e,"P",{"data-svelte-h":!0}),d(xa)!=="svelte-1qsxvrx"&&(xa.innerHTML=qv),Sc=a(e),Ma=s(e,"OL",{"data-svelte-h":!0}),d(Ma)!=="svelte-1kz51cn"&&(Ma.innerHTML=Cv),Uc=a(e),h($a.$$.fragment,e),Pc=a(e),Wt=s(e,"OL",{start:!0,"data-svelte-h":!0}),d(Wt)!=="svelte-1djpz3l"&&(Wt.innerHTML=jv),Lc=a(e),h(ka.$$.fragment,e),Nc=a(e),Aa=s(e,"P",{"data-svelte-h":!0}),d(Aa)!=="svelte-szcwrk"&&(Aa.innerHTML=Iv),Fc=a(e),qa=s(e,"P",{"data-svelte-h":!0}),d(qa)!=="svelte-9mlq15"&&(qa.textContent=Jv),zc=a(e),h(Ca.$$.fragment,e),Dc=a(e),ja=s(e,"P",{"data-svelte-h":!0}),d(ja)!=="svelte-1r0acxx"&&(ja.textContent=Sv),Wc=a(e),Ia=s(e,"P",{"data-svelte-h":!0}),d(Ia)!=="svelte-1eya7y2"&&(Ia.innerHTML=Uv),Hc=a(e),Se=s(e,"H2",{class:!0});var Jm=v(Se);Ht=s(Jm,"A",{id:!0,class:!0,href:!0});var dT=v(Ht);ad=s(dT,"SPAN",{});var cT=v(ad);h(Ja.$$.fragment,cT),cT.forEach(t),dT.forEach(t),hf=a(Jm),hl=s(Jm,"SPAN",{"data-svelte-h":!0}),d(hl)!=="svelte-1ieacjd"&&(hl.textContent=Pv),Jm.forEach(t),Ec=a(e),Sa=s(e,"P",{"data-svelte-h":!0}),d(Sa)!=="svelte-1wq78sz"&&(Sa.innerHTML=Lv),Rc=a(e),Ua=s(e,"P",{"data-svelte-h":!0}),d(Ua)!=="svelte-dz9icu"&&(Ua.innerHTML=Nv),Bc=a(e),Pa=s(e,"P",{"data-svelte-h":!0}),d(Pa)!=="svelte-1dpps5f"&&(Pa.innerHTML=Fv),Zc=a(e),gl=s(e,"A",{id:!0}),v(gl).forEach(t),Vc=a(e),Ue=s(e,"H3",{class:!0});var Sm=v(Ue);Et=s(Sm,"A",{id:!0,class:!0,href:!0});var pT=v(Et);rd=s(pT,"SPAN",{});var mT=v(rd);h(La.$$.fragment,mT),mT.forEach(t),pT.forEach(t),gf=a(Sm),fl=s(Sm,"SPAN",{"data-svelte-h":!0}),d(fl)!=="svelte-1fgwt2g"&&(fl.textContent=zv),Sm.forEach(t),Xc=a(e),Na=s(e,"P",{"data-svelte-h":!0}),d(Na)!=="svelte-1b35xlq"&&(Na.textContent=Dv),Gc=a(e),Fa=s(e,"P",{"data-svelte-h":!0}),d(Fa)!=="svelte-o7gi5m"&&(Fa.innerHTML=Wv),Yc=a(e),za=s(e,"P",{"data-svelte-h":!0}),d(za)!=="svelte-1v27qwc"&&(za.textContent=Hv),Oc=a(e),h(Da.$$.fragment,e),Qc=a(e),Wa=s(e,"P",{"data-svelte-h":!0}),d(Wa)!=="svelte-uj3xld"&&(Wa.textContent=Ev),Kc=a(e),Ha=s(e,"P",{"data-svelte-h":!0}),d(Ha)!=="svelte-49sfau"&&(Ha.innerHTML=Rv),ep=a(e),Pe=s(e,"H4",{class:!0});var Um=v(Pe);Rt=s(Um,"A",{id:!0,class:!0,href:!0});var uT=v(Rt);sd=s(uT,"SPAN",{});var hT=v(sd);h(Ea.$$.fragment,hT),hT.forEach(t),uT.forEach(t),ff=a(Um),_l=s(Um,"SPAN",{"data-svelte-h":!0}),d(_l)!=="svelte-joc1ub"&&(_l.textContent=Bv),Um.forEach(t),tp=a(e),Ra=s(e,"P",{"data-svelte-h":!0}),d(Ra)!=="svelte-1ffp4kp"&&(Ra.textContent=Zv),op=a(e),Ba=s(e,"P",{"data-svelte-h":!0}),d(Ba)!=="svelte-hm1f2i"&&(Ba.innerHTML=Vv),np=a(e),Za=s(e,"P",{"data-svelte-h":!0}),d(Za)!=="svelte-8hws2o"&&(Za.innerHTML=Xv),ap=a(e),h(Va.$$.fragment,e),rp=a(e),Xa=s(e,"P",{"data-svelte-h":!0}),d(Xa)!=="svelte-1j5z7o5"&&(Xa.innerHTML=Gv),sp=a(e),Le=s(e,"H4",{class:!0});var Pm=v(Le);Bt=s(Pm,"A",{id:!0,class:!0,href:!0});var gT=v(Bt);id=s(gT,"SPAN",{});var fT=v(id);h(Ga.$$.fragment,fT),fT.forEach(t),gT.forEach(t),_f=a(Pm),bl=s(Pm,"SPAN",{"data-svelte-h":!0}),d(bl)!=="svelte-17y03xq"&&(bl.textContent=Yv),Pm.forEach(t),ip=a(e),Ya=s(e,"P",{"data-svelte-h":!0}),d(Ya)!=="svelte-lqn4cc"&&(Ya.textContent=Ov),lp=a(e),h(Oa.$$.fragment,e),dp=a(e),Qa=s(e,"P",{"data-svelte-h":!0}),d(Qa)!=="svelte-wafl9j"&&(Qa.innerHTML=Qv),cp=a(e),Ka=s(e,"P",{"data-svelte-h":!0}),d(Ka)!=="svelte-zce8ig"&&(Ka.textContent=Kv),pp=a(e),h(er.$$.fragment,e),mp=a(e),tr=s(e,"P",{"data-svelte-h":!0}),d(tr)!=="svelte-1y2vy70"&&(tr.textContent=ey),up=a(e),or=s(e,"P",{"data-svelte-h":!0}),d(or)!=="svelte-16f2xn7"&&(or.innerHTML=ty),hp=a(e),nr=s(e,"P",{"data-svelte-h":!0}),d(nr)!=="svelte-croqf5"&&(nr.innerHTML=oy),gp=a(e),ar=s(e,"P",{"data-svelte-h":!0}),d(ar)!=="svelte-12x6lyt"&&(ar.textContent=ny),fp=a(e),h(rr.$$.fragment,e),_p=a(e),sr=s(e,"P",{"data-svelte-h":!0}),d(sr)!=="svelte-1njfrnl"&&(sr.textContent=ay),bp=a(e),ir=s(e,"P",{"data-svelte-h":!0}),d(ir)!=="svelte-fzncb8"&&(ir.innerHTML=ry),vp=a(e),Ne=s(e,"H4",{class:!0});var Lm=v(Ne);Zt=s(Lm,"A",{id:!0,class:!0,href:!0});var _T=v(Zt);ld=s(_T,"SPAN",{});var bT=v(ld);h(lr.$$.fragment,bT),bT.forEach(t),_T.forEach(t),bf=a(Lm),vl=s(Lm,"SPAN",{"data-svelte-h":!0}),d(vl)!=="svelte-zs7cgl"&&(vl.textContent=sy),Lm.forEach(t),yp=a(e),dr=s(e,"P",{"data-svelte-h":!0}),d(dr)!=="svelte-1b06b2y"&&(dr.innerHTML=iy),Tp=a(e),cr=s(e,"P",{"data-svelte-h":!0}),d(cr)!=="svelte-1eni2dm"&&(cr.textContent=ly),wp=a(e),pr=s(e,"P",{"data-svelte-h":!0}),d(pr)!=="svelte-12sejvd"&&(pr.textContent=dy),xp=a(e),mr=s(e,"P",{"data-svelte-h":!0}),d(mr)!=="svelte-ickurv"&&(mr.innerHTML=cy),Mp=a(e),h(ur.$$.fragment,e),$p=a(e),hr=s(e,"P",{"data-svelte-h":!0}),d(hr)!=="svelte-1evqfg"&&(hr.innerHTML=py),kp=a(e),gr=s(e,"P",{"data-svelte-h":!0}),d(gr)!=="svelte-1e8ixef"&&(gr.textContent=my),Ap=a(e),Fe=s(e,"H3",{class:!0});var Nm=v(Fe);Vt=s(Nm,"A",{id:!0,class:!0,href:!0});var vT=v(Vt);dd=s(vT,"SPAN",{});var yT=v(dd);h(fr.$$.fragment,yT),yT.forEach(t),vT.forEach(t),vf=a(Nm),yl=s(Nm,"SPAN",{"data-svelte-h":!0}),d(yl)!=="svelte-1xkppdi"&&(yl.textContent=uy),Nm.forEach(t),qp=a(e),_r=s(e,"P",{"data-svelte-h":!0}),d(_r)!=="svelte-qnvjvw"&&(_r.innerHTML=hy),Cp=a(e),br=s(e,"P",{"data-svelte-h":!0}),d(br)!=="svelte-xouvv1"&&(br.innerHTML=gy),jp=a(e),vr=s(e,"P",{"data-svelte-h":!0}),d(vr)!=="svelte-1em5vys"&&(vr.innerHTML=fy),Ip=a(e),yr=s(e,"UL",{"data-svelte-h":!0}),d(yr)!=="svelte-jy5sta"&&(yr.innerHTML=_y),Jp=a(e),Tr=s(e,"P",{"data-svelte-h":!0}),d(Tr)!=="svelte-lrtyq1"&&(Tr.innerHTML=by),Sp=a(e),wr=s(e,"UL",{"data-svelte-h":!0}),d(wr)!=="svelte-1lhgyfl"&&(wr.innerHTML=vy),Up=a(e),ze=s(e,"H3",{class:!0});var Fm=v(ze);Xt=s(Fm,"A",{id:!0,class:!0,href:!0});var TT=v(Xt);cd=s(TT,"SPAN",{});var wT=v(cd);h(xr.$$.fragment,wT),wT.forEach(t),TT.forEach(t),yf=a(Fm),Tl=s(Fm,"SPAN",{"data-svelte-h":!0}),d(Tl)!=="svelte-1tlw93u"&&(Tl.textContent=yy),Fm.forEach(t),Pp=a(e),Mr=s(e,"P",{"data-svelte-h":!0}),d(Mr)!=="svelte-11lx8au"&&(Mr.innerHTML=Ty),Lp=a(e),$r=s(e,"P",{"data-svelte-h":!0}),d($r)!=="svelte-v0nlbv"&&($r.innerHTML=wy),Np=a(e),kr=s(e,"P",{"data-svelte-h":!0}),d(kr)!=="svelte-1em5vys"&&(kr.innerHTML=xy),Fp=a(e),Ar=s(e,"P",{"data-svelte-h":!0}),d(Ar)!=="svelte-ipyd4l"&&(Ar.innerHTML=My),zp=a(e),qr=s(e,"UL",{"data-svelte-h":!0}),d(qr)!=="svelte-wk5anb"&&(qr.innerHTML=$y),Dp=a(e),De=s(e,"H3",{class:!0});var zm=v(De);Gt=s(zm,"A",{id:!0,class:!0,href:!0});var xT=v(Gt);pd=s(xT,"SPAN",{});var MT=v(pd);h(Cr.$$.fragment,MT),MT.forEach(t),xT.forEach(t),Tf=a(zm),wl=s(zm,"SPAN",{"data-svelte-h":!0}),d(wl)!=="svelte-khn2qz"&&(wl.textContent=ky),zm.forEach(t),Wp=a(e),jr=s(e,"P",{"data-svelte-h":!0}),d(jr)!=="svelte-gro02w"&&(jr.innerHTML=Ay),Hp=a(e),h(Yt.$$.fragment,e),Ep=a(e),Ir=s(e,"P",{"data-svelte-h":!0}),d(Ir)!=="svelte-15ovuki"&&(Ir.innerHTML=qy),Rp=a(e),Jr=s(e,"OL",{"data-svelte-h":!0}),d(Jr)!=="svelte-oq3rck"&&(Jr.innerHTML=Cy),Bp=a(e),Sr=s(e,"P",{"data-svelte-h":!0}),d(Sr)!=="svelte-1kbpcbh"&&(Sr.innerHTML=jy),Zp=a(e),Ur=s(e,"P",{"data-svelte-h":!0}),d(Ur)!=="svelte-hzy396"&&(Ur.innerHTML=Iy),Vp=a(e),h(Pr.$$.fragment,e),Xp=a(e),Lr=s(e,"P",{"data-svelte-h":!0}),d(Lr)!=="svelte-64cgnu"&&(Lr.innerHTML=Jy),Gp=a(e),Nr=s(e,"OL",{"data-svelte-h":!0}),d(Nr)!=="svelte-7xuqdx"&&(Nr.innerHTML=Sy),Yp=a(e),Fr=s(e,"P",{"data-svelte-h":!0}),d(Fr)!=="svelte-b1fgcl"&&(Fr.innerHTML=Uy),Op=a(e),We=s(e,"H2",{class:!0});var Dm=v(We);Ot=s(Dm,"A",{id:!0,class:!0,href:!0});var $T=v(Ot);md=s($T,"SPAN",{});var kT=v(md);h(zr.$$.fragment,kT),kT.forEach(t),$T.forEach(t),wf=a(Dm),xl=s(Dm,"SPAN",{"data-svelte-h":!0}),d(xl)!=="svelte-1ky5yt9"&&(xl.textContent=Py),Dm.forEach(t),Qp=a(e),Dr=s(e,"P",{"data-svelte-h":!0}),d(Dr)!=="svelte-1hs3lj1"&&(Dr.textContent=Ly),Kp=a(e),Wr=s(e,"UL",{"data-svelte-h":!0}),d(Wr)!=="svelte-1a0sr4"&&(Wr.innerHTML=Ny),em=a(e),Hr=s(e,"P",{"data-svelte-h":!0}),d(Hr)!=="svelte-lzqhuz"&&(Hr.textContent=Fy),tm=a(e),we=s(e,"OL",{});var Gl=v(we);Ml=s(Gl,"LI",{"data-svelte-h":!0}),d(Ml)!=="svelte-1fxe6k6"&&(Ml.innerHTML=zy),xf=a(Gl),U=s(Gl,"LI",{});var z=v(U);$l=s(z,"P",{"data-svelte-h":!0}),d($l)!=="svelte-1inrfkf"&&($l.innerHTML=Dy),Mf=a(z),h(Er.$$.fragment,z),$f=a(z),kl=s(z,"P",{"data-svelte-h":!0}),d(kl)!=="svelte-1j5721n"&&(kl.textContent=Wy),kf=a(z),h(Rr.$$.fragment,z),Af=a(z),Al=s(z,"P",{"data-svelte-h":!0}),d(Al)!=="svelte-1mf14u2"&&(Al.textContent=Hy),qf=a(z),h(Br.$$.fragment,z),Cf=a(z),ql=s(z,"P",{"data-svelte-h":!0}),d(ql)!=="svelte-90l30h"&&(ql.textContent=Ey),jf=a(z),h(Zr.$$.fragment,z),z.forEach(t),If=a(Gl),Cl=s(Gl,"LI",{"data-svelte-h":!0}),d(Cl)!=="svelte-1jrss5h"&&(Cl.innerHTML=Ry),Gl.forEach(t),om=a(e),h(Vr.$$.fragment,e),nm=a(e),Qt=s(e,"OL",{start:!0,"data-svelte-h":!0}),d(Qt)!=="svelte-1f7pbxi"&&(Qt.innerHTML=By),am=a(e),h(Xr.$$.fragment,e),rm=a(e),Gr=s(e,"P",{"data-svelte-h":!0}),d(Gr)!=="svelte-1quc4l2"&&(Gr.innerHTML=Zy),sm=a(e),Yr=s(e,"P",{"data-svelte-h":!0}),d(Yr)!=="svelte-15d4ygl"&&(Yr.textContent=Vy),im=a(e),Or=s(e,"P",{"data-svelte-h":!0}),d(Or)!=="svelte-f4ziqx"&&(Or.innerHTML=Xy),lm=a(e),ud=s(e,"P",{}),v(ud).forEach(t),this.h()},h(){m(p,"name","hf:doc:metadata"),m(p,"content",JSON.stringify(QT)),m(c,"id","trainer"),m(c,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(c,"href","#trainer"),m(M,"class","relative group"),m(Ge,"id","transformers.Trainer"),m(Ge,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(Ge,"href","#transformers.Trainer"),m($e,"class","relative group"),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(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(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(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(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(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(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(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(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(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(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(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(ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(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(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(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(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(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(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(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(I,"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(ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(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(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(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(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(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(ht,"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(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(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(gt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(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(ft,"id","transformers.Seq2SeqTrainer"),m(ft,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(ft,"href","#transformers.Seq2SeqTrainer"),m(ke,"class","relative group"),m(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(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(bt,"id","transformers.TrainingArguments"),m(bt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(bt,"href","#transformers.TrainingArguments"),m(Ae,"class","relative group"),m(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(vt,"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(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(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),m(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(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(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(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(Jt,"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(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(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(Pt,"id","transformers.Seq2SeqTrainingArguments"),m(Pt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(Pt,"href","#transformers.Seq2SeqTrainingArguments"),m(qe,"class","relative group"),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(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(Nt,"id","checkpoints"),m(Nt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(Nt,"href","#checkpoints"),m(Ce,"class","relative group"),m(Ft,"id","logging"),m(Ft,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(Ft,"href","#logging"),m(je,"class","relative group"),m(zt,"id","randomness"),m(zt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(zt,"href","#randomness"),m(Ie,"class","relative group"),m(Dt,"id","specific-gpus-selection"),m(Dt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(Dt,"href","#specific-gpus-selection"),m(Je,"class","relative group"),m(Wt,"start","2"),m(Ht,"id","trainer-integrations"),m(Ht,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(Ht,"href","#trainer-integrations"),m(Se,"class","relative group"),m(gl,"id","zero-install-notes"),m(Et,"id","cuda-extension-installation-notes"),m(Et,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(Et,"href","#cuda-extension-installation-notes"),m(Ue,"class","relative group"),m(Rt,"id","possible-problem-1"),m(Rt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(Rt,"href","#possible-problem-1"),m(Pe,"class","relative group"),m(Bt,"id","possible-problem-2"),m(Bt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(Bt,"href","#possible-problem-2"),m(Le,"class","relative group"),m(Zt,"id","possible-problem-3"),m(Zt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(Zt,"href","#possible-problem-3"),m(Ne,"class","relative group"),m(Vt,"id","pytorch-fully-sharded-data-parallel"),m(Vt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(Vt,"href","#pytorch-fully-sharded-data-parallel"),m(Fe,"class","relative group"),m(Xt,"id","pytorchxla-fully-sharded-data-parallel"),m(Xt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(Xt,"href","#pytorchxla-fully-sharded-data-parallel"),m(ze,"class","relative group"),m(Gt,"id","using-trainer-for-accelerated-pytorch-training-on-mac"),m(Gt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(Gt,"href","#using-trainer-for-accelerated-pytorch-training-on-mac"),m(De,"class","relative group"),m(Ot,"id","using-accelerate-launcher-with-trainer"),m(Ot,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),m(Ot,"href","#using-accelerate-launcher-with-trainer"),m(We,"class","relative group"),m(Qt,"start","4")},m(e,i){o(document.head,p),l(e,$,i),l(e,y,i),l(e,T,i),l(e,M,i),o(M,c),o(c,A),g(so,A,null),o(M,Wm),o(M,ss),l(e,bd,i),l(e,io,i),l(e,vd,i),l(e,lo,i),l(e,yd,i),l(e,co,i),l(e,Td,i),l(e,po,i),l(e,wd,i),l(e,mo,i),l(e,xd,i),g(Xe,e,i),l(e,Md,i),l(e,uo,i),l(e,$d,i),g(ho,e,i),l(e,kd,i),l(e,go,i),l(e,Ad,i),l(e,$e,i),o($e,Ge),o(Ge,Yl),g(fo,Yl,null),o($e,Hm),o($e,is),l(e,qd,i),l(e,w,i),g(_o,w,null),o(w,Em),o(w,ls),o(w,Rm),o(w,ds),o(w,Bm),o(w,cs),o(w,Zm),o(w,Ye),g(bo,Ye,null),o(Ye,Vm),o(Ye,ps),o(w,Xm),o(w,Oe),g(vo,Oe,null),o(Oe,Gm),o(Oe,ms),o(w,Ym),o(w,K),g(yo,K,null),o(K,Om),o(K,us),o(K,Qm),o(K,hs),o(w,Km),o(w,Qe),g(To,Qe,null),o(Qe,eu),o(Qe,gs),o(w,tu),o(w,Ke),g(wo,Ke,null),o(Ke,ou),o(Ke,fs),o(w,nu),o(w,ee),g(xo,ee,null),o(ee,au),o(ee,_s),o(ee,ru),o(ee,bs),o(w,su),o(w,te),g(Mo,te,null),o(te,iu),o(te,vs),o(te,lu),o(te,ys),o(w,du),o(w,et),g($o,et,null),o(et,cu),o(et,Ts),o(w,pu),o(w,H),g(ko,H,null),o(H,mu),o(H,ws),o(H,uu),o(H,xs),o(H,hu),o(H,Ms),o(w,gu),o(w,oe),g(Ao,oe,null),o(oe,fu),o(oe,$s),o(oe,_u),o(oe,ks),o(w,bu),o(w,tt),g(qo,tt,null),o(tt,vu),o(tt,As),o(w,yu),o(w,ne),g(Co,ne,null),o(ne,Tu),o(ne,qs),o(ne,wu),o(ne,Cs),o(w,xu),o(w,ae),g(jo,ae,null),o(ae,Mu),o(ae,js),o(ae,$u),o(ae,Is),o(w,ku),o(w,ot),g(Io,ot,null),o(ot,Au),o(ot,Js),o(w,qu),o(w,re),g(Jo,re,null),o(re,Cu),o(re,Ss),o(re,ju),o(re,Us),o(w,Iu),o(w,E),g(So,E,null),o(E,Ju),o(E,Ps),o(E,Su),o(E,Ls),o(E,Uu),o(E,Ns),o(w,Pu),o(w,se),g(Uo,se,null),o(se,Lu),o(se,Fs),o(se,Nu),g(nt,se,null),o(w,Fu),o(w,ie),g(Po,ie,null),o(ie,zu),o(ie,zs),o(ie,Du),g(at,ie,null),o(w,Wu),o(w,rt),g(Lo,rt,null),o(rt,Hu),o(rt,Ds),o(w,Eu),o(w,st),g(No,st,null),o(st,Ru),o(st,Ws),o(w,Bu),o(w,it),g(Fo,it,null),o(it,Zu),o(it,Hs),o(w,Vu),o(w,le),g(zo,le,null),o(le,Xu),o(le,Es),o(le,Gu),o(le,Rs),o(w,Yu),o(w,I),g(Do,I,null),o(I,Ou),o(I,Bs),o(I,Qu),o(I,Zs),o(I,Ku),o(I,Vs),o(I,eh),o(I,Xs),o(I,th),g(lt,I,null),o(I,oh),o(I,Gs),o(I,nh),o(I,Ys),o(I,ah),o(I,Os),o(I,rh),o(I,Qs),o(I,sh),o(I,Ks),o(I,ih),o(I,ei),o(I,lh),o(I,ti),o(I,dh),o(I,oi),o(I,ch),o(I,ni),o(I,ph),o(I,ai),o(w,mh),o(w,dt),g(Wo,dt,null),o(dt,uh),o(dt,ri),o(w,hh),o(w,ct),g(Ho,ct,null),o(ct,gh),o(ct,si),o(w,fh),o(w,pt),g(Eo,pt,null),o(pt,_h),o(pt,ii),o(w,bh),o(w,de),g(Ro,de,null),o(de,vh),o(de,li),o(de,yh),o(de,di),o(w,Th),o(w,N),g(Bo,N,null),o(N,wh),o(N,ci),o(N,xh),o(N,pi),o(N,Mh),g(mt,N,null),o(N,$h),o(N,mi),o(N,kh),o(N,ui),o(w,Ah),o(w,ce),g(Zo,ce,null),o(ce,qh),o(ce,hi),o(ce,Ch),o(ce,gi),o(w,jh),o(w,pe),g(Vo,pe,null),o(pe,Ih),o(pe,fi),o(pe,Jh),o(pe,_i),o(w,Sh),o(w,ut),g(Xo,ut,null),o(ut,Uh),o(ut,bi),o(w,Ph),o(w,ht),g(Go,ht,null),o(ht,Lh),o(ht,vi),o(w,Nh),o(w,R),g(Yo,R,null),o(R,Fh),o(R,yi),o(R,zh),o(R,Ti),o(R,Dh),o(R,wi),o(w,Wh),o(w,me),g(Oo,me,null),o(me,Hh),o(me,xi),o(me,Eh),o(me,Mi),o(w,Rh),o(w,ue),g(Qo,ue,null),o(ue,Bh),o(ue,$i),o(ue,Zh),o(ue,ki),o(w,Vh),o(w,gt),g(Ko,gt,null),o(gt,Xh),o(gt,Ai),o(w,Gh),o(w,he),g(en,he,null),o(he,Yh),o(he,qi),o(he,Oh),o(he,Ci),l(e,Cd,i),l(e,ke,i),o(ke,ft),o(ft,Ol),g(tn,Ol,null),o(ke,Qh),o(ke,ji),l(e,jd,i),l(e,O,i),g(on,O,null),o(O,Kh),o(O,B),g(nn,B,null),o(B,eg),o(B,Ii),o(B,tg),o(B,Ji),o(B,og),o(B,Si),o(O,ng),o(O,F),g(an,F,null),o(F,ag),o(F,Ui),o(F,rg),o(F,Pi),o(F,sg),g(_t,F,null),o(F,ig),o(F,Li),o(F,lg),o(F,Ni),l(e,Id,i),l(e,Ae,i),o(Ae,bt),o(bt,Ql),g(rn,Ql,null),o(Ae,dg),o(Ae,Fi),l(e,Jd,i),l(e,q,i),g(sn,q,null),o(q,cg),o(q,zi),o(q,pg),o(q,Di),o(q,mg),o(q,D),g(ln,D,null),o(D,ug),o(D,Wi),o(D,hg),o(D,Hi),o(D,gg),o(D,Ei),o(D,fg),o(D,Ri),o(q,_g),o(q,vt),g(dn,vt,null),o(vt,bg),o(vt,Bi),o(q,vg),o(q,ge),g(cn,ge,null),o(ge,yg),o(ge,Zi),o(ge,Tg),o(ge,Vi),o(q,wg),o(q,fe),g(pn,fe,null),o(fe,xg),o(fe,Xi),o(fe,Mg),g(yt,fe,null),o(q,$g),o(q,_e),g(mn,_e,null),o(_e,kg),o(_e,Gi),o(_e,Ag),g(Tt,_e,null),o(q,qg),o(q,be),g(un,be,null),o(be,Cg),o(be,Yi),o(be,jg),g(wt,be,null),o(q,Ig),o(q,ve),g(hn,ve,null),o(ve,Jg),o(ve,Oi),o(ve,Sg),g(xt,ve,null),o(q,Ug),o(q,ye),g(gn,ye,null),o(ye,Pg),o(ye,Qi),o(ye,Lg),g(Mt,ye,null),o(q,Ng),o(q,Z),g(fn,Z,null),o(Z,Fg),o(Z,Ki),o(Z,zg),g($t,Z,null),o(Z,Dg),g(kt,Z,null),o(q,Wg),o(q,Te),g(_n,Te,null),o(Te,Hg),o(Te,el),o(Te,Eg),g(At,Te,null),o(q,Rg),o(q,V),g(bn,V,null),o(V,Bg),o(V,tl),o(V,Zg),g(qt,V,null),o(V,Vg),g(Ct,V,null),o(q,Xg),o(q,X),g(vn,X,null),o(X,Gg),o(X,ol),o(X,Yg),g(jt,X,null),o(X,Og),g(It,X,null),o(q,Qg),o(q,Jt),g(yn,Jt,null),o(Jt,Kg),o(Jt,nl),o(q,ef),o(q,St),g(Tn,St,null),o(St,tf),o(St,al),o(q,of),o(q,Ut),g(wn,Ut,null),o(Ut,nf),o(Ut,rl),l(e,Sd,i),l(e,qe,i),o(qe,Pt),o(Pt,Kl),g(xn,Kl,null),o(qe,af),o(qe,sl),l(e,Ud,i),l(e,W,i),g(Mn,W,null),o(W,rf),o(W,il),o(W,sf),o(W,ll),o(W,lf),o(W,Lt),g($n,Lt,null),o(Lt,df),o(Lt,dl),l(e,Pd,i),l(e,Ce,i),o(Ce,Nt),o(Nt,ed),g(kn,ed,null),o(Ce,cf),o(Ce,cl),l(e,Ld,i),l(e,An,i),l(e,Nd,i),l(e,qn,i),l(e,Fd,i),l(e,Cn,i),l(e,zd,i),l(e,jn,i),l(e,Dd,i),l(e,In,i),l(e,Wd,i),l(e,je,i),o(je,Ft),o(Ft,td),g(Jn,td,null),o(je,pf),o(je,pl),l(e,Hd,i),l(e,Sn,i),l(e,Ed,i),l(e,Un,i),l(e,Rd,i),l(e,Pn,i),l(e,Bd,i),l(e,Ln,i),l(e,Zd,i),l(e,Nn,i),l(e,Vd,i),l(e,Fn,i),l(e,Xd,i),g(zn,e,i),l(e,Gd,i),l(e,Dn,i),l(e,Yd,i),g(Wn,e,i),l(e,Od,i),l(e,Hn,i),l(e,Qd,i),g(En,e,i),l(e,Kd,i),l(e,Rn,i),l(e,ec,i),l(e,Bn,i),l(e,tc,i),g(Zn,e,i),l(e,oc,i),l(e,Vn,i),l(e,nc,i),l(e,Ie,i),o(Ie,zt),o(zt,od),g(Xn,od,null),o(Ie,mf),o(Ie,ml),l(e,ac,i),l(e,Gn,i),l(e,rc,i),l(e,Yn,i),l(e,sc,i),l(e,Je,i),o(Je,Dt),o(Dt,nd),g(On,nd,null),o(Je,uf),o(Je,ul),l(e,ic,i),l(e,Qn,i),l(e,lc,i),l(e,Kn,i),l(e,dc,i),g(ea,e,i),l(e,cc,i),l(e,ta,i),l(e,pc,i),g(oa,e,i),l(e,mc,i),g(na,e,i),l(e,uc,i),l(e,aa,i),l(e,hc,i),l(e,ra,i),l(e,gc,i),l(e,sa,i),l(e,fc,i),l(e,ia,i),l(e,_c,i),l(e,la,i),l(e,bc,i),l(e,da,i),l(e,vc,i),g(ca,e,i),l(e,yc,i),l(e,pa,i),l(e,Tc,i),l(e,ma,i),l(e,wc,i),g(ua,e,i),l(e,xc,i),l(e,ha,i),l(e,Mc,i),l(e,ga,i),l(e,$c,i),g(fa,e,i),l(e,kc,i),l(e,_a,i),l(e,Ac,i),g(ba,e,i),l(e,qc,i),l(e,va,i),l(e,Cc,i),g(ya,e,i),l(e,jc,i),l(e,Ta,i),l(e,Ic,i),l(e,wa,i),l(e,Jc,i),l(e,xa,i),l(e,Sc,i),l(e,Ma,i),l(e,Uc,i),g($a,e,i),l(e,Pc,i),l(e,Wt,i),l(e,Lc,i),g(ka,e,i),l(e,Nc,i),l(e,Aa,i),l(e,Fc,i),l(e,qa,i),l(e,zc,i),g(Ca,e,i),l(e,Dc,i),l(e,ja,i),l(e,Wc,i),l(e,Ia,i),l(e,Hc,i),l(e,Se,i),o(Se,Ht),o(Ht,ad),g(Ja,ad,null),o(Se,hf),o(Se,hl),l(e,Ec,i),l(e,Sa,i),l(e,Rc,i),l(e,Ua,i),l(e,Bc,i),l(e,Pa,i),l(e,Zc,i),l(e,gl,i),l(e,Vc,i),l(e,Ue,i),o(Ue,Et),o(Et,rd),g(La,rd,null),o(Ue,gf),o(Ue,fl),l(e,Xc,i),l(e,Na,i),l(e,Gc,i),l(e,Fa,i),l(e,Yc,i),l(e,za,i),l(e,Oc,i),g(Da,e,i),l(e,Qc,i),l(e,Wa,i),l(e,Kc,i),l(e,Ha,i),l(e,ep,i),l(e,Pe,i),o(Pe,Rt),o(Rt,sd),g(Ea,sd,null),o(Pe,ff),o(Pe,_l),l(e,tp,i),l(e,Ra,i),l(e,op,i),l(e,Ba,i),l(e,np,i),l(e,Za,i),l(e,ap,i),g(Va,e,i),l(e,rp,i),l(e,Xa,i),l(e,sp,i),l(e,Le,i),o(Le,Bt),o(Bt,id),g(Ga,id,null),o(Le,_f),o(Le,bl),l(e,ip,i),l(e,Ya,i),l(e,lp,i),g(Oa,e,i),l(e,dp,i),l(e,Qa,i),l(e,cp,i),l(e,Ka,i),l(e,pp,i),g(er,e,i),l(e,mp,i),l(e,tr,i),l(e,up,i),l(e,or,i),l(e,hp,i),l(e,nr,i),l(e,gp,i),l(e,ar,i),l(e,fp,i),g(rr,e,i),l(e,_p,i),l(e,sr,i),l(e,bp,i),l(e,ir,i),l(e,vp,i),l(e,Ne,i),o(Ne,Zt),o(Zt,ld),g(lr,ld,null),o(Ne,bf),o(Ne,vl),l(e,yp,i),l(e,dr,i),l(e,Tp,i),l(e,cr,i),l(e,wp,i),l(e,pr,i),l(e,xp,i),l(e,mr,i),l(e,Mp,i),g(ur,e,i),l(e,$p,i),l(e,hr,i),l(e,kp,i),l(e,gr,i),l(e,Ap,i),l(e,Fe,i),o(Fe,Vt),o(Vt,dd),g(fr,dd,null),o(Fe,vf),o(Fe,yl),l(e,qp,i),l(e,_r,i),l(e,Cp,i),l(e,br,i),l(e,jp,i),l(e,vr,i),l(e,Ip,i),l(e,yr,i),l(e,Jp,i),l(e,Tr,i),l(e,Sp,i),l(e,wr,i),l(e,Up,i),l(e,ze,i),o(ze,Xt),o(Xt,cd),g(xr,cd,null),o(ze,yf),o(ze,Tl),l(e,Pp,i),l(e,Mr,i),l(e,Lp,i),l(e,$r,i),l(e,Np,i),l(e,kr,i),l(e,Fp,i),l(e,Ar,i),l(e,zp,i),l(e,qr,i),l(e,Dp,i),l(e,De,i),o(De,Gt),o(Gt,pd),g(Cr,pd,null),o(De,Tf),o(De,wl),l(e,Wp,i),l(e,jr,i),l(e,Hp,i),g(Yt,e,i),l(e,Ep,i),l(e,Ir,i),l(e,Rp,i),l(e,Jr,i),l(e,Bp,i),l(e,Sr,i),l(e,Zp,i),l(e,Ur,i),l(e,Vp,i),g(Pr,e,i),l(e,Xp,i),l(e,Lr,i),l(e,Gp,i),l(e,Nr,i),l(e,Yp,i),l(e,Fr,i),l(e,Op,i),l(e,We,i),o(We,Ot),o(Ot,md),g(zr,md,null),o(We,wf),o(We,xl),l(e,Qp,i),l(e,Dr,i),l(e,Kp,i),l(e,Wr,i),l(e,em,i),l(e,Hr,i),l(e,tm,i),l(e,we,i),o(we,Ml),o(we,xf),o(we,U),o(U,$l),o(U,Mf),g(Er,U,null),o(U,$f),o(U,kl),o(U,kf),g(Rr,U,null),o(U,Af),o(U,Al),o(U,qf),g(Br,U,null),o(U,Cf),o(U,ql),o(U,jf),g(Zr,U,null),o(we,If),o(we,Cl),l(e,om,i),g(Vr,e,i),l(e,nm,i),l(e,Qt,i),l(e,am,i),g(Xr,e,i),l(e,rm,i),l(e,Gr,i),l(e,sm,i),l(e,Yr,i),l(e,im,i),l(e,Or,i),l(e,lm,i),l(e,ud,i),dm=!0},p(e,[i]){const Qr={};i&2&&(Qr.$$scope={dirty:i,ctx:e}),Xe.$set(Qr);const hd={};i&2&&(hd.$$scope={dirty:i,ctx:e}),nt.$set(hd);const gd={};i&2&&(gd.$$scope={dirty:i,ctx:e}),at.$set(gd);const Kr={};i&2&&(Kr.$$scope={dirty:i,ctx:e}),lt.$set(Kr);const fd={};i&2&&(fd.$$scope={dirty:i,ctx:e}),mt.$set(fd);const _d={};i&2&&(_d.$$scope={dirty:i,ctx:e}),_t.$set(_d);const x={};i&2&&(x.$$scope={dirty:i,ctx:e}),yt.$set(x);const es={};i&2&&(es.$$scope={dirty:i,ctx:e}),Tt.$set(es);const ts={};i&2&&(ts.$$scope={dirty:i,ctx:e}),wt.$set(ts);const He={};i&2&&(He.$$scope={dirty:i,ctx:e}),xt.$set(He);const os={};i&2&&(os.$$scope={dirty:i,ctx:e}),Mt.$set(os);const ns={};i&2&&(ns.$$scope={dirty:i,ctx:e}),$t.$set(ns);const Ee={};i&2&&(Ee.$$scope={dirty:i,ctx:e}),kt.$set(Ee);const Re={};i&2&&(Re.$$scope={dirty:i,ctx:e}),At.$set(Re);const as={};i&2&&(as.$$scope={dirty:i,ctx:e}),qt.$set(as);const Q={};i&2&&(Q.$$scope={dirty:i,ctx:e}),Ct.$set(Q);const Be={};i&2&&(Be.$$scope={dirty:i,ctx:e}),jt.$set(Be);const rs={};i&2&&(rs.$$scope={dirty:i,ctx:e}),It.$set(rs);const Ze={};i&2&&(Ze.$$scope={dirty:i,ctx:e}),Yt.$set(Ze)},i(e){dm||(f(so.$$.fragment,e),f(Xe.$$.fragment,e),f(ho.$$.fragment,e),f(fo.$$.fragment,e),f(_o.$$.fragment,e),f(bo.$$.fragment,e),f(vo.$$.fragment,e),f(yo.$$.fragment,e),f(To.$$.fragment,e),f(wo.$$.fragment,e),f(xo.$$.fragment,e),f(Mo.$$.fragment,e),f($o.$$.fragment,e),f(ko.$$.fragment,e),f(Ao.$$.fragment,e),f(qo.$$.fragment,e),f(Co.$$.fragment,e),f(jo.$$.fragment,e),f(Io.$$.fragment,e),f(Jo.$$.fragment,e),f(So.$$.fragment,e),f(Uo.$$.fragment,e),f(nt.$$.fragment,e),f(Po.$$.fragment,e),f(at.$$.fragment,e),f(Lo.$$.fragment,e),f(No.$$.fragment,e),f(Fo.$$.fragment,e),f(zo.$$.fragment,e),f(Do.$$.fragment,e),f(lt.$$.fragment,e),f(Wo.$$.fragment,e),f(Ho.$$.fragment,e),f(Eo.$$.fragment,e),f(Ro.$$.fragment,e),f(Bo.$$.fragment,e),f(mt.$$.fragment,e),f(Zo.$$.fragment,e),f(Vo.$$.fragment,e),f(Xo.$$.fragment,e),f(Go.$$.fragment,e),f(Yo.$$.fragment,e),f(Oo.$$.fragment,e),f(Qo.$$.fragment,e),f(Ko.$$.fragment,e),f(en.$$.fragment,e),f(tn.$$.fragment,e),f(on.$$.fragment,e),f(nn.$$.fragment,e),f(an.$$.fragment,e),f(_t.$$.fragment,e),f(rn.$$.fragment,e),f(sn.$$.fragment,e),f(ln.$$.fragment,e),f(dn.$$.fragment,e),f(cn.$$.fragment,e),f(pn.$$.fragment,e),f(yt.$$.fragment,e),f(mn.$$.fragment,e),f(Tt.$$.fragment,e),f(un.$$.fragment,e),f(wt.$$.fragment,e),f(hn.$$.fragment,e),f(xt.$$.fragment,e),f(gn.$$.fragment,e),f(Mt.$$.fragment,e),f(fn.$$.fragment,e),f($t.$$.fragment,e),f(kt.$$.fragment,e),f(_n.$$.fragment,e),f(At.$$.fragment,e),f(bn.$$.fragment,e),f(qt.$$.fragment,e),f(Ct.$$.fragment,e),f(vn.$$.fragment,e),f(jt.$$.fragment,e),f(It.$$.fragment,e),f(yn.$$.fragment,e),f(Tn.$$.fragment,e),f(wn.$$.fragment,e),f(xn.$$.fragment,e),f(Mn.$$.fragment,e),f($n.$$.fragment,e),f(kn.$$.fragment,e),f(Jn.$$.fragment,e),f(zn.$$.fragment,e),f(Wn.$$.fragment,e),f(En.$$.fragment,e),f(Zn.$$.fragment,e),f(Xn.$$.fragment,e),f(On.$$.fragment,e),f(ea.$$.fragment,e),f(oa.$$.fragment,e),f(na.$$.fragment,e),f(ca.$$.fragment,e),f(ua.$$.fragment,e),f(fa.$$.fragment,e),f(ba.$$.fragment,e),f(ya.$$.fragment,e),f($a.$$.fragment,e),f(ka.$$.fragment,e),f(Ca.$$.fragment,e),f(Ja.$$.fragment,e),f(La.$$.fragment,e),f(Da.$$.fragment,e),f(Ea.$$.fragment,e),f(Va.$$.fragment,e),f(Ga.$$.fragment,e),f(Oa.$$.fragment,e),f(er.$$.fragment,e),f(rr.$$.fragment,e),f(lr.$$.fragment,e),f(ur.$$.fragment,e),f(fr.$$.fragment,e),f(xr.$$.fragment,e),f(Cr.$$.fragment,e),f(Yt.$$.fragment,e),f(Pr.$$.fragment,e),f(zr.$$.fragment,e),f(Er.$$.fragment,e),f(Rr.$$.fragment,e),f(Br.$$.fragment,e),f(Zr.$$.fragment,e),f(Vr.$$.fragment,e),f(Xr.$$.fragment,e),dm=!0)},o(e){_(so.$$.fragment,e),_(Xe.$$.fragment,e),_(ho.$$.fragment,e),_(fo.$$.fragment,e),_(_o.$$.fragment,e),_(bo.$$.fragment,e),_(vo.$$.fragment,e),_(yo.$$.fragment,e),_(To.$$.fragment,e),_(wo.$$.fragment,e),_(xo.$$.fragment,e),_(Mo.$$.fragment,e),_($o.$$.fragment,e),_(ko.$$.fragment,e),_(Ao.$$.fragment,e),_(qo.$$.fragment,e),_(Co.$$.fragment,e),_(jo.$$.fragment,e),_(Io.$$.fragment,e),_(Jo.$$.fragment,e),_(So.$$.fragment,e),_(Uo.$$.fragment,e),_(nt.$$.fragment,e),_(Po.$$.fragment,e),_(at.$$.fragment,e),_(Lo.$$.fragment,e),_(No.$$.fragment,e),_(Fo.$$.fragment,e),_(zo.$$.fragment,e),_(Do.$$.fragment,e),_(lt.$$.fragment,e),_(Wo.$$.fragment,e),_(Ho.$$.fragment,e),_(Eo.$$.fragment,e),_(Ro.$$.fragment,e),_(Bo.$$.fragment,e),_(mt.$$.fragment,e),_(Zo.$$.fragment,e),_(Vo.$$.fragment,e),_(Xo.$$.fragment,e),_(Go.$$.fragment,e),_(Yo.$$.fragment,e),_(Oo.$$.fragment,e),_(Qo.$$.fragment,e),_(Ko.$$.fragment,e),_(en.$$.fragment,e),_(tn.$$.fragment,e),_(on.$$.fragment,e),_(nn.$$.fragment,e),_(an.$$.fragment,e),_(_t.$$.fragment,e),_(rn.$$.fragment,e),_(sn.$$.fragment,e),_(ln.$$.fragment,e),_(dn.$$.fragment,e),_(cn.$$.fragment,e),_(pn.$$.fragment,e),_(yt.$$.fragment,e),_(mn.$$.fragment,e),_(Tt.$$.fragment,e),_(un.$$.fragment,e),_(wt.$$.fragment,e),_(hn.$$.fragment,e),_(xt.$$.fragment,e),_(gn.$$.fragment,e),_(Mt.$$.fragment,e),_(fn.$$.fragment,e),_($t.$$.fragment,e),_(kt.$$.fragment,e),_(_n.$$.fragment,e),_(At.$$.fragment,e),_(bn.$$.fragment,e),_(qt.$$.fragment,e),_(Ct.$$.fragment,e),_(vn.$$.fragment,e),_(jt.$$.fragment,e),_(It.$$.fragment,e),_(yn.$$.fragment,e),_(Tn.$$.fragment,e),_(wn.$$.fragment,e),_(xn.$$.fragment,e),_(Mn.$$.fragment,e),_($n.$$.fragment,e),_(kn.$$.fragment,e),_(Jn.$$.fragment,e),_(zn.$$.fragment,e),_(Wn.$$.fragment,e),_(En.$$.fragment,e),_(Zn.$$.fragment,e),_(Xn.$$.fragment,e),_(On.$$.fragment,e),_(ea.$$.fragment,e),_(oa.$$.fragment,e),_(na.$$.fragment,e),_(ca.$$.fragment,e),_(ua.$$.fragment,e),_(fa.$$.fragment,e),_(ba.$$.fragment,e),_(ya.$$.fragment,e),_($a.$$.fragment,e),_(ka.$$.fragment,e),_(Ca.$$.fragment,e),_(Ja.$$.fragment,e),_(La.$$.fragment,e),_(Da.$$.fragment,e),_(Ea.$$.fragment,e),_(Va.$$.fragment,e),_(Ga.$$.fragment,e),_(Oa.$$.fragment,e),_(er.$$.fragment,e),_(rr.$$.fragment,e),_(lr.$$.fragment,e),_(ur.$$.fragment,e),_(fr.$$.fragment,e),_(xr.$$.fragment,e),_(Cr.$$.fragment,e),_(Yt.$$.fragment,e),_(Pr.$$.fragment,e),_(zr.$$.fragment,e),_(Er.$$.fragment,e),_(Rr.$$.fragment,e),_(Br.$$.fragment,e),_(Zr.$$.fragment,e),_(Vr.$$.fragment,e),_(Xr.$$.fragment,e),dm=!1},d(e){e&&(t($),t(y),t(T),t(M),t(bd),t(io),t(vd),t(lo),t(yd),t(co),t(Td),t(po),t(wd),t(mo),t(xd),t(Md),t(uo),t($d),t(kd),t(go),t(Ad),t($e),t(qd),t(w),t(Cd),t(ke),t(jd),t(O),t(Id),t(Ae),t(Jd),t(q),t(Sd),t(qe),t(Ud),t(W),t(Pd),t(Ce),t(Ld),t(An),t(Nd),t(qn),t(Fd),t(Cn),t(zd),t(jn),t(Dd),t(In),t(Wd),t(je),t(Hd),t(Sn),t(Ed),t(Un),t(Rd),t(Pn),t(Bd),t(Ln),t(Zd),t(Nn),t(Vd),t(Fn),t(Xd),t(Gd),t(Dn),t(Yd),t(Od),t(Hn),t(Qd),t(Kd),t(Rn),t(ec),t(Bn),t(tc),t(oc),t(Vn),t(nc),t(Ie),t(ac),t(Gn),t(rc),t(Yn),t(sc),t(Je),t(ic),t(Qn),t(lc),t(Kn),t(dc),t(cc),t(ta),t(pc),t(mc),t(uc),t(aa),t(hc),t(ra),t(gc),t(sa),t(fc),t(ia),t(_c),t(la),t(bc),t(da),t(vc),t(yc),t(pa),t(Tc),t(ma),t(wc),t(xc),t(ha),t(Mc),t(ga),t($c),t(kc),t(_a),t(Ac),t(qc),t(va),t(Cc),t(jc),t(Ta),t(Ic),t(wa),t(Jc),t(xa),t(Sc),t(Ma),t(Uc),t(Pc),t(Wt),t(Lc),t(Nc),t(Aa),t(Fc),t(qa),t(zc),t(Dc),t(ja),t(Wc),t(Ia),t(Hc),t(Se),t(Ec),t(Sa),t(Rc),t(Ua),t(Bc),t(Pa),t(Zc),t(gl),t(Vc),t(Ue),t(Xc),t(Na),t(Gc),t(Fa),t(Yc),t(za),t(Oc),t(Qc),t(Wa),t(Kc),t(Ha),t(ep),t(Pe),t(tp),t(Ra),t(op),t(Ba),t(np),t(Za),t(ap),t(rp),t(Xa),t(sp),t(Le),t(ip),t(Ya),t(lp),t(dp),t(Qa),t(cp),t(Ka),t(pp),t(mp),t(tr),t(up),t(or),t(hp),t(nr),t(gp),t(ar),t(fp),t(_p),t(sr),t(bp),t(ir),t(vp),t(Ne),t(yp),t(dr),t(Tp),t(cr),t(wp),t(pr),t(xp),t(mr),t(Mp),t($p),t(hr),t(kp),t(gr),t(Ap),t(Fe),t(qp),t(_r),t(Cp),t(br),t(jp),t(vr),t(Ip),t(yr),t(Jp),t(Tr),t(Sp),t(wr),t(Up),t(ze),t(Pp),t(Mr),t(Lp),t($r),t(Np),t(kr),t(Fp),t(Ar),t(zp),t(qr),t(Dp),t(De),t(Wp),t(jr),t(Hp),t(Ep),t(Ir),t(Rp),t(Jr),t(Bp),t(Sr),t(Zp),t(Ur),t(Vp),t(Xp),t(Lr),t(Gp),t(Nr),t(Yp),t(Fr),t(Op),t(We),t(Qp),t(Dr),t(Kp),t(Wr),t(em),t(Hr),t(tm),t(we),t(om),t(nm),t(Qt),t(am),t(rm),t(Gr),t(sm),t(Yr),t(im),t(Or),t(lm),t(ud)),t(p),b(so),b(Xe,e),b(ho,e),b(fo),b(_o),b(bo),b(vo),b(yo),b(To),b(wo),b(xo),b(Mo),b($o),b(ko),b(Ao),b(qo),b(Co),b(jo),b(Io),b(Jo),b(So),b(Uo),b(nt),b(Po),b(at),b(Lo),b(No),b(Fo),b(zo),b(Do),b(lt),b(Wo),b(Ho),b(Eo),b(Ro),b(Bo),b(mt),b(Zo),b(Vo),b(Xo),b(Go),b(Yo),b(Oo),b(Qo),b(Ko),b(en),b(tn),b(on),b(nn),b(an),b(_t),b(rn),b(sn),b(ln),b(dn),b(cn),b(pn),b(yt),b(mn),b(Tt),b(un),b(wt),b(hn),b(xt),b(gn),b(Mt),b(fn),b($t),b(kt),b(_n),b(At),b(bn),b(qt),b(Ct),b(vn),b(jt),b(It),b(yn),b(Tn),b(wn),b(xn),b(Mn),b($n),b(kn),b(Jn),b(zn,e),b(Wn,e),b(En,e),b(Zn,e),b(Xn),b(On),b(ea,e),b(oa,e),b(na,e),b(ca,e),b(ua,e),b(fa,e),b(ba,e),b(ya,e),b($a,e),b(ka,e),b(Ca,e),b(Ja),b(La),b(Da,e),b(Ea),b(Va,e),b(Ga),b(Oa,e),b(er,e),b(rr,e),b(lr),b(ur,e),b(fr),b(xr),b(Cr),b(Yt,e),b(Pr,e),b(zr),b(Er),b(Rr),b(Br),b(Zr),b(Vr,e),b(Xr,e)}}}const QT={local:"trainer",sections:[{local:"transformers.Trainer",title:"Trainer"},{local:"transformers.Seq2SeqTrainer",title:"Seq2SeqTrainer"},{local:"transformers.TrainingArguments",title:"TrainingArguments"},{local:"transformers.Seq2SeqTrainingArguments",title:"Seq2SeqTrainingArguments"},{local:"checkpoints",title:"Checkpoints"},{local:"logging",title:"Logging"},{local:"randomness",title:"Randomness"},{local:"specific-gpus-selection",title:"Specific GPUs Selection"},{local:"trainer-integrations",sections:[{local:"cuda-extension-installation-notes",sections:[{local:"possible-problem-1",title:"Possible problem #1"},{local:"possible-problem-2",title:"Possible problem #2"},{local:"possible-problem-3",title:"Possible problem #3"}],title:"CUDA Extension Installation Notes"},{local:"pytorch-fully-sharded-data-parallel",title:"PyTorch Fully Sharded Data parallel"},{local:"pytorchxla-fully-sharded-data-parallel",title:"PyTorch/XLA Fully Sharded Data parallel"},{local:"using-trainer-for-accelerated-pytorch-training-on-mac",title:"Using Trainer for accelerated PyTorch Training on Mac "}],title:"Trainer Integrations"},{local:"using-accelerate-launcher-with-trainer",title:"Using Accelerate Launcher with Trainer"}],title:"Trainer"};function KT(C){return qT(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class iw extends CT{constructor(p){super(),jT(this,p,KT,OT,AT,{})}}export{iw as component};
