import{s as Sm,o as Cm,n as F}from"../chunks/scheduler.18a86fab.js";import{S as Pm,i as Mm,g as r,s as o,r as p,A as zm,h as a,f as d,c as n,j as T,u,x as l,k as w,y as e,a as $,v as g,d as h,t as f,w as _}from"../chunks/index.98837b22.js";import{T as Vo}from"../chunks/Tip.77304350.js";import{D as x}from"../chunks/Docstring.6758ea23.js";import{C as Te}from"../chunks/CodeBlock.8d0c2e8a.js";import{E as ye}from"../chunks/ExampleCodeBlock.0c42463f.js";import{H as va}from"../chunks/Heading.7e7e0c5b.js";import{E as Fm}from"../chunks/index.499f366c.js";function Dm(C){let i,k=`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=k,m=o(),c=r("ul"),c.innerHTML=q},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-rcnrln"&&(i.innerHTML=k),m=n(s),c=a(s,"UL",{"data-svelte-h":!0}),l(c)!=="svelte-my3c2"&&(c.innerHTML=q)},m(s,A){$(s,i,A),$(s,m,A),$(s,c,A)},p:F,d(s){s&&(d(i),d(m),d(c))}}}function Im(C){let i,k=`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=k},l(m){i=a(m,"P",{"data-svelte-h":!0}),l(i)!=="svelte-1kxt9b1"&&(i.innerHTML=k)},m(m,c){$(m,i,c)},p:F,d(m){m&&d(i)}}}function Lm(C){let i,k="Now when this method is run, you will see a report that will include:",m,c,q;return c=new Te({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=k,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-1lw76cy"&&(i.textContent=k),m=n(s),u(c.$$.fragment,s)},m(s,A){$(s,i,A),$(s,m,A),g(c,s,A),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 Nm(C){let i,k=`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=k},l(m){i=a(m,"P",{"data-svelte-h":!0}),l(i)!=="svelte-vq7haq"&&(i.textContent=k)},m(m,c){$(m,i,c)},p:F,d(m){m&&d(i)}}}function Wm(C){let i,k=`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=k},l(m){i=a(m,"P",{"data-svelte-h":!0}),l(i)!=="svelte-1c3ugfb"&&(i.textContent=k)},m(m,c){$(m,i,c)},p:F,d(m){m&&d(i)}}}function Um(C){let i,k="Example:",m,c,q;return c=new Te({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=k,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=k),m=n(s),u(c.$$.fragment,s)},m(s,A){$(s,i,A),$(s,m,A),g(c,s,A),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 jm(C){let i,k="Example:",m,c,q;return c=new Te({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=k,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=k),m=n(s),u(c.$$.fragment,s)},m(s,A){$(s,i,A),$(s,m,A),g(c,s,A),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 Om(C){let i,k="Example:",m,c,q;return c=new Te({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=k,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=k),m=n(s),u(c.$$.fragment,s)},m(s,A){$(s,i,A),$(s,m,A),g(c,s,A),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 Hm(C){let i,k="Example:",m,c,q;return c=new Te({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=k,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=k),m=n(s),u(c.$$.fragment,s)},m(s,A){$(s,i,A),$(s,m,A),g(c,s,A),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 Rm(C){let i,k="Example:",m,c,q;return c=new Te({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=k,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=k),m=n(s),u(c.$$.fragment,s)},m(s,A){$(s,i,A),$(s,m,A),g(c,s,A),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 Em(C){let i,k=`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 your <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=k},l(m){i=a(m,"P",{"data-svelte-h":!0}),l(i)!=="svelte-rwspye"&&(i.innerHTML=k)},m(m,c){$(m,i,c)},p:F,d(m){m&&d(i)}}}function Jm(C){let i,k="Example:",m,c,q;return c=new Te({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=k,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=k),m=n(s),u(c.$$.fragment,s)},m(s,A){$(s,i,A),$(s,m,A),g(c,s,A),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 Bm(C){let i,k="Example:",m,c,q;return c=new Te({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=k,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=k),m=n(s),u(c.$$.fragment,s)},m(s,A){$(s,i,A),$(s,m,A),g(c,s,A),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 Vm(C){let i,k="Calling this method will automatically set <code>self.do_predict</code> to <code>True</code>.";return{c(){i=r("p"),i.innerHTML=k},l(m){i=a(m,"P",{"data-svelte-h":!0}),l(i)!=="svelte-ci4epi"&&(i.innerHTML=k)},m(m,c){$(m,i,c)},p:F,d(m){m&&d(i)}}}function Gm(C){let i,k="Example:",m,c,q;return c=new Te({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=k,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=k),m=n(s),u(c.$$.fragment,s)},m(s,A){$(s,i,A),$(s,m,A),g(c,s,A),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 Xm(C){let i,k="Calling this method will automatically set <code>self.do_train</code> to <code>True</code>.";return{c(){i=r("p"),i.innerHTML=k},l(m){i=a(m,"P",{"data-svelte-h":!0}),l(i)!=="svelte-102o7rb"&&(i.innerHTML=k)},m(m,c){$(m,i,c)},p:F,d(m){m&&d(i)}}}function Ym(C){let i,k="Example:",m,c,q;return c=new Te({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=k,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=k),m=n(s),u(c.$$.fragment,s)},m(s,A){$(s,i,A),$(s,m,A),g(c,s,A),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,k,m,c,q,s,A,Td='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.',ya,wt,wd='<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 <a href="/docs/transformers/main/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> classes and they’re adapted for training models for sequence-to-sequence tasks such as summarization or translation.',Ta,Ae,wa,xt,xa,b,qt,Xa,Go,xd="Trainer is a simple but feature-complete training and eval loop for PyTorch, optimized for 🤗 Transformers.",Ya,Xo,qd="Important attributes:",Za,Yo,kd=`<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>`,Qa,Se,kt,Ka,Zo,$d='Add a callback to the current list of <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>.',es,Ce,$t,ts,Qo,Ad=`A helper wrapper that creates an appropriate context manager for <code>autocast</code> while feeding it the desired
arguments, depending on the situation.`,os,Z,At,ns,Ko,Sd="How the loss is computed by Trainer. By default, all models return the loss in the first element.",rs,en,Cd="Subclass and override for custom behavior.",as,Pe,St,ss,tn,Pd="A helper wrapper to group together context managers.",is,Me,Ct,ls,on,Md="Creates a draft of a model card using the information available to the <code>Trainer</code>.",ds,Q,Pt,cs,nn,zd="Setup the optimizer.",ms,rn,Fd=`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.`,ps,K,Mt,us,an,Dd="Setup the optimizer and the learning rate scheduler.",gs,sn,Id=`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.`,hs,ze,zt,fs,ln,Ld=`Setup the scheduler. The optimizer of the trainer must have been set up either before this method is called or
passed as an argument.`,_s,W,Ft,bs,dn,Nd="Run evaluation and returns metrics.",vs,cn,Wd=`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).`,ys,mn,Ud="You can also subclass and override this method to inject custom behavior.",Ts,ee,Dt,ws,pn,jd="Prediction/evaluation loop, shared by <code>Trainer.evaluate()</code> and <code>Trainer.predict()</code>.",xs,un,Od="Works both with or without labels.",qs,Fe,It,ks,gn,Hd=`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.`,$s,U,Lt,As,hn,Rd="Get all parameter names that weight decay will be applied to.",Ss,fn,Ed="This function filters out parameters in two ways:",Cs,_n,Jd="<li>By layer type (instances of layers specified in ALL_LAYERNORM_LAYERS)</li> <li>By parameter name patterns (containing ‘bias’, ‘layernorm’, or ‘rmsnorm’)</li>",Ps,te,Nt,Ms,bn,Bd="Returns the evaluation <code>~torch.utils.data.DataLoader</code>.",zs,vn,Vd="Subclass and override this method if you want to inject some custom behavior.",Fs,De,Wt,Ds,yn,Gd="Returns the learning rate of each parameter from self.optimizer.",Is,Ie,Ut,Ls,Tn,Xd="Get the number of trainable parameters.",Ns,Le,jt,Ws,wn,Yd="Returns the optimizer class and optimizer parameters based on the training arguments.",Us,Ne,Ot,js,xn,Zd="Returns optimizer group for a parameter if given, else returns all optimizer groups for params.",Os,oe,Ht,Hs,qn,Qd="Returns the test <code>~torch.utils.data.DataLoader</code>.",Rs,kn,Kd="Subclass and override this method if you want to inject some custom behavior.",Es,j,Rt,Js,$n,ec="Returns the training <code>~torch.utils.data.DataLoader</code>.",Bs,An,tc=`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.`,Vs,Sn,oc="Subclass and override this method if you want to inject some custom behavior.",Gs,ne,Et,Xs,Cn,nc=`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.`,Ys,We,Zs,Ue,Jt,Qs,Pn,rc="Initializes a git repo in <code>self.args.hub_model_id</code>.",Ks,je,Bt,ei,Mn,ac=`Whether or not this process is the local (e.g., on one machine if training in a distributed fashion on several
machines) main process.`,ti,Oe,Vt,oi,zn,sc=`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).`,ni,re,Gt,ri,Fn,ic="Log <code>logs</code> on the various objects watching training.",ai,Dn,lc="Subclass and override this method to inject custom behavior.",si,P,Xt,ii,In,dc="Log metrics in a specially formatted way.",li,Ln,cc="Under distributed environment this is done only for a process with rank 0.",di,Nn,mc="Notes on memory reports:",ci,Wn,pc="In order to get memory usage report you need to install <code>psutil</code>. You can do that with <code>pip install psutil</code>.",mi,He,pi,Un,uc="<strong>Understanding the reports:</strong>",ui,jn,gc=`<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>`,gi,On,hc=`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.`,hi,Hn,fc=`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.`,fi,Rn,_c=`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.`,_i,En,bc=`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.`,bi,Jn,vc=`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.`,vi,Bn,yc=`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.`,yi,Vn,Tc=`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.`,Ti,Gn,wc="For best performance you may want to consider turning the memory profiling off for production runs.",wi,Re,Yt,xi,Xn,xc="Reformat Trainer metrics values to a human-readable format.",qi,Ee,Zt,ki,Yn,qc=`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,Qt,Ai,Zn,kc="Helper to get number of tokens in a <code>~torch.utils.data.DataLoader</code> by enumerating dataloader.",Si,ae,Kt,Ci,Qn,$c='Remove a callback from the current list of <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> and returns it.',Pi,Kn,Ac="If the callback is not found, returns <code>None</code> (and no error is raised).",Mi,D,eo,zi,er,Sc="Run prediction and returns predictions and potential metrics.",Fi,tr,Cc=`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>.`,Di,Be,Ii,or,Pc="Returns: <em>NamedTuple</em> A namedtuple with the following keys:",Li,nr,Mc=`<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>`,Ni,se,to,Wi,rr,zc="Prediction/evaluation loop, shared by <code>Trainer.evaluate()</code> and <code>Trainer.predict()</code>.",Ui,ar,Fc="Works both with or without labels.",ji,ie,oo,Oi,sr,Dc="Perform an evaluation step on <code>model</code> using <code>inputs</code>.",Hi,ir,Ic="Subclass and override to inject custom behavior.",Ri,Ve,no,Ei,lr,Lc="Sets values in the deepspeed plugin based on the Trainer args",Ji,Ge,ro,Bi,dr,Nc="Upload <code>self.model</code> and <code>self.processing_class</code> to the 🤗 model hub on the repo <code>self.args.hub_model_id</code>.",Vi,Xe,ao,Gi,cr,Wc='Remove a callback from the current list of <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>.',Xi,O,so,Yi,mr,Uc="Save metrics into a json file for that split, e.g. <code>train_results.json</code>.",Zi,pr,jc="Under distributed environment this is done only for a process with rank 0.",Qi,ur,Oc=`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.`,Ki,le,io,el,gr,Hc="Will save the model, so you can reload it using <code>from_pretrained()</code>.",tl,hr,Rc="Will only save from the main process.",ol,de,lo,nl,fr,Ec="Saves the Trainer state, since Trainer.save_model saves only the tokenizer with the model.",rl,_r,Jc="Under distributed environment this is done only for a process with rank 0.",al,ce,co,sl,br,Bc="Calculates and returns the following values:",il,vr,Vc="<li><code>num_train_epochs</code></li> <li><code>num_update_steps_per_epoch</code></li> <li><code>num_examples</code></li> <li><code>num_train_samples</code></li> <li><code>epoch_based</code></li> <li><code>len_dataloader</code></li> <li><code>max_steps</code></li>",ll,Ye,mo,dl,yr,Gc="Main training entry point.",cl,me,po,ml,Tr,Xc="Perform a training step on a batch of inputs.",pl,wr,Yc="Subclass and override to inject custom behavior.",qa,uo,ka,G,go,ul,H,ho,gl,xr,Zc="Run evaluation and returns metrics.",hl,qr,Qc=`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).`,fl,kr,Kc="You can also subclass and override this method to inject custom behavior.",_l,I,fo,bl,$r,em="Run prediction and returns predictions and potential metrics.",vl,Ar,tm=`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>.`,yl,Ze,Tl,Sr,om="Returns: <em>NamedTuple</em> A namedtuple with the following keys:",wl,Cr,nm=`<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>`,$a,_o,Aa,S,bo,xl,Pr,rm=`TrainingArguments is the subset of the arguments we use in our example scripts <strong>which relate to the training loop
itself</strong>.`,ql,Mr,am=`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.`,kl,L,vo,$l,zr,sm=`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.`,Al,Fr,im=`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.`,Sl,Dr,lm=`For the replica processes the log level defaults to <code>logging.WARNING</code> unless overridden by <code>log_level_replica</code>
argument.`,Cl,Ir,dm="The choice between the main and replica process settings is made according to the return value of <code>should_log</code>.",Pl,Qe,yo,Ml,Lr,cm="Get number of steps used for a linear warmup.",zl,pe,To,Fl,Nr,mm=`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.`,Dl,Wr,pm=`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.`,Il,ue,wo,Ll,Ur,um="A method that regroups all arguments linked to the dataloaders creation.",Nl,Ke,Wl,ge,xo,Ul,jr,gm="A method that regroups all arguments linked to evaluation.",jl,et,Ol,he,qo,Hl,Or,hm="A method that regroups all arguments linked to logging.",Rl,tt,El,fe,ko,Jl,Hr,fm="A method that regroups all arguments linked to the learning rate scheduler and its hyperparameters.",Bl,ot,Vl,_e,$o,Gl,Rr,_m="A method that regroups all arguments linked to the optimizer and its hyperparameters.",Xl,nt,Yl,R,Ao,Zl,Er,bm="A method that regroups all arguments linked to synchronizing checkpoints with the Hub.",Ql,rt,Kl,at,ed,be,So,td,Jr,vm="A method that regroups all arguments linked to checkpoint saving.",od,st,nd,E,Co,rd,Br,ym="A method that regroups all basic arguments linked to testing on a held-out dataset.",ad,it,sd,lt,id,J,Po,ld,Vr,Tm="A method that regroups all basic arguments linked to the training.",dd,dt,cd,ct,md,mt,Mo,pd,Gr,wm=`Serializes this instance while replace <code>Enum</code> by their values (for JSON serialization support). It obfuscates
the token values by removing their value.`,ud,pt,zo,gd,Xr,xm="Serializes this instance to a JSON string.",hd,ut,Fo,fd,Yr,qm="Sanitized serialization to use with TensorBoard’s hparams",Sa,Do,Ca,N,Io,_d,Zr,km=`TrainingArguments is the subset of the arguments we use in our example scripts <strong>which relate to the training loop
itself</strong>.`,bd,Qr,$m=`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.`,vd,gt,Lo,yd,Kr,Am=`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.`,Pa,No,Ma,ba,za;return q=new va({props:{title:"Trainer",local:"trainer",headingTag:"h1"}}),Ae=new Vo({props:{warning:!0,$$slots:{default:[Dm]},$$scope:{ctx:C}}}),xt=new va({props:{title:"Trainer",local:"api-reference ][ transformers.Trainer",headingTag:"h2"}}),qt=new x({props:{name:"class transformers.Trainer",anchor:"transformers.Trainer",parameters:[{name:"model",val:": typing.Union[transformers.modeling_utils.PreTrainedModel, torch.nn.modules.module.Module, NoneType] = None"},{name:"args",val:": TrainingArguments = None"},{name:"data_collator",val:": typing.Optional[transformers.data.data_collator.DataCollator] = None"},{name:"train_dataset",val:": typing.Union[torch.utils.data.dataset.Dataset, torch.utils.data.dataset.IterableDataset, ForwardRef('datasets.Dataset'), NoneType] = None"},{name:"eval_dataset",val:": typing.Union[torch.utils.data.dataset.Dataset, dict[str, torch.utils.data.dataset.Dataset], ForwardRef('datasets.Dataset'), NoneType] = None"},{name:"processing_class",val:": typing.Union[transformers.tokenization_utils_base.PreTrainedTokenizerBase, transformers.image_processing_utils.BaseImageProcessor, transformers.feature_extraction_utils.FeatureExtractionMixin, transformers.processing_utils.ProcessorMixin, NoneType] = None"},{name:"model_init",val:": typing.Optional[typing.Callable[[], transformers.modeling_utils.PreTrainedModel]] = None"},{name:"compute_loss_func",val:": typing.Optional[typing.Callable] = None"},{name:"compute_metrics",val:": typing.Optional[typing.Callable[[transformers.trainer_utils.EvalPrediction], dict]] = None"},{name:"callbacks",val:": typing.Optional[list[transformers.trainer_callback.TrainerCallback]] = None"},{name:"optimizers",val:": tuple = (None, None)"},{name:"optimizer_cls_and_kwargs",val:": typing.Optional[tuple[type[torch.optim.optimizer.Optimizer], dict[str, typing.Any]]] = None"},{name:"preprocess_logits_for_metrics",val:": typing.Optional[typing.Callable[[torch.Tensor, torch.Tensor], torch.Tensor]] = 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>processing_class</code> is provided, an instance of
<a href="/docs/transformers/main/en/main_classes/data_collator#transformers.DataCollatorWithPadding">DataCollatorWithPadding</a> otherwise if the processing_class is a feature extractor or tokenizer.`,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.processing_class",description:`<strong>processing_class</strong> (<code>PreTrainedTokenizerBase</code> or <code>BaseImageProcessor</code> or <code>FeatureExtractionMixin</code> or <code>ProcessorMixin</code>, <em>optional</em>) &#x2014;
Processing class used to process the data. If provided, will be used to automatically process the inputs
for the model, and it will be saved along the model to make it easier to rerun an interrupted training or
reuse the fine-tuned model.
This supersedes the <code>tokenizer</code> argument, which is now deprecated.`,name:"processing_class"},{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_loss_func",description:`<strong>compute_loss_func</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that accepts the raw model outputs, labels, and the number of items in the entire accumulated
batch (batch_size * gradient_accumulation_steps) and returns the loss. For example, see the default <a href="https://github.com/huggingface/transformers/blob/052e652d6d53c2b26ffde87e039b723949a53493/src/transformers/trainer.py#L3618" rel="nofollow">loss function</a> used by <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a>.`,name:"compute_loss_func"},{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. <em>Note</em> When passing TrainingArgs with <code>batch_eval_metrics</code> set to
<code>True</code>, your compute_metrics function must take a boolean <code>compute_result</code> argument. This will be triggered
after the last eval batch to signal that the function needs to calculate and return the global summary
statistics rather than accumulating the batch-level statistics`,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 <code>AdamW</code> 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.optimizer_cls_and_kwargs",description:`<strong>optimizer_cls_and_kwargs</strong> (<code>Tuple[Type[torch.optim.Optimizer], Dict[str, Any]]</code>, <em>optional</em>) &#x2014;
A tuple containing the optimizer class and keyword arguments to use.
Overrides <code>optim</code> and <code>optim_args</code> in <code>args</code>. Incompatible with the <code>optimizers</code> argument.</p>
<p>Unlike <code>optimizers</code>, this argument avoids the need to place model parameters on the correct devices before initializing the Trainer.`,name:"optimizer_cls_and_kwargs"},{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#L318"}}),kt=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 [`~transformers.TrainerCallback]`) &#x2014;\nA <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\nfirst case, will instantiate a member of that class.',name:"callback"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L866"}}),$t=new x({props:{name:"autocast_smart_context_manager",anchor:"transformers.Trainer.autocast_smart_context_manager",parameters:[{name:"cache_enabled",val:": typing.Optional[bool] = True"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3702"}}),At=new x({props:{name:"compute_loss",anchor:"transformers.Trainer.compute_loss",parameters:[{name:"model",val:""},{name:"inputs",val:""},{name:"return_outputs",val:" = False"},{name:"num_items_in_batch",val:" = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3797"}}),St=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#L3696"}}),Ct=new x({props:{name:"create_model_card",anchor:"transformers.Trainer.create_model_card",parameters:[{name:"language",val:": typing.Optional[str] = None"},{name:"license",val:": typing.Optional[str] = None"},{name:"tags",val:": typing.Union[str, list[str], NoneType] = None"},{name:"model_name",val:": typing.Optional[str] = None"},{name:"finetuned_from",val:": typing.Optional[str] = None"},{name:"tasks",val:": typing.Union[str, list[str], NoneType] = None"},{name:"dataset_tags",val:": typing.Union[str, list[str], NoneType] = None"},{name:"dataset",val:": typing.Union[str, list[str], NoneType] = None"},{name:"dataset_args",val:": typing.Union[str, list[str], NoneType] = None"}],parametersDescription:[{anchor:"transformers.Trainer.create_model_card.language",description:`<strong>language</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The language of the model (if applicable)`,name:"language"},{anchor:"transformers.Trainer.create_model_card.license",description:`<strong>license</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The license of the model. Will default to the license of the pretrained model used, if the original
model given to the <code>Trainer</code> comes from a repo on the Hub.`,name:"license"},{anchor:"transformers.Trainer.create_model_card.tags",description:`<strong>tags</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
Some tags to be included in the metadata of the model card.`,name:"tags"},{anchor:"transformers.Trainer.create_model_card.model_name",description:`<strong>model_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the model.`,name:"model_name"},{anchor:"transformers.Trainer.create_model_card.finetuned_from",description:`<strong>finetuned_from</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the model used to fine-tune this one (if applicable). Will default to the name of the repo
of the original model given to the <code>Trainer</code> (if it comes from the Hub).`,name:"finetuned_from"},{anchor:"transformers.Trainer.create_model_card.tasks",description:`<strong>tasks</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several task identifiers, to be included in the metadata of the model card.`,name:"tasks"},{anchor:"transformers.Trainer.create_model_card.dataset_tags",description:`<strong>dataset_tags</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several dataset tags, to be included in the metadata of the model card.`,name:"dataset_tags"},{anchor:"transformers.Trainer.create_model_card.dataset",description:`<strong>dataset</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several dataset identifiers, to be included in the metadata of the model card.`,name:"dataset"},{anchor:"transformers.Trainer.create_model_card.dataset_args",description:`<strong>dataset_args</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several dataset arguments, to be included in the metadata of the model card.`,name:"dataset_args"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4650"}}),Pt=new x({props:{name:"create_optimizer",anchor:"transformers.Trainer.create_optimizer",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1206"}}),Mt=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#L1179"}}),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#L1741"}}),Ft=new x({props:{name:"evaluate",anchor:"transformers.Trainer.evaluate",parameters:[{name:"eval_dataset",val:": typing.Union[torch.utils.data.dataset.Dataset, dict[str, torch.utils.data.dataset.Dataset], NoneType] = None"},{name:"ignore_keys",val:": typing.Optional[list[str]] = 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_data2_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#L4107",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>
`}}),Dt=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:": typing.Optional[bool] = None"},{name:"ignore_keys",val:": typing.Optional[list[str]] = None"},{name:"metric_key_prefix",val:": str = 'eval'"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4275"}}),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#L4614",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>
`}}),Lt=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#L1195"}}),Nt=new x({props:{name:"get_eval_dataloader",anchor:"transformers.Trainer.get_eval_dataloader",parameters:[{name:"eval_dataset",val:": typing.Union[str, torch.utils.data.dataset.Dataset, NoneType] = None"}],parametersDescription:[{anchor:"transformers.Trainer.get_eval_dataloader.eval_dataset",description:`<strong>eval_dataset</strong> (<code>str</code> or <code>torch.utils.data.Dataset</code>, <em>optional</em>) &#x2014;
If a <code>str</code>, will use <code>self.eval_dataset[eval_dataset]</code> as the evaluation dataset. If a <code>Dataset</code>, will override <code>self.eval_dataset</code> and must implement <code>__len__</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.`,name:"eval_dataset"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1084"}}),Wt=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#L1279"}}),Ut=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#L1273"}}),jt=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:": typing.Optional[transformers.modeling_utils.PreTrainedModel] = 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#L1303"}}),Ot=new x({props:{name:"get_optimizer_group",anchor:"transformers.Trainer.get_optimizer_group",parameters:[{name:"param",val:": typing.Union[str, torch.nn.parameter.Parameter, NoneType] = 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#L1287"}}),Ht=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#L1145"}}),Rt=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#L1002"}}),Et=new x({props:{name:"hyperparameter_search",anchor:"transformers.Trainer.hyperparameter_search",parameters:[{name:"hp_space",val:": typing.Optional[typing.Callable[[ForwardRef('optuna.Trial')], dict[str, float]]] = None"},{name:"compute_objective",val:": typing.Optional[typing.Callable[[dict[str, float]], float]] = None"},{name:"n_trials",val:": int = 20"},{name:"direction",val:": typing.Union[str, list[str]] = 'minimize'"},{name:"backend",val:": typing.Union[ForwardRef('str'), transformers.trainer_utils.HPSearchBackend, NoneType] = None"},{name:"hp_name",val:": typing.Optional[typing.Callable[[ForwardRef('optuna.Trial')], str]] = 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 for each backend:</p>
<ul>
<li><code>optuna</code>: parameters from
<a href="https://optuna.readthedocs.io/en/stable/reference/generated/optuna.study.create_study.html" rel="nofollow">optuna.study.create_study</a>
and also the parameters <code>timeout</code>, <code>n_jobs</code> and <code>gc_after_trial</code> from
<a href="https://optuna.readthedocs.io/en/stable/reference/generated/optuna.study.Study.html#optuna.study.Study.optimize" rel="nofollow">optuna.study.Study.optimize</a></li>
<li><code>ray</code>: parameters from <a href="https://docs.ray.io/en/latest/tune/api_docs/execution.html#tune-run" rel="nofollow">tune.run</a>.
If <code>resources_per_trial</code> is not set in the <code>kwargs</code>, it defaults to 1 CPU core and 1 GPU (if available).
If <code>progress_reporter</code> is not set in the <code>kwargs</code>,
<a href="https://docs.ray.io/en/latest/tune/api/doc/ray.tune.CLIReporter.html" rel="nofollow">ray.tune.CLIReporter</a> is used.</li>
<li><code>sigopt</code>: the parameter <code>proxies</code> from
<a href="https://docs.sigopt.com/support/faq#how-do-i-use-sigopt-with-a-proxy" rel="nofollow">sigopt.Connection.set_proxies</a>.</li>
</ul>`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3555",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>
`}}),We=new Vo({props:{warning:!0,$$slots:{default:[Im]},$$scope:{ctx:C}}}),Jt=new x({props:{name:"init_hf_repo",anchor:"transformers.Trainer.init_hf_repo",parameters:[{name:"token",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4632"}}),Bt=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#L3849"}}),Vt=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#L3856"}}),Gt=new x({props:{name:"log",anchor:"transformers.Trainer.log",parameters:[{name:"logs",val:": dict"},{name:"start_time",val:": typing.Optional[float] = None"}],parametersDescription:[{anchor:"transformers.Trainer.log.logs",description:`<strong>logs</strong> (<code>Dict[str, float]</code>) &#x2014;
The values to log.`,name:"logs"},{anchor:"transformers.Trainer.log.start_time",description:`<strong>start_time</strong> (<code>Optional[float]</code>) &#x2014;
The start of training.`,name:"start_time"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3639"}}),Xt=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#L965"}}),He=new ye({props:{anchor:"transformers.Trainer.log_metrics.example",$$slots:{default:[Lm]},$$scope:{ctx:C}}}),Yt=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#L939",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#L1760"}}),Qt=new x({props:{name:"num_tokens",anchor:"transformers.Trainer.num_tokens",parameters:[{name:"train_dl",val:": DataLoader"},{name:"max_steps",val:": typing.Optional[int] = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1774"}}),Kt=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 [`~transformers.TrainerCallback]`) &#x2014;\nA <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\nfirst 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#L877",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>
`}}),eo=new x({props:{name:"predict",anchor:"transformers.Trainer.predict",parameters:[{name:"test_dataset",val:": Dataset"},{name:"ignore_keys",val:": typing.Optional[list[str]] = None"},{name:"metric_key_prefix",val:": str = 'test'"}],parametersDescription:[{anchor:"transformers.Trainer.predict.test_dataset",description:`<strong>test_dataset</strong> (<code>Dataset</code>) &#x2014;
Dataset to run the predictions on. If it is an <code>datasets.Dataset</code>, columns not accepted by the
<code>model.forward()</code> method are automatically removed. Has to implement the method <code>__len__</code>`,name:"test_dataset"},{anchor:"transformers.Trainer.predict.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"},{anchor:"transformers.Trainer.predict.metric_key_prefix",description:`<strong>metric_key_prefix</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;test&quot;</code>) &#x2014;
An optional prefix to be used as the metrics key prefix. For example the metrics &#x201C;bleu&#x201D; will be named
&#x201C;test_bleu&#x201D; if the prefix is &#x201C;test&#x201D; (default)`,name:"metric_key_prefix"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4211"}}),Be=new Vo({props:{$$slots:{default:[Nm]},$$scope:{ctx:C}}}),to=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:": typing.Optional[bool] = None"},{name:"ignore_keys",val:": typing.Optional[list[str]] = None"},{name:"metric_key_prefix",val:": str = 'eval'"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4877"}}),oo=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:": typing.Optional[list[str]] = None"}],parametersDescription:[{anchor:"transformers.Trainer.prediction_step.model",description:`<strong>model</strong> (<code>nn.Module</code>) &#x2014;
The model to evaluate.`,name:"model"},{anchor:"transformers.Trainer.prediction_step.inputs",description:`<strong>inputs</strong> (<code>Dict[str, Union[torch.Tensor, Any]]</code>) &#x2014;
The inputs and targets of the model.</p>
<p>The dictionary will be unpacked before being fed to the model. Most models expect the targets under the
argument <code>labels</code>. Check your model&#x2019;s documentation for all accepted arguments.`,name:"inputs"},{anchor:"transformers.Trainer.prediction_step.prediction_loss_only",description:`<strong>prediction_loss_only</strong> (<code>bool</code>) &#x2014;
Whether or not to return the loss only.`,name:"prediction_loss_only"},{anchor:"transformers.Trainer.prediction_step.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4509",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>
`}}),no=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#L5231"}}),ro=new x({props:{name:"push_to_hub",anchor:"transformers.Trainer.push_to_hub",parameters:[{name:"commit_message",val:": typing.Optional[str] = 'End of training'"},{name:"blocking",val:": bool = True"},{name:"token",val:": typing.Optional[str] = None"},{name:"revision",val:": typing.Optional[str] = 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.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to commit from. Defaults to the head of the &#x201C;main&#x201D; branch.`,name:"revision"},{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#L4797",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>
`}}),ao=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 [`~transformers.TrainerCallback]`) &#x2014;\nA <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\nfirst 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#L893"}}),so=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#L1055"}}),io=new x({props:{name:"save_model",anchor:"transformers.Trainer.save_model",parameters:[{name:"output_dir",val:": typing.Optional[str] = None"},{name:"_internal_call",val:": bool = False"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3868"}}),lo=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#L1093"}}),co=new x({props:{name:"set_initial_training_values",anchor:"transformers.Trainer.set_initial_training_values",parameters:[{name:"args",val:": TrainingArguments"},{name:"dataloader",val:": DataLoader"},{name:"total_train_batch_size",val:": int"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L5304"}}),mo=new x({props:{name:"train",anchor:"transformers.Trainer.train",parameters:[{name:"resume_from_checkpoint",val:": typing.Union[str, bool, NoneType] = None"},{name:"trial",val:": typing.Union[ForwardRef('optuna.Trial'), dict[str, typing.Any], NoneType] = None"},{name:"ignore_keys_for_eval",val:": typing.Optional[list[str]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Trainer.train.resume_from_checkpoint",description:`<strong>resume_from_checkpoint</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
If a <code>str</code>, local path to a saved checkpoint as saved by a previous instance of <a href="/docs/transformers/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#L2136"}}),po=new x({props:{name:"training_step",anchor:"transformers.Trainer.training_step",parameters:[{name:"model",val:": Module"},{name:"inputs",val:": dict"},{name:"num_items_in_batch",val:" = None"}],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#L3717",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>
`}}),uo=new va({props:{title:"Seq2SeqTrainer",local:"transformers.Seq2SeqTrainer",headingTag:"h2"}}),go=new x({props:{name:"class transformers.Seq2SeqTrainer",anchor:"transformers.Seq2SeqTrainer",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), torch.nn.modules.module.Module] = None"},{name:"args",val:": TrainingArguments = None"},{name:"data_collator",val:": typing.Optional[ForwardRef('DataCollator')] = None"},{name:"train_dataset",val:": typing.Union[torch.utils.data.dataset.Dataset, ForwardRef('IterableDataset'), ForwardRef('datasets.Dataset'), NoneType] = None"},{name:"eval_dataset",val:": typing.Union[torch.utils.data.dataset.Dataset, dict[str, torch.utils.data.dataset.Dataset], NoneType] = None"},{name:"processing_class",val:": typing.Union[ForwardRef('PreTrainedTokenizerBase'), ForwardRef('BaseImageProcessor'), ForwardRef('FeatureExtractionMixin'), ForwardRef('ProcessorMixin'), NoneType] = None"},{name:"model_init",val:": typing.Optional[typing.Callable[[], ForwardRef('PreTrainedModel')]] = None"},{name:"compute_loss_func",val:": typing.Optional[typing.Callable] = None"},{name:"compute_metrics",val:": typing.Optional[typing.Callable[[ForwardRef('EvalPrediction')], dict]] = None"},{name:"callbacks",val:": typing.Optional[list['TrainerCallback']] = None"},{name:"optimizers",val:": tuple = (None, None)"},{name:"preprocess_logits_for_metrics",val:": typing.Optional[typing.Callable[[torch.Tensor, torch.Tensor], torch.Tensor]] = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_seq2seq.py#L54"}}),ho=new x({props:{name:"evaluate",anchor:"transformers.Seq2SeqTrainer.evaluate",parameters:[{name:"eval_dataset",val:": typing.Optional[torch.utils.data.dataset.Dataset] = None"},{name:"ignore_keys",val:": typing.Optional[list[str]] = None"},{name:"metric_key_prefix",val:": str = 'eval'"},{name:"**gen_kwargs",val:""}],parametersDescription:[{anchor:"transformers.Seq2SeqTrainer.evaluate.eval_dataset",description:`<strong>eval_dataset</strong> (<code>Dataset</code>, <em>optional</em>) &#x2014;
Pass a dataset if you wish to override <code>self.eval_dataset</code>. If it is an <a href="https://huggingface.co/docs/datasets/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.`,name:"num_beams"},{anchor:"transformers.Seq2SeqTrainer.evaluate.gen_kwargs",description:`<strong>gen_kwargs</strong> &#x2014;
Additional <code>generate</code> specific kwargs.`,name:"gen_kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_seq2seq.py#L143",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>
`}}),fo=new x({props:{name:"predict",anchor:"transformers.Seq2SeqTrainer.predict",parameters:[{name:"test_dataset",val:": Dataset"},{name:"ignore_keys",val:": typing.Optional[list[str]] = None"},{name:"metric_key_prefix",val:": str = 'test'"},{name:"**gen_kwargs",val:""}],parametersDescription:[{anchor:"transformers.Seq2SeqTrainer.predict.test_dataset",description:`<strong>test_dataset</strong> (<code>Dataset</code>) &#x2014;
Dataset to run the predictions on. If it is a <a href="https://huggingface.co/docs/datasets/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.`,name:"num_beams"},{anchor:"transformers.Seq2SeqTrainer.predict.gen_kwargs",description:`<strong>gen_kwargs</strong> &#x2014;
Additional <code>generate</code> specific kwargs.`,name:"gen_kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_seq2seq.py#L199"}}),Ze=new Vo({props:{$$slots:{default:[Wm]},$$scope:{ctx:C}}}),_o=new va({props:{title:"TrainingArguments",local:"transformers.TrainingArguments",headingTag:"h2"}}),bo=new x({props:{name:"class transformers.TrainingArguments",anchor:"transformers.TrainingArguments",parameters:[{name:"output_dir",val:": typing.Optional[str] = None"},{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:"eval_strategy",val:": typing.Union[transformers.trainer_utils.IntervalStrategy, str] = 'no'"},{name:"prediction_loss_only",val:": bool = False"},{name:"per_device_train_batch_size",val:": int = 8"},{name:"per_device_eval_batch_size",val:": int = 8"},{name:"per_gpu_train_batch_size",val:": typing.Optional[int] = None"},{name:"per_gpu_eval_batch_size",val:": typing.Optional[int] = None"},{name:"gradient_accumulation_steps",val:": int = 1"},{name:"eval_accumulation_steps",val:": typing.Optional[int] = None"},{name:"eval_delay",val:": typing.Optional[float] = 0"},{name:"torch_empty_cache_steps",val:": typing.Optional[int] = None"},{name:"learning_rate",val:": float = 5e-05"},{name:"weight_decay",val:": float = 0.0"},{name:"adam_beta1",val:": float = 0.9"},{name:"adam_beta2",val:": float = 0.999"},{name:"adam_epsilon",val:": float = 1e-08"},{name:"max_grad_norm",val:": float = 1.0"},{name:"num_train_epochs",val:": float = 3.0"},{name:"max_steps",val:": int = -1"},{name:"lr_scheduler_type",val:": typing.Union[transformers.trainer_utils.SchedulerType, str] = 'linear'"},{name:"lr_scheduler_kwargs",val:": typing.Union[dict, str, NoneType] = <factory>"},{name:"warmup_ratio",val:": float = 0.0"},{name:"warmup_steps",val:": int = 0"},{name:"log_level",val:": typing.Optional[str] = 'passive'"},{name:"log_level_replica",val:": typing.Optional[str] = 'warning'"},{name:"log_on_each_node",val:": bool = True"},{name:"logging_dir",val:": typing.Optional[str] = None"},{name:"logging_strategy",val:": typing.Union[transformers.trainer_utils.IntervalStrategy, str] = 'steps'"},{name:"logging_first_step",val:": bool = False"},{name:"logging_steps",val:": float = 500"},{name:"logging_nan_inf_filter",val:": bool = True"},{name:"save_strategy",val:": typing.Union[transformers.trainer_utils.SaveStrategy, str] = 'steps'"},{name:"save_steps",val:": float = 500"},{name:"save_total_limit",val:": typing.Optional[int] = None"},{name:"save_safetensors",val:": typing.Optional[bool] = True"},{name:"save_on_each_node",val:": bool = False"},{name:"save_only_model",val:": bool = False"},{name:"restore_callback_states_from_checkpoint",val:": bool = False"},{name:"no_cuda",val:": bool = False"},{name:"use_cpu",val:": bool = False"},{name:"use_mps_device",val:": bool = False"},{name:"seed",val:": int = 42"},{name:"data_seed",val:": typing.Optional[int] = None"},{name:"jit_mode_eval",val:": bool = False"},{name:"use_ipex",val:": bool = False"},{name:"bf16",val:": bool = False"},{name:"fp16",val:": bool = False"},{name:"fp16_opt_level",val:": str = 'O1'"},{name:"half_precision_backend",val:": str = 'auto'"},{name:"bf16_full_eval",val:": bool = False"},{name:"fp16_full_eval",val:": bool = False"},{name:"tf32",val:": typing.Optional[bool] = None"},{name:"local_rank",val:": int = -1"},{name:"ddp_backend",val:": typing.Optional[str] = None"},{name:"tpu_num_cores",val:": typing.Optional[int] = None"},{name:"tpu_metrics_debug",val:": bool = False"},{name:"debug",val:": typing.Union[str, list[transformers.debug_utils.DebugOption]] = ''"},{name:"dataloader_drop_last",val:": bool = False"},{name:"eval_steps",val:": typing.Optional[float] = None"},{name:"dataloader_num_workers",val:": int = 0"},{name:"dataloader_prefetch_factor",val:": typing.Optional[int] = None"},{name:"past_index",val:": int = -1"},{name:"run_name",val:": typing.Optional[str] = None"},{name:"disable_tqdm",val:": typing.Optional[bool] = None"},{name:"remove_unused_columns",val:": typing.Optional[bool] = True"},{name:"label_names",val:": typing.Optional[list[str]] = None"},{name:"load_best_model_at_end",val:": typing.Optional[bool] = False"},{name:"metric_for_best_model",val:": typing.Optional[str] = None"},{name:"greater_is_better",val:": typing.Optional[bool] = None"},{name:"ignore_data_skip",val:": bool = False"},{name:"fsdp",val:": typing.Union[list[transformers.trainer_utils.FSDPOption], str, NoneType] = ''"},{name:"fsdp_min_num_params",val:": int = 0"},{name:"fsdp_config",val:": typing.Union[dict, str, NoneType] = None"},{name:"fsdp_transformer_layer_cls_to_wrap",val:": typing.Optional[str] = None"},{name:"accelerator_config",val:": typing.Union[dict, str, NoneType] = None"},{name:"deepspeed",val:": typing.Union[dict, str, NoneType] = None"},{name:"label_smoothing_factor",val:": float = 0.0"},{name:"optim",val:": typing.Union[transformers.training_args.OptimizerNames, str] = 'adamw_torch'"},{name:"optim_args",val:": typing.Optional[str] = None"},{name:"adafactor",val:": bool = False"},{name:"group_by_length",val:": bool = False"},{name:"length_column_name",val:": typing.Optional[str] = 'length'"},{name:"report_to",val:": typing.Union[NoneType, str, list[str]] = None"},{name:"ddp_find_unused_parameters",val:": typing.Optional[bool] = None"},{name:"ddp_bucket_cap_mb",val:": typing.Optional[int] = None"},{name:"ddp_broadcast_buffers",val:": typing.Optional[bool] = None"},{name:"dataloader_pin_memory",val:": bool = True"},{name:"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:": typing.Optional[str] = None"},{name:"hub_model_id",val:": typing.Optional[str] = None"},{name:"hub_strategy",val:": typing.Union[transformers.trainer_utils.HubStrategy, str] = 'every_save'"},{name:"hub_token",val:": typing.Optional[str] = None"},{name:"hub_private_repo",val:": typing.Optional[bool] = None"},{name:"hub_always_push",val:": bool = False"},{name:"gradient_checkpointing",val:": bool = False"},{name:"gradient_checkpointing_kwargs",val:": typing.Union[dict, str, NoneType] = None"},{name:"include_inputs_for_metrics",val:": bool = False"},{name:"include_for_metrics",val:": list = <factory>"},{name:"eval_do_concat_batches",val:": bool = True"},{name:"fp16_backend",val:": str = 'auto'"},{name:"push_to_hub_model_id",val:": typing.Optional[str] = None"},{name:"push_to_hub_organization",val:": typing.Optional[str] = None"},{name:"push_to_hub_token",val:": typing.Optional[str] = None"},{name:"mp_parameters",val:": str = ''"},{name:"auto_find_batch_size",val:": bool = False"},{name:"full_determinism",val:": bool = False"},{name:"torchdynamo",val:": typing.Optional[str] = None"},{name:"ray_scope",val:": typing.Optional[str] = 'last'"},{name:"ddp_timeout",val:": typing.Optional[int] = 1800"},{name:"torch_compile",val:": bool = False"},{name:"torch_compile_backend",val:": typing.Optional[str] = None"},{name:"torch_compile_mode",val:": typing.Optional[str] = None"},{name:"include_tokens_per_second",val:": typing.Optional[bool] = False"},{name:"include_num_input_tokens_seen",val:": typing.Optional[bool] = False"},{name:"neftune_noise_alpha",val:": typing.Optional[float] = None"},{name:"optim_target_modules",val:": typing.Union[NoneType, str, list[str]] = None"},{name:"batch_eval_metrics",val:": bool = False"},{name:"eval_on_start",val:": bool = False"},{name:"use_liger_kernel",val:": typing.Optional[bool] = False"},{name:"eval_use_gather_object",val:": typing.Optional[bool] = False"},{name:"average_tokens_across_devices",val:": typing.Optional[bool] = False"}],parametersDescription:[{anchor:"transformers.TrainingArguments.output_dir",description:`<strong>output_dir</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;trainer_output&quot;</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>eval_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.eval_strategy",description:`<strong>eval_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:"eval_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 device accelerator 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 device accelerator 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 the device accelerator 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
eval_strategy.`,name:"eval_delay"},{anchor:"transformers.TrainingArguments.torch_empty_cache_steps",description:`<strong>torch_empty_cache_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of steps to wait before calling <code>torch.&lt;device&gt;.empty_cache()</code>. If left unset or set to None, cache will not be emptied.</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>This can help avoid CUDA out-of-memory errors by lowering peak VRAM usage at a cost of about <a href="https://github.com/huggingface/transformers/issues/31372" rel="nofollow">10% slower performance</a>.</p>

					</div>`,name:"torch_empty_cache_steps"},{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 <code>AdamW</code> 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 <code>AdamW</code>
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 <code>AdamW</code> 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 <code>AdamW</code> 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 <code>AdamW</code> 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 <code>SaveStrategy</code>, <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>
<li><code>&quot;best&quot;</code>: Save is done whenever a new <code>best_metric</code> is achieved.</li>
</ul>
<p>If <code>&quot;epoch&quot;</code> or <code>&quot;steps&quot;</code> is chosen, saving will also be performed at the
very end of training, always.`,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.restore_callback_states_from_checkpoint",description:`<strong>restore_callback_states_from_checkpoint</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to restore the callback states from the checkpoint. If <code>True</code>, will override
callbacks passed to the <code>Trainer</code> if they exist in the checkpoint.&#x201D;`,name:"restore_callback_states_from_checkpoint"},{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/perf_train_gpu_one#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>eval_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>, defaults to <code>output_dir</code>) &#x2014;
A descriptor for the run. Typically used for <a href="https://www.wandb.com/" rel="nofollow">wandb</a>,
<a href="https://www.mlflow.org/" rel="nofollow">mlflow</a>, <a href="https://www.comet.com/site" rel="nofollow">comet</a> and <a href="https://swanlab.cn" rel="nofollow">swanlab</a>
logging. If not specified, will be the same as <code>output_dir</code>.`,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>eval_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>.</p>
<p>If not specified, this will default to <code>&quot;loss&quot;</code> when either <code>load_best_model_at_end == True</code>
or <code>lr_scheduler_type == SchedulerType.REDUCE_ON_PLATEAU</code> (to use the evaluation loss).</p>
<p>If you set this value, <code>greater_is_better</code> will default to <code>True</code> unless the name ends with &#x201C;loss&#x201D;.
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 doesn&#x2019;t end in <code>&quot;loss&quot;</code>.</li>
<li><code>False</code> if <code>metric_for_best_model</code> is not set, or set to a value that ends in <code>&quot;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 parameters. 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>cpu_ram_efficient_loading (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
If <code>&quot;True&quot;</code>, only the first process loads the pretrained model checkpoint while all other processes
have empty weights.  When this setting as <code>&quot;True&quot;</code>, <code>sync_module_states</code> also must to be <code>&quot;True&quot;</code>,
otherwise all the processes except the main process would have random weights leading to unexpected
behaviour during training.</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/deepspeedai/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 reproducible using a different sampling technique. While seed-to-seed results
may differ, on average the differences are negligible when using multiple different seeds to compare. Should
also be ran with <code>~utils.set_seed</code> for the best results.</li>
<li>use_configured_state (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether or not to use a pre-configured <code>AcceleratorState</code> or <code>PartialState</code> defined before calling <code>TrainingArguments</code>.
If <code>True</code>, an <code>Accelerator</code> or <code>PartialState</code> must be initialized. Note that by doing so, this could lead to issues
with hyperparameter tuning.</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, such as &#x201C;adamw_torch&#x201D;, &#x201C;adamw_torch_fused&#x201D;, &#x201C;adamw_apex_fused&#x201D;, &#x201C;adamw_anyprecision&#x201D;,
&#x201C;adafactor&#x201D;. See <code>OptimizerNames</code> in <a href="https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py" rel="nofollow">training_args.py</a>
for a full list of optimizers.`,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 optimizers such as AnyPrecisionAdamW, AdEMAMix, and GaLore.`,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;swanlab&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 processing class e.g. 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 processing class e.g. 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>) &#x2014;
Whether to make the repo private. If <code>None</code> (default), the repo will be public unless the organization&#x2019;s default is private. This value is ignored if the repo already exists.`,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;
This argument is deprecated. Use <code>include_for_metrics</code> instead, e.g, <code>include_for_metrics = [&quot;inputs&quot;]</code>.`,name:"include_inputs_for_metrics"},{anchor:"transformers.TrainingArguments.include_for_metrics",description:`<strong>include_for_metrics</strong> (<code>List[str]</code>, <em>optional</em>, defaults to <code>[]</code>) &#x2014;
Include additional data in the <code>compute_metrics</code> function if needed for metrics computation.
Possible options to add to <code>include_for_metrics</code> list:</p>
<ul>
<li><code>&quot;inputs&quot;</code>: Input data passed to the model, intended for calculating input dependent metrics.</li>
<li><code>&quot;loss&quot;</code>: Loss values computed during evaluation, intended for calculating loss dependent metrics.</li>
</ul>`,name:"include_for_metrics"},{anchor:"transformers.TrainingArguments.eval_do_concat_batches",description:`<strong>eval_do_concat_batches</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to recursively concat inputs/losses/labels/predictions across batches. If <code>False</code>,
will instead store them as lists, with each batch kept separate.`,name:"eval_do_concat_batches"},{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.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. The original paper used values in the range [5.0, 15.0].`,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.
Currently used for the GaLore algorithm (<a href="https://arxiv.org/abs/2403.03507" rel="nofollow">https://arxiv.org/abs/2403.03507</a>) and APOLLO algorithm (<a href="https://arxiv.org/abs/2412.05270" rel="nofollow">https://arxiv.org/abs/2412.05270</a>).
See GaLore implementation (<a href="https://github.com/jiaweizzhao/GaLore" rel="nofollow">https://github.com/jiaweizzhao/GaLore</a>) and APOLLO implementation (<a href="https://github.com/zhuhanqing/APOLLO" rel="nofollow">https://github.com/zhuhanqing/APOLLO</a>) for more details.
You need to make sure to pass a valid GaLore or APOLLO optimizer, e.g., one of: &#x201C;apollo_adamw&#x201D;, &#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.TrainingArguments.batch_eval_metrics",description:`<strong>batch_eval_metrics</strong> (<code>Optional[bool]</code>, defaults to <code>False</code>) &#x2014;
If set to <code>True</code>, evaluation will call compute_metrics at the end of each batch to accumulate statistics
rather than saving all eval logits in memory. When set to <code>True</code>, you must pass a compute_metrics function
that takes a boolean argument <code>compute_result</code>, which when passed <code>True</code>, will trigger the final global
summary statistics from the batch-level summary statistics you&#x2019;ve accumulated over the evaluation set.`,name:"batch_eval_metrics"},{anchor:"transformers.TrainingArguments.eval_on_start",description:`<strong>eval_on_start</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to perform a evaluation step (sanity check) before the training to ensure the validation steps works correctly.`,name:"eval_on_start"},{anchor:"transformers.TrainingArguments.eval_use_gather_object",description:`<strong>eval_use_gather_object</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to run recursively gather object in a nested list/tuple/dictionary of objects from all devices. This should only be enabled if users are not just returning tensors, and this is actively discouraged by PyTorch.`,name:"eval_use_gather_object"},{anchor:"transformers.TrainingArguments.use_liger_kernel",description:`<strong>use_liger_kernel</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether enable <a href="https://github.com/linkedin/Liger-Kernel" rel="nofollow">Liger</a> Kernel for LLM model training.
It can effectively increase multi-GPU training throughput by ~20% and reduces memory usage by ~60%, works out of the box with
flash attention, PyTorch FSDP, and Microsoft DeepSpeed. Currently, it supports llama, mistral, mixtral and gemma models.`,name:"use_liger_kernel"},{anchor:"transformers.TrainingArguments.average_tokens_across_devices",description:`<strong>average_tokens_across_devices</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to average tokens across devices. If enabled, will use all_reduce to synchronize
num_tokens_in_batch for precise loss calculation. Reference:
<a href="https://github.com/huggingface/transformers/issues/34242" rel="nofollow">https://github.com/huggingface/transformers/issues/34242</a>`,name:"average_tokens_across_devices"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L209"}}),vo=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#L2375"}}),yo=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#L2464"}}),To=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#L2413"}}),wo=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:": typing.Optional[int] = None"},{name:"auto_find_batch_size",val:": bool = False"},{name:"ignore_data_skip",val:": bool = False"},{name:"sampler_seed",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_dataloader.drop_last",description:`<strong>drop_last</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to drop the last incomplete batch (if the length of the dataset is not divisible by the batch
size) or not.`,name:"drop_last"},{anchor:"transformers.TrainingArguments.set_dataloader.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of subprocesses to use for data loading (PyTorch only). 0 means that the data will be loaded in
the main process.`,name:"num_workers"},{anchor:"transformers.TrainingArguments.set_dataloader.pin_memory",description:`<strong>pin_memory</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether you want to pin memory in data loaders or not. Will default to <code>True</code>.`,name:"pin_memory"},{anchor:"transformers.TrainingArguments.set_dataloader.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#L2998"}}),Ke=new ye({props:{anchor:"transformers.TrainingArguments.set_dataloader.example",$$slots:{default:[Um]},$$scope:{ctx:C}}}),xo=new x({props:{name:"set_evaluate",anchor:"transformers.TrainingArguments.set_evaluate",parameters:[{name:"strategy",val:": typing.Union[str, transformers.trainer_utils.IntervalStrategy] = 'no'"},{name:"steps",val:": int = 500"},{name:"batch_size",val:": int = 8"},{name:"accumulation_steps",val:": typing.Optional[int] = None"},{name:"delay",val:": typing.Optional[float] = None"},{name:"loss_only",val:": bool = False"},{name:"jit_mode",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_evaluate.strategy",description:`<strong>strategy</strong> (<code>str</code> or <a href="/docs/transformers/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
eval_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#L2607"}}),et=new ye({props:{anchor:"transformers.TrainingArguments.set_evaluate.example",$$slots:{default:[jm]},$$scope:{ctx:C}}}),qo=new x({props:{name:"set_logging",anchor:"transformers.TrainingArguments.set_logging",parameters:[{name:"strategy",val:": typing.Union[str, transformers.trainer_utils.IntervalStrategy] = 'steps'"},{name:"steps",val:": int = 500"},{name:"report_to",val:": typing.Union[str, list[str]] = 'none'"},{name:"level",val:": str = 'passive'"},{name:"first_step",val:": bool = False"},{name:"nan_inf_filter",val:": bool = False"},{name:"on_each_node",val:": bool = False"},{name:"replica_level",val:": str = 'passive'"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_logging.strategy",description:`<strong>strategy</strong> (<code>str</code> or <a href="/docs/transformers/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;swanlab&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#L2757"}}),tt=new ye({props:{anchor:"transformers.TrainingArguments.set_logging.example",$$slots:{default:[Om]},$$scope:{ctx:C}}}),ko=new x({props:{name:"set_lr_scheduler",anchor:"transformers.TrainingArguments.set_lr_scheduler",parameters:[{name:"name",val:": typing.Union[str, transformers.trainer_utils.SchedulerType] = 'linear'"},{name:"num_epochs",val:": float = 3.0"},{name:"max_steps",val:": int = -1"},{name:"warmup_ratio",val:": float = 0"},{name:"warmup_steps",val:": int = 0"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_lr_scheduler.name",description:`<strong>name</strong> (<code>str</code> or <a href="/docs/transformers/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#L2953"}}),ot=new ye({props:{anchor:"transformers.TrainingArguments.set_lr_scheduler.example",$$slots:{default:[Hm]},$$scope:{ctx:C}}}),$o=new x({props:{name:"set_optimizer",anchor:"transformers.TrainingArguments.set_optimizer",parameters:[{name:"name",val:": typing.Union[str, transformers.training_args.OptimizerNames] = 'adamw_torch'"},{name:"learning_rate",val:": float = 5e-05"},{name:"weight_decay",val:": float = 0"},{name:"beta1",val:": float = 0.9"},{name:"beta2",val:": float = 0.999"},{name:"epsilon",val:": float = 1e-08"},{name:"args",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_optimizer.name",description:`<strong>name</strong> (<code>str</code> or <code>training_args.OptimizerNames</code>, <em>optional</em>, defaults to <code>&quot;adamw_torch&quot;</code>) &#x2014;
The optimizer to use: <code>&quot;adamw_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#L2902"}}),nt=new ye({props:{anchor:"transformers.TrainingArguments.set_optimizer.example",$$slots:{default:[Rm]},$$scope:{ctx:C}}}),Ao=new x({props:{name:"set_push_to_hub",anchor:"transformers.TrainingArguments.set_push_to_hub",parameters:[{name:"model_id",val:": str"},{name:"strategy",val:": typing.Union[str, transformers.trainer_utils.HubStrategy] = 'every_save'"},{name:"token",val:": typing.Optional[str] = None"},{name:"private_repo",val:": typing.Optional[bool] = None"},{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 processing_class e.g. 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 processing_class e.g. 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;
Whether to make the repo private. If <code>None</code> (default), the repo will be public unless the organization&#x2019;s default is private. This value is ignored if the repo already exists.`,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#L2832"}}),rt=new Vo({props:{$$slots:{default:[Em]},$$scope:{ctx:C}}}),at=new ye({props:{anchor:"transformers.TrainingArguments.set_push_to_hub.example",$$slots:{default:[Jm]},$$scope:{ctx:C}}}),So=new x({props:{name:"set_save",anchor:"transformers.TrainingArguments.set_save",parameters:[{name:"strategy",val:": typing.Union[str, transformers.trainer_utils.IntervalStrategy] = 'steps'"},{name:"steps",val:": int = 500"},{name:"total_limit",val:": typing.Optional[int] = None"},{name:"on_each_node",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_save.strategy",description:`<strong>strategy</strong> (<code>str</code> or <a href="/docs/transformers/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#L2708"}}),st=new ye({props:{anchor:"transformers.TrainingArguments.set_save.example",$$slots:{default:[Bm]},$$scope:{ctx:C}}}),Co=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#L2668"}}),it=new Vo({props:{$$slots:{default:[Vm]},$$scope:{ctx:C}}}),lt=new ye({props:{anchor:"transformers.TrainingArguments.set_testing.example",$$slots:{default:[Gm]},$$scope:{ctx:C}}}),Po=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#L2532"}}),dt=new Vo({props:{$$slots:{default:[Xm]},$$scope:{ctx:C}}}),ct=new ye({props:{anchor:"transformers.TrainingArguments.set_training.example",$$slots:{default:[Ym]},$$scope:{ctx:C}}}),Mo=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#L2485"}}),zo=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#L2512"}}),Fo=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#L2518"}}),Do=new va({props:{title:"Seq2SeqTrainingArguments",local:"transformers.Seq2SeqTrainingArguments",headingTag:"h2"}}),Io=new x({props:{name:"class transformers.Seq2SeqTrainingArguments",anchor:"transformers.Seq2SeqTrainingArguments",parameters:[{name:"output_dir",val:": typing.Optional[str] = None"},{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:"eval_strategy",val:": typing.Union[transformers.trainer_utils.IntervalStrategy, str] = 'no'"},{name:"prediction_loss_only",val:": bool = False"},{name:"per_device_train_batch_size",val:": int = 8"},{name:"per_device_eval_batch_size",val:": int = 8"},{name:"per_gpu_train_batch_size",val:": typing.Optional[int] = None"},{name:"per_gpu_eval_batch_size",val:": typing.Optional[int] = None"},{name:"gradient_accumulation_steps",val:": int = 1"},{name:"eval_accumulation_steps",val:": typing.Optional[int] = None"},{name:"eval_delay",val:": typing.Optional[float] = 0"},{name:"torch_empty_cache_steps",val:": typing.Optional[int] = None"},{name:"learning_rate",val:": float = 5e-05"},{name:"weight_decay",val:": float = 0.0"},{name:"adam_beta1",val:": float = 0.9"},{name:"adam_beta2",val:": float = 0.999"},{name:"adam_epsilon",val:": float = 1e-08"},{name:"max_grad_norm",val:": float = 1.0"},{name:"num_train_epochs",val:": float = 3.0"},{name:"max_steps",val:": int = -1"},{name:"lr_scheduler_type",val:": typing.Union[transformers.trainer_utils.SchedulerType, str] = 'linear'"},{name:"lr_scheduler_kwargs",val:": typing.Union[dict, str, NoneType] = <factory>"},{name:"warmup_ratio",val:": float = 0.0"},{name:"warmup_steps",val:": int = 0"},{name:"log_level",val:": typing.Optional[str] = 'passive'"},{name:"log_level_replica",val:": typing.Optional[str] = 'warning'"},{name:"log_on_each_node",val:": bool = True"},{name:"logging_dir",val:": typing.Optional[str] = None"},{name:"logging_strategy",val:": typing.Union[transformers.trainer_utils.IntervalStrategy, str] = 'steps'"},{name:"logging_first_step",val:": bool = False"},{name:"logging_steps",val:": float = 500"},{name:"logging_nan_inf_filter",val:": bool = True"},{name:"save_strategy",val:": typing.Union[transformers.trainer_utils.SaveStrategy, str] = 'steps'"},{name:"save_steps",val:": float = 500"},{name:"save_total_limit",val:": typing.Optional[int] = None"},{name:"save_safetensors",val:": typing.Optional[bool] = True"},{name:"save_on_each_node",val:": bool = False"},{name:"save_only_model",val:": bool = False"},{name:"restore_callback_states_from_checkpoint",val:": bool = False"},{name:"no_cuda",val:": bool = False"},{name:"use_cpu",val:": bool = False"},{name:"use_mps_device",val:": bool = False"},{name:"seed",val:": int = 42"},{name:"data_seed",val:": typing.Optional[int] = None"},{name:"jit_mode_eval",val:": bool = False"},{name:"use_ipex",val:": bool = False"},{name:"bf16",val:": bool = False"},{name:"fp16",val:": bool = False"},{name:"fp16_opt_level",val:": str = 'O1'"},{name:"half_precision_backend",val:": str = 'auto'"},{name:"bf16_full_eval",val:": bool = False"},{name:"fp16_full_eval",val:": bool = False"},{name:"tf32",val:": typing.Optional[bool] = None"},{name:"local_rank",val:": int = -1"},{name:"ddp_backend",val:": typing.Optional[str] = None"},{name:"tpu_num_cores",val:": typing.Optional[int] = None"},{name:"tpu_metrics_debug",val:": bool = False"},{name:"debug",val:": typing.Union[str, list[transformers.debug_utils.DebugOption]] = ''"},{name:"dataloader_drop_last",val:": bool = False"},{name:"eval_steps",val:": typing.Optional[float] = None"},{name:"dataloader_num_workers",val:": int = 0"},{name:"dataloader_prefetch_factor",val:": typing.Optional[int] = None"},{name:"past_index",val:": int = -1"},{name:"run_name",val:": typing.Optional[str] = None"},{name:"disable_tqdm",val:": typing.Optional[bool] = None"},{name:"remove_unused_columns",val:": typing.Optional[bool] = True"},{name:"label_names",val:": typing.Optional[list[str]] = None"},{name:"load_best_model_at_end",val:": typing.Optional[bool] = False"},{name:"metric_for_best_model",val:": typing.Optional[str] = None"},{name:"greater_is_better",val:": typing.Optional[bool] = None"},{name:"ignore_data_skip",val:": bool = False"},{name:"fsdp",val:": typing.Union[list[transformers.trainer_utils.FSDPOption], str, NoneType] = ''"},{name:"fsdp_min_num_params",val:": int = 0"},{name:"fsdp_config",val:": typing.Union[dict, str, NoneType] = None"},{name:"fsdp_transformer_layer_cls_to_wrap",val:": typing.Optional[str] = None"},{name:"accelerator_config",val:": typing.Union[dict, str, NoneType] = None"},{name:"deepspeed",val:": typing.Union[dict, str, NoneType] = None"},{name:"label_smoothing_factor",val:": float = 0.0"},{name:"optim",val:": typing.Union[transformers.training_args.OptimizerNames, str] = 'adamw_torch'"},{name:"optim_args",val:": typing.Optional[str] = None"},{name:"adafactor",val:": bool = False"},{name:"group_by_length",val:": bool = False"},{name:"length_column_name",val:": typing.Optional[str] = 'length'"},{name:"report_to",val:": typing.Union[NoneType, str, list[str]] = None"},{name:"ddp_find_unused_parameters",val:": typing.Optional[bool] = None"},{name:"ddp_bucket_cap_mb",val:": typing.Optional[int] = None"},{name:"ddp_broadcast_buffers",val:": typing.Optional[bool] = None"},{name:"dataloader_pin_memory",val:": bool = True"},{name:"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:": typing.Optional[str] = None"},{name:"hub_model_id",val:": typing.Optional[str] = None"},{name:"hub_strategy",val:": typing.Union[transformers.trainer_utils.HubStrategy, str] = 'every_save'"},{name:"hub_token",val:": typing.Optional[str] = None"},{name:"hub_private_repo",val:": typing.Optional[bool] = None"},{name:"hub_always_push",val:": bool = False"},{name:"gradient_checkpointing",val:": bool = False"},{name:"gradient_checkpointing_kwargs",val:": typing.Union[dict, str, NoneType] = None"},{name:"include_inputs_for_metrics",val:": bool = False"},{name:"include_for_metrics",val:": list = <factory>"},{name:"eval_do_concat_batches",val:": bool = True"},{name:"fp16_backend",val:": str = 'auto'"},{name:"push_to_hub_model_id",val:": typing.Optional[str] = None"},{name:"push_to_hub_organization",val:": typing.Optional[str] = None"},{name:"push_to_hub_token",val:": typing.Optional[str] = None"},{name:"mp_parameters",val:": str = ''"},{name:"auto_find_batch_size",val:": bool = False"},{name:"full_determinism",val:": bool = False"},{name:"torchdynamo",val:": typing.Optional[str] = None"},{name:"ray_scope",val:": typing.Optional[str] = 'last'"},{name:"ddp_timeout",val:": typing.Optional[int] = 1800"},{name:"torch_compile",val:": bool = False"},{name:"torch_compile_backend",val:": typing.Optional[str] = None"},{name:"torch_compile_mode",val:": typing.Optional[str] = None"},{name:"include_tokens_per_second",val:": typing.Optional[bool] = False"},{name:"include_num_input_tokens_seen",val:": typing.Optional[bool] = False"},{name:"neftune_noise_alpha",val:": typing.Optional[float] = None"},{name:"optim_target_modules",val:": typing.Union[NoneType, str, list[str]] = None"},{name:"batch_eval_metrics",val:": bool = False"},{name:"eval_on_start",val:": bool = False"},{name:"use_liger_kernel",val:": typing.Optional[bool] = False"},{name:"eval_use_gather_object",val:": typing.Optional[bool] = False"},{name:"average_tokens_across_devices",val:": typing.Optional[bool] = False"},{name:"sortish_sampler",val:": bool = False"},{name:"predict_with_generate",val:": bool = False"},{name:"generation_max_length",val:": typing.Optional[int] = None"},{name:"generation_num_beams",val:": typing.Optional[int] = None"},{name:"generation_config",val:": typing.Union[str, pathlib.Path, transformers.generation.configuration_utils.GenerationConfig, NoneType] = None"}],parametersDescription:[{anchor:"transformers.Seq2SeqTrainingArguments.output_dir",description:`<strong>output_dir</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;trainer_output&quot;</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>eval_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.eval_strategy",description:`<strong>eval_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:"eval_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 device accelerator 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 device accelerator 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 the device accelerator 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
eval_strategy.`,name:"eval_delay"},{anchor:"transformers.Seq2SeqTrainingArguments.torch_empty_cache_steps",description:`<strong>torch_empty_cache_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of steps to wait before calling <code>torch.&lt;device&gt;.empty_cache()</code>. If left unset or set to None, cache will not be emptied.</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>This can help avoid CUDA out-of-memory errors by lowering peak VRAM usage at a cost of about <a href="https://github.com/huggingface/transformers/issues/31372" rel="nofollow">10% slower performance</a>.</p>

					</div>`,name:"torch_empty_cache_steps"},{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 <code>AdamW</code> 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 <code>AdamW</code>
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 <code>AdamW</code> 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 <code>AdamW</code> 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 <code>AdamW</code> 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 <code>SaveStrategy</code>, <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>
<li><code>&quot;best&quot;</code>: Save is done whenever a new <code>best_metric</code> is achieved.</li>
</ul>
<p>If <code>&quot;epoch&quot;</code> or <code>&quot;steps&quot;</code> is chosen, saving will also be performed at the
very end of training, always.`,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.restore_callback_states_from_checkpoint",description:`<strong>restore_callback_states_from_checkpoint</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to restore the callback states from the checkpoint. If <code>True</code>, will override
callbacks passed to the <code>Trainer</code> if they exist in the checkpoint.&#x201D;`,name:"restore_callback_states_from_checkpoint"},{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/perf_train_gpu_one#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>eval_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>, defaults to <code>output_dir</code>) &#x2014;
A descriptor for the run. Typically used for <a href="https://www.wandb.com/" rel="nofollow">wandb</a>,
<a href="https://www.mlflow.org/" rel="nofollow">mlflow</a>, <a href="https://www.comet.com/site" rel="nofollow">comet</a> and <a href="https://swanlab.cn" rel="nofollow">swanlab</a>
logging. If not specified, will be the same as <code>output_dir</code>.`,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>eval_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>.</p>
<p>If not specified, this will default to <code>&quot;loss&quot;</code> when either <code>load_best_model_at_end == True</code>
or <code>lr_scheduler_type == SchedulerType.REDUCE_ON_PLATEAU</code> (to use the evaluation loss).</p>
<p>If you set this value, <code>greater_is_better</code> will default to <code>True</code> unless the name ends with &#x201C;loss&#x201D;.
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 doesn&#x2019;t end in <code>&quot;loss&quot;</code>.</li>
<li><code>False</code> if <code>metric_for_best_model</code> is not set, or set to a value that ends in <code>&quot;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 parameters. 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>cpu_ram_efficient_loading (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
If <code>&quot;True&quot;</code>, only the first process loads the pretrained model checkpoint while all other processes
have empty weights.  When this setting as <code>&quot;True&quot;</code>, <code>sync_module_states</code> also must to be <code>&quot;True&quot;</code>,
otherwise all the processes except the main process would have random weights leading to unexpected
behaviour during training.</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/deepspeedai/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 reproducible using a different sampling technique. While seed-to-seed results
may differ, on average the differences are negligible when using multiple different seeds to compare. Should
also be ran with <code>~utils.set_seed</code> for the best results.</li>
<li>use_configured_state (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether or not to use a pre-configured <code>AcceleratorState</code> or <code>PartialState</code> defined before calling <code>TrainingArguments</code>.
If <code>True</code>, an <code>Accelerator</code> or <code>PartialState</code> must be initialized. Note that by doing so, this could lead to issues
with hyperparameter tuning.</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, such as &#x201C;adamw_torch&#x201D;, &#x201C;adamw_torch_fused&#x201D;, &#x201C;adamw_apex_fused&#x201D;, &#x201C;adamw_anyprecision&#x201D;,
&#x201C;adafactor&#x201D;. See <code>OptimizerNames</code> in <a href="https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py" rel="nofollow">training_args.py</a>
for a full list of optimizers.`,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 optimizers such as AnyPrecisionAdamW, AdEMAMix, and GaLore.`,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;swanlab&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 processing class e.g. 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 processing class e.g. 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>) &#x2014;
Whether to make the repo private. If <code>None</code> (default), the repo will be public unless the organization&#x2019;s default is private. This value is ignored if the repo already exists.`,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;
This argument is deprecated. Use <code>include_for_metrics</code> instead, e.g, <code>include_for_metrics = [&quot;inputs&quot;]</code>.`,name:"include_inputs_for_metrics"},{anchor:"transformers.Seq2SeqTrainingArguments.include_for_metrics",description:`<strong>include_for_metrics</strong> (<code>List[str]</code>, <em>optional</em>, defaults to <code>[]</code>) &#x2014;
Include additional data in the <code>compute_metrics</code> function if needed for metrics computation.
Possible options to add to <code>include_for_metrics</code> list:</p>
<ul>
<li><code>&quot;inputs&quot;</code>: Input data passed to the model, intended for calculating input dependent metrics.</li>
<li><code>&quot;loss&quot;</code>: Loss values computed during evaluation, intended for calculating loss dependent metrics.</li>
</ul>`,name:"include_for_metrics"},{anchor:"transformers.Seq2SeqTrainingArguments.eval_do_concat_batches",description:`<strong>eval_do_concat_batches</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to recursively concat inputs/losses/labels/predictions across batches. If <code>False</code>,
will instead store them as lists, with each batch kept separate.`,name:"eval_do_concat_batches"},{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.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. The original paper used values in the range [5.0, 15.0].`,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.
Currently used for the GaLore algorithm (<a href="https://arxiv.org/abs/2403.03507" rel="nofollow">https://arxiv.org/abs/2403.03507</a>) and APOLLO algorithm (<a href="https://arxiv.org/abs/2412.05270" rel="nofollow">https://arxiv.org/abs/2412.05270</a>).
See GaLore implementation (<a href="https://github.com/jiaweizzhao/GaLore" rel="nofollow">https://github.com/jiaweizzhao/GaLore</a>) and APOLLO implementation (<a href="https://github.com/zhuhanqing/APOLLO" rel="nofollow">https://github.com/zhuhanqing/APOLLO</a>) for more details.
You need to make sure to pass a valid GaLore or APOLLO optimizer, e.g., one of: &#x201C;apollo_adamw&#x201D;, &#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.batch_eval_metrics",description:`<strong>batch_eval_metrics</strong> (<code>Optional[bool]</code>, defaults to <code>False</code>) &#x2014;
If set to <code>True</code>, evaluation will call compute_metrics at the end of each batch to accumulate statistics
rather than saving all eval logits in memory. When set to <code>True</code>, you must pass a compute_metrics function
that takes a boolean argument <code>compute_result</code>, which when passed <code>True</code>, will trigger the final global
summary statistics from the batch-level summary statistics you&#x2019;ve accumulated over the evaluation set.`,name:"batch_eval_metrics"},{anchor:"transformers.Seq2SeqTrainingArguments.eval_on_start",description:`<strong>eval_on_start</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to perform a evaluation step (sanity check) before the training to ensure the validation steps works correctly.`,name:"eval_on_start"},{anchor:"transformers.Seq2SeqTrainingArguments.eval_use_gather_object",description:`<strong>eval_use_gather_object</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to run recursively gather object in a nested list/tuple/dictionary of objects from all devices. This should only be enabled if users are not just returning tensors, and this is actively discouraged by PyTorch.`,name:"eval_use_gather_object"},{anchor:"transformers.Seq2SeqTrainingArguments.use_liger_kernel",description:`<strong>use_liger_kernel</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether enable <a href="https://github.com/linkedin/Liger-Kernel" rel="nofollow">Liger</a> Kernel for LLM model training.
It can effectively increase multi-GPU training throughput by ~20% and reduces memory usage by ~60%, works out of the box with
flash attention, PyTorch FSDP, and Microsoft DeepSpeed. Currently, it supports llama, mistral, mixtral and gemma models.`,name:"use_liger_kernel"},{anchor:"transformers.Seq2SeqTrainingArguments.average_tokens_across_devices",description:`<strong>average_tokens_across_devices</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to average tokens across devices. If enabled, will use all_reduce to synchronize
num_tokens_in_batch for precise loss calculation. Reference:
<a href="https://github.com/huggingface/transformers/issues/34242" rel="nofollow">https://github.com/huggingface/transformers/issues/34242</a>`,name:"average_tokens_across_devices"},{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"}}),Lo=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#L80"}}),No=new Fm({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/main_classes/trainer.md"}}),{c(){i=r("meta"),k=o(),m=r("p"),c=o(),p(q.$$.fragment),s=o(),A=r("p"),A.innerHTML=Td,ya=o(),wt=r("p"),wt.innerHTML=wd,Ta=o(),p(Ae.$$.fragment),wa=o(),p(xt.$$.fragment),xa=o(),b=r("div"),p(qt.$$.fragment),Xa=o(),Go=r("p"),Go.textContent=xd,Ya=o(),Xo=r("p"),Xo.textContent=qd,Za=o(),Yo=r("ul"),Yo.innerHTML=kd,Qa=o(),Se=r("div"),p(kt.$$.fragment),Ka=o(),Zo=r("p"),Zo.innerHTML=$d,es=o(),Ce=r("div"),p($t.$$.fragment),ts=o(),Qo=r("p"),Qo.innerHTML=Ad,os=o(),Z=r("div"),p(At.$$.fragment),ns=o(),Ko=r("p"),Ko.textContent=Sd,rs=o(),en=r("p"),en.textContent=Cd,as=o(),Pe=r("div"),p(St.$$.fragment),ss=o(),tn=r("p"),tn.textContent=Pd,is=o(),Me=r("div"),p(Ct.$$.fragment),ls=o(),on=r("p"),on.innerHTML=Md,ds=o(),Q=r("div"),p(Pt.$$.fragment),cs=o(),nn=r("p"),nn.textContent=zd,ms=o(),rn=r("p"),rn.innerHTML=Fd,ps=o(),K=r("div"),p(Mt.$$.fragment),us=o(),an=r("p"),an.textContent=Dd,gs=o(),sn=r("p"),sn.innerHTML=Id,hs=o(),ze=r("div"),p(zt.$$.fragment),fs=o(),ln=r("p"),ln.textContent=Ld,_s=o(),W=r("div"),p(Ft.$$.fragment),bs=o(),dn=r("p"),dn.textContent=Nd,vs=o(),cn=r("p"),cn.innerHTML=Wd,ys=o(),mn=r("p"),mn.textContent=Ud,Ts=o(),ee=r("div"),p(Dt.$$.fragment),ws=o(),pn=r("p"),pn.innerHTML=jd,xs=o(),un=r("p"),un.textContent=Od,qs=o(),Fe=r("div"),p(It.$$.fragment),ks=o(),gn=r("p"),gn.innerHTML=Hd,$s=o(),U=r("div"),p(Lt.$$.fragment),As=o(),hn=r("p"),hn.textContent=Rd,Ss=o(),fn=r("p"),fn.textContent=Ed,Cs=o(),_n=r("ol"),_n.innerHTML=Jd,Ps=o(),te=r("div"),p(Nt.$$.fragment),Ms=o(),bn=r("p"),bn.innerHTML=Bd,zs=o(),vn=r("p"),vn.textContent=Vd,Fs=o(),De=r("div"),p(Wt.$$.fragment),Ds=o(),yn=r("p"),yn.textContent=Gd,Is=o(),Ie=r("div"),p(Ut.$$.fragment),Ls=o(),Tn=r("p"),Tn.textContent=Xd,Ns=o(),Le=r("div"),p(jt.$$.fragment),Ws=o(),wn=r("p"),wn.textContent=Yd,Us=o(),Ne=r("div"),p(Ot.$$.fragment),js=o(),xn=r("p"),xn.textContent=Zd,Os=o(),oe=r("div"),p(Ht.$$.fragment),Hs=o(),qn=r("p"),qn.innerHTML=Qd,Rs=o(),kn=r("p"),kn.textContent=Kd,Es=o(),j=r("div"),p(Rt.$$.fragment),Js=o(),$n=r("p"),$n.innerHTML=ec,Bs=o(),An=r("p"),An.innerHTML=tc,Vs=o(),Sn=r("p"),Sn.textContent=oc,Gs=o(),ne=r("div"),p(Et.$$.fragment),Xs=o(),Cn=r("p"),Cn.innerHTML=nc,Ys=o(),p(We.$$.fragment),Zs=o(),Ue=r("div"),p(Jt.$$.fragment),Qs=o(),Pn=r("p"),Pn.innerHTML=rc,Ks=o(),je=r("div"),p(Bt.$$.fragment),ei=o(),Mn=r("p"),Mn.textContent=ac,ti=o(),Oe=r("div"),p(Vt.$$.fragment),oi=o(),zn=r("p"),zn.innerHTML=sc,ni=o(),re=r("div"),p(Gt.$$.fragment),ri=o(),Fn=r("p"),Fn.innerHTML=ic,ai=o(),Dn=r("p"),Dn.textContent=lc,si=o(),P=r("div"),p(Xt.$$.fragment),ii=o(),In=r("p"),In.textContent=dc,li=o(),Ln=r("p"),Ln.textContent=cc,di=o(),Nn=r("p"),Nn.textContent=mc,ci=o(),Wn=r("p"),Wn.innerHTML=pc,mi=o(),p(He.$$.fragment),pi=o(),Un=r("p"),Un.innerHTML=uc,ui=o(),jn=r("ul"),jn.innerHTML=gc,gi=o(),On=r("p"),On.textContent=hc,hi=o(),Hn=r("p"),Hn.textContent=fc,fi=o(),Rn=r("p"),Rn.innerHTML=_c,_i=o(),En=r("p"),En.innerHTML=bc,bi=o(),Jn=r("p"),Jn.innerHTML=vc,vi=o(),Bn=r("p"),Bn.innerHTML=yc,yi=o(),Vn=r("p"),Vn.innerHTML=Tc,Ti=o(),Gn=r("p"),Gn.textContent=wc,wi=o(),Re=r("div"),p(Yt.$$.fragment),xi=o(),Xn=r("p"),Xn.textContent=xc,qi=o(),Ee=r("div"),p(Zt.$$.fragment),ki=o(),Yn=r("p"),Yn.innerHTML=qc,$i=o(),Je=r("div"),p(Qt.$$.fragment),Ai=o(),Zn=r("p"),Zn.innerHTML=kc,Si=o(),ae=r("div"),p(Kt.$$.fragment),Ci=o(),Qn=r("p"),Qn.innerHTML=$c,Pi=o(),Kn=r("p"),Kn.innerHTML=Ac,Mi=o(),D=r("div"),p(eo.$$.fragment),zi=o(),er=r("p"),er.textContent=Sc,Fi=o(),tr=r("p"),tr.innerHTML=Cc,Di=o(),p(Be.$$.fragment),Ii=o(),or=r("p"),or.innerHTML=Pc,Li=o(),nr=r("ul"),nr.innerHTML=Mc,Ni=o(),se=r("div"),p(to.$$.fragment),Wi=o(),rr=r("p"),rr.innerHTML=zc,Ui=o(),ar=r("p"),ar.textContent=Fc,ji=o(),ie=r("div"),p(oo.$$.fragment),Oi=o(),sr=r("p"),sr.innerHTML=Dc,Hi=o(),ir=r("p"),ir.textContent=Ic,Ri=o(),Ve=r("div"),p(no.$$.fragment),Ei=o(),lr=r("p"),lr.textContent=Lc,Ji=o(),Ge=r("div"),p(ro.$$.fragment),Bi=o(),dr=r("p"),dr.innerHTML=Nc,Vi=o(),Xe=r("div"),p(ao.$$.fragment),Gi=o(),cr=r("p"),cr.innerHTML=Wc,Xi=o(),O=r("div"),p(so.$$.fragment),Yi=o(),mr=r("p"),mr.innerHTML=Uc,Zi=o(),pr=r("p"),pr.textContent=jc,Qi=o(),ur=r("p"),ur.innerHTML=Oc,Ki=o(),le=r("div"),p(io.$$.fragment),el=o(),gr=r("p"),gr.innerHTML=Hc,tl=o(),hr=r("p"),hr.textContent=Rc,ol=o(),de=r("div"),p(lo.$$.fragment),nl=o(),fr=r("p"),fr.textContent=Ec,rl=o(),_r=r("p"),_r.textContent=Jc,al=o(),ce=r("div"),p(co.$$.fragment),sl=o(),br=r("p"),br.textContent=Bc,il=o(),vr=r("ul"),vr.innerHTML=Vc,ll=o(),Ye=r("div"),p(mo.$$.fragment),dl=o(),yr=r("p"),yr.textContent=Gc,cl=o(),me=r("div"),p(po.$$.fragment),ml=o(),Tr=r("p"),Tr.textContent=Xc,pl=o(),wr=r("p"),wr.textContent=Yc,qa=o(),p(uo.$$.fragment),ka=o(),G=r("div"),p(go.$$.fragment),ul=o(),H=r("div"),p(ho.$$.fragment),gl=o(),xr=r("p"),xr.textContent=Zc,hl=o(),qr=r("p"),qr.innerHTML=Qc,fl=o(),kr=r("p"),kr.textContent=Kc,_l=o(),I=r("div"),p(fo.$$.fragment),bl=o(),$r=r("p"),$r.textContent=em,vl=o(),Ar=r("p"),Ar.innerHTML=tm,yl=o(),p(Ze.$$.fragment),Tl=o(),Sr=r("p"),Sr.innerHTML=om,wl=o(),Cr=r("ul"),Cr.innerHTML=nm,$a=o(),p(_o.$$.fragment),Aa=o(),S=r("div"),p(bo.$$.fragment),xl=o(),Pr=r("p"),Pr.innerHTML=rm,ql=o(),Mr=r("p"),Mr.innerHTML=am,kl=o(),L=r("div"),p(vo.$$.fragment),$l=o(),zr=r("p"),zr.textContent=sm,Al=o(),Fr=r("p"),Fr.innerHTML=im,Sl=o(),Dr=r("p"),Dr.innerHTML=lm,Cl=o(),Ir=r("p"),Ir.innerHTML=dm,Pl=o(),Qe=r("div"),p(yo.$$.fragment),Ml=o(),Lr=r("p"),Lr.textContent=cm,zl=o(),pe=r("div"),p(To.$$.fragment),Fl=o(),Nr=r("p"),Nr.textContent=mm,Dl=o(),Wr=r("p"),Wr.innerHTML=pm,Il=o(),ue=r("div"),p(wo.$$.fragment),Ll=o(),Ur=r("p"),Ur.textContent=um,Nl=o(),p(Ke.$$.fragment),Wl=o(),ge=r("div"),p(xo.$$.fragment),Ul=o(),jr=r("p"),jr.textContent=gm,jl=o(),p(et.$$.fragment),Ol=o(),he=r("div"),p(qo.$$.fragment),Hl=o(),Or=r("p"),Or.textContent=hm,Rl=o(),p(tt.$$.fragment),El=o(),fe=r("div"),p(ko.$$.fragment),Jl=o(),Hr=r("p"),Hr.textContent=fm,Bl=o(),p(ot.$$.fragment),Vl=o(),_e=r("div"),p($o.$$.fragment),Gl=o(),Rr=r("p"),Rr.textContent=_m,Xl=o(),p(nt.$$.fragment),Yl=o(),R=r("div"),p(Ao.$$.fragment),Zl=o(),Er=r("p"),Er.textContent=bm,Ql=o(),p(rt.$$.fragment),Kl=o(),p(at.$$.fragment),ed=o(),be=r("div"),p(So.$$.fragment),td=o(),Jr=r("p"),Jr.textContent=vm,od=o(),p(st.$$.fragment),nd=o(),E=r("div"),p(Co.$$.fragment),rd=o(),Br=r("p"),Br.textContent=ym,ad=o(),p(it.$$.fragment),sd=o(),p(lt.$$.fragment),id=o(),J=r("div"),p(Po.$$.fragment),ld=o(),Vr=r("p"),Vr.textContent=Tm,dd=o(),p(dt.$$.fragment),cd=o(),p(ct.$$.fragment),md=o(),mt=r("div"),p(Mo.$$.fragment),pd=o(),Gr=r("p"),Gr.innerHTML=wm,ud=o(),pt=r("div"),p(zo.$$.fragment),gd=o(),Xr=r("p"),Xr.textContent=xm,hd=o(),ut=r("div"),p(Fo.$$.fragment),fd=o(),Yr=r("p"),Yr.textContent=qm,Sa=o(),p(Do.$$.fragment),Ca=o(),N=r("div"),p(Io.$$.fragment),_d=o(),Zr=r("p"),Zr.innerHTML=km,bd=o(),Qr=r("p"),Qr.innerHTML=$m,vd=o(),gt=r("div"),p(Lo.$$.fragment),yd=o(),Kr=r("p"),Kr.innerHTML=Am,Pa=o(),p(No.$$.fragment),Ma=o(),ba=r("p"),this.h()},l(t){const y=zm("svelte-u9bgzb",document.head);i=a(y,"META",{name:!0,content:!0}),y.forEach(d),k=n(t),m=a(t,"P",{}),T(m).forEach(d),c=n(t),u(q.$$.fragment,t),s=n(t),A=a(t,"P",{"data-svelte-h":!0}),l(A)!=="svelte-gg56my"&&(A.innerHTML=Td),ya=n(t),wt=a(t,"P",{"data-svelte-h":!0}),l(wt)!=="svelte-1mfj00n"&&(wt.innerHTML=wd),Ta=n(t),u(Ae.$$.fragment,t),wa=n(t),u(xt.$$.fragment,t),xa=n(t),b=a(t,"DIV",{class:!0});var v=T(b);u(qt.$$.fragment,v),Xa=n(v),Go=a(v,"P",{"data-svelte-h":!0}),l(Go)!=="svelte-xa06uv"&&(Go.textContent=xd),Ya=n(v),Xo=a(v,"P",{"data-svelte-h":!0}),l(Xo)!=="svelte-1tbd587"&&(Xo.textContent=qd),Za=n(v),Yo=a(v,"UL",{"data-svelte-h":!0}),l(Yo)!=="svelte-yvzbh4"&&(Yo.innerHTML=kd),Qa=n(v),Se=a(v,"DIV",{class:!0});var Wo=T(Se);u(kt.$$.fragment,Wo),Ka=n(Wo),Zo=a(Wo,"P",{"data-svelte-h":!0}),l(Zo)!=="svelte-1ux4n0v"&&(Zo.innerHTML=$d),Wo.forEach(d),es=n(v),Ce=a(v,"DIV",{class:!0});var Uo=T(Ce);u($t.$$.fragment,Uo),ts=n(Uo),Qo=a(Uo,"P",{"data-svelte-h":!0}),l(Qo)!=="svelte-9kwitf"&&(Qo.innerHTML=Ad),Uo.forEach(d),os=n(v),Z=a(v,"DIV",{class:!0});var we=T(Z);u(At.$$.fragment,we),ns=n(we),Ko=a(we,"P",{"data-svelte-h":!0}),l(Ko)!=="svelte-1feheyo"&&(Ko.textContent=Sd),rs=n(we),en=a(we,"P",{"data-svelte-h":!0}),l(en)!=="svelte-1be1oij"&&(en.textContent=Cd),we.forEach(d),as=n(v),Pe=a(v,"DIV",{class:!0});var jo=T(Pe);u(St.$$.fragment,jo),ss=n(jo),tn=a(jo,"P",{"data-svelte-h":!0}),l(tn)!=="svelte-1agg8ch"&&(tn.textContent=Pd),jo.forEach(d),is=n(v),Me=a(v,"DIV",{class:!0});var Oo=T(Me);u(Ct.$$.fragment,Oo),ls=n(Oo),on=a(Oo,"P",{"data-svelte-h":!0}),l(on)!=="svelte-1mh859w"&&(on.innerHTML=Md),Oo.forEach(d),ds=n(v),Q=a(v,"DIV",{class:!0});var xe=T(Q);u(Pt.$$.fragment,xe),cs=n(xe),nn=a(xe,"P",{"data-svelte-h":!0}),l(nn)!=="svelte-1w438iv"&&(nn.textContent=zd),ms=n(xe),rn=a(xe,"P",{"data-svelte-h":!0}),l(rn)!=="svelte-nadplw"&&(rn.innerHTML=Fd),xe.forEach(d),ps=n(v),K=a(v,"DIV",{class:!0});var qe=T(K);u(Mt.$$.fragment,qe),us=n(qe),an=a(qe,"P",{"data-svelte-h":!0}),l(an)!=="svelte-wdco14"&&(an.textContent=Dd),gs=n(qe),sn=a(qe,"P",{"data-svelte-h":!0}),l(sn)!=="svelte-zasfqr"&&(sn.innerHTML=Id),qe.forEach(d),hs=n(v),ze=a(v,"DIV",{class:!0});var Ho=T(ze);u(zt.$$.fragment,Ho),fs=n(Ho),ln=a(Ho,"P",{"data-svelte-h":!0}),l(ln)!=="svelte-qi4mtl"&&(ln.textContent=Ld),Ho.forEach(d),_s=n(v),W=a(v,"DIV",{class:!0});var X=T(W);u(Ft.$$.fragment,X),bs=n(X),dn=a(X,"P",{"data-svelte-h":!0}),l(dn)!=="svelte-1mcvryw"&&(dn.textContent=Nd),vs=n(X),cn=a(X,"P",{"data-svelte-h":!0}),l(cn)!=="svelte-1339kj6"&&(cn.innerHTML=Wd),ys=n(X),mn=a(X,"P",{"data-svelte-h":!0}),l(mn)!=="svelte-1h30111"&&(mn.textContent=Ud),X.forEach(d),Ts=n(v),ee=a(v,"DIV",{class:!0});var ke=T(ee);u(Dt.$$.fragment,ke),ws=n(ke),pn=a(ke,"P",{"data-svelte-h":!0}),l(pn)!=="svelte-1v5gmc1"&&(pn.innerHTML=jd),xs=n(ke),un=a(ke,"P",{"data-svelte-h":!0}),l(un)!=="svelte-1tyo99t"&&(un.textContent=Od),ke.forEach(d),qs=n(v),Fe=a(v,"DIV",{class:!0});var Ro=T(Fe);u(It.$$.fragment,Ro),ks=n(Ro),gn=a(Ro,"P",{"data-svelte-h":!0}),l(gn)!=="svelte-esvj26"&&(gn.innerHTML=Hd),Ro.forEach(d),$s=n(v),U=a(v,"DIV",{class:!0});var Y=T(U);u(Lt.$$.fragment,Y),As=n(Y),hn=a(Y,"P",{"data-svelte-h":!0}),l(hn)!=="svelte-c1jesw"&&(hn.textContent=Rd),Ss=n(Y),fn=a(Y,"P",{"data-svelte-h":!0}),l(fn)!=="svelte-25ysg0"&&(fn.textContent=Ed),Cs=n(Y),_n=a(Y,"OL",{"data-svelte-h":!0}),l(_n)!=="svelte-1jln558"&&(_n.innerHTML=Jd),Y.forEach(d),Ps=n(v),te=a(v,"DIV",{class:!0});var $e=T(te);u(Nt.$$.fragment,$e),Ms=n($e),bn=a($e,"P",{"data-svelte-h":!0}),l(bn)!=="svelte-xesobz"&&(bn.innerHTML=Bd),zs=n($e),vn=a($e,"P",{"data-svelte-h":!0}),l(vn)!=="svelte-1v6sccr"&&(vn.textContent=Vd),$e.forEach(d),Fs=n(v),De=a(v,"DIV",{class:!0});var Eo=T(De);u(Wt.$$.fragment,Eo),Ds=n(Eo),yn=a(Eo,"P",{"data-svelte-h":!0}),l(yn)!=="svelte-fo0w3k"&&(yn.textContent=Gd),Eo.forEach(d),Is=n(v),Ie=a(v,"DIV",{class:!0});var Jo=T(Ie);u(Ut.$$.fragment,Jo),Ls=n(Jo),Tn=a(Jo,"P",{"data-svelte-h":!0}),l(Tn)!=="svelte-n48d75"&&(Tn.textContent=Xd),Jo.forEach(d),Ns=n(v),Le=a(v,"DIV",{class:!0});var Bo=T(Le);u(jt.$$.fragment,Bo),Ws=n(Bo),wn=a(Bo,"P",{"data-svelte-h":!0}),l(wn)!=="svelte-1enq7q"&&(wn.textContent=Yd),Bo.forEach(d),Us=n(v),Ne=a(v,"DIV",{class:!0});var Fa=T(Ne);u(Ot.$$.fragment,Fa),js=n(Fa),xn=a(Fa,"P",{"data-svelte-h":!0}),l(xn)!=="svelte-4yzrvz"&&(xn.textContent=Zd),Fa.forEach(d),Os=n(v),oe=a(v,"DIV",{class:!0});var ea=T(oe);u(Ht.$$.fragment,ea),Hs=n(ea),qn=a(ea,"P",{"data-svelte-h":!0}),l(qn)!=="svelte-upvtbd"&&(qn.innerHTML=Qd),Rs=n(ea),kn=a(ea,"P",{"data-svelte-h":!0}),l(kn)!=="svelte-1v6sccr"&&(kn.textContent=Kd),ea.forEach(d),Es=n(v),j=a(v,"DIV",{class:!0});var ht=T(j);u(Rt.$$.fragment,ht),Js=n(ht),$n=a(ht,"P",{"data-svelte-h":!0}),l($n)!=="svelte-dkae9b"&&($n.innerHTML=ec),Bs=n(ht),An=a(ht,"P",{"data-svelte-h":!0}),l(An)!=="svelte-2uvyde"&&(An.innerHTML=tc),Vs=n(ht),Sn=a(ht,"P",{"data-svelte-h":!0}),l(Sn)!=="svelte-1v6sccr"&&(Sn.textContent=oc),ht.forEach(d),Gs=n(v),ne=a(v,"DIV",{class:!0});var ta=T(ne);u(Et.$$.fragment,ta),Xs=n(ta),Cn=a(ta,"P",{"data-svelte-h":!0}),l(Cn)!=="svelte-mf62ka"&&(Cn.innerHTML=nc),Ys=n(ta),u(We.$$.fragment,ta),ta.forEach(d),Zs=n(v),Ue=a(v,"DIV",{class:!0});var Da=T(Ue);u(Jt.$$.fragment,Da),Qs=n(Da),Pn=a(Da,"P",{"data-svelte-h":!0}),l(Pn)!=="svelte-rjlxwe"&&(Pn.innerHTML=rc),Da.forEach(d),Ks=n(v),je=a(v,"DIV",{class:!0});var Ia=T(je);u(Bt.$$.fragment,Ia),ei=n(Ia),Mn=a(Ia,"P",{"data-svelte-h":!0}),l(Mn)!=="svelte-16imdke"&&(Mn.textContent=ac),Ia.forEach(d),ti=n(v),Oe=a(v,"DIV",{class:!0});var La=T(Oe);u(Vt.$$.fragment,La),oi=n(La),zn=a(La,"P",{"data-svelte-h":!0}),l(zn)!=="svelte-1s7jdq8"&&(zn.innerHTML=sc),La.forEach(d),ni=n(v),re=a(v,"DIV",{class:!0});var oa=T(re);u(Gt.$$.fragment,oa),ri=n(oa),Fn=a(oa,"P",{"data-svelte-h":!0}),l(Fn)!=="svelte-19fk55y"&&(Fn.innerHTML=ic),ai=n(oa),Dn=a(oa,"P",{"data-svelte-h":!0}),l(Dn)!=="svelte-1tz9xhn"&&(Dn.textContent=lc),oa.forEach(d),si=n(v),P=a(v,"DIV",{class:!0});var z=T(P);u(Xt.$$.fragment,z),ii=n(z),In=a(z,"P",{"data-svelte-h":!0}),l(In)!=="svelte-xk72cw"&&(In.textContent=dc),li=n(z),Ln=a(z,"P",{"data-svelte-h":!0}),l(Ln)!=="svelte-5vrny9"&&(Ln.textContent=cc),di=n(z),Nn=a(z,"P",{"data-svelte-h":!0}),l(Nn)!=="svelte-k63f70"&&(Nn.textContent=mc),ci=n(z),Wn=a(z,"P",{"data-svelte-h":!0}),l(Wn)!=="svelte-y2g1lw"&&(Wn.innerHTML=pc),mi=n(z),u(He.$$.fragment,z),pi=n(z),Un=a(z,"P",{"data-svelte-h":!0}),l(Un)!=="svelte-ny4g3p"&&(Un.innerHTML=uc),ui=n(z),jn=a(z,"UL",{"data-svelte-h":!0}),l(jn)!=="svelte-9luch7"&&(jn.innerHTML=gc),gi=n(z),On=a(z,"P",{"data-svelte-h":!0}),l(On)!=="svelte-1yv69gs"&&(On.textContent=hc),hi=n(z),Hn=a(z,"P",{"data-svelte-h":!0}),l(Hn)!=="svelte-1d82c6u"&&(Hn.textContent=fc),fi=n(z),Rn=a(z,"P",{"data-svelte-h":!0}),l(Rn)!=="svelte-d1rr2j"&&(Rn.innerHTML=_c),_i=n(z),En=a(z,"P",{"data-svelte-h":!0}),l(En)!=="svelte-m7v5wt"&&(En.innerHTML=bc),bi=n(z),Jn=a(z,"P",{"data-svelte-h":!0}),l(Jn)!=="svelte-1propb9"&&(Jn.innerHTML=vc),vi=n(z),Bn=a(z,"P",{"data-svelte-h":!0}),l(Bn)!=="svelte-1lmh4zl"&&(Bn.innerHTML=yc),yi=n(z),Vn=a(z,"P",{"data-svelte-h":!0}),l(Vn)!=="svelte-1h5qcpr"&&(Vn.innerHTML=Tc),Ti=n(z),Gn=a(z,"P",{"data-svelte-h":!0}),l(Gn)!=="svelte-1ocu6t3"&&(Gn.textContent=wc),z.forEach(d),wi=n(v),Re=a(v,"DIV",{class:!0});var Na=T(Re);u(Yt.$$.fragment,Na),xi=n(Na),Xn=a(Na,"P",{"data-svelte-h":!0}),l(Xn)!=="svelte-ctud8x"&&(Xn.textContent=xc),Na.forEach(d),qi=n(v),Ee=a(v,"DIV",{class:!0});var Wa=T(Ee);u(Zt.$$.fragment,Wa),ki=n(Wa),Yn=a(Wa,"P",{"data-svelte-h":!0}),l(Yn)!=="svelte-19inmpu"&&(Yn.innerHTML=qc),Wa.forEach(d),$i=n(v),Je=a(v,"DIV",{class:!0});var Ua=T(Je);u(Qt.$$.fragment,Ua),Ai=n(Ua),Zn=a(Ua,"P",{"data-svelte-h":!0}),l(Zn)!=="svelte-tkw811"&&(Zn.innerHTML=kc),Ua.forEach(d),Si=n(v),ae=a(v,"DIV",{class:!0});var na=T(ae);u(Kt.$$.fragment,na),Ci=n(na),Qn=a(na,"P",{"data-svelte-h":!0}),l(Qn)!=="svelte-2sdd8y"&&(Qn.innerHTML=$c),Pi=n(na),Kn=a(na,"P",{"data-svelte-h":!0}),l(Kn)!=="svelte-1ojzwr1"&&(Kn.innerHTML=Ac),na.forEach(d),Mi=n(v),D=a(v,"DIV",{class:!0});var B=T(D);u(eo.$$.fragment,B),zi=n(B),er=a(B,"P",{"data-svelte-h":!0}),l(er)!=="svelte-1b6cpoy"&&(er.textContent=Sc),Fi=n(B),tr=a(B,"P",{"data-svelte-h":!0}),l(tr)!=="svelte-o30dtk"&&(tr.innerHTML=Cc),Di=n(B),u(Be.$$.fragment,B),Ii=n(B),or=a(B,"P",{"data-svelte-h":!0}),l(or)!=="svelte-1t1ea6f"&&(or.innerHTML=Pc),Li=n(B),nr=a(B,"UL",{"data-svelte-h":!0}),l(nr)!=="svelte-15ctb4a"&&(nr.innerHTML=Mc),B.forEach(d),Ni=n(v),se=a(v,"DIV",{class:!0});var ra=T(se);u(to.$$.fragment,ra),Wi=n(ra),rr=a(ra,"P",{"data-svelte-h":!0}),l(rr)!=="svelte-1v5gmc1"&&(rr.innerHTML=zc),Ui=n(ra),ar=a(ra,"P",{"data-svelte-h":!0}),l(ar)!=="svelte-1tyo99t"&&(ar.textContent=Fc),ra.forEach(d),ji=n(v),ie=a(v,"DIV",{class:!0});var aa=T(ie);u(oo.$$.fragment,aa),Oi=n(aa),sr=a(aa,"P",{"data-svelte-h":!0}),l(sr)!=="svelte-1y56pc5"&&(sr.innerHTML=Dc),Hi=n(aa),ir=a(aa,"P",{"data-svelte-h":!0}),l(ir)!=="svelte-qjfexy"&&(ir.textContent=Ic),aa.forEach(d),Ri=n(v),Ve=a(v,"DIV",{class:!0});var ja=T(Ve);u(no.$$.fragment,ja),Ei=n(ja),lr=a(ja,"P",{"data-svelte-h":!0}),l(lr)!=="svelte-o5qc7e"&&(lr.textContent=Lc),ja.forEach(d),Ji=n(v),Ge=a(v,"DIV",{class:!0});var Oa=T(Ge);u(ro.$$.fragment,Oa),Bi=n(Oa),dr=a(Oa,"P",{"data-svelte-h":!0}),l(dr)!=="svelte-8tudwd"&&(dr.innerHTML=Nc),Oa.forEach(d),Vi=n(v),Xe=a(v,"DIV",{class:!0});var Ha=T(Xe);u(ao.$$.fragment,Ha),Gi=n(Ha),cr=a(Ha,"P",{"data-svelte-h":!0}),l(cr)!=="svelte-1qgxbp7"&&(cr.innerHTML=Wc),Ha.forEach(d),Xi=n(v),O=a(v,"DIV",{class:!0});var ft=T(O);u(so.$$.fragment,ft),Yi=n(ft),mr=a(ft,"P",{"data-svelte-h":!0}),l(mr)!=="svelte-9dohab"&&(mr.innerHTML=Uc),Zi=n(ft),pr=a(ft,"P",{"data-svelte-h":!0}),l(pr)!=="svelte-5vrny9"&&(pr.textContent=jc),Qi=n(ft),ur=a(ft,"P",{"data-svelte-h":!0}),l(ur)!=="svelte-1tk52ex"&&(ur.innerHTML=Oc),ft.forEach(d),Ki=n(v),le=a(v,"DIV",{class:!0});var sa=T(le);u(io.$$.fragment,sa),el=n(sa),gr=a(sa,"P",{"data-svelte-h":!0}),l(gr)!=="svelte-r8h4ov"&&(gr.innerHTML=Hc),tl=n(sa),hr=a(sa,"P",{"data-svelte-h":!0}),l(hr)!=="svelte-1e6bius"&&(hr.textContent=Rc),sa.forEach(d),ol=n(v),de=a(v,"DIV",{class:!0});var ia=T(de);u(lo.$$.fragment,ia),nl=n(ia),fr=a(ia,"P",{"data-svelte-h":!0}),l(fr)!=="svelte-1nfd8vb"&&(fr.textContent=Ec),rl=n(ia),_r=a(ia,"P",{"data-svelte-h":!0}),l(_r)!=="svelte-5vrny9"&&(_r.textContent=Jc),ia.forEach(d),al=n(v),ce=a(v,"DIV",{class:!0});var la=T(ce);u(co.$$.fragment,la),sl=n(la),br=a(la,"P",{"data-svelte-h":!0}),l(br)!=="svelte-130oxb1"&&(br.textContent=Bc),il=n(la),vr=a(la,"UL",{"data-svelte-h":!0}),l(vr)!=="svelte-39b8ej"&&(vr.innerHTML=Vc),la.forEach(d),ll=n(v),Ye=a(v,"DIV",{class:!0});var Ra=T(Ye);u(mo.$$.fragment,Ra),dl=n(Ra),yr=a(Ra,"P",{"data-svelte-h":!0}),l(yr)!=="svelte-1cilnet"&&(yr.textContent=Gc),Ra.forEach(d),cl=n(v),me=a(v,"DIV",{class:!0});var da=T(me);u(po.$$.fragment,da),ml=n(da),Tr=a(da,"P",{"data-svelte-h":!0}),l(Tr)!=="svelte-4qplkw"&&(Tr.textContent=Xc),pl=n(da),wr=a(da,"P",{"data-svelte-h":!0}),l(wr)!=="svelte-qjfexy"&&(wr.textContent=Yc),da.forEach(d),v.forEach(d),qa=n(t),u(uo.$$.fragment,t),ka=n(t),G=a(t,"DIV",{class:!0});var ca=T(G);u(go.$$.fragment,ca),ul=n(ca),H=a(ca,"DIV",{class:!0});var _t=T(H);u(ho.$$.fragment,_t),gl=n(_t),xr=a(_t,"P",{"data-svelte-h":!0}),l(xr)!=="svelte-1mcvryw"&&(xr.textContent=Zc),hl=n(_t),qr=a(_t,"P",{"data-svelte-h":!0}),l(qr)!=="svelte-1339kj6"&&(qr.innerHTML=Qc),fl=n(_t),kr=a(_t,"P",{"data-svelte-h":!0}),l(kr)!=="svelte-1h30111"&&(kr.textContent=Kc),_t.forEach(d),_l=n(ca),I=a(ca,"DIV",{class:!0});var V=T(I);u(fo.$$.fragment,V),bl=n(V),$r=a(V,"P",{"data-svelte-h":!0}),l($r)!=="svelte-1b6cpoy"&&($r.textContent=em),vl=n(V),Ar=a(V,"P",{"data-svelte-h":!0}),l(Ar)!=="svelte-o30dtk"&&(Ar.innerHTML=tm),yl=n(V),u(Ze.$$.fragment,V),Tl=n(V),Sr=a(V,"P",{"data-svelte-h":!0}),l(Sr)!=="svelte-1t1ea6f"&&(Sr.innerHTML=om),wl=n(V),Cr=a(V,"UL",{"data-svelte-h":!0}),l(Cr)!=="svelte-15ctb4a"&&(Cr.innerHTML=nm),V.forEach(d),ca.forEach(d),$a=n(t),u(_o.$$.fragment,t),Aa=n(t),S=a(t,"DIV",{class:!0});var M=T(S);u(bo.$$.fragment,M),xl=n(M),Pr=a(M,"P",{"data-svelte-h":!0}),l(Pr)!=="svelte-avfxjl"&&(Pr.innerHTML=rm),ql=n(M),Mr=a(M,"P",{"data-svelte-h":!0}),l(Mr)!=="svelte-1yoivqo"&&(Mr.innerHTML=am),kl=n(M),L=a(M,"DIV",{class:!0});var ve=T(L);u(vo.$$.fragment,ve),$l=n(ve),zr=a(ve,"P",{"data-svelte-h":!0}),l(zr)!=="svelte-hj8f41"&&(zr.textContent=sm),Al=n(ve),Fr=a(ve,"P",{"data-svelte-h":!0}),l(Fr)!=="svelte-1iq1lj0"&&(Fr.innerHTML=im),Sl=n(ve),Dr=a(ve,"P",{"data-svelte-h":!0}),l(Dr)!=="svelte-18bal86"&&(Dr.innerHTML=lm),Cl=n(ve),Ir=a(ve,"P",{"data-svelte-h":!0}),l(Ir)!=="svelte-oacj0p"&&(Ir.innerHTML=dm),ve.forEach(d),Pl=n(M),Qe=a(M,"DIV",{class:!0});var Ea=T(Qe);u(yo.$$.fragment,Ea),Ml=n(Ea),Lr=a(Ea,"P",{"data-svelte-h":!0}),l(Lr)!=="svelte-9pbc1"&&(Lr.textContent=cm),Ea.forEach(d),zl=n(M),pe=a(M,"DIV",{class:!0});var ma=T(pe);u(To.$$.fragment,ma),Fl=n(ma),Nr=a(ma,"P",{"data-svelte-h":!0}),l(Nr)!=="svelte-13fy4lg"&&(Nr.textContent=mm),Dl=n(ma),Wr=a(ma,"P",{"data-svelte-h":!0}),l(Wr)!=="svelte-1aa165w"&&(Wr.innerHTML=pm),ma.forEach(d),Il=n(M),ue=a(M,"DIV",{class:!0});var pa=T(ue);u(wo.$$.fragment,pa),Ll=n(pa),Ur=a(pa,"P",{"data-svelte-h":!0}),l(Ur)!=="svelte-12p68tr"&&(Ur.textContent=um),Nl=n(pa),u(Ke.$$.fragment,pa),pa.forEach(d),Wl=n(M),ge=a(M,"DIV",{class:!0});var ua=T(ge);u(xo.$$.fragment,ua),Ul=n(ua),jr=a(ua,"P",{"data-svelte-h":!0}),l(jr)!=="svelte-9ywrxl"&&(jr.textContent=gm),jl=n(ua),u(et.$$.fragment,ua),ua.forEach(d),Ol=n(M),he=a(M,"DIV",{class:!0});var ga=T(he);u(qo.$$.fragment,ga),Hl=n(ga),Or=a(ga,"P",{"data-svelte-h":!0}),l(Or)!=="svelte-1lwqsi8"&&(Or.textContent=hm),Rl=n(ga),u(tt.$$.fragment,ga),ga.forEach(d),El=n(M),fe=a(M,"DIV",{class:!0});var ha=T(fe);u(ko.$$.fragment,ha),Jl=n(ha),Hr=a(ha,"P",{"data-svelte-h":!0}),l(Hr)!=="svelte-mc54aq"&&(Hr.textContent=fm),Bl=n(ha),u(ot.$$.fragment,ha),ha.forEach(d),Vl=n(M),_e=a(M,"DIV",{class:!0});var fa=T(_e);u($o.$$.fragment,fa),Gl=n(fa),Rr=a(fa,"P",{"data-svelte-h":!0}),l(Rr)!=="svelte-18hco78"&&(Rr.textContent=_m),Xl=n(fa),u(nt.$$.fragment,fa),fa.forEach(d),Yl=n(M),R=a(M,"DIV",{class:!0});var bt=T(R);u(Ao.$$.fragment,bt),Zl=n(bt),Er=a(bt,"P",{"data-svelte-h":!0}),l(Er)!=="svelte-y1tcex"&&(Er.textContent=bm),Ql=n(bt),u(rt.$$.fragment,bt),Kl=n(bt),u(at.$$.fragment,bt),bt.forEach(d),ed=n(M),be=a(M,"DIV",{class:!0});var _a=T(be);u(So.$$.fragment,_a),td=n(_a),Jr=a(_a,"P",{"data-svelte-h":!0}),l(Jr)!=="svelte-1duj623"&&(Jr.textContent=vm),od=n(_a),u(st.$$.fragment,_a),_a.forEach(d),nd=n(M),E=a(M,"DIV",{class:!0});var vt=T(E);u(Co.$$.fragment,vt),rd=n(vt),Br=a(vt,"P",{"data-svelte-h":!0}),l(Br)!=="svelte-lhuo6p"&&(Br.textContent=ym),ad=n(vt),u(it.$$.fragment,vt),sd=n(vt),u(lt.$$.fragment,vt),vt.forEach(d),id=n(M),J=a(M,"DIV",{class:!0});var yt=T(J);u(Po.$$.fragment,yt),ld=n(yt),Vr=a(yt,"P",{"data-svelte-h":!0}),l(Vr)!=="svelte-1h65v06"&&(Vr.textContent=Tm),dd=n(yt),u(dt.$$.fragment,yt),cd=n(yt),u(ct.$$.fragment,yt),yt.forEach(d),md=n(M),mt=a(M,"DIV",{class:!0});var Ja=T(mt);u(Mo.$$.fragment,Ja),pd=n(Ja),Gr=a(Ja,"P",{"data-svelte-h":!0}),l(Gr)!=="svelte-1ciob6u"&&(Gr.innerHTML=wm),Ja.forEach(d),ud=n(M),pt=a(M,"DIV",{class:!0});var Ba=T(pt);u(zo.$$.fragment,Ba),gd=n(Ba),Xr=a(Ba,"P",{"data-svelte-h":!0}),l(Xr)!=="svelte-5ayq1f"&&(Xr.textContent=xm),Ba.forEach(d),hd=n(M),ut=a(M,"DIV",{class:!0});var Va=T(ut);u(Fo.$$.fragment,Va),fd=n(Va),Yr=a(Va,"P",{"data-svelte-h":!0}),l(Yr)!=="svelte-lg45ly"&&(Yr.textContent=qm),Va.forEach(d),M.forEach(d),Sa=n(t),u(Do.$$.fragment,t),Ca=n(t),N=a(t,"DIV",{class:!0});var Tt=T(N);u(Io.$$.fragment,Tt),_d=n(Tt),Zr=a(Tt,"P",{"data-svelte-h":!0}),l(Zr)!=="svelte-avfxjl"&&(Zr.innerHTML=km),bd=n(Tt),Qr=a(Tt,"P",{"data-svelte-h":!0}),l(Qr)!=="svelte-1yoivqo"&&(Qr.innerHTML=$m),vd=n(Tt),gt=a(Tt,"DIV",{class:!0});var Ga=T(gt);u(Lo.$$.fragment,Ga),yd=n(Ga),Kr=a(Ga,"P",{"data-svelte-h":!0}),l(Kr)!=="svelte-yrflrv"&&(Kr.innerHTML=Am),Ga.forEach(d),Tt.forEach(d),Pa=n(t),u(No.$$.fragment,t),Ma=n(t),ba=a(t,"P",{}),T(ba).forEach(d),this.h()},h(){w(i,"name","hf:doc:metadata"),w(i,"content",Qm),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(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(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(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(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(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(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(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(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(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(U,"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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(Qe,"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(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(_e,"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(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(E,"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(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(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(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(gt,"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")},m(t,y){e(document.head,i),$(t,k,y),$(t,m,y),$(t,c,y),g(q,t,y),$(t,s,y),$(t,A,y),$(t,ya,y),$(t,wt,y),$(t,Ta,y),g(Ae,t,y),$(t,wa,y),g(xt,t,y),$(t,xa,y),$(t,b,y),g(qt,b,null),e(b,Xa),e(b,Go),e(b,Ya),e(b,Xo),e(b,Za),e(b,Yo),e(b,Qa),e(b,Se),g(kt,Se,null),e(Se,Ka),e(Se,Zo),e(b,es),e(b,Ce),g($t,Ce,null),e(Ce,ts),e(Ce,Qo),e(b,os),e(b,Z),g(At,Z,null),e(Z,ns),e(Z,Ko),e(Z,rs),e(Z,en),e(b,as),e(b,Pe),g(St,Pe,null),e(Pe,ss),e(Pe,tn),e(b,is),e(b,Me),g(Ct,Me,null),e(Me,ls),e(Me,on),e(b,ds),e(b,Q),g(Pt,Q,null),e(Q,cs),e(Q,nn),e(Q,ms),e(Q,rn),e(b,ps),e(b,K),g(Mt,K,null),e(K,us),e(K,an),e(K,gs),e(K,sn),e(b,hs),e(b,ze),g(zt,ze,null),e(ze,fs),e(ze,ln),e(b,_s),e(b,W),g(Ft,W,null),e(W,bs),e(W,dn),e(W,vs),e(W,cn),e(W,ys),e(W,mn),e(b,Ts),e(b,ee),g(Dt,ee,null),e(ee,ws),e(ee,pn),e(ee,xs),e(ee,un),e(b,qs),e(b,Fe),g(It,Fe,null),e(Fe,ks),e(Fe,gn),e(b,$s),e(b,U),g(Lt,U,null),e(U,As),e(U,hn),e(U,Ss),e(U,fn),e(U,Cs),e(U,_n),e(b,Ps),e(b,te),g(Nt,te,null),e(te,Ms),e(te,bn),e(te,zs),e(te,vn),e(b,Fs),e(b,De),g(Wt,De,null),e(De,Ds),e(De,yn),e(b,Is),e(b,Ie),g(Ut,Ie,null),e(Ie,Ls),e(Ie,Tn),e(b,Ns),e(b,Le),g(jt,Le,null),e(Le,Ws),e(Le,wn),e(b,Us),e(b,Ne),g(Ot,Ne,null),e(Ne,js),e(Ne,xn),e(b,Os),e(b,oe),g(Ht,oe,null),e(oe,Hs),e(oe,qn),e(oe,Rs),e(oe,kn),e(b,Es),e(b,j),g(Rt,j,null),e(j,Js),e(j,$n),e(j,Bs),e(j,An),e(j,Vs),e(j,Sn),e(b,Gs),e(b,ne),g(Et,ne,null),e(ne,Xs),e(ne,Cn),e(ne,Ys),g(We,ne,null),e(b,Zs),e(b,Ue),g(Jt,Ue,null),e(Ue,Qs),e(Ue,Pn),e(b,Ks),e(b,je),g(Bt,je,null),e(je,ei),e(je,Mn),e(b,ti),e(b,Oe),g(Vt,Oe,null),e(Oe,oi),e(Oe,zn),e(b,ni),e(b,re),g(Gt,re,null),e(re,ri),e(re,Fn),e(re,ai),e(re,Dn),e(b,si),e(b,P),g(Xt,P,null),e(P,ii),e(P,In),e(P,li),e(P,Ln),e(P,di),e(P,Nn),e(P,ci),e(P,Wn),e(P,mi),g(He,P,null),e(P,pi),e(P,Un),e(P,ui),e(P,jn),e(P,gi),e(P,On),e(P,hi),e(P,Hn),e(P,fi),e(P,Rn),e(P,_i),e(P,En),e(P,bi),e(P,Jn),e(P,vi),e(P,Bn),e(P,yi),e(P,Vn),e(P,Ti),e(P,Gn),e(b,wi),e(b,Re),g(Yt,Re,null),e(Re,xi),e(Re,Xn),e(b,qi),e(b,Ee),g(Zt,Ee,null),e(Ee,ki),e(Ee,Yn),e(b,$i),e(b,Je),g(Qt,Je,null),e(Je,Ai),e(Je,Zn),e(b,Si),e(b,ae),g(Kt,ae,null),e(ae,Ci),e(ae,Qn),e(ae,Pi),e(ae,Kn),e(b,Mi),e(b,D),g(eo,D,null),e(D,zi),e(D,er),e(D,Fi),e(D,tr),e(D,Di),g(Be,D,null),e(D,Ii),e(D,or),e(D,Li),e(D,nr),e(b,Ni),e(b,se),g(to,se,null),e(se,Wi),e(se,rr),e(se,Ui),e(se,ar),e(b,ji),e(b,ie),g(oo,ie,null),e(ie,Oi),e(ie,sr),e(ie,Hi),e(ie,ir),e(b,Ri),e(b,Ve),g(no,Ve,null),e(Ve,Ei),e(Ve,lr),e(b,Ji),e(b,Ge),g(ro,Ge,null),e(Ge,Bi),e(Ge,dr),e(b,Vi),e(b,Xe),g(ao,Xe,null),e(Xe,Gi),e(Xe,cr),e(b,Xi),e(b,O),g(so,O,null),e(O,Yi),e(O,mr),e(O,Zi),e(O,pr),e(O,Qi),e(O,ur),e(b,Ki),e(b,le),g(io,le,null),e(le,el),e(le,gr),e(le,tl),e(le,hr),e(b,ol),e(b,de),g(lo,de,null),e(de,nl),e(de,fr),e(de,rl),e(de,_r),e(b,al),e(b,ce),g(co,ce,null),e(ce,sl),e(ce,br),e(ce,il),e(ce,vr),e(b,ll),e(b,Ye),g(mo,Ye,null),e(Ye,dl),e(Ye,yr),e(b,cl),e(b,me),g(po,me,null),e(me,ml),e(me,Tr),e(me,pl),e(me,wr),$(t,qa,y),g(uo,t,y),$(t,ka,y),$(t,G,y),g(go,G,null),e(G,ul),e(G,H),g(ho,H,null),e(H,gl),e(H,xr),e(H,hl),e(H,qr),e(H,fl),e(H,kr),e(G,_l),e(G,I),g(fo,I,null),e(I,bl),e(I,$r),e(I,vl),e(I,Ar),e(I,yl),g(Ze,I,null),e(I,Tl),e(I,Sr),e(I,wl),e(I,Cr),$(t,$a,y),g(_o,t,y),$(t,Aa,y),$(t,S,y),g(bo,S,null),e(S,xl),e(S,Pr),e(S,ql),e(S,Mr),e(S,kl),e(S,L),g(vo,L,null),e(L,$l),e(L,zr),e(L,Al),e(L,Fr),e(L,Sl),e(L,Dr),e(L,Cl),e(L,Ir),e(S,Pl),e(S,Qe),g(yo,Qe,null),e(Qe,Ml),e(Qe,Lr),e(S,zl),e(S,pe),g(To,pe,null),e(pe,Fl),e(pe,Nr),e(pe,Dl),e(pe,Wr),e(S,Il),e(S,ue),g(wo,ue,null),e(ue,Ll),e(ue,Ur),e(ue,Nl),g(Ke,ue,null),e(S,Wl),e(S,ge),g(xo,ge,null),e(ge,Ul),e(ge,jr),e(ge,jl),g(et,ge,null),e(S,Ol),e(S,he),g(qo,he,null),e(he,Hl),e(he,Or),e(he,Rl),g(tt,he,null),e(S,El),e(S,fe),g(ko,fe,null),e(fe,Jl),e(fe,Hr),e(fe,Bl),g(ot,fe,null),e(S,Vl),e(S,_e),g($o,_e,null),e(_e,Gl),e(_e,Rr),e(_e,Xl),g(nt,_e,null),e(S,Yl),e(S,R),g(Ao,R,null),e(R,Zl),e(R,Er),e(R,Ql),g(rt,R,null),e(R,Kl),g(at,R,null),e(S,ed),e(S,be),g(So,be,null),e(be,td),e(be,Jr),e(be,od),g(st,be,null),e(S,nd),e(S,E),g(Co,E,null),e(E,rd),e(E,Br),e(E,ad),g(it,E,null),e(E,sd),g(lt,E,null),e(S,id),e(S,J),g(Po,J,null),e(J,ld),e(J,Vr),e(J,dd),g(dt,J,null),e(J,cd),g(ct,J,null),e(S,md),e(S,mt),g(Mo,mt,null),e(mt,pd),e(mt,Gr),e(S,ud),e(S,pt),g(zo,pt,null),e(pt,gd),e(pt,Xr),e(S,hd),e(S,ut),g(Fo,ut,null),e(ut,fd),e(ut,Yr),$(t,Sa,y),g(Do,t,y),$(t,Ca,y),$(t,N,y),g(Io,N,null),e(N,_d),e(N,Zr),e(N,bd),e(N,Qr),e(N,vd),e(N,gt),g(Lo,gt,null),e(gt,yd),e(gt,Kr),$(t,Pa,y),g(No,t,y),$(t,Ma,y),$(t,ba,y),za=!0},p(t,[y]){const v={};y&2&&(v.$$scope={dirty:y,ctx:t}),Ae.$set(v);const Wo={};y&2&&(Wo.$$scope={dirty:y,ctx:t}),We.$set(Wo);const Uo={};y&2&&(Uo.$$scope={dirty:y,ctx:t}),He.$set(Uo);const we={};y&2&&(we.$$scope={dirty:y,ctx:t}),Be.$set(we);const jo={};y&2&&(jo.$$scope={dirty:y,ctx:t}),Ze.$set(jo);const Oo={};y&2&&(Oo.$$scope={dirty:y,ctx:t}),Ke.$set(Oo);const xe={};y&2&&(xe.$$scope={dirty:y,ctx:t}),et.$set(xe);const qe={};y&2&&(qe.$$scope={dirty:y,ctx:t}),tt.$set(qe);const Ho={};y&2&&(Ho.$$scope={dirty:y,ctx:t}),ot.$set(Ho);const X={};y&2&&(X.$$scope={dirty:y,ctx:t}),nt.$set(X);const ke={};y&2&&(ke.$$scope={dirty:y,ctx:t}),rt.$set(ke);const Ro={};y&2&&(Ro.$$scope={dirty:y,ctx:t}),at.$set(Ro);const Y={};y&2&&(Y.$$scope={dirty:y,ctx:t}),st.$set(Y);const $e={};y&2&&($e.$$scope={dirty:y,ctx:t}),it.$set($e);const Eo={};y&2&&(Eo.$$scope={dirty:y,ctx:t}),lt.$set(Eo);const Jo={};y&2&&(Jo.$$scope={dirty:y,ctx:t}),dt.$set(Jo);const Bo={};y&2&&(Bo.$$scope={dirty:y,ctx:t}),ct.$set(Bo)},i(t){za||(h(q.$$.fragment,t),h(Ae.$$.fragment,t),h(xt.$$.fragment,t),h(qt.$$.fragment,t),h(kt.$$.fragment,t),h($t.$$.fragment,t),h(At.$$.fragment,t),h(St.$$.fragment,t),h(Ct.$$.fragment,t),h(Pt.$$.fragment,t),h(Mt.$$.fragment,t),h(zt.$$.fragment,t),h(Ft.$$.fragment,t),h(Dt.$$.fragment,t),h(It.$$.fragment,t),h(Lt.$$.fragment,t),h(Nt.$$.fragment,t),h(Wt.$$.fragment,t),h(Ut.$$.fragment,t),h(jt.$$.fragment,t),h(Ot.$$.fragment,t),h(Ht.$$.fragment,t),h(Rt.$$.fragment,t),h(Et.$$.fragment,t),h(We.$$.fragment,t),h(Jt.$$.fragment,t),h(Bt.$$.fragment,t),h(Vt.$$.fragment,t),h(Gt.$$.fragment,t),h(Xt.$$.fragment,t),h(He.$$.fragment,t),h(Yt.$$.fragment,t),h(Zt.$$.fragment,t),h(Qt.$$.fragment,t),h(Kt.$$.fragment,t),h(eo.$$.fragment,t),h(Be.$$.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(ho.$$.fragment,t),h(fo.$$.fragment,t),h(Ze.$$.fragment,t),h(_o.$$.fragment,t),h(bo.$$.fragment,t),h(vo.$$.fragment,t),h(yo.$$.fragment,t),h(To.$$.fragment,t),h(wo.$$.fragment,t),h(Ke.$$.fragment,t),h(xo.$$.fragment,t),h(et.$$.fragment,t),h(qo.$$.fragment,t),h(tt.$$.fragment,t),h(ko.$$.fragment,t),h(ot.$$.fragment,t),h($o.$$.fragment,t),h(nt.$$.fragment,t),h(Ao.$$.fragment,t),h(rt.$$.fragment,t),h(at.$$.fragment,t),h(So.$$.fragment,t),h(st.$$.fragment,t),h(Co.$$.fragment,t),h(it.$$.fragment,t),h(lt.$$.fragment,t),h(Po.$$.fragment,t),h(dt.$$.fragment,t),h(ct.$$.fragment,t),h(Mo.$$.fragment,t),h(zo.$$.fragment,t),h(Fo.$$.fragment,t),h(Do.$$.fragment,t),h(Io.$$.fragment,t),h(Lo.$$.fragment,t),h(No.$$.fragment,t),za=!0)},o(t){f(q.$$.fragment,t),f(Ae.$$.fragment,t),f(xt.$$.fragment,t),f(qt.$$.fragment,t),f(kt.$$.fragment,t),f($t.$$.fragment,t),f(At.$$.fragment,t),f(St.$$.fragment,t),f(Ct.$$.fragment,t),f(Pt.$$.fragment,t),f(Mt.$$.fragment,t),f(zt.$$.fragment,t),f(Ft.$$.fragment,t),f(Dt.$$.fragment,t),f(It.$$.fragment,t),f(Lt.$$.fragment,t),f(Nt.$$.fragment,t),f(Wt.$$.fragment,t),f(Ut.$$.fragment,t),f(jt.$$.fragment,t),f(Ot.$$.fragment,t),f(Ht.$$.fragment,t),f(Rt.$$.fragment,t),f(Et.$$.fragment,t),f(We.$$.fragment,t),f(Jt.$$.fragment,t),f(Bt.$$.fragment,t),f(Vt.$$.fragment,t),f(Gt.$$.fragment,t),f(Xt.$$.fragment,t),f(He.$$.fragment,t),f(Yt.$$.fragment,t),f(Zt.$$.fragment,t),f(Qt.$$.fragment,t),f(Kt.$$.fragment,t),f(eo.$$.fragment,t),f(Be.$$.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(ho.$$.fragment,t),f(fo.$$.fragment,t),f(Ze.$$.fragment,t),f(_o.$$.fragment,t),f(bo.$$.fragment,t),f(vo.$$.fragment,t),f(yo.$$.fragment,t),f(To.$$.fragment,t),f(wo.$$.fragment,t),f(Ke.$$.fragment,t),f(xo.$$.fragment,t),f(et.$$.fragment,t),f(qo.$$.fragment,t),f(tt.$$.fragment,t),f(ko.$$.fragment,t),f(ot.$$.fragment,t),f($o.$$.fragment,t),f(nt.$$.fragment,t),f(Ao.$$.fragment,t),f(rt.$$.fragment,t),f(at.$$.fragment,t),f(So.$$.fragment,t),f(st.$$.fragment,t),f(Co.$$.fragment,t),f(it.$$.fragment,t),f(lt.$$.fragment,t),f(Po.$$.fragment,t),f(dt.$$.fragment,t),f(ct.$$.fragment,t),f(Mo.$$.fragment,t),f(zo.$$.fragment,t),f(Fo.$$.fragment,t),f(Do.$$.fragment,t),f(Io.$$.fragment,t),f(Lo.$$.fragment,t),f(No.$$.fragment,t),za=!1},d(t){t&&(d(k),d(m),d(c),d(s),d(A),d(ya),d(wt),d(Ta),d(wa),d(xa),d(b),d(qa),d(ka),d(G),d($a),d(Aa),d(S),d(Sa),d(Ca),d(N),d(Pa),d(Ma),d(ba)),d(i),_(q,t),_(Ae,t),_(xt,t),_(qt),_(kt),_($t),_(At),_(St),_(Ct),_(Pt),_(Mt),_(zt),_(Ft),_(Dt),_(It),_(Lt),_(Nt),_(Wt),_(Ut),_(jt),_(Ot),_(Ht),_(Rt),_(Et),_(We),_(Jt),_(Bt),_(Vt),_(Gt),_(Xt),_(He),_(Yt),_(Zt),_(Qt),_(Kt),_(eo),_(Be),_(to),_(oo),_(no),_(ro),_(ao),_(so),_(io),_(lo),_(co),_(mo),_(po),_(uo,t),_(go),_(ho),_(fo),_(Ze),_(_o,t),_(bo),_(vo),_(yo),_(To),_(wo),_(Ke),_(xo),_(et),_(qo),_(tt),_(ko),_(ot),_($o),_(nt),_(Ao),_(rt),_(at),_(So),_(st),_(Co),_(it),_(lt),_(Po),_(dt),_(ct),_(Mo),_(zo),_(Fo),_(Do,t),_(Io),_(Lo),_(No,t)}}}const Qm='{"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 Km(C){return Cm(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class lp extends Pm{constructor(i){super(),Mm(this,i,Km,Zm,Sm,{})}}export{lp as component};
