import{s as um,o as gm,n as F}from"../chunks/scheduler.9bc65507.js";import{S as hm,i as fm,g as r,s as o,r as p,A as _m,h as a,f as d,c as n,j as T,u,x as l,k as w,y as e,a as A,v as g,d as h,t as f,w as _}from"../chunks/index.707bf1b6.js";import{T as Jo}from"../chunks/Tip.c2ecdbf4.js";import{D as x}from"../chunks/Docstring.17db21ae.js";import{C as ve}from"../chunks/CodeBlock.54a9f38d.js";import{E as be}from"../chunks/ExampleCodeBlock.4f515aa9.js";import{H as pa}from"../chunks/Heading.342b1fa6.js";function bm(C){let i,$=`The <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a> class is optimized for 🤗 Transformers models and can have surprising behaviors
when used with other models. When using it with your own model, make sure:`,m,c,q=`<li>your model always return tuples or subclasses of <a href="/docs/transformers/main/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 <code>label_names</code> in <a href="/docs/transformers/main/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> to indicate their name to the <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a>) but none of them should be named <code>&quot;label&quot;</code></li>`;return{c(){i=r("p"),i.innerHTML=$,m=o(),c=r("ul"),c.innerHTML=q},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-rcnrln"&&(i.innerHTML=$),m=n(s),c=a(s,"UL",{"data-svelte-h":!0}),l(c)!=="svelte-my3c2"&&(c.innerHTML=q)},m(s,k){A(s,i,k),A(s,m,k),A(s,c,k)},p:F,d(s){s&&(d(i),d(m),d(c))}}}function vm(C){let i,$=`To use this method, you need to have provided a <code>model_init</code> when initializing your <a href="/docs/transformers/main/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/main/en/main_classes/trainer#transformers.Trainer">Trainer</a> and override the method <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer.create_optimizer_and_scheduler">create_optimizer_and_scheduler()</a> for custom
optimizer/scheduler.`;return{c(){i=r("p"),i.innerHTML=$},l(m){i=a(m,"P",{"data-svelte-h":!0}),l(i)!=="svelte-1kxt9b1"&&(i.innerHTML=$)},m(m,c){A(m,i,c)},p:F,d(m){m&&d(i)}}}function ym(C){let i,$="Now when this method is run, you will see a report that will include: :",m,c,q;return c=new ve({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(){i=r("p"),i.textContent=$,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-2hs27k"&&(i.textContent=$),m=n(s),u(c.$$.fragment,s)},m(s,k){A(s,i,k),A(s,m,k),g(c,s,k),q=!0},p:F,i(s){q||(h(c.$$.fragment,s),q=!0)},o(s){f(c.$$.fragment,s),q=!1},d(s){s&&(d(i),d(m)),_(c,s)}}}function Tm(C){let i,$=`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(){i=r("p"),i.textContent=$},l(m){i=a(m,"P",{"data-svelte-h":!0}),l(i)!=="svelte-vq7haq"&&(i.textContent=$)},m(m,c){A(m,i,c)},p:F,d(m){m&&d(i)}}}function wm(C){let i,$=`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(){i=r("p"),i.textContent=$},l(m){i=a(m,"P",{"data-svelte-h":!0}),l(i)!=="svelte-1c3ugfb"&&(i.textContent=$)},m(m,c){A(m,i,c)},p:F,d(m){m&&d(i)}}}function xm(C){let i,$="Example:",m,c,q;return c=new ve({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(){i=r("p"),i.textContent=$,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=$),m=n(s),u(c.$$.fragment,s)},m(s,k){A(s,i,k),A(s,m,k),g(c,s,k),q=!0},p:F,i(s){q||(h(c.$$.fragment,s),q=!0)},o(s){f(c.$$.fragment,s),q=!1},d(s){s&&(d(i),d(m)),_(c,s)}}}function qm(C){let i,$="Example:",m,c,q;return c=new ve({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(){i=r("p"),i.textContent=$,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=$),m=n(s),u(c.$$.fragment,s)},m(s,k){A(s,i,k),A(s,m,k),g(c,s,k),q=!0},p:F,i(s){q||(h(c.$$.fragment,s),q=!0)},o(s){f(c.$$.fragment,s),q=!1},d(s){s&&(d(i),d(m)),_(c,s)}}}function $m(C){let i,$="Example:",m,c,q;return c=new ve({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(){i=r("p"),i.textContent=$,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=$),m=n(s),u(c.$$.fragment,s)},m(s,k){A(s,i,k),A(s,m,k),g(c,s,k),q=!0},p:F,i(s){q||(h(c.$$.fragment,s),q=!0)},o(s){f(c.$$.fragment,s),q=!1},d(s){s&&(d(i),d(m)),_(c,s)}}}function km(C){let i,$="Example:",m,c,q;return c=new ve({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(){i=r("p"),i.textContent=$,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=$),m=n(s),u(c.$$.fragment,s)},m(s,k){A(s,i,k),A(s,m,k),g(c,s,k),q=!0},p:F,i(s){q||(h(c.$$.fragment,s),q=!0)},o(s){f(c.$$.fragment,s),q=!1},d(s){s&&(d(i),d(m)),_(c,s)}}}function Am(C){let i,$="Example:",m,c,q;return c=new ve({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(){i=r("p"),i.textContent=$,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=$),m=n(s),u(c.$$.fragment,s)},m(s,k){A(s,i,k),A(s,m,k),g(c,s,k),q=!0},p:F,i(s){q||(h(c.$$.fragment,s),q=!0)},o(s){f(c.$$.fragment,s),q=!1},d(s){s&&(d(i),d(m)),_(c,s)}}}function Sm(C){let i,$=`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/main/en/main_classes/trainer#transformers.Trainer.save_model">save_model()</a> will also trigger a push.`;return{c(){i=r("p"),i.innerHTML=$},l(m){i=a(m,"P",{"data-svelte-h":!0}),l(i)!=="svelte-4hhjl7"&&(i.innerHTML=$)},m(m,c){A(m,i,c)},p:F,d(m){m&&d(i)}}}function Cm(C){let i,$="Example:",m,c,q;return c=new ve({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(){i=r("p"),i.textContent=$,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=$),m=n(s),u(c.$$.fragment,s)},m(s,k){A(s,i,k),A(s,m,k),g(c,s,k),q=!0},p:F,i(s){q||(h(c.$$.fragment,s),q=!0)},o(s){f(c.$$.fragment,s),q=!1},d(s){s&&(d(i),d(m)),_(c,s)}}}function Pm(C){let i,$="Example:",m,c,q;return c=new ve({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(){i=r("p"),i.textContent=$,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=$),m=n(s),u(c.$$.fragment,s)},m(s,k){A(s,i,k),A(s,m,k),g(c,s,k),q=!0},p:F,i(s){q||(h(c.$$.fragment,s),q=!0)},o(s){f(c.$$.fragment,s),q=!1},d(s){s&&(d(i),d(m)),_(c,s)}}}function zm(C){let i,$="Calling this method will automatically set <code>self.do_predict</code> to <code>True</code>.";return{c(){i=r("p"),i.innerHTML=$},l(m){i=a(m,"P",{"data-svelte-h":!0}),l(i)!=="svelte-ci4epi"&&(i.innerHTML=$)},m(m,c){A(m,i,c)},p:F,d(m){m&&d(i)}}}function Mm(C){let i,$="Example:",m,c,q;return c=new ve({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(){i=r("p"),i.textContent=$,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=$),m=n(s),u(c.$$.fragment,s)},m(s,k){A(s,i,k),A(s,m,k),g(c,s,k),q=!0},p:F,i(s){q||(h(c.$$.fragment,s),q=!0)},o(s){f(c.$$.fragment,s),q=!1},d(s){s&&(d(i),d(m)),_(c,s)}}}function Fm(C){let i,$="Calling this method will automatically set <code>self.do_train</code> to <code>True</code>.";return{c(){i=r("p"),i.innerHTML=$},l(m){i=a(m,"P",{"data-svelte-h":!0}),l(i)!=="svelte-102o7rb"&&(i.innerHTML=$)},m(m,c){A(m,i,c)},p:F,d(m){m&&d(i)}}}function Im(C){let i,$="Example:",m,c,q;return c=new ve({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(){i=r("p"),i.textContent=$,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=$),m=n(s),u(c.$$.fragment,s)},m(s,k){A(s,i,k),A(s,m,k),g(c,s,k),q=!0},p:F,i(s){q||(h(c.$$.fragment,s),q=!0)},o(s){f(c.$$.fragment,s),q=!1},d(s){s&&(d(i),d(m)),_(c,s)}}}function Dm(C){let i,$,m,c,q,s,k,dd='The <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a> class provides an API for feature-complete training in PyTorch, and it supports distributed training on multiple GPUs/TPUs, mixed precision for <a href="https://nvidia.github.io/apex/" rel="nofollow">NVIDIA GPUs</a>, <a href="https://rocm.docs.amd.com/en/latest/rocm.html" rel="nofollow">AMD GPUs</a>, and <a href="https://pytorch.org/docs/stable/amp.html" rel="nofollow"><code>torch.amp</code></a> for PyTorch. <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a> goes hand-in-hand with the <a href="/docs/transformers/main/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> class, which offers a wide range of options to customize how a model is trained. Together, these two classes provide a complete training API.',ua,Tt,cd='<a href="/docs/transformers/main/en/main_classes/trainer#transformers.Seq2SeqTrainer">Seq2SeqTrainer</a> and <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Seq2SeqTrainingArguments">Seq2SeqTrainingArguments</a> inherit from the <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a> and <code>TrainingArgument</code> classes and they’re adapted for training models for sequence-to-sequence tasks such as summarization or translation.',ga,ke,ha,wt,fa,b,xt,Oa,Eo,md="Trainer is a simple but feature-complete training and eval loop for PyTorch, optimized for 🤗 Transformers.",Ha,Bo,pd="Important attributes:",Ra,Go,ud=`<li><strong>model</strong> — Always points to the core model. If using a transformers model, it will be a <a href="/docs/transformers/main/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>`,Ja,Ae,qt,Ea,Vo,gd='Add a callback to the current list of <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>.',Ba,Se,$t,Ga,Xo,hd=`A helper wrapper that creates an appropriate context manager for <code>autocast</code> while feeding it the desired
arguments, depending on the situation.`,Va,X,kt,Xa,Zo,fd="How the loss is computed by Trainer. By default, all models return the loss in the first element.",Za,Yo,_d="Subclass and override for custom behavior.",Ya,Ce,At,Qa,Qo,bd="A helper wrapper to group together context managers.",Ka,Pe,St,es,Ko,vd="Creates a draft of a model card using the information available to the <code>Trainer</code>.",ts,Z,Ct,os,en,yd="Setup the optimizer.",ns,tn,Td=`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.`,rs,Y,Pt,as,on,wd="Setup the optimizer and the learning rate scheduler.",ss,nn,xd=`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.`,is,ze,zt,ls,rn,qd=`Setup the scheduler. The optimizer of the trainer must have been set up either before this method is called or
passed as an argument.`,ds,L,Mt,cs,an,$d="Run evaluation and returns metrics.",ms,sn,kd=`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).`,ps,ln,Ad="You can also subclass and override this method to inject custom behavior.",us,Q,Ft,gs,dn,Sd="Prediction/evaluation loop, shared by <code>Trainer.evaluate()</code> and <code>Trainer.predict()</code>.",hs,cn,Cd="Works both with or without labels.",fs,Me,It,_s,mn,Pd=`For models that inherit from <a href="/docs/transformers/main/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.`,bs,K,Dt,vs,pn,zd="Get all parameter names that weight decay will be applied to",ys,un,Md=`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`,Ts,ee,Wt,ws,gn,Fd="Returns the evaluation <code>~torch.utils.data.DataLoader</code>.",xs,hn,Id="Subclass and override this method if you want to inject some custom behavior.",qs,Fe,Ut,$s,fn,Dd="Returns the learning rate of each parameter from self.optimizer.",ks,Ie,Lt,As,_n,Wd="Get the number of trainable parameters.",Ss,De,Nt,Cs,bn,Ud="Returns the optimizer class and optimizer parameters based on the training arguments.",Ps,We,jt,zs,vn,Ld="Returns optimizer group for a parameter if given, else returns all optimizer groups for params.",Ms,te,Ot,Fs,yn,Nd="Returns the test <code>~torch.utils.data.DataLoader</code>.",Is,Tn,jd="Subclass and override this method if you want to inject some custom behavior.",Ds,N,Ht,Ws,wn,Od="Returns the training <code>~torch.utils.data.DataLoader</code>.",Us,xn,Hd=`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.`,Ls,qn,Rd="Subclass and override this method if you want to inject some custom behavior.",Ns,oe,Rt,js,$n,Jd=`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.`,Os,Ue,Hs,Le,Jt,Rs,kn,Ed="Initializes a git repo in <code>self.args.hub_model_id</code>.",Js,Ne,Et,Es,An,Bd=`Whether or not this process is the local (e.g., on one machine if training in a distributed fashion on several
machines) main process.`,Bs,je,Bt,Gs,Sn,Gd=`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).`,Vs,ne,Gt,Xs,Cn,Vd="Log <code>logs</code> on the various objects watching training.",Zs,Pn,Xd="Subclass and override this method to inject custom behavior.",Ys,P,Vt,Qs,zn,Zd="Log metrics in a specially formatted way",Ks,Mn,Yd="Under distributed environment this is done only for a process with rank 0.",ei,Fn,Qd="Notes on memory reports:",ti,In,Kd="In order to get memory usage report you need to install <code>psutil</code>. You can do that with <code>pip install psutil</code>.",oi,Oe,ni,Dn,ec="<strong>Understanding the reports:</strong>",ri,Wn,tc=`<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>`,ai,Un,oc=`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.`,si,Ln,nc=`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.`,ii,Nn,rc=`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.`,li,jn,ac=`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.`,di,On,sc=`Note that this tracker doesn’t account for memory allocations outside of <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a>’s <code>__init__</code>, <code>train</code>,
<code>evaluate</code> and <code>predict</code> calls.`,ci,Hn,ic=`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.`,mi,Rn,lc=`This also means that if any other tool that is used along the <a href="/docs/transformers/main/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/main/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.`,pi,Jn,dc="For best performance you may want to consider turning the memory profiling off for production runs.",ui,He,Xt,gi,En,cc="Reformat Trainer metrics values to a human-readable format",hi,Re,Zt,fi,Bn,mc=`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`,_i,Je,Yt,bi,Gn,pc="Helper to get number of tokens in a <code>~torch.utils.data.DataLoader</code> by enumerating dataloader.",vi,re,Qt,yi,Vn,uc='Remove a callback from the current list of <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> and returns it.',Ti,Xn,gc="If the callback is not found, returns <code>None</code> (and no error is raised).",wi,I,Kt,xi,Zn,hc="Run prediction and returns predictions and potential metrics.",qi,Yn,fc=`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>.`,$i,Ee,ki,Qn,_c="Returns: <em>NamedTuple</em> A namedtuple with the following keys:",Ai,Kn,bc=`<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>`,Si,ae,eo,Ci,er,vc="Prediction/evaluation loop, shared by <code>Trainer.evaluate()</code> and <code>Trainer.predict()</code>.",Pi,tr,yc="Works both with or without labels.",zi,se,to,Mi,or,Tc="Perform an evaluation step on <code>model</code> using <code>inputs</code>.",Fi,nr,wc="Subclass and override to inject custom behavior.",Ii,Be,oo,Di,rr,xc="Sets values in the deepspeed plugin based on the Trainer args",Wi,Ge,no,Ui,ar,qc="Upload <code>self.model</code> and <code>self.tokenizer</code> to the 🤗 model hub on the repo <code>self.args.hub_model_id</code>.",Li,Ve,ro,Ni,sr,$c='Remove a callback from the current list of <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>.',ji,j,ao,Oi,ir,kc="Save metrics into a json file for that split, e.g. <code>train_results.json</code>.",Hi,lr,Ac="Under distributed environment this is done only for a process with rank 0.",Ri,dr,Sc=`To understand the metrics please read the docstring of <a href="/docs/transformers/main/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.`,Ji,ie,so,Ei,cr,Cc="Will save the model, so you can reload it using <code>from_pretrained()</code>.",Bi,mr,Pc="Will only save from the main process.",Gi,le,io,Vi,pr,zc="Saves the Trainer state, since Trainer.save_model saves only the tokenizer with the model",Xi,ur,Mc="Under distributed environment this is done only for a process with rank 0.",Zi,Xe,lo,Yi,gr,Fc="Main training entry point.",Qi,de,co,Ki,hr,Ic="Perform a training step on a batch of inputs.",el,fr,Dc="Subclass and override to inject custom behavior.",_a,mo,ba,G,po,tl,O,uo,ol,_r,Wc="Run evaluation and returns metrics.",nl,br,Uc=`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).`,rl,vr,Lc="You can also subclass and override this method to inject custom behavior.",al,D,go,sl,yr,Nc="Run prediction and returns predictions and potential metrics.",il,Tr,jc=`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>.`,ll,Ze,dl,wr,Oc="Returns: <em>NamedTuple</em> A namedtuple with the following keys:",cl,xr,Hc=`<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>`,va,ho,ya,S,fo,ml,qr,Rc=`TrainingArguments is the subset of the arguments we use in our example scripts <strong>which relate to the training loop
itself</strong>.`,pl,$r,Jc=`Using <a href="/docs/transformers/main/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.`,ul,W,_o,gl,kr,Ec=`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.`,hl,Ar,Bc=`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.`,fl,Sr,Gc=`For the replica processes the log level defaults to <code>logging.WARNING</code> unless overridden by <code>log_level_replica</code>
argument.`,_l,Cr,Vc="The choice between the main and replica process settings is made according to the return value of <code>should_log</code>.",bl,Ye,bo,vl,Pr,Xc="Get number of steps used for a linear warmup.",yl,ce,vo,Tl,zr,Zc=`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.`,wl,Mr,Yc=`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.`,xl,me,yo,ql,Fr,Qc="A method that regroups all arguments linked to the dataloaders creation.",$l,Qe,kl,pe,To,Al,Ir,Kc="A method that regroups all arguments linked to evaluation.",Sl,Ke,Cl,ue,wo,Pl,Dr,em="A method that regroups all arguments linked to logging.",zl,et,Ml,ge,xo,Fl,Wr,tm="A method that regroups all arguments linked to the learning rate scheduler and its hyperparameters.",Il,tt,Dl,he,qo,Wl,Ur,om="A method that regroups all arguments linked to the optimizer and its hyperparameters.",Ul,ot,Ll,H,$o,Nl,Lr,nm="A method that regroups all arguments linked to synchronizing checkpoints with the Hub.",jl,nt,Ol,rt,Hl,fe,ko,Rl,Nr,rm="A method that regroups all arguments linked to checkpoint saving.",Jl,at,El,R,Ao,Bl,jr,am="A method that regroups all basic arguments linked to testing on a held-out dataset.",Gl,st,Vl,it,Xl,J,So,Zl,Or,sm="A method that regroups all basic arguments linked to the training.",Yl,lt,Ql,dt,Kl,ct,Co,ed,Hr,im=`Serializes this instance while replace <code>Enum</code> by their values (for JSON serialization support). It obfuscates
the token values by removing their value.`,td,mt,Po,od,Rr,lm="Serializes this instance to a JSON string.",nd,pt,zo,rd,Jr,dm="Sanitized serialization to use with TensorBoard’s hparams",Ta,Mo,wa,U,Fo,ad,Er,cm=`TrainingArguments is the subset of the arguments we use in our example scripts <strong>which relate to the training loop
itself</strong>.`,sd,Br,mm=`Using <a href="/docs/transformers/main/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.`,id,ut,Io,ld,Gr,pm=`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.`,xa,ma,qa;return q=new pa({props:{title:"Trainer",local:"trainer",headingTag:"h1"}}),ke=new Jo({props:{warning:!0,$$slots:{default:[bm]},$$scope:{ctx:C}}}),wt=new pa({props:{title:"Trainer",local:"api-reference ][ transformers.Trainer",headingTag:"h2"}}),xt=new x({props:{name:"class transformers.Trainer",anchor:"transformers.Trainer",parameters:[{name:"model",val:": Union = None"},{name:"args",val:": TrainingArguments = None"},{name:"data_collator",val:": Optional = None"},{name:"train_dataset",val:": Union = None"},{name:"eval_dataset",val:": Union = None"},{name:"tokenizer",val:": Optional = None"},{name:"model_init",val:": Optional = None"},{name:"compute_metrics",val:": Optional = None"},{name:"callbacks",val:": Optional = None"},{name:"optimizers",val:": Tuple = (None, None)"},{name:"preprocess_logits_for_metrics",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.Trainer.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/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/main/en/main_classes/trainer#transformers.Trainer">Trainer</a> is optimized to work with the <a href="/docs/transformers/main/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/main/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/main/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/main/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/main/en/main_classes/data_collator#transformers.DataCollatorWithPadding">DataCollatorWithPadding</a> otherwise.`,name:"data_collator"},{anchor:"transformers.Trainer.train_dataset",description:`<strong>train_dataset</strong> (Union[<code>torch.utils.data.Dataset</code>, <code>torch.utils.data.IterableDataset</code>, <code>datasets.Dataset</code>], <em>optional</em>) &#x2014;
The dataset to use for training. If it is a <a href="https://huggingface.co/docs/datasets/main/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>, <code>datasets.Dataset</code>]), <em>optional</em>) &#x2014;
The dataset to use for evaluation. If it is a <a href="https://huggingface.co/docs/datasets/main/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/main/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/main/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/main/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/main/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/main/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>, defaults to <code>(None, None)</code>) &#x2014;
A tuple containing the optimizer and the scheduler to use. Will default to an instance of <a href="/docs/transformers/main/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> on your
model and a scheduler given by <a href="/docs/transformers/main/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/main/src/transformers/trainer.py#L269"}}),qt=new x({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 <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>) &#x2014;
A <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> class or an instance of a <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>. In the
first case, will instantiate a member of that class.`,name:"callback"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L708"}}),$t=new x({props:{name:"autocast_smart_context_manager",anchor:"transformers.Trainer.autocast_smart_context_manager",parameters:[{name:"cache_enabled",val:": Optional = True"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3090"}}),kt=new x({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/main/src/transformers/trainer.py#L3141"}}),At=new x({props:{name:"compute_loss_context_manager",anchor:"transformers.Trainer.compute_loss_context_manager",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3084"}}),St=new x({props:{name:"create_model_card",anchor:"transformers.Trainer.create_model_card",parameters:[{name:"language",val:": Optional = None"},{name:"license",val:": Optional = None"},{name:"tags",val:": Union = None"},{name:"model_name",val:": Optional = None"},{name:"finetuned_from",val:": Optional = None"},{name:"tasks",val:": Union = None"},{name:"dataset_tags",val:": Union = None"},{name:"dataset",val:": Union = None"},{name:"dataset_args",val:": Union = 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/main/src/transformers/trainer.py#L3927"}}),Ct=new x({props:{name:"create_optimizer",anchor:"transformers.Trainer.create_optimizer",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1001"}}),Pt=new x({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/main/src/transformers/trainer.py#L974"}}),zt=new x({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/main/src/transformers/trainer.py#L1361"}}),Mt=new x({props:{name:"evaluate",anchor:"transformers.Trainer.evaluate",parameters:[{name:"eval_dataset",val:": Union = None"},{name:"ignore_keys",val:": Optional = None"},{name:"metric_key_prefix",val:": str = 'eval'"}],parametersDescription:[{anchor:"transformers.Trainer.evaluate.eval_dataset",description:`<strong>eval_dataset</strong> (Union[<code>Dataset</code>, Dict[str, <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/main/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. Datasets must implement the
<code>__len__</code> method.</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>If you pass a dictionary with names of datasets as keys and datasets as values, evaluate will run
separate evaluations on each dataset. This can be useful to monitor how training affects other
datasets or simply to get a more fine-grained evaluation.
When used with <code>load_best_model_at_end</code>, make sure <code>metric_for_best_model</code> references exactly one
of the datasets. If you, for example, pass in <code>{&quot;data1&quot;: data1, &quot;data2&quot;: data2}</code> for two datasets
<code>data1</code> and <code>data2</code>, you could specify <code>metric_for_best_model=&quot;eval_data1_loss&quot;</code> for using the
loss on <code>data1</code> and <code>metric_for_best_model=&quot;eval_data1_loss&quot;</code> for the loss on <code>data2</code>.</p>

					</div>`,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/main/src/transformers/trainer.py#L3390",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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>
`}}),Ft=new x({props:{name:"evaluation_loop",anchor:"transformers.Trainer.evaluation_loop",parameters:[{name:"dataloader",val:": DataLoader"},{name:"description",val:": str"},{name:"prediction_loss_only",val:": Optional = None"},{name:"ignore_keys",val:": Optional = None"},{name:"metric_key_prefix",val:": str = 'eval'"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3553"}}),It=new x({props:{name:"floating_point_ops",anchor:"transformers.Trainer.floating_point_ops",parameters:[{name:"inputs",val:": Dict"}],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/main/src/transformers/trainer.py#L3891",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>int</code></p>
`}}),Dt=new x({props:{name:"get_decay_parameter_names",anchor:"transformers.Trainer.get_decay_parameter_names",parameters:[{name:"model",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L990"}}),Wt=new x({props:{name:"get_eval_dataloader",anchor:"transformers.Trainer.get_eval_dataloader",parameters:[{name:"eval_dataset",val:": Optional = 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/main/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/main/src/transformers/trainer.py#L893"}}),Ut=new x({props:{name:"get_learning_rates",anchor:"transformers.Trainer.get_learning_rates",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1065"}}),Lt=new x({props:{name:"get_num_trainable_parameters",anchor:"transformers.Trainer.get_num_trainable_parameters",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1059"}}),Nt=new x({props:{name:"get_optimizer_cls_and_kwargs",anchor:"transformers.Trainer.get_optimizer_cls_and_kwargs",parameters:[{name:"args",val:": TrainingArguments"},{name:"model",val:": Optional = None"}],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/main/src/transformers/trainer.py#L1089"}}),jt=new x({props:{name:"get_optimizer_group",anchor:"transformers.Trainer.get_optimizer_group",parameters:[{name:"param",val:": Union = None"}],parametersDescription:[{anchor:"transformers.Trainer.get_optimizer_group.param",description:`<strong>param</strong> (<code>str</code> or <code>torch.nn.parameter.Parameter</code>, <em>optional</em>) &#x2014;
The parameter for which optimizer group needs to be returned.`,name:"param"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1073"}}),Ot=new x({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/main/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/main/src/transformers/trainer.py#L940"}}),Ht=new x({props:{name:"get_train_dataloader",anchor:"transformers.Trainer.get_train_dataloader",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L836"}}),Rt=new x({props:{name:"hyperparameter_search",anchor:"transformers.Trainer.hyperparameter_search",parameters:[{name:"hp_space",val:": Optional = None"},{name:"compute_objective",val:": Optional = None"},{name:"n_trials",val:": int = 20"},{name:"direction",val:": Union = 'minimize'"},{name:"backend",val:": Union = None"},{name:"hp_name",val:": Optional = 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/main/src/transformers/trainer.py#L2952",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p>[<code>trainer_utils.BestRun</code> or <code>List[trainer_utils.BestRun]</code>]</p>
`}}),Ue=new Jo({props:{warning:!0,$$slots:{default:[vm]},$$scope:{ctx:C}}}),Jt=new x({props:{name:"init_hf_repo",anchor:"transformers.Trainer.init_hf_repo",parameters:[{name:"token",val:": Optional = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3909"}}),Et=new x({props:{name:"is_local_process_zero",anchor:"transformers.Trainer.is_local_process_zero",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3178"}}),Bt=new x({props:{name:"is_world_process_zero",anchor:"transformers.Trainer.is_world_process_zero",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3185"}}),Gt=new x({props:{name:"log",anchor:"transformers.Trainer.log",parameters:[{name:"logs",val:": Dict"}],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/main/src/transformers/trainer.py#L3031"}}),Vt=new x({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/main/src/transformers/trainer_pt_utils.py#L922"}}),Oe=new be({props:{anchor:"transformers.Trainer.log_metrics.example",$$slots:{default:[ym]},$$scope:{ctx:C}}}),Xt=new x({props:{name:"metrics_format",anchor:"transformers.Trainer.metrics_format",parameters:[{name:"metrics",val:": Dict"}],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/main/src/transformers/trainer_pt_utils.py#L896",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The reformatted metrics</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>metrics (<code>Dict[str, float]</code>)</p>
`}}),Zt=new x({props:{name:"num_examples",anchor:"transformers.Trainer.num_examples",parameters:[{name:"dataloader",val:": DataLoader"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1380"}}),Yt=new x({props:{name:"num_tokens",anchor:"transformers.Trainer.num_tokens",parameters:[{name:"train_dl",val:": DataLoader"},{name:"max_steps",val:": Optional = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1394"}}),Qt=new x({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 <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>) &#x2014;
A <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> class or an instance of a <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>. 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/main/src/transformers/trainer.py#L719",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The callback removed, if found.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback"
>TrainerCallback</a></p>
`}}),Kt=new x({props:{name:"predict",anchor:"transformers.Trainer.predict",parameters:[{name:"test_dataset",val:": Dataset"},{name:"ignore_keys",val:": Optional = 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/main/src/transformers/trainer.py#L3491"}}),Ee=new Jo({props:{$$slots:{default:[Tm]},$$scope:{ctx:C}}}),eo=new x({props:{name:"prediction_loop",anchor:"transformers.Trainer.prediction_loop",parameters:[{name:"dataloader",val:": DataLoader"},{name:"description",val:": str"},{name:"prediction_loss_only",val:": Optional = None"},{name:"ignore_keys",val:": Optional = None"},{name:"metric_key_prefix",val:": str = 'eval'"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4141"}}),to=new x({props:{name:"prediction_step",anchor:"transformers.Trainer.prediction_step",parameters:[{name:"model",val:": Module"},{name:"inputs",val:": Dict"},{name:"prediction_loss_only",val:": bool"},{name:"ignore_keys",val:": Optional = 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/main/src/transformers/trainer.py#L3786",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A tuple with the loss,
logits and labels (each being optional).</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Tuple[Optional[torch.Tensor], Optional[torch.Tensor], Optional[torch.Tensor]]</p>
`}}),oo=new x({props:{name:"propagate_args_to_deepspeed",anchor:"transformers.Trainer.propagate_args_to_deepspeed",parameters:[{name:"auto_find_batch_size",val:" = False"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4431"}}),no=new x({props:{name:"push_to_hub",anchor:"transformers.Trainer.push_to_hub",parameters:[{name:"commit_message",val:": Optional = 'End of training'"},{name:"blocking",val:": bool = True"},{name:"token",val:": Optional = None"},{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.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Token with write permission to overwrite Trainer&#x2019;s original args.`,name:"token"},{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/main/en/main_classes/trainer#transformers.Trainer.create_model_card">create_model_card()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4065",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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>
`}}),ro=new x({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 <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>) &#x2014;
A <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> class or an instance of a <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>. 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/main/src/transformers/trainer.py#L735"}}),ao=new x({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/main/src/transformers/trainer_pt_utils.py#L1012"}}),so=new x({props:{name:"save_model",anchor:"transformers.Trainer.save_model",parameters:[{name:"output_dir",val:": Optional = None"},{name:"_internal_call",val:": bool = False"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3197"}}),io=new x({props:{name:"save_state",anchor:"transformers.Trainer.save_state",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_pt_utils.py#L1050"}}),lo=new x({props:{name:"train",anchor:"transformers.Trainer.train",parameters:[{name:"resume_from_checkpoint",val:": Union = None"},{name:"trial",val:": Union = None"},{name:"ignore_keys_for_eval",val:": Optional = 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/main/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/main/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/main/src/transformers/trainer.py#L1748"}}),co=new x({props:{name:"training_step",anchor:"transformers.Trainer.training_step",parameters:[{name:"model",val:": Module"},{name:"inputs",val:": Dict"}],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/main/src/transformers/trainer.py#L3102",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The tensor with training loss on this batch.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.Tensor</code></p>
`}}),mo=new pa({props:{title:"Seq2SeqTrainer",local:"transformers.Seq2SeqTrainer",headingTag:"h2"}}),po=new x({props:{name:"class transformers.Seq2SeqTrainer",anchor:"transformers.Seq2SeqTrainer",parameters:[{name:"model",val:": Union = None"},{name:"args",val:": TrainingArguments = None"},{name:"data_collator",val:": Optional = None"},{name:"train_dataset",val:": Optional = None"},{name:"eval_dataset",val:": Union = None"},{name:"tokenizer",val:": Optional = None"},{name:"model_init",val:": Optional = None"},{name:"compute_metrics",val:": Optional = None"},{name:"callbacks",val:": Optional = None"},{name:"optimizers",val:": Tuple = (None, None)"},{name:"preprocess_logits_for_metrics",val:": Optional = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_seq2seq.py#L42"}}),uo=new x({props:{name:"evaluate",anchor:"transformers.Seq2SeqTrainer.evaluate",parameters:[{name:"eval_dataset",val:": Optional = None"},{name:"ignore_keys",val:": Optional = 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/main/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/main/src/transformers/trainer_seq2seq.py#L126",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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>
`}}),go=new x({props:{name:"predict",anchor:"transformers.Seq2SeqTrainer.predict",parameters:[{name:"test_dataset",val:": Dataset"},{name:"ignore_keys",val:": Optional = 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/main/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/main/src/transformers/trainer_seq2seq.py#L182"}}),Ze=new Jo({props:{$$slots:{default:[wm]},$$scope:{ctx:C}}}),ho=new pa({props:{title:"TrainingArguments",local:"transformers.TrainingArguments",headingTag:"h2"}}),fo=new x({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:": Union = '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:": Optional = None"},{name:"per_gpu_eval_batch_size",val:": Optional = None"},{name:"gradient_accumulation_steps",val:": int = 1"},{name:"eval_accumulation_steps",val:": Optional = None"},{name:"eval_delay",val:": Optional = 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:": Union = 'linear'"},{name:"lr_scheduler_kwargs",val:": Optional = <factory>"},{name:"warmup_ratio",val:": float = 0.0"},{name:"warmup_steps",val:": int = 0"},{name:"log_level",val:": Optional = 'passive'"},{name:"log_level_replica",val:": Optional = 'warning'"},{name:"log_on_each_node",val:": bool = True"},{name:"logging_dir",val:": Optional = None"},{name:"logging_strategy",val:": Union = '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:": Union = 'steps'"},{name:"save_steps",val:": float = 500"},{name:"save_total_limit",val:": Optional = None"},{name:"save_safetensors",val:": Optional = True"},{name:"save_on_each_node",val:": bool = False"},{name:"save_only_model",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:": Optional = 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:": Optional = None"},{name:"local_rank",val:": int = -1"},{name:"ddp_backend",val:": Optional = None"},{name:"tpu_num_cores",val:": Optional = None"},{name:"tpu_metrics_debug",val:": bool = False"},{name:"debug",val:": Union = ''"},{name:"dataloader_drop_last",val:": bool = False"},{name:"eval_steps",val:": Optional = None"},{name:"dataloader_num_workers",val:": int = 0"},{name:"dataloader_prefetch_factor",val:": Optional = None"},{name:"past_index",val:": int = -1"},{name:"run_name",val:": Optional = None"},{name:"disable_tqdm",val:": Optional = None"},{name:"remove_unused_columns",val:": Optional = True"},{name:"label_names",val:": Optional = None"},{name:"load_best_model_at_end",val:": Optional = False"},{name:"metric_for_best_model",val:": Optional = None"},{name:"greater_is_better",val:": Optional = None"},{name:"ignore_data_skip",val:": bool = False"},{name:"fsdp",val:": Union = ''"},{name:"fsdp_min_num_params",val:": int = 0"},{name:"fsdp_config",val:": Union = None"},{name:"fsdp_transformer_layer_cls_to_wrap",val:": Optional = None"},{name:"accelerator_config",val:": Optional = None"},{name:"deepspeed",val:": Optional = None"},{name:"label_smoothing_factor",val:": float = 0.0"},{name:"optim",val:": Union = 'adamw_torch'"},{name:"optim_args",val:": Optional = None"},{name:"adafactor",val:": bool = False"},{name:"group_by_length",val:": bool = False"},{name:"length_column_name",val:": Optional = 'length'"},{name:"report_to",val:": Optional = None"},{name:"ddp_find_unused_parameters",val:": Optional = None"},{name:"ddp_bucket_cap_mb",val:": Optional = None"},{name:"ddp_broadcast_buffers",val:": Optional = None"},{name:"dataloader_pin_memory",val:": bool = True"},{name:"dataloader_persistent_workers",val:": bool = False"},{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:": Optional = None"},{name:"hub_model_id",val:": Optional = None"},{name:"hub_strategy",val:": Union = 'every_save'"},{name:"hub_token",val:": Optional = None"},{name:"hub_private_repo",val:": bool = False"},{name:"hub_always_push",val:": bool = False"},{name:"gradient_checkpointing",val:": bool = False"},{name:"gradient_checkpointing_kwargs",val:": Optional = None"},{name:"include_inputs_for_metrics",val:": bool = False"},{name:"fp16_backend",val:": str = 'auto'"},{name:"push_to_hub_model_id",val:": Optional = None"},{name:"push_to_hub_organization",val:": Optional = None"},{name:"push_to_hub_token",val:": Optional = None"},{name:"mp_parameters",val:": str = ''"},{name:"auto_find_batch_size",val:": bool = False"},{name:"full_determinism",val:": bool = False"},{name:"torchdynamo",val:": Optional = None"},{name:"ray_scope",val:": Optional = 'last'"},{name:"ddp_timeout",val:": Optional = 1800"},{name:"torch_compile",val:": bool = False"},{name:"torch_compile_backend",val:": Optional = None"},{name:"torch_compile_mode",val:": Optional = None"},{name:"dispatch_batches",val:": Optional = None"},{name:"split_batches",val:": Optional = None"},{name:"include_tokens_per_second",val:": Optional = False"},{name:"include_num_input_tokens_seen",val:": Optional = False"},{name:"neftune_noise_alpha",val:": Optional = None"},{name:"optim_target_modules",val:": Union = None"}],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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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>.
For a finite dataset, training is reiterated through the dataset (if all data is exhausted) until
<code>max_steps</code> is reached.`,name:"max_steps"},{anchor:"transformers.TrainingArguments.lr_scheduler_type",description:`<strong>lr_scheduler_type</strong> (<code>str</code> or <a href="/docs/transformers/main/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/main/en/main_classes/optimizer_schedules#transformers.SchedulerType">SchedulerType</a> for all possible values.`,name:"lr_scheduler_type"},{anchor:"transformers.TrainingArguments.lr_scheduler_kwargs",description:`<strong>lr_scheduler_kwargs</strong> (&#x2018;dict&#x2019;, <em>optional</em>, defaults to {}) &#x2014;
The extra arguments for the lr_scheduler. See the documentation of each scheduler for possible values.`,name:"lr_scheduler_kwargs"},{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/main/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 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/main/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>True</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.save_only_model",description:`<strong>save_only_model</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When checkpointing, whether to only save the model, or also the optimizer, scheduler &amp; rng state.
Note that when this is true, you won&#x2019;t be able to resume training from checkpoint.
This enables you to save storage by not storing the optimizer, scheduler &amp; rng state.
You can only load the model using <code>from_pretrained</code> with this option set to <code>True</code>.`,name:"save_only_model"},{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;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.`,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.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;hybrid_shard&quot;</code>: Apply <code>FULL_SHARD</code> within a node, and replicate parameters across nodes.</li>
<li><code>&quot;hybrid_shard_zero2&quot;</code>: Apply <code>SHARD_GRAD_OP</code> within a node, and replicate parameters across nodes.</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
fsdp json config file (e.g., <code>fsdp_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>True</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>activation_checkpointing (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
If <code>&quot;True&quot;</code>, 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>
<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>
</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;</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">
						
If enabling any Zero-init, make sure that your model is not initialized until
*after* initializing the \`TrainingArguments\`, else it will not be applied.

					</div>`,name:"deepspeed"},{anchor:"transformers.TrainingArguments.accelerator_config",description:`<strong>accelerator_config</strong> (<code>str</code>, <code>dict</code>, or <code>AcceleratorConfig</code>, <em>optional</em>) &#x2014;
Config to be used with the internal <code>Accelerator</code> implementation. The value is either a location of
accelerator json config file (e.g., <code>accelerator_config.json</code>), an already loaded json file as <code>dict</code>,
or an instance of <code>AcceleratorConfig</code>.</p>
<p>A list of config and its options:</p>
<ul>
<li>split_batches (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether or not the accelerator should split the batches yielded by the dataloaders across the devices. If
<code>True</code> the actual batch size used will be the same on any kind of distributed processes, but it must be a
round multiple of the <code>num_processes</code> you are using. If <code>False</code>, actual batch size used will be the one set
in your script multiplied by the number of processes.</li>
<li>dispatch_batches (<code>bool</code>, <em>optional</em>):
If set to <code>True</code>, the dataloader prepared by the Accelerator is only iterated through on the main process
and then the batches are split and broadcast to each process. Will default to <code>True</code> for <code>DataLoader</code> whose
underlying dataset is an <code>IterableDataset</code>, <code>False</code> otherwise.</li>
<li>even_batches (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>):
If set to <code>True</code>, in cases where the total batch size across all processes does not exactly divide the
dataset, samples at the start of the dataset will be duplicated so the batch can be divided equally among
all workers.</li>
<li>use_seedable_sampler (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>):
Whether or not use a fully seedable random sampler (<code>accelerate.data_loader.SeedableRandomSampler</code>). Ensures
training results are fully reproducable using a different sampling technique. While seed-to-seed results
may differ, on average the differences are neglible when using multiple different seeds to compare. Should
also be ran with <code>~utils.set_seed</code> for the best results.</li>
</ul>`,name:"accelerator_config"},{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;dvclive&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.dataloader_persistent_workers",description:`<strong>dataloader_persistent_workers</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, the data loader will not shut down the worker processes after a dataset has been consumed once.
This allows to maintain the workers Dataset instances alive. Can potentially speed up training, but will
increase RAM usage. Will default to <code>False</code>.`,name:"dataloader_persistent_workers"},{anchor:"transformers.TrainingArguments.dataloader_prefetch_factor",description:`<strong>dataloader_prefetch_factor</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of batches loaded in advance by each worker.
2 means there will be a total of 2 * num_workers batches prefetched across all workers.`,name:"dataloader_prefetch_factor"},{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/main/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/main/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/main/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/main/en/main_classes/trainer#transformers.Trainer">Trainer</a>) and a
draft of a model card when the <a href="/docs/transformers/main/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/main/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.gradient_checkpointing_kwargs",description:`<strong>gradient_checkpointing_kwargs</strong> (<code>dict</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Key word arguments to be passed to the <code>gradient_checkpointing_enable</code> method.`,name:"gradient_checkpointing_kwargs"},{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/main/en/internal/trainer_utils#transformers.enable_full_determinism">enable_full_determinism()</a> is called instead of <a href="/docs/transformers/main/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.split_batches",description:`<strong>split_batches</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the accelerator should split the batches yielded by the dataloaders across the devices
during distributed training. If</p>
<p>set to <code>True</code>, the actual batch size used will be the same on any kind of distributed processes, but it
must be a</p>
<p>round multiple of the number of processes you are using (such as GPUs).`,name:"split_batches"},{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"},{anchor:"transformers.TrainingArguments.include_num_input_tokens_seen",description:`<strong>include_num_input_tokens_seen</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to track the number of input tokens seen throughout training.</p>
<p>May be slower in distributed training as gather operations must be called.`,name:"include_num_input_tokens_seen"},{anchor:"transformers.TrainingArguments.neftune_noise_alpha",description:`<strong>neftune_noise_alpha</strong> (<code>Optional[float]</code>) &#x2014;
If not <code>None</code>, this will activate NEFTune noise embeddings. This can drastically improve model performance
for instruction fine-tuning. Check out the <a href="https://arxiv.org/abs/2310.05914" rel="nofollow">original paper</a> and the
<a href="https://github.com/neelsjain/NEFTune" rel="nofollow">original code</a>. Support transformers <code>PreTrainedModel</code> and also
<code>PeftModel</code> from peft.`,name:"neftune_noise_alpha"},{anchor:"transformers.TrainingArguments.optim_target_modules",description:`<strong>optim_target_modules</strong> (<code>Union[str, List[str]]</code>, <em>optional</em>) &#x2014;
The target modules to optimize, i.e. the module names that you would like to train, right now this is used only for GaLore algorithm
<a href="https://arxiv.org/abs/2403.03507" rel="nofollow">https://arxiv.org/abs/2403.03507</a>
See: <a href="https://github.com/jiaweizzhao/GaLore" rel="nofollow">https://github.com/jiaweizzhao/GaLore</a> for more details. You need to make sure to pass a valid GaloRe
optimizer, e.g. one of: &#x201C;galore_adamw&#x201D;, &#x201C;galore_adamw_8bit&#x201D;, &#x201C;galore_adafactor&#x201D; and make sure that the target modules are <code>nn.Linear</code> modules
only.`,name:"optim_target_modules"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L177"}}),_o=new x({props:{name:"get_process_log_level",anchor:"transformers.TrainingArguments.get_process_log_level",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L2146"}}),bo=new x({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/main/src/transformers/training_args.py#L2235"}}),vo=new x({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/main/src/transformers/training_args.py#L2184"}}),yo=new x({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:"persistent_workers",val:": bool = False"},{name:"prefetch_factor",val:": Optional = None"},{name:"auto_find_batch_size",val:": bool = False"},{name:"ignore_data_skip",val:": bool = False"},{name:"sampler_seed",val:": Optional = 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.persistent_workers",description:`<strong>persistent_workers</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, the data loader will not shut down the worker processes after a dataset has been consumed
once. This allows to maintain the workers Dataset instances alive. Can potentially speed up training,
but will increase RAM usage. Will default to <code>False</code>.`,name:"persistent_workers"},{anchor:"transformers.TrainingArguments.set_dataloader.prefetch_factor",description:`<strong>prefetch_factor</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of batches loaded in advance by each worker.
2 means there will be a total of 2 * num_workers batches prefetched across all workers.`,name:"prefetch_factor"},{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/main/src/transformers/training_args.py#L2750"}}),Qe=new be({props:{anchor:"transformers.TrainingArguments.set_dataloader.example",$$slots:{default:[xm]},$$scope:{ctx:C}}}),To=new x({props:{name:"set_evaluate",anchor:"transformers.TrainingArguments.set_evaluate",parameters:[{name:"strategy",val:": Union = 'no'"},{name:"steps",val:": int = 500"},{name:"batch_size",val:": int = 8"},{name:"accumulation_steps",val:": Optional = None"},{name:"delay",val:": Optional = 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/main/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/main/src/transformers/training_args.py#L2359"}}),Ke=new be({props:{anchor:"transformers.TrainingArguments.set_evaluate.example",$$slots:{default:[qm]},$$scope:{ctx:C}}}),wo=new x({props:{name:"set_logging",anchor:"transformers.TrainingArguments.set_logging",parameters:[{name:"strategy",val:": Union = 'steps'"},{name:"steps",val:": int = 500"},{name:"report_to",val:": Union = '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/main/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:"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;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;dvclive&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.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/main/src/transformers/training_args.py#L2509"}}),et=new be({props:{anchor:"transformers.TrainingArguments.set_logging.example",$$slots:{default:[$m]},$$scope:{ctx:C}}}),xo=new x({props:{name:"set_lr_scheduler",anchor:"transformers.TrainingArguments.set_lr_scheduler",parameters:[{name:"name",val:": Union = '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/main/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/main/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>.
For a finite dataset, training is reiterated through the dataset (if all data is exhausted) until
<code>max_steps</code> is reached.`,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/main/src/transformers/training_args.py#L2705"}}),tt=new be({props:{anchor:"transformers.TrainingArguments.set_lr_scheduler.example",$$slots:{default:[km]},$$scope:{ctx:C}}}),qo=new x({props:{name:"set_optimizer",anchor:"transformers.TrainingArguments.set_optimizer",parameters:[{name:"name",val:": Union = '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:": Optional = 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/main/src/transformers/training_args.py#L2654"}}),ot=new be({props:{anchor:"transformers.TrainingArguments.set_optimizer.example",$$slots:{default:[Am]},$$scope:{ctx:C}}}),$o=new x({props:{name:"set_push_to_hub",anchor:"transformers.TrainingArguments.set_push_to_hub",parameters:[{name:"model_id",val:": str"},{name:"strategy",val:": Union = 'every_save'"},{name:"token",val:": Optional = 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/main/en/main_classes/trainer#transformers.Trainer">Trainer</a>) and a
draft of a model card when the <a href="/docs/transformers/main/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/main/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/main/src/transformers/training_args.py#L2584"}}),nt=new Jo({props:{$$slots:{default:[Sm]},$$scope:{ctx:C}}}),rt=new be({props:{anchor:"transformers.TrainingArguments.set_push_to_hub.example",$$slots:{default:[Cm]},$$scope:{ctx:C}}}),ko=new x({props:{name:"set_save",anchor:"transformers.TrainingArguments.set_save",parameters:[{name:"strategy",val:": Union = 'steps'"},{name:"steps",val:": int = 500"},{name:"total_limit",val:": Optional = 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/main/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/main/src/transformers/training_args.py#L2460"}}),at=new be({props:{anchor:"transformers.TrainingArguments.set_save.example",$$slots:{default:[Pm]},$$scope:{ctx:C}}}),Ao=new x({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/main/src/transformers/training_args.py#L2420"}}),st=new Jo({props:{$$slots:{default:[zm]},$$scope:{ctx:C}}}),it=new be({props:{anchor:"transformers.TrainingArguments.set_testing.example",$$slots:{default:[Mm]},$$scope:{ctx:C}}}),So=new x({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>.
For a finite dataset, training is reiterated through the dataset (if all data is exhausted) until
<code>max_steps</code> is reached.`,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/main/src/transformers/training_args.py#L2284"}}),lt=new Jo({props:{$$slots:{default:[Fm]},$$scope:{ctx:C}}}),dt=new be({props:{anchor:"transformers.TrainingArguments.set_training.example",$$slots:{default:[Im]},$$scope:{ctx:C}}}),Co=new x({props:{name:"to_dict",anchor:"transformers.TrainingArguments.to_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L2244"}}),Po=new x({props:{name:"to_json_string",anchor:"transformers.TrainingArguments.to_json_string",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L2264"}}),zo=new x({props:{name:"to_sanitized_dict",anchor:"transformers.TrainingArguments.to_sanitized_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L2270"}}),Mo=new pa({props:{title:"Seq2SeqTrainingArguments",local:"transformers.Seq2SeqTrainingArguments",headingTag:"h2"}}),Fo=new x({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:": Union = '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:": Optional = None"},{name:"per_gpu_eval_batch_size",val:": Optional = None"},{name:"gradient_accumulation_steps",val:": int = 1"},{name:"eval_accumulation_steps",val:": Optional = None"},{name:"eval_delay",val:": Optional = 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:": Union = 'linear'"},{name:"lr_scheduler_kwargs",val:": Optional = <factory>"},{name:"warmup_ratio",val:": float = 0.0"},{name:"warmup_steps",val:": int = 0"},{name:"log_level",val:": Optional = 'passive'"},{name:"log_level_replica",val:": Optional = 'warning'"},{name:"log_on_each_node",val:": bool = True"},{name:"logging_dir",val:": Optional = None"},{name:"logging_strategy",val:": Union = '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:": Union = 'steps'"},{name:"save_steps",val:": float = 500"},{name:"save_total_limit",val:": Optional = None"},{name:"save_safetensors",val:": Optional = True"},{name:"save_on_each_node",val:": bool = False"},{name:"save_only_model",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:": Optional = 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:": Optional = None"},{name:"local_rank",val:": int = -1"},{name:"ddp_backend",val:": Optional = None"},{name:"tpu_num_cores",val:": Optional = None"},{name:"tpu_metrics_debug",val:": bool = False"},{name:"debug",val:": Union = ''"},{name:"dataloader_drop_last",val:": bool = False"},{name:"eval_steps",val:": Optional = None"},{name:"dataloader_num_workers",val:": int = 0"},{name:"dataloader_prefetch_factor",val:": Optional = None"},{name:"past_index",val:": int = -1"},{name:"run_name",val:": Optional = None"},{name:"disable_tqdm",val:": Optional = None"},{name:"remove_unused_columns",val:": Optional = True"},{name:"label_names",val:": Optional = None"},{name:"load_best_model_at_end",val:": Optional = False"},{name:"metric_for_best_model",val:": Optional = None"},{name:"greater_is_better",val:": Optional = None"},{name:"ignore_data_skip",val:": bool = False"},{name:"fsdp",val:": Union = ''"},{name:"fsdp_min_num_params",val:": int = 0"},{name:"fsdp_config",val:": Union = None"},{name:"fsdp_transformer_layer_cls_to_wrap",val:": Optional = None"},{name:"accelerator_config",val:": Optional = None"},{name:"deepspeed",val:": Optional = None"},{name:"label_smoothing_factor",val:": float = 0.0"},{name:"optim",val:": Union = 'adamw_torch'"},{name:"optim_args",val:": Optional = None"},{name:"adafactor",val:": bool = False"},{name:"group_by_length",val:": bool = False"},{name:"length_column_name",val:": Optional = 'length'"},{name:"report_to",val:": Optional = None"},{name:"ddp_find_unused_parameters",val:": Optional = None"},{name:"ddp_bucket_cap_mb",val:": Optional = None"},{name:"ddp_broadcast_buffers",val:": Optional = None"},{name:"dataloader_pin_memory",val:": bool = True"},{name:"dataloader_persistent_workers",val:": bool = False"},{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:": Optional = None"},{name:"hub_model_id",val:": Optional = None"},{name:"hub_strategy",val:": Union = 'every_save'"},{name:"hub_token",val:": Optional = None"},{name:"hub_private_repo",val:": bool = False"},{name:"hub_always_push",val:": bool = False"},{name:"gradient_checkpointing",val:": bool = False"},{name:"gradient_checkpointing_kwargs",val:": Optional = None"},{name:"include_inputs_for_metrics",val:": bool = False"},{name:"fp16_backend",val:": str = 'auto'"},{name:"push_to_hub_model_id",val:": Optional = None"},{name:"push_to_hub_organization",val:": Optional = None"},{name:"push_to_hub_token",val:": Optional = None"},{name:"mp_parameters",val:": str = ''"},{name:"auto_find_batch_size",val:": bool = False"},{name:"full_determinism",val:": bool = False"},{name:"torchdynamo",val:": Optional = None"},{name:"ray_scope",val:": Optional = 'last'"},{name:"ddp_timeout",val:": Optional = 1800"},{name:"torch_compile",val:": bool = False"},{name:"torch_compile_backend",val:": Optional = None"},{name:"torch_compile_mode",val:": Optional = None"},{name:"dispatch_batches",val:": Optional = None"},{name:"split_batches",val:": Optional = None"},{name:"include_tokens_per_second",val:": Optional = False"},{name:"include_num_input_tokens_seen",val:": Optional = False"},{name:"neftune_noise_alpha",val:": Optional = None"},{name:"optim_target_modules",val:": Union = None"},{name:"sortish_sampler",val:": bool = False"},{name:"predict_with_generate",val:": bool = False"},{name:"generation_max_length",val:": Optional = None"},{name:"generation_num_beams",val:": Optional = None"},{name:"generation_config",val:": Union = 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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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>.
For a finite dataset, training is reiterated through the dataset (if all data is exhausted) until
<code>max_steps</code> is reached.`,name:"max_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.lr_scheduler_type",description:`<strong>lr_scheduler_type</strong> (<code>str</code> or <a href="/docs/transformers/main/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/main/en/main_classes/optimizer_schedules#transformers.SchedulerType">SchedulerType</a> for all possible values.`,name:"lr_scheduler_type"},{anchor:"transformers.Seq2SeqTrainingArguments.lr_scheduler_kwargs",description:`<strong>lr_scheduler_kwargs</strong> (&#x2018;dict&#x2019;, <em>optional</em>, defaults to {}) &#x2014;
The extra arguments for the lr_scheduler. See the documentation of each scheduler for possible values.`,name:"lr_scheduler_kwargs"},{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/main/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 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/main/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>True</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.save_only_model",description:`<strong>save_only_model</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When checkpointing, whether to only save the model, or also the optimizer, scheduler &amp; rng state.
Note that when this is true, you won&#x2019;t be able to resume training from checkpoint.
This enables you to save storage by not storing the optimizer, scheduler &amp; rng state.
You can only load the model using <code>from_pretrained</code> with this option set to <code>True</code>.`,name:"save_only_model"},{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;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.`,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.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;hybrid_shard&quot;</code>: Apply <code>FULL_SHARD</code> within a node, and replicate parameters across nodes.</li>
<li><code>&quot;hybrid_shard_zero2&quot;</code>: Apply <code>SHARD_GRAD_OP</code> within a node, and replicate parameters across nodes.</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
fsdp json config file (e.g., <code>fsdp_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>True</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>activation_checkpointing (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
If <code>&quot;True&quot;</code>, 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>
<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>
</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;</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">
						
If enabling any Zero-init, make sure that your model is not initialized until
*after* initializing the \`TrainingArguments\`, else it will not be applied.

					</div>`,name:"deepspeed"},{anchor:"transformers.Seq2SeqTrainingArguments.accelerator_config",description:`<strong>accelerator_config</strong> (<code>str</code>, <code>dict</code>, or <code>AcceleratorConfig</code>, <em>optional</em>) &#x2014;
Config to be used with the internal <code>Accelerator</code> implementation. The value is either a location of
accelerator json config file (e.g., <code>accelerator_config.json</code>), an already loaded json file as <code>dict</code>,
or an instance of <code>AcceleratorConfig</code>.</p>
<p>A list of config and its options:</p>
<ul>
<li>split_batches (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether or not the accelerator should split the batches yielded by the dataloaders across the devices. If
<code>True</code> the actual batch size used will be the same on any kind of distributed processes, but it must be a
round multiple of the <code>num_processes</code> you are using. If <code>False</code>, actual batch size used will be the one set
in your script multiplied by the number of processes.</li>
<li>dispatch_batches (<code>bool</code>, <em>optional</em>):
If set to <code>True</code>, the dataloader prepared by the Accelerator is only iterated through on the main process
and then the batches are split and broadcast to each process. Will default to <code>True</code> for <code>DataLoader</code> whose
underlying dataset is an <code>IterableDataset</code>, <code>False</code> otherwise.</li>
<li>even_batches (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>):
If set to <code>True</code>, in cases where the total batch size across all processes does not exactly divide the
dataset, samples at the start of the dataset will be duplicated so the batch can be divided equally among
all workers.</li>
<li>use_seedable_sampler (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>):
Whether or not use a fully seedable random sampler (<code>accelerate.data_loader.SeedableRandomSampler</code>). Ensures
training results are fully reproducable using a different sampling technique. While seed-to-seed results
may differ, on average the differences are neglible when using multiple different seeds to compare. Should
also be ran with <code>~utils.set_seed</code> for the best results.</li>
</ul>`,name:"accelerator_config"},{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;dvclive&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.dataloader_persistent_workers",description:`<strong>dataloader_persistent_workers</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, the data loader will not shut down the worker processes after a dataset has been consumed once.
This allows to maintain the workers Dataset instances alive. Can potentially speed up training, but will
increase RAM usage. Will default to <code>False</code>.`,name:"dataloader_persistent_workers"},{anchor:"transformers.Seq2SeqTrainingArguments.dataloader_prefetch_factor",description:`<strong>dataloader_prefetch_factor</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of batches loaded in advance by each worker.
2 means there will be a total of 2 * num_workers batches prefetched across all workers.`,name:"dataloader_prefetch_factor"},{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/main/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/main/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/main/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/main/en/main_classes/trainer#transformers.Trainer">Trainer</a>) and a
draft of a model card when the <a href="/docs/transformers/main/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/main/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.gradient_checkpointing_kwargs",description:`<strong>gradient_checkpointing_kwargs</strong> (<code>dict</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Key word arguments to be passed to the <code>gradient_checkpointing_enable</code> method.`,name:"gradient_checkpointing_kwargs"},{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/main/en/internal/trainer_utils#transformers.enable_full_determinism">enable_full_determinism()</a> is called instead of <a href="/docs/transformers/main/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.split_batches",description:`<strong>split_batches</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the accelerator should split the batches yielded by the dataloaders across the devices
during distributed training. If</p>
<p>set to <code>True</code>, the actual batch size used will be the same on any kind of distributed processes, but it
must be a</p>
<p>round multiple of the number of processes you are using (such as GPUs).`,name:"split_batches"},{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.include_num_input_tokens_seen",description:`<strong>include_num_input_tokens_seen</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to track the number of input tokens seen throughout training.</p>
<p>May be slower in distributed training as gather operations must be called.`,name:"include_num_input_tokens_seen"},{anchor:"transformers.Seq2SeqTrainingArguments.neftune_noise_alpha",description:`<strong>neftune_noise_alpha</strong> (<code>Optional[float]</code>) &#x2014;
If not <code>None</code>, this will activate NEFTune noise embeddings. This can drastically improve model performance
for instruction fine-tuning. Check out the <a href="https://arxiv.org/abs/2310.05914" rel="nofollow">original paper</a> and the
<a href="https://github.com/neelsjain/NEFTune" rel="nofollow">original code</a>. Support transformers <code>PreTrainedModel</code> and also
<code>PeftModel</code> from peft.`,name:"neftune_noise_alpha"},{anchor:"transformers.Seq2SeqTrainingArguments.optim_target_modules",description:`<strong>optim_target_modules</strong> (<code>Union[str, List[str]]</code>, <em>optional</em>) &#x2014;
The target modules to optimize, i.e. the module names that you would like to train, right now this is used only for GaLore algorithm
<a href="https://arxiv.org/abs/2403.03507" rel="nofollow">https://arxiv.org/abs/2403.03507</a>
See: <a href="https://github.com/jiaweizzhao/GaLore" rel="nofollow">https://github.com/jiaweizzhao/GaLore</a> for more details. You need to make sure to pass a valid GaloRe
optimizer, e.g. one of: &#x201C;galore_adamw&#x201D;, &#x201C;galore_adamw_8bit&#x201D;, &#x201C;galore_adafactor&#x201D; and make sure that the target modules are <code>nn.Linear</code> modules
only.`,name:"optim_target_modules"},{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/main/en/main_classes/text_generation#transformers.GenerationConfig">GenerationConfig</a>, <em>optional</em>) &#x2014;
Allows to load a <a href="/docs/transformers/main/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.</li>
<li>a path to a <em>directory</em> containing a configuration file saved using the
<a href="/docs/transformers/main/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/main/en/main_classes/text_generation#transformers.GenerationConfig">GenerationConfig</a> object.</li>
</ul>`,name:"generation_config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args_seq2seq.py#L28"}}),Io=new x({props:{name:"to_dict",anchor:"transformers.Seq2SeqTrainingArguments.to_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args_seq2seq.py#L86"}}),{c(){i=r("meta"),$=o(),m=r("p"),c=o(),p(q.$$.fragment),s=o(),k=r("p"),k.innerHTML=dd,ua=o(),Tt=r("p"),Tt.innerHTML=cd,ga=o(),p(ke.$$.fragment),ha=o(),p(wt.$$.fragment),fa=o(),b=r("div"),p(xt.$$.fragment),Oa=o(),Eo=r("p"),Eo.textContent=md,Ha=o(),Bo=r("p"),Bo.textContent=pd,Ra=o(),Go=r("ul"),Go.innerHTML=ud,Ja=o(),Ae=r("div"),p(qt.$$.fragment),Ea=o(),Vo=r("p"),Vo.innerHTML=gd,Ba=o(),Se=r("div"),p($t.$$.fragment),Ga=o(),Xo=r("p"),Xo.innerHTML=hd,Va=o(),X=r("div"),p(kt.$$.fragment),Xa=o(),Zo=r("p"),Zo.textContent=fd,Za=o(),Yo=r("p"),Yo.textContent=_d,Ya=o(),Ce=r("div"),p(At.$$.fragment),Qa=o(),Qo=r("p"),Qo.textContent=bd,Ka=o(),Pe=r("div"),p(St.$$.fragment),es=o(),Ko=r("p"),Ko.innerHTML=vd,ts=o(),Z=r("div"),p(Ct.$$.fragment),os=o(),en=r("p"),en.textContent=yd,ns=o(),tn=r("p"),tn.innerHTML=Td,rs=o(),Y=r("div"),p(Pt.$$.fragment),as=o(),on=r("p"),on.textContent=wd,ss=o(),nn=r("p"),nn.innerHTML=xd,is=o(),ze=r("div"),p(zt.$$.fragment),ls=o(),rn=r("p"),rn.textContent=qd,ds=o(),L=r("div"),p(Mt.$$.fragment),cs=o(),an=r("p"),an.textContent=$d,ms=o(),sn=r("p"),sn.innerHTML=kd,ps=o(),ln=r("p"),ln.textContent=Ad,us=o(),Q=r("div"),p(Ft.$$.fragment),gs=o(),dn=r("p"),dn.innerHTML=Sd,hs=o(),cn=r("p"),cn.textContent=Cd,fs=o(),Me=r("div"),p(It.$$.fragment),_s=o(),mn=r("p"),mn.innerHTML=Pd,bs=o(),K=r("div"),p(Dt.$$.fragment),vs=o(),pn=r("p"),pn.textContent=zd,ys=o(),un=r("p"),un.textContent=Md,Ts=o(),ee=r("div"),p(Wt.$$.fragment),ws=o(),gn=r("p"),gn.innerHTML=Fd,xs=o(),hn=r("p"),hn.textContent=Id,qs=o(),Fe=r("div"),p(Ut.$$.fragment),$s=o(),fn=r("p"),fn.textContent=Dd,ks=o(),Ie=r("div"),p(Lt.$$.fragment),As=o(),_n=r("p"),_n.textContent=Wd,Ss=o(),De=r("div"),p(Nt.$$.fragment),Cs=o(),bn=r("p"),bn.textContent=Ud,Ps=o(),We=r("div"),p(jt.$$.fragment),zs=o(),vn=r("p"),vn.textContent=Ld,Ms=o(),te=r("div"),p(Ot.$$.fragment),Fs=o(),yn=r("p"),yn.innerHTML=Nd,Is=o(),Tn=r("p"),Tn.textContent=jd,Ds=o(),N=r("div"),p(Ht.$$.fragment),Ws=o(),wn=r("p"),wn.innerHTML=Od,Us=o(),xn=r("p"),xn.innerHTML=Hd,Ls=o(),qn=r("p"),qn.textContent=Rd,Ns=o(),oe=r("div"),p(Rt.$$.fragment),js=o(),$n=r("p"),$n.innerHTML=Jd,Os=o(),p(Ue.$$.fragment),Hs=o(),Le=r("div"),p(Jt.$$.fragment),Rs=o(),kn=r("p"),kn.innerHTML=Ed,Js=o(),Ne=r("div"),p(Et.$$.fragment),Es=o(),An=r("p"),An.textContent=Bd,Bs=o(),je=r("div"),p(Bt.$$.fragment),Gs=o(),Sn=r("p"),Sn.innerHTML=Gd,Vs=o(),ne=r("div"),p(Gt.$$.fragment),Xs=o(),Cn=r("p"),Cn.innerHTML=Vd,Zs=o(),Pn=r("p"),Pn.textContent=Xd,Ys=o(),P=r("div"),p(Vt.$$.fragment),Qs=o(),zn=r("p"),zn.textContent=Zd,Ks=o(),Mn=r("p"),Mn.textContent=Yd,ei=o(),Fn=r("p"),Fn.textContent=Qd,ti=o(),In=r("p"),In.innerHTML=Kd,oi=o(),p(Oe.$$.fragment),ni=o(),Dn=r("p"),Dn.innerHTML=ec,ri=o(),Wn=r("ul"),Wn.innerHTML=tc,ai=o(),Un=r("p"),Un.textContent=oc,si=o(),Ln=r("p"),Ln.textContent=nc,ii=o(),Nn=r("p"),Nn.innerHTML=rc,li=o(),jn=r("p"),jn.innerHTML=ac,di=o(),On=r("p"),On.innerHTML=sc,ci=o(),Hn=r("p"),Hn.innerHTML=ic,mi=o(),Rn=r("p"),Rn.innerHTML=lc,pi=o(),Jn=r("p"),Jn.textContent=dc,ui=o(),He=r("div"),p(Xt.$$.fragment),gi=o(),En=r("p"),En.textContent=cc,hi=o(),Re=r("div"),p(Zt.$$.fragment),fi=o(),Bn=r("p"),Bn.innerHTML=mc,_i=o(),Je=r("div"),p(Yt.$$.fragment),bi=o(),Gn=r("p"),Gn.innerHTML=pc,vi=o(),re=r("div"),p(Qt.$$.fragment),yi=o(),Vn=r("p"),Vn.innerHTML=uc,Ti=o(),Xn=r("p"),Xn.innerHTML=gc,wi=o(),I=r("div"),p(Kt.$$.fragment),xi=o(),Zn=r("p"),Zn.textContent=hc,qi=o(),Yn=r("p"),Yn.innerHTML=fc,$i=o(),p(Ee.$$.fragment),ki=o(),Qn=r("p"),Qn.innerHTML=_c,Ai=o(),Kn=r("ul"),Kn.innerHTML=bc,Si=o(),ae=r("div"),p(eo.$$.fragment),Ci=o(),er=r("p"),er.innerHTML=vc,Pi=o(),tr=r("p"),tr.textContent=yc,zi=o(),se=r("div"),p(to.$$.fragment),Mi=o(),or=r("p"),or.innerHTML=Tc,Fi=o(),nr=r("p"),nr.textContent=wc,Ii=o(),Be=r("div"),p(oo.$$.fragment),Di=o(),rr=r("p"),rr.textContent=xc,Wi=o(),Ge=r("div"),p(no.$$.fragment),Ui=o(),ar=r("p"),ar.innerHTML=qc,Li=o(),Ve=r("div"),p(ro.$$.fragment),Ni=o(),sr=r("p"),sr.innerHTML=$c,ji=o(),j=r("div"),p(ao.$$.fragment),Oi=o(),ir=r("p"),ir.innerHTML=kc,Hi=o(),lr=r("p"),lr.textContent=Ac,Ri=o(),dr=r("p"),dr.innerHTML=Sc,Ji=o(),ie=r("div"),p(so.$$.fragment),Ei=o(),cr=r("p"),cr.innerHTML=Cc,Bi=o(),mr=r("p"),mr.textContent=Pc,Gi=o(),le=r("div"),p(io.$$.fragment),Vi=o(),pr=r("p"),pr.textContent=zc,Xi=o(),ur=r("p"),ur.textContent=Mc,Zi=o(),Xe=r("div"),p(lo.$$.fragment),Yi=o(),gr=r("p"),gr.textContent=Fc,Qi=o(),de=r("div"),p(co.$$.fragment),Ki=o(),hr=r("p"),hr.textContent=Ic,el=o(),fr=r("p"),fr.textContent=Dc,_a=o(),p(mo.$$.fragment),ba=o(),G=r("div"),p(po.$$.fragment),tl=o(),O=r("div"),p(uo.$$.fragment),ol=o(),_r=r("p"),_r.textContent=Wc,nl=o(),br=r("p"),br.innerHTML=Uc,rl=o(),vr=r("p"),vr.textContent=Lc,al=o(),D=r("div"),p(go.$$.fragment),sl=o(),yr=r("p"),yr.textContent=Nc,il=o(),Tr=r("p"),Tr.innerHTML=jc,ll=o(),p(Ze.$$.fragment),dl=o(),wr=r("p"),wr.innerHTML=Oc,cl=o(),xr=r("ul"),xr.innerHTML=Hc,va=o(),p(ho.$$.fragment),ya=o(),S=r("div"),p(fo.$$.fragment),ml=o(),qr=r("p"),qr.innerHTML=Rc,pl=o(),$r=r("p"),$r.innerHTML=Jc,ul=o(),W=r("div"),p(_o.$$.fragment),gl=o(),kr=r("p"),kr.textContent=Ec,hl=o(),Ar=r("p"),Ar.innerHTML=Bc,fl=o(),Sr=r("p"),Sr.innerHTML=Gc,_l=o(),Cr=r("p"),Cr.innerHTML=Vc,bl=o(),Ye=r("div"),p(bo.$$.fragment),vl=o(),Pr=r("p"),Pr.textContent=Xc,yl=o(),ce=r("div"),p(vo.$$.fragment),Tl=o(),zr=r("p"),zr.textContent=Zc,wl=o(),Mr=r("p"),Mr.innerHTML=Yc,xl=o(),me=r("div"),p(yo.$$.fragment),ql=o(),Fr=r("p"),Fr.textContent=Qc,$l=o(),p(Qe.$$.fragment),kl=o(),pe=r("div"),p(To.$$.fragment),Al=o(),Ir=r("p"),Ir.textContent=Kc,Sl=o(),p(Ke.$$.fragment),Cl=o(),ue=r("div"),p(wo.$$.fragment),Pl=o(),Dr=r("p"),Dr.textContent=em,zl=o(),p(et.$$.fragment),Ml=o(),ge=r("div"),p(xo.$$.fragment),Fl=o(),Wr=r("p"),Wr.textContent=tm,Il=o(),p(tt.$$.fragment),Dl=o(),he=r("div"),p(qo.$$.fragment),Wl=o(),Ur=r("p"),Ur.textContent=om,Ul=o(),p(ot.$$.fragment),Ll=o(),H=r("div"),p($o.$$.fragment),Nl=o(),Lr=r("p"),Lr.textContent=nm,jl=o(),p(nt.$$.fragment),Ol=o(),p(rt.$$.fragment),Hl=o(),fe=r("div"),p(ko.$$.fragment),Rl=o(),Nr=r("p"),Nr.textContent=rm,Jl=o(),p(at.$$.fragment),El=o(),R=r("div"),p(Ao.$$.fragment),Bl=o(),jr=r("p"),jr.textContent=am,Gl=o(),p(st.$$.fragment),Vl=o(),p(it.$$.fragment),Xl=o(),J=r("div"),p(So.$$.fragment),Zl=o(),Or=r("p"),Or.textContent=sm,Yl=o(),p(lt.$$.fragment),Ql=o(),p(dt.$$.fragment),Kl=o(),ct=r("div"),p(Co.$$.fragment),ed=o(),Hr=r("p"),Hr.innerHTML=im,td=o(),mt=r("div"),p(Po.$$.fragment),od=o(),Rr=r("p"),Rr.textContent=lm,nd=o(),pt=r("div"),p(zo.$$.fragment),rd=o(),Jr=r("p"),Jr.textContent=dm,Ta=o(),p(Mo.$$.fragment),wa=o(),U=r("div"),p(Fo.$$.fragment),ad=o(),Er=r("p"),Er.innerHTML=cm,sd=o(),Br=r("p"),Br.innerHTML=mm,id=o(),ut=r("div"),p(Io.$$.fragment),ld=o(),Gr=r("p"),Gr.innerHTML=pm,xa=o(),ma=r("p"),this.h()},l(t){const y=_m("svelte-u9bgzb",document.head);i=a(y,"META",{name:!0,content:!0}),y.forEach(d),$=n(t),m=a(t,"P",{}),T(m).forEach(d),c=n(t),u(q.$$.fragment,t),s=n(t),k=a(t,"P",{"data-svelte-h":!0}),l(k)!=="svelte-gg56my"&&(k.innerHTML=dd),ua=n(t),Tt=a(t,"P",{"data-svelte-h":!0}),l(Tt)!=="svelte-1y07u4p"&&(Tt.innerHTML=cd),ga=n(t),u(ke.$$.fragment,t),ha=n(t),u(wt.$$.fragment,t),fa=n(t),b=a(t,"DIV",{class:!0});var v=T(b);u(xt.$$.fragment,v),Oa=n(v),Eo=a(v,"P",{"data-svelte-h":!0}),l(Eo)!=="svelte-xa06uv"&&(Eo.textContent=md),Ha=n(v),Bo=a(v,"P",{"data-svelte-h":!0}),l(Bo)!=="svelte-1tbd587"&&(Bo.textContent=pd),Ra=n(v),Go=a(v,"UL",{"data-svelte-h":!0}),l(Go)!=="svelte-yvzbh4"&&(Go.innerHTML=ud),Ja=n(v),Ae=a(v,"DIV",{class:!0});var Do=T(Ae);u(qt.$$.fragment,Do),Ea=n(Do),Vo=a(Do,"P",{"data-svelte-h":!0}),l(Vo)!=="svelte-1ux4n0v"&&(Vo.innerHTML=gd),Do.forEach(d),Ba=n(v),Se=a(v,"DIV",{class:!0});var Wo=T(Se);u($t.$$.fragment,Wo),Ga=n(Wo),Xo=a(Wo,"P",{"data-svelte-h":!0}),l(Xo)!=="svelte-9kwitf"&&(Xo.innerHTML=hd),Wo.forEach(d),Va=n(v),X=a(v,"DIV",{class:!0});var ye=T(X);u(kt.$$.fragment,ye),Xa=n(ye),Zo=a(ye,"P",{"data-svelte-h":!0}),l(Zo)!=="svelte-1feheyo"&&(Zo.textContent=fd),Za=n(ye),Yo=a(ye,"P",{"data-svelte-h":!0}),l(Yo)!=="svelte-1be1oij"&&(Yo.textContent=_d),ye.forEach(d),Ya=n(v),Ce=a(v,"DIV",{class:!0});var Uo=T(Ce);u(At.$$.fragment,Uo),Qa=n(Uo),Qo=a(Uo,"P",{"data-svelte-h":!0}),l(Qo)!=="svelte-1agg8ch"&&(Qo.textContent=bd),Uo.forEach(d),Ka=n(v),Pe=a(v,"DIV",{class:!0});var Lo=T(Pe);u(St.$$.fragment,Lo),es=n(Lo),Ko=a(Lo,"P",{"data-svelte-h":!0}),l(Ko)!=="svelte-1mh859w"&&(Ko.innerHTML=vd),Lo.forEach(d),ts=n(v),Z=a(v,"DIV",{class:!0});var Te=T(Z);u(Ct.$$.fragment,Te),os=n(Te),en=a(Te,"P",{"data-svelte-h":!0}),l(en)!=="svelte-1w438iv"&&(en.textContent=yd),ns=n(Te),tn=a(Te,"P",{"data-svelte-h":!0}),l(tn)!=="svelte-nadplw"&&(tn.innerHTML=Td),Te.forEach(d),rs=n(v),Y=a(v,"DIV",{class:!0});var we=T(Y);u(Pt.$$.fragment,we),as=n(we),on=a(we,"P",{"data-svelte-h":!0}),l(on)!=="svelte-wdco14"&&(on.textContent=wd),ss=n(we),nn=a(we,"P",{"data-svelte-h":!0}),l(nn)!=="svelte-zasfqr"&&(nn.innerHTML=xd),we.forEach(d),is=n(v),ze=a(v,"DIV",{class:!0});var No=T(ze);u(zt.$$.fragment,No),ls=n(No),rn=a(No,"P",{"data-svelte-h":!0}),l(rn)!=="svelte-qi4mtl"&&(rn.textContent=qd),No.forEach(d),ds=n(v),L=a(v,"DIV",{class:!0});var V=T(L);u(Mt.$$.fragment,V),cs=n(V),an=a(V,"P",{"data-svelte-h":!0}),l(an)!=="svelte-1mcvryw"&&(an.textContent=$d),ms=n(V),sn=a(V,"P",{"data-svelte-h":!0}),l(sn)!=="svelte-1339kj6"&&(sn.innerHTML=kd),ps=n(V),ln=a(V,"P",{"data-svelte-h":!0}),l(ln)!=="svelte-1h30111"&&(ln.textContent=Ad),V.forEach(d),us=n(v),Q=a(v,"DIV",{class:!0});var xe=T(Q);u(Ft.$$.fragment,xe),gs=n(xe),dn=a(xe,"P",{"data-svelte-h":!0}),l(dn)!=="svelte-1v5gmc1"&&(dn.innerHTML=Sd),hs=n(xe),cn=a(xe,"P",{"data-svelte-h":!0}),l(cn)!=="svelte-1tyo99t"&&(cn.textContent=Cd),xe.forEach(d),fs=n(v),Me=a(v,"DIV",{class:!0});var jo=T(Me);u(It.$$.fragment,jo),_s=n(jo),mn=a(jo,"P",{"data-svelte-h":!0}),l(mn)!=="svelte-esvj26"&&(mn.innerHTML=Pd),jo.forEach(d),bs=n(v),K=a(v,"DIV",{class:!0});var qe=T(K);u(Dt.$$.fragment,qe),vs=n(qe),pn=a(qe,"P",{"data-svelte-h":!0}),l(pn)!=="svelte-yguuq6"&&(pn.textContent=zd),ys=n(qe),un=a(qe,"P",{"data-svelte-h":!0}),l(un)!=="svelte-452p7a"&&(un.textContent=Md),qe.forEach(d),Ts=n(v),ee=a(v,"DIV",{class:!0});var $e=T(ee);u(Wt.$$.fragment,$e),ws=n($e),gn=a($e,"P",{"data-svelte-h":!0}),l(gn)!=="svelte-xesobz"&&(gn.innerHTML=Fd),xs=n($e),hn=a($e,"P",{"data-svelte-h":!0}),l(hn)!=="svelte-1v6sccr"&&(hn.textContent=Id),$e.forEach(d),qs=n(v),Fe=a(v,"DIV",{class:!0});var Oo=T(Fe);u(Ut.$$.fragment,Oo),$s=n(Oo),fn=a(Oo,"P",{"data-svelte-h":!0}),l(fn)!=="svelte-fo0w3k"&&(fn.textContent=Dd),Oo.forEach(d),ks=n(v),Ie=a(v,"DIV",{class:!0});var Ho=T(Ie);u(Lt.$$.fragment,Ho),As=n(Ho),_n=a(Ho,"P",{"data-svelte-h":!0}),l(_n)!=="svelte-n48d75"&&(_n.textContent=Wd),Ho.forEach(d),Ss=n(v),De=a(v,"DIV",{class:!0});var Ro=T(De);u(Nt.$$.fragment,Ro),Cs=n(Ro),bn=a(Ro,"P",{"data-svelte-h":!0}),l(bn)!=="svelte-1enq7q"&&(bn.textContent=Ud),Ro.forEach(d),Ps=n(v),We=a(v,"DIV",{class:!0});var $a=T(We);u(jt.$$.fragment,$a),zs=n($a),vn=a($a,"P",{"data-svelte-h":!0}),l(vn)!=="svelte-4yzrvz"&&(vn.textContent=Ld),$a.forEach(d),Ms=n(v),te=a(v,"DIV",{class:!0});var Vr=T(te);u(Ot.$$.fragment,Vr),Fs=n(Vr),yn=a(Vr,"P",{"data-svelte-h":!0}),l(yn)!=="svelte-upvtbd"&&(yn.innerHTML=Nd),Is=n(Vr),Tn=a(Vr,"P",{"data-svelte-h":!0}),l(Tn)!=="svelte-1v6sccr"&&(Tn.textContent=jd),Vr.forEach(d),Ds=n(v),N=a(v,"DIV",{class:!0});var gt=T(N);u(Ht.$$.fragment,gt),Ws=n(gt),wn=a(gt,"P",{"data-svelte-h":!0}),l(wn)!=="svelte-dkae9b"&&(wn.innerHTML=Od),Us=n(gt),xn=a(gt,"P",{"data-svelte-h":!0}),l(xn)!=="svelte-2uvyde"&&(xn.innerHTML=Hd),Ls=n(gt),qn=a(gt,"P",{"data-svelte-h":!0}),l(qn)!=="svelte-1v6sccr"&&(qn.textContent=Rd),gt.forEach(d),Ns=n(v),oe=a(v,"DIV",{class:!0});var Xr=T(oe);u(Rt.$$.fragment,Xr),js=n(Xr),$n=a(Xr,"P",{"data-svelte-h":!0}),l($n)!=="svelte-mf62ka"&&($n.innerHTML=Jd),Os=n(Xr),u(Ue.$$.fragment,Xr),Xr.forEach(d),Hs=n(v),Le=a(v,"DIV",{class:!0});var ka=T(Le);u(Jt.$$.fragment,ka),Rs=n(ka),kn=a(ka,"P",{"data-svelte-h":!0}),l(kn)!=="svelte-rjlxwe"&&(kn.innerHTML=Ed),ka.forEach(d),Js=n(v),Ne=a(v,"DIV",{class:!0});var Aa=T(Ne);u(Et.$$.fragment,Aa),Es=n(Aa),An=a(Aa,"P",{"data-svelte-h":!0}),l(An)!=="svelte-16imdke"&&(An.textContent=Bd),Aa.forEach(d),Bs=n(v),je=a(v,"DIV",{class:!0});var Sa=T(je);u(Bt.$$.fragment,Sa),Gs=n(Sa),Sn=a(Sa,"P",{"data-svelte-h":!0}),l(Sn)!=="svelte-1s7jdq8"&&(Sn.innerHTML=Gd),Sa.forEach(d),Vs=n(v),ne=a(v,"DIV",{class:!0});var Zr=T(ne);u(Gt.$$.fragment,Zr),Xs=n(Zr),Cn=a(Zr,"P",{"data-svelte-h":!0}),l(Cn)!=="svelte-19fk55y"&&(Cn.innerHTML=Vd),Zs=n(Zr),Pn=a(Zr,"P",{"data-svelte-h":!0}),l(Pn)!=="svelte-1tz9xhn"&&(Pn.textContent=Xd),Zr.forEach(d),Ys=n(v),P=a(v,"DIV",{class:!0});var M=T(P);u(Vt.$$.fragment,M),Qs=n(M),zn=a(M,"P",{"data-svelte-h":!0}),l(zn)!=="svelte-1q4m3ey"&&(zn.textContent=Zd),Ks=n(M),Mn=a(M,"P",{"data-svelte-h":!0}),l(Mn)!=="svelte-5vrny9"&&(Mn.textContent=Yd),ei=n(M),Fn=a(M,"P",{"data-svelte-h":!0}),l(Fn)!=="svelte-k63f70"&&(Fn.textContent=Qd),ti=n(M),In=a(M,"P",{"data-svelte-h":!0}),l(In)!=="svelte-y2g1lw"&&(In.innerHTML=Kd),oi=n(M),u(Oe.$$.fragment,M),ni=n(M),Dn=a(M,"P",{"data-svelte-h":!0}),l(Dn)!=="svelte-ny4g3p"&&(Dn.innerHTML=ec),ri=n(M),Wn=a(M,"UL",{"data-svelte-h":!0}),l(Wn)!=="svelte-9luch7"&&(Wn.innerHTML=tc),ai=n(M),Un=a(M,"P",{"data-svelte-h":!0}),l(Un)!=="svelte-100tlvw"&&(Un.textContent=oc),si=n(M),Ln=a(M,"P",{"data-svelte-h":!0}),l(Ln)!=="svelte-1d82c6u"&&(Ln.textContent=nc),ii=n(M),Nn=a(M,"P",{"data-svelte-h":!0}),l(Nn)!=="svelte-d1rr2j"&&(Nn.innerHTML=rc),li=n(M),jn=a(M,"P",{"data-svelte-h":!0}),l(jn)!=="svelte-m7v5wt"&&(jn.innerHTML=ac),di=n(M),On=a(M,"P",{"data-svelte-h":!0}),l(On)!=="svelte-1propb9"&&(On.innerHTML=sc),ci=n(M),Hn=a(M,"P",{"data-svelte-h":!0}),l(Hn)!=="svelte-1lmh4zl"&&(Hn.innerHTML=ic),mi=n(M),Rn=a(M,"P",{"data-svelte-h":!0}),l(Rn)!=="svelte-1h5qcpr"&&(Rn.innerHTML=lc),pi=n(M),Jn=a(M,"P",{"data-svelte-h":!0}),l(Jn)!=="svelte-1ocu6t3"&&(Jn.textContent=dc),M.forEach(d),ui=n(v),He=a(v,"DIV",{class:!0});var Ca=T(He);u(Xt.$$.fragment,Ca),gi=n(Ca),En=a(Ca,"P",{"data-svelte-h":!0}),l(En)!=="svelte-otcx5b"&&(En.textContent=cc),Ca.forEach(d),hi=n(v),Re=a(v,"DIV",{class:!0});var Pa=T(Re);u(Zt.$$.fragment,Pa),fi=n(Pa),Bn=a(Pa,"P",{"data-svelte-h":!0}),l(Bn)!=="svelte-19inmpu"&&(Bn.innerHTML=mc),Pa.forEach(d),_i=n(v),Je=a(v,"DIV",{class:!0});var za=T(Je);u(Yt.$$.fragment,za),bi=n(za),Gn=a(za,"P",{"data-svelte-h":!0}),l(Gn)!=="svelte-tkw811"&&(Gn.innerHTML=pc),za.forEach(d),vi=n(v),re=a(v,"DIV",{class:!0});var Yr=T(re);u(Qt.$$.fragment,Yr),yi=n(Yr),Vn=a(Yr,"P",{"data-svelte-h":!0}),l(Vn)!=="svelte-2sdd8y"&&(Vn.innerHTML=uc),Ti=n(Yr),Xn=a(Yr,"P",{"data-svelte-h":!0}),l(Xn)!=="svelte-1ojzwr1"&&(Xn.innerHTML=gc),Yr.forEach(d),wi=n(v),I=a(v,"DIV",{class:!0});var E=T(I);u(Kt.$$.fragment,E),xi=n(E),Zn=a(E,"P",{"data-svelte-h":!0}),l(Zn)!=="svelte-1b6cpoy"&&(Zn.textContent=hc),qi=n(E),Yn=a(E,"P",{"data-svelte-h":!0}),l(Yn)!=="svelte-o30dtk"&&(Yn.innerHTML=fc),$i=n(E),u(Ee.$$.fragment,E),ki=n(E),Qn=a(E,"P",{"data-svelte-h":!0}),l(Qn)!=="svelte-1t1ea6f"&&(Qn.innerHTML=_c),Ai=n(E),Kn=a(E,"UL",{"data-svelte-h":!0}),l(Kn)!=="svelte-15ctb4a"&&(Kn.innerHTML=bc),E.forEach(d),Si=n(v),ae=a(v,"DIV",{class:!0});var Qr=T(ae);u(eo.$$.fragment,Qr),Ci=n(Qr),er=a(Qr,"P",{"data-svelte-h":!0}),l(er)!=="svelte-1v5gmc1"&&(er.innerHTML=vc),Pi=n(Qr),tr=a(Qr,"P",{"data-svelte-h":!0}),l(tr)!=="svelte-1tyo99t"&&(tr.textContent=yc),Qr.forEach(d),zi=n(v),se=a(v,"DIV",{class:!0});var Kr=T(se);u(to.$$.fragment,Kr),Mi=n(Kr),or=a(Kr,"P",{"data-svelte-h":!0}),l(or)!=="svelte-1y56pc5"&&(or.innerHTML=Tc),Fi=n(Kr),nr=a(Kr,"P",{"data-svelte-h":!0}),l(nr)!=="svelte-qjfexy"&&(nr.textContent=wc),Kr.forEach(d),Ii=n(v),Be=a(v,"DIV",{class:!0});var Ma=T(Be);u(oo.$$.fragment,Ma),Di=n(Ma),rr=a(Ma,"P",{"data-svelte-h":!0}),l(rr)!=="svelte-o5qc7e"&&(rr.textContent=xc),Ma.forEach(d),Wi=n(v),Ge=a(v,"DIV",{class:!0});var Fa=T(Ge);u(no.$$.fragment,Fa),Ui=n(Fa),ar=a(Fa,"P",{"data-svelte-h":!0}),l(ar)!=="svelte-1jhnoxo"&&(ar.innerHTML=qc),Fa.forEach(d),Li=n(v),Ve=a(v,"DIV",{class:!0});var Ia=T(Ve);u(ro.$$.fragment,Ia),Ni=n(Ia),sr=a(Ia,"P",{"data-svelte-h":!0}),l(sr)!=="svelte-1qgxbp7"&&(sr.innerHTML=$c),Ia.forEach(d),ji=n(v),j=a(v,"DIV",{class:!0});var ht=T(j);u(ao.$$.fragment,ht),Oi=n(ht),ir=a(ht,"P",{"data-svelte-h":!0}),l(ir)!=="svelte-9dohab"&&(ir.innerHTML=kc),Hi=n(ht),lr=a(ht,"P",{"data-svelte-h":!0}),l(lr)!=="svelte-5vrny9"&&(lr.textContent=Ac),Ri=n(ht),dr=a(ht,"P",{"data-svelte-h":!0}),l(dr)!=="svelte-1tk52ex"&&(dr.innerHTML=Sc),ht.forEach(d),Ji=n(v),ie=a(v,"DIV",{class:!0});var ea=T(ie);u(so.$$.fragment,ea),Ei=n(ea),cr=a(ea,"P",{"data-svelte-h":!0}),l(cr)!=="svelte-r8h4ov"&&(cr.innerHTML=Cc),Bi=n(ea),mr=a(ea,"P",{"data-svelte-h":!0}),l(mr)!=="svelte-1e6bius"&&(mr.textContent=Pc),ea.forEach(d),Gi=n(v),le=a(v,"DIV",{class:!0});var ta=T(le);u(io.$$.fragment,ta),Vi=n(ta),pr=a(ta,"P",{"data-svelte-h":!0}),l(pr)!=="svelte-1g3hgx9"&&(pr.textContent=zc),Xi=n(ta),ur=a(ta,"P",{"data-svelte-h":!0}),l(ur)!=="svelte-5vrny9"&&(ur.textContent=Mc),ta.forEach(d),Zi=n(v),Xe=a(v,"DIV",{class:!0});var Da=T(Xe);u(lo.$$.fragment,Da),Yi=n(Da),gr=a(Da,"P",{"data-svelte-h":!0}),l(gr)!=="svelte-1cilnet"&&(gr.textContent=Fc),Da.forEach(d),Qi=n(v),de=a(v,"DIV",{class:!0});var oa=T(de);u(co.$$.fragment,oa),Ki=n(oa),hr=a(oa,"P",{"data-svelte-h":!0}),l(hr)!=="svelte-4qplkw"&&(hr.textContent=Ic),el=n(oa),fr=a(oa,"P",{"data-svelte-h":!0}),l(fr)!=="svelte-qjfexy"&&(fr.textContent=Dc),oa.forEach(d),v.forEach(d),_a=n(t),u(mo.$$.fragment,t),ba=n(t),G=a(t,"DIV",{class:!0});var na=T(G);u(po.$$.fragment,na),tl=n(na),O=a(na,"DIV",{class:!0});var ft=T(O);u(uo.$$.fragment,ft),ol=n(ft),_r=a(ft,"P",{"data-svelte-h":!0}),l(_r)!=="svelte-1mcvryw"&&(_r.textContent=Wc),nl=n(ft),br=a(ft,"P",{"data-svelte-h":!0}),l(br)!=="svelte-1339kj6"&&(br.innerHTML=Uc),rl=n(ft),vr=a(ft,"P",{"data-svelte-h":!0}),l(vr)!=="svelte-1h30111"&&(vr.textContent=Lc),ft.forEach(d),al=n(na),D=a(na,"DIV",{class:!0});var B=T(D);u(go.$$.fragment,B),sl=n(B),yr=a(B,"P",{"data-svelte-h":!0}),l(yr)!=="svelte-1b6cpoy"&&(yr.textContent=Nc),il=n(B),Tr=a(B,"P",{"data-svelte-h":!0}),l(Tr)!=="svelte-o30dtk"&&(Tr.innerHTML=jc),ll=n(B),u(Ze.$$.fragment,B),dl=n(B),wr=a(B,"P",{"data-svelte-h":!0}),l(wr)!=="svelte-1t1ea6f"&&(wr.innerHTML=Oc),cl=n(B),xr=a(B,"UL",{"data-svelte-h":!0}),l(xr)!=="svelte-15ctb4a"&&(xr.innerHTML=Hc),B.forEach(d),na.forEach(d),va=n(t),u(ho.$$.fragment,t),ya=n(t),S=a(t,"DIV",{class:!0});var z=T(S);u(fo.$$.fragment,z),ml=n(z),qr=a(z,"P",{"data-svelte-h":!0}),l(qr)!=="svelte-avfxjl"&&(qr.innerHTML=Rc),pl=n(z),$r=a(z,"P",{"data-svelte-h":!0}),l($r)!=="svelte-1yoivqo"&&($r.innerHTML=Jc),ul=n(z),W=a(z,"DIV",{class:!0});var _e=T(W);u(_o.$$.fragment,_e),gl=n(_e),kr=a(_e,"P",{"data-svelte-h":!0}),l(kr)!=="svelte-hj8f41"&&(kr.textContent=Ec),hl=n(_e),Ar=a(_e,"P",{"data-svelte-h":!0}),l(Ar)!=="svelte-1iq1lj0"&&(Ar.innerHTML=Bc),fl=n(_e),Sr=a(_e,"P",{"data-svelte-h":!0}),l(Sr)!=="svelte-18bal86"&&(Sr.innerHTML=Gc),_l=n(_e),Cr=a(_e,"P",{"data-svelte-h":!0}),l(Cr)!=="svelte-oacj0p"&&(Cr.innerHTML=Vc),_e.forEach(d),bl=n(z),Ye=a(z,"DIV",{class:!0});var Wa=T(Ye);u(bo.$$.fragment,Wa),vl=n(Wa),Pr=a(Wa,"P",{"data-svelte-h":!0}),l(Pr)!=="svelte-9pbc1"&&(Pr.textContent=Xc),Wa.forEach(d),yl=n(z),ce=a(z,"DIV",{class:!0});var ra=T(ce);u(vo.$$.fragment,ra),Tl=n(ra),zr=a(ra,"P",{"data-svelte-h":!0}),l(zr)!=="svelte-13fy4lg"&&(zr.textContent=Zc),wl=n(ra),Mr=a(ra,"P",{"data-svelte-h":!0}),l(Mr)!=="svelte-1aa165w"&&(Mr.innerHTML=Yc),ra.forEach(d),xl=n(z),me=a(z,"DIV",{class:!0});var aa=T(me);u(yo.$$.fragment,aa),ql=n(aa),Fr=a(aa,"P",{"data-svelte-h":!0}),l(Fr)!=="svelte-12p68tr"&&(Fr.textContent=Qc),$l=n(aa),u(Qe.$$.fragment,aa),aa.forEach(d),kl=n(z),pe=a(z,"DIV",{class:!0});var sa=T(pe);u(To.$$.fragment,sa),Al=n(sa),Ir=a(sa,"P",{"data-svelte-h":!0}),l(Ir)!=="svelte-9ywrxl"&&(Ir.textContent=Kc),Sl=n(sa),u(Ke.$$.fragment,sa),sa.forEach(d),Cl=n(z),ue=a(z,"DIV",{class:!0});var ia=T(ue);u(wo.$$.fragment,ia),Pl=n(ia),Dr=a(ia,"P",{"data-svelte-h":!0}),l(Dr)!=="svelte-1lwqsi8"&&(Dr.textContent=em),zl=n(ia),u(et.$$.fragment,ia),ia.forEach(d),Ml=n(z),ge=a(z,"DIV",{class:!0});var la=T(ge);u(xo.$$.fragment,la),Fl=n(la),Wr=a(la,"P",{"data-svelte-h":!0}),l(Wr)!=="svelte-mc54aq"&&(Wr.textContent=tm),Il=n(la),u(tt.$$.fragment,la),la.forEach(d),Dl=n(z),he=a(z,"DIV",{class:!0});var da=T(he);u(qo.$$.fragment,da),Wl=n(da),Ur=a(da,"P",{"data-svelte-h":!0}),l(Ur)!=="svelte-18hco78"&&(Ur.textContent=om),Ul=n(da),u(ot.$$.fragment,da),da.forEach(d),Ll=n(z),H=a(z,"DIV",{class:!0});var _t=T(H);u($o.$$.fragment,_t),Nl=n(_t),Lr=a(_t,"P",{"data-svelte-h":!0}),l(Lr)!=="svelte-y1tcex"&&(Lr.textContent=nm),jl=n(_t),u(nt.$$.fragment,_t),Ol=n(_t),u(rt.$$.fragment,_t),_t.forEach(d),Hl=n(z),fe=a(z,"DIV",{class:!0});var ca=T(fe);u(ko.$$.fragment,ca),Rl=n(ca),Nr=a(ca,"P",{"data-svelte-h":!0}),l(Nr)!=="svelte-1duj623"&&(Nr.textContent=rm),Jl=n(ca),u(at.$$.fragment,ca),ca.forEach(d),El=n(z),R=a(z,"DIV",{class:!0});var bt=T(R);u(Ao.$$.fragment,bt),Bl=n(bt),jr=a(bt,"P",{"data-svelte-h":!0}),l(jr)!=="svelte-lhuo6p"&&(jr.textContent=am),Gl=n(bt),u(st.$$.fragment,bt),Vl=n(bt),u(it.$$.fragment,bt),bt.forEach(d),Xl=n(z),J=a(z,"DIV",{class:!0});var vt=T(J);u(So.$$.fragment,vt),Zl=n(vt),Or=a(vt,"P",{"data-svelte-h":!0}),l(Or)!=="svelte-1h65v06"&&(Or.textContent=sm),Yl=n(vt),u(lt.$$.fragment,vt),Ql=n(vt),u(dt.$$.fragment,vt),vt.forEach(d),Kl=n(z),ct=a(z,"DIV",{class:!0});var Ua=T(ct);u(Co.$$.fragment,Ua),ed=n(Ua),Hr=a(Ua,"P",{"data-svelte-h":!0}),l(Hr)!=="svelte-1ciob6u"&&(Hr.innerHTML=im),Ua.forEach(d),td=n(z),mt=a(z,"DIV",{class:!0});var La=T(mt);u(Po.$$.fragment,La),od=n(La),Rr=a(La,"P",{"data-svelte-h":!0}),l(Rr)!=="svelte-5ayq1f"&&(Rr.textContent=lm),La.forEach(d),nd=n(z),pt=a(z,"DIV",{class:!0});var Na=T(pt);u(zo.$$.fragment,Na),rd=n(Na),Jr=a(Na,"P",{"data-svelte-h":!0}),l(Jr)!=="svelte-lg45ly"&&(Jr.textContent=dm),Na.forEach(d),z.forEach(d),Ta=n(t),u(Mo.$$.fragment,t),wa=n(t),U=a(t,"DIV",{class:!0});var yt=T(U);u(Fo.$$.fragment,yt),ad=n(yt),Er=a(yt,"P",{"data-svelte-h":!0}),l(Er)!=="svelte-avfxjl"&&(Er.innerHTML=cm),sd=n(yt),Br=a(yt,"P",{"data-svelte-h":!0}),l(Br)!=="svelte-1yoivqo"&&(Br.innerHTML=mm),id=n(yt),ut=a(yt,"DIV",{class:!0});var ja=T(ut);u(Io.$$.fragment,ja),ld=n(ja),Gr=a(ja,"P",{"data-svelte-h":!0}),l(Gr)!=="svelte-yrflrv"&&(Gr.innerHTML=pm),ja.forEach(d),yt.forEach(d),xa=n(t),ma=a(t,"P",{}),T(ma).forEach(d),this.h()},h(){w(i,"name","hf:doc:metadata"),w(i,"content",Wm),w(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(De,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(He,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(pt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ut,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(t,y){e(document.head,i),A(t,$,y),A(t,m,y),A(t,c,y),g(q,t,y),A(t,s,y),A(t,k,y),A(t,ua,y),A(t,Tt,y),A(t,ga,y),g(ke,t,y),A(t,ha,y),g(wt,t,y),A(t,fa,y),A(t,b,y),g(xt,b,null),e(b,Oa),e(b,Eo),e(b,Ha),e(b,Bo),e(b,Ra),e(b,Go),e(b,Ja),e(b,Ae),g(qt,Ae,null),e(Ae,Ea),e(Ae,Vo),e(b,Ba),e(b,Se),g($t,Se,null),e(Se,Ga),e(Se,Xo),e(b,Va),e(b,X),g(kt,X,null),e(X,Xa),e(X,Zo),e(X,Za),e(X,Yo),e(b,Ya),e(b,Ce),g(At,Ce,null),e(Ce,Qa),e(Ce,Qo),e(b,Ka),e(b,Pe),g(St,Pe,null),e(Pe,es),e(Pe,Ko),e(b,ts),e(b,Z),g(Ct,Z,null),e(Z,os),e(Z,en),e(Z,ns),e(Z,tn),e(b,rs),e(b,Y),g(Pt,Y,null),e(Y,as),e(Y,on),e(Y,ss),e(Y,nn),e(b,is),e(b,ze),g(zt,ze,null),e(ze,ls),e(ze,rn),e(b,ds),e(b,L),g(Mt,L,null),e(L,cs),e(L,an),e(L,ms),e(L,sn),e(L,ps),e(L,ln),e(b,us),e(b,Q),g(Ft,Q,null),e(Q,gs),e(Q,dn),e(Q,hs),e(Q,cn),e(b,fs),e(b,Me),g(It,Me,null),e(Me,_s),e(Me,mn),e(b,bs),e(b,K),g(Dt,K,null),e(K,vs),e(K,pn),e(K,ys),e(K,un),e(b,Ts),e(b,ee),g(Wt,ee,null),e(ee,ws),e(ee,gn),e(ee,xs),e(ee,hn),e(b,qs),e(b,Fe),g(Ut,Fe,null),e(Fe,$s),e(Fe,fn),e(b,ks),e(b,Ie),g(Lt,Ie,null),e(Ie,As),e(Ie,_n),e(b,Ss),e(b,De),g(Nt,De,null),e(De,Cs),e(De,bn),e(b,Ps),e(b,We),g(jt,We,null),e(We,zs),e(We,vn),e(b,Ms),e(b,te),g(Ot,te,null),e(te,Fs),e(te,yn),e(te,Is),e(te,Tn),e(b,Ds),e(b,N),g(Ht,N,null),e(N,Ws),e(N,wn),e(N,Us),e(N,xn),e(N,Ls),e(N,qn),e(b,Ns),e(b,oe),g(Rt,oe,null),e(oe,js),e(oe,$n),e(oe,Os),g(Ue,oe,null),e(b,Hs),e(b,Le),g(Jt,Le,null),e(Le,Rs),e(Le,kn),e(b,Js),e(b,Ne),g(Et,Ne,null),e(Ne,Es),e(Ne,An),e(b,Bs),e(b,je),g(Bt,je,null),e(je,Gs),e(je,Sn),e(b,Vs),e(b,ne),g(Gt,ne,null),e(ne,Xs),e(ne,Cn),e(ne,Zs),e(ne,Pn),e(b,Ys),e(b,P),g(Vt,P,null),e(P,Qs),e(P,zn),e(P,Ks),e(P,Mn),e(P,ei),e(P,Fn),e(P,ti),e(P,In),e(P,oi),g(Oe,P,null),e(P,ni),e(P,Dn),e(P,ri),e(P,Wn),e(P,ai),e(P,Un),e(P,si),e(P,Ln),e(P,ii),e(P,Nn),e(P,li),e(P,jn),e(P,di),e(P,On),e(P,ci),e(P,Hn),e(P,mi),e(P,Rn),e(P,pi),e(P,Jn),e(b,ui),e(b,He),g(Xt,He,null),e(He,gi),e(He,En),e(b,hi),e(b,Re),g(Zt,Re,null),e(Re,fi),e(Re,Bn),e(b,_i),e(b,Je),g(Yt,Je,null),e(Je,bi),e(Je,Gn),e(b,vi),e(b,re),g(Qt,re,null),e(re,yi),e(re,Vn),e(re,Ti),e(re,Xn),e(b,wi),e(b,I),g(Kt,I,null),e(I,xi),e(I,Zn),e(I,qi),e(I,Yn),e(I,$i),g(Ee,I,null),e(I,ki),e(I,Qn),e(I,Ai),e(I,Kn),e(b,Si),e(b,ae),g(eo,ae,null),e(ae,Ci),e(ae,er),e(ae,Pi),e(ae,tr),e(b,zi),e(b,se),g(to,se,null),e(se,Mi),e(se,or),e(se,Fi),e(se,nr),e(b,Ii),e(b,Be),g(oo,Be,null),e(Be,Di),e(Be,rr),e(b,Wi),e(b,Ge),g(no,Ge,null),e(Ge,Ui),e(Ge,ar),e(b,Li),e(b,Ve),g(ro,Ve,null),e(Ve,Ni),e(Ve,sr),e(b,ji),e(b,j),g(ao,j,null),e(j,Oi),e(j,ir),e(j,Hi),e(j,lr),e(j,Ri),e(j,dr),e(b,Ji),e(b,ie),g(so,ie,null),e(ie,Ei),e(ie,cr),e(ie,Bi),e(ie,mr),e(b,Gi),e(b,le),g(io,le,null),e(le,Vi),e(le,pr),e(le,Xi),e(le,ur),e(b,Zi),e(b,Xe),g(lo,Xe,null),e(Xe,Yi),e(Xe,gr),e(b,Qi),e(b,de),g(co,de,null),e(de,Ki),e(de,hr),e(de,el),e(de,fr),A(t,_a,y),g(mo,t,y),A(t,ba,y),A(t,G,y),g(po,G,null),e(G,tl),e(G,O),g(uo,O,null),e(O,ol),e(O,_r),e(O,nl),e(O,br),e(O,rl),e(O,vr),e(G,al),e(G,D),g(go,D,null),e(D,sl),e(D,yr),e(D,il),e(D,Tr),e(D,ll),g(Ze,D,null),e(D,dl),e(D,wr),e(D,cl),e(D,xr),A(t,va,y),g(ho,t,y),A(t,ya,y),A(t,S,y),g(fo,S,null),e(S,ml),e(S,qr),e(S,pl),e(S,$r),e(S,ul),e(S,W),g(_o,W,null),e(W,gl),e(W,kr),e(W,hl),e(W,Ar),e(W,fl),e(W,Sr),e(W,_l),e(W,Cr),e(S,bl),e(S,Ye),g(bo,Ye,null),e(Ye,vl),e(Ye,Pr),e(S,yl),e(S,ce),g(vo,ce,null),e(ce,Tl),e(ce,zr),e(ce,wl),e(ce,Mr),e(S,xl),e(S,me),g(yo,me,null),e(me,ql),e(me,Fr),e(me,$l),g(Qe,me,null),e(S,kl),e(S,pe),g(To,pe,null),e(pe,Al),e(pe,Ir),e(pe,Sl),g(Ke,pe,null),e(S,Cl),e(S,ue),g(wo,ue,null),e(ue,Pl),e(ue,Dr),e(ue,zl),g(et,ue,null),e(S,Ml),e(S,ge),g(xo,ge,null),e(ge,Fl),e(ge,Wr),e(ge,Il),g(tt,ge,null),e(S,Dl),e(S,he),g(qo,he,null),e(he,Wl),e(he,Ur),e(he,Ul),g(ot,he,null),e(S,Ll),e(S,H),g($o,H,null),e(H,Nl),e(H,Lr),e(H,jl),g(nt,H,null),e(H,Ol),g(rt,H,null),e(S,Hl),e(S,fe),g(ko,fe,null),e(fe,Rl),e(fe,Nr),e(fe,Jl),g(at,fe,null),e(S,El),e(S,R),g(Ao,R,null),e(R,Bl),e(R,jr),e(R,Gl),g(st,R,null),e(R,Vl),g(it,R,null),e(S,Xl),e(S,J),g(So,J,null),e(J,Zl),e(J,Or),e(J,Yl),g(lt,J,null),e(J,Ql),g(dt,J,null),e(S,Kl),e(S,ct),g(Co,ct,null),e(ct,ed),e(ct,Hr),e(S,td),e(S,mt),g(Po,mt,null),e(mt,od),e(mt,Rr),e(S,nd),e(S,pt),g(zo,pt,null),e(pt,rd),e(pt,Jr),A(t,Ta,y),g(Mo,t,y),A(t,wa,y),A(t,U,y),g(Fo,U,null),e(U,ad),e(U,Er),e(U,sd),e(U,Br),e(U,id),e(U,ut),g(Io,ut,null),e(ut,ld),e(ut,Gr),A(t,xa,y),A(t,ma,y),qa=!0},p(t,[y]){const v={};y&2&&(v.$$scope={dirty:y,ctx:t}),ke.$set(v);const Do={};y&2&&(Do.$$scope={dirty:y,ctx:t}),Ue.$set(Do);const Wo={};y&2&&(Wo.$$scope={dirty:y,ctx:t}),Oe.$set(Wo);const ye={};y&2&&(ye.$$scope={dirty:y,ctx:t}),Ee.$set(ye);const Uo={};y&2&&(Uo.$$scope={dirty:y,ctx:t}),Ze.$set(Uo);const Lo={};y&2&&(Lo.$$scope={dirty:y,ctx:t}),Qe.$set(Lo);const Te={};y&2&&(Te.$$scope={dirty:y,ctx:t}),Ke.$set(Te);const we={};y&2&&(we.$$scope={dirty:y,ctx:t}),et.$set(we);const No={};y&2&&(No.$$scope={dirty:y,ctx:t}),tt.$set(No);const V={};y&2&&(V.$$scope={dirty:y,ctx:t}),ot.$set(V);const xe={};y&2&&(xe.$$scope={dirty:y,ctx:t}),nt.$set(xe);const jo={};y&2&&(jo.$$scope={dirty:y,ctx:t}),rt.$set(jo);const qe={};y&2&&(qe.$$scope={dirty:y,ctx:t}),at.$set(qe);const $e={};y&2&&($e.$$scope={dirty:y,ctx:t}),st.$set($e);const Oo={};y&2&&(Oo.$$scope={dirty:y,ctx:t}),it.$set(Oo);const Ho={};y&2&&(Ho.$$scope={dirty:y,ctx:t}),lt.$set(Ho);const Ro={};y&2&&(Ro.$$scope={dirty:y,ctx:t}),dt.$set(Ro)},i(t){qa||(h(q.$$.fragment,t),h(ke.$$.fragment,t),h(wt.$$.fragment,t),h(xt.$$.fragment,t),h(qt.$$.fragment,t),h($t.$$.fragment,t),h(kt.$$.fragment,t),h(At.$$.fragment,t),h(St.$$.fragment,t),h(Ct.$$.fragment,t),h(Pt.$$.fragment,t),h(zt.$$.fragment,t),h(Mt.$$.fragment,t),h(Ft.$$.fragment,t),h(It.$$.fragment,t),h(Dt.$$.fragment,t),h(Wt.$$.fragment,t),h(Ut.$$.fragment,t),h(Lt.$$.fragment,t),h(Nt.$$.fragment,t),h(jt.$$.fragment,t),h(Ot.$$.fragment,t),h(Ht.$$.fragment,t),h(Rt.$$.fragment,t),h(Ue.$$.fragment,t),h(Jt.$$.fragment,t),h(Et.$$.fragment,t),h(Bt.$$.fragment,t),h(Gt.$$.fragment,t),h(Vt.$$.fragment,t),h(Oe.$$.fragment,t),h(Xt.$$.fragment,t),h(Zt.$$.fragment,t),h(Yt.$$.fragment,t),h(Qt.$$.fragment,t),h(Kt.$$.fragment,t),h(Ee.$$.fragment,t),h(eo.$$.fragment,t),h(to.$$.fragment,t),h(oo.$$.fragment,t),h(no.$$.fragment,t),h(ro.$$.fragment,t),h(ao.$$.fragment,t),h(so.$$.fragment,t),h(io.$$.fragment,t),h(lo.$$.fragment,t),h(co.$$.fragment,t),h(mo.$$.fragment,t),h(po.$$.fragment,t),h(uo.$$.fragment,t),h(go.$$.fragment,t),h(Ze.$$.fragment,t),h(ho.$$.fragment,t),h(fo.$$.fragment,t),h(_o.$$.fragment,t),h(bo.$$.fragment,t),h(vo.$$.fragment,t),h(yo.$$.fragment,t),h(Qe.$$.fragment,t),h(To.$$.fragment,t),h(Ke.$$.fragment,t),h(wo.$$.fragment,t),h(et.$$.fragment,t),h(xo.$$.fragment,t),h(tt.$$.fragment,t),h(qo.$$.fragment,t),h(ot.$$.fragment,t),h($o.$$.fragment,t),h(nt.$$.fragment,t),h(rt.$$.fragment,t),h(ko.$$.fragment,t),h(at.$$.fragment,t),h(Ao.$$.fragment,t),h(st.$$.fragment,t),h(it.$$.fragment,t),h(So.$$.fragment,t),h(lt.$$.fragment,t),h(dt.$$.fragment,t),h(Co.$$.fragment,t),h(Po.$$.fragment,t),h(zo.$$.fragment,t),h(Mo.$$.fragment,t),h(Fo.$$.fragment,t),h(Io.$$.fragment,t),qa=!0)},o(t){f(q.$$.fragment,t),f(ke.$$.fragment,t),f(wt.$$.fragment,t),f(xt.$$.fragment,t),f(qt.$$.fragment,t),f($t.$$.fragment,t),f(kt.$$.fragment,t),f(At.$$.fragment,t),f(St.$$.fragment,t),f(Ct.$$.fragment,t),f(Pt.$$.fragment,t),f(zt.$$.fragment,t),f(Mt.$$.fragment,t),f(Ft.$$.fragment,t),f(It.$$.fragment,t),f(Dt.$$.fragment,t),f(Wt.$$.fragment,t),f(Ut.$$.fragment,t),f(Lt.$$.fragment,t),f(Nt.$$.fragment,t),f(jt.$$.fragment,t),f(Ot.$$.fragment,t),f(Ht.$$.fragment,t),f(Rt.$$.fragment,t),f(Ue.$$.fragment,t),f(Jt.$$.fragment,t),f(Et.$$.fragment,t),f(Bt.$$.fragment,t),f(Gt.$$.fragment,t),f(Vt.$$.fragment,t),f(Oe.$$.fragment,t),f(Xt.$$.fragment,t),f(Zt.$$.fragment,t),f(Yt.$$.fragment,t),f(Qt.$$.fragment,t),f(Kt.$$.fragment,t),f(Ee.$$.fragment,t),f(eo.$$.fragment,t),f(to.$$.fragment,t),f(oo.$$.fragment,t),f(no.$$.fragment,t),f(ro.$$.fragment,t),f(ao.$$.fragment,t),f(so.$$.fragment,t),f(io.$$.fragment,t),f(lo.$$.fragment,t),f(co.$$.fragment,t),f(mo.$$.fragment,t),f(po.$$.fragment,t),f(uo.$$.fragment,t),f(go.$$.fragment,t),f(Ze.$$.fragment,t),f(ho.$$.fragment,t),f(fo.$$.fragment,t),f(_o.$$.fragment,t),f(bo.$$.fragment,t),f(vo.$$.fragment,t),f(yo.$$.fragment,t),f(Qe.$$.fragment,t),f(To.$$.fragment,t),f(Ke.$$.fragment,t),f(wo.$$.fragment,t),f(et.$$.fragment,t),f(xo.$$.fragment,t),f(tt.$$.fragment,t),f(qo.$$.fragment,t),f(ot.$$.fragment,t),f($o.$$.fragment,t),f(nt.$$.fragment,t),f(rt.$$.fragment,t),f(ko.$$.fragment,t),f(at.$$.fragment,t),f(Ao.$$.fragment,t),f(st.$$.fragment,t),f(it.$$.fragment,t),f(So.$$.fragment,t),f(lt.$$.fragment,t),f(dt.$$.fragment,t),f(Co.$$.fragment,t),f(Po.$$.fragment,t),f(zo.$$.fragment,t),f(Mo.$$.fragment,t),f(Fo.$$.fragment,t),f(Io.$$.fragment,t),qa=!1},d(t){t&&(d($),d(m),d(c),d(s),d(k),d(ua),d(Tt),d(ga),d(ha),d(fa),d(b),d(_a),d(ba),d(G),d(va),d(ya),d(S),d(Ta),d(wa),d(U),d(xa),d(ma)),d(i),_(q,t),_(ke,t),_(wt,t),_(xt),_(qt),_($t),_(kt),_(At),_(St),_(Ct),_(Pt),_(zt),_(Mt),_(Ft),_(It),_(Dt),_(Wt),_(Ut),_(Lt),_(Nt),_(jt),_(Ot),_(Ht),_(Rt),_(Ue),_(Jt),_(Et),_(Bt),_(Gt),_(Vt),_(Oe),_(Xt),_(Zt),_(Yt),_(Qt),_(Kt),_(Ee),_(eo),_(to),_(oo),_(no),_(ro),_(ao),_(so),_(io),_(lo),_(co),_(mo,t),_(po),_(uo),_(go),_(Ze),_(ho,t),_(fo),_(_o),_(bo),_(vo),_(yo),_(Qe),_(To),_(Ke),_(wo),_(et),_(xo),_(tt),_(qo),_(ot),_($o),_(nt),_(rt),_(ko),_(at),_(Ao),_(st),_(it),_(So),_(lt),_(dt),_(Co),_(Po),_(zo),_(Mo,t),_(Fo),_(Io)}}}const Wm='{"title":"Trainer","local":"trainer","sections":[{"title":"Trainer","local":"api-reference ][ transformers.Trainer","sections":[],"depth":2},{"title":"Seq2SeqTrainer","local":"transformers.Seq2SeqTrainer","sections":[],"depth":2},{"title":"TrainingArguments","local":"transformers.TrainingArguments","sections":[],"depth":2},{"title":"Seq2SeqTrainingArguments","local":"transformers.Seq2SeqTrainingArguments","sections":[],"depth":2}],"depth":1}';function Um(C){return gm(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Em extends hm{constructor(i){super(),fm(this,i,Um,Dm,um,{})}}export{Em as component};
