import{s as Bc,o as Gc,n as F}from"../chunks/scheduler.9bc65507.js";import{S as Vc,i as Xc,g as r,s as o,r as p,A as Yc,h as a,f as d,c as n,j as T,u,x as l,k as w,y as e,a as A,v as g,d as h,t as f,w as _}from"../chunks/index.707bf1b6.js";import{T as Uo}from"../chunks/Tip.c2ecdbf4.js";import{D as q}from"../chunks/Docstring.17db21ae.js";import{C as ye}from"../chunks/CodeBlock.54a9f38d.js";import{E as ve}from"../chunks/ExampleCodeBlock.4f515aa9.js";import{H as ta}from"../chunks/Heading.342b1fa6.js";function Zc(C){let i,$=`The <a href="/docs/transformers/v4.39.2/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,x=`<li>your model always return tuples or subclasses of <a href="/docs/transformers/v4.39.2/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/v4.39.2/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> to indicate their name to the <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>) but none of them should be named <code>&quot;label&quot;</code></li>`;return{c(){i=r("p"),i.innerHTML=$,m=o(),c=r("ul"),c.innerHTML=x},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-1he98i0"&&(i.innerHTML=$),m=n(s),c=a(s,"UL",{"data-svelte-h":!0}),l(c)!=="svelte-mht2t3"&&(c.innerHTML=x)},m(s,k){A(s,i,k),A(s,m,k),A(s,c,k)},p:F,d(s){s&&(d(i),d(m),d(c))}}}function Qc(C){let i,$=`To use this method, you need to have provided a <code>model_init</code> when initializing your <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>: we need to
reinitialize the model at each new run. This is incompatible with the <code>optimizers</code> argument, so you need to
subclass <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a> and override the method <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer.create_optimizer_and_scheduler">create_optimizer_and_scheduler()</a> for custom
optimizer/scheduler.`;return{c(){i=r("p"),i.innerHTML=$},l(m){i=a(m,"P",{"data-svelte-h":!0}),l(i)!=="svelte-8oxv7m"&&(i.innerHTML=$)},m(m,c){A(m,i,c)},p:F,d(m){m&&d(i)}}}function Kc(C){let i,$="Now when this method is run, you will see a report that will include: :",m,c,x;return c=new ye({props:{code:"aW5pdF9tZW1fY3B1X2FsbG9jX2RlbHRhJTIwJTIwJTIwJTNEJTIwJTIwJTIwJTIwJTIwMTMwMU1CJTBBaW5pdF9tZW1fY3B1X3BlYWtlZF9kZWx0YSUyMCUyMCUzRCUyMCUyMCUyMCUyMCUyMCUyMDE1NE1CJTBBaW5pdF9tZW1fZ3B1X2FsbG9jX2RlbHRhJTIwJTIwJTIwJTNEJTIwJTIwJTIwJTIwJTIwJTIwMjMwTUIlMEFpbml0X21lbV9ncHVfcGVha2VkX2RlbHRhJTIwJTIwJTNEJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwME1CJTBBdHJhaW5fbWVtX2NwdV9hbGxvY19kZWx0YSUyMCUyMCUzRCUyMCUyMCUyMCUyMCUyMDEzNDVNQiUwQXRyYWluX21lbV9jcHVfcGVha2VkX2RlbHRhJTIwJTNEJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwME1CJTBBdHJhaW5fbWVtX2dwdV9hbGxvY19kZWx0YSUyMCUyMCUzRCUyMCUyMCUyMCUyMCUyMCUyMDY5M01CJTBBdHJhaW5fbWVtX2dwdV9wZWFrZWRfZGVsdGElMjAlM0QlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjA3TUI=",highlighted:`<span class="hljs-attr">init_mem_cpu_alloc_delta</span>   =     <span class="hljs-number">1301</span>MB
<span class="hljs-attr">init_mem_cpu_peaked_delta</span>  =      <span class="hljs-number">154</span>MB
<span class="hljs-attr">init_mem_gpu_alloc_delta</span>   =      <span class="hljs-number">230</span>MB
<span class="hljs-attr">init_mem_gpu_peaked_delta</span>  =        <span class="hljs-number">0</span>MB
<span class="hljs-attr">train_mem_cpu_alloc_delta</span>  =     <span class="hljs-number">1345</span>MB
<span class="hljs-attr">train_mem_cpu_peaked_delta</span> =        <span class="hljs-number">0</span>MB
<span class="hljs-attr">train_mem_gpu_alloc_delta</span>  =      <span class="hljs-number">693</span>MB
<span class="hljs-attr">train_mem_gpu_peaked_delta</span> =        <span class="hljs-number">7</span>MB`,wrap:!1}}),{c(){i=r("p"),i.textContent=$,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-2hs27k"&&(i.textContent=$),m=n(s),u(c.$$.fragment,s)},m(s,k){A(s,i,k),A(s,m,k),g(c,s,k),x=!0},p:F,i(s){x||(h(c.$$.fragment,s),x=!0)},o(s){f(c.$$.fragment,s),x=!1},d(s){s&&(d(i),d(m)),_(c,s)}}}function em(C){let i,$=`If your predictions or labels have different sequence length (for instance because you’re doing dynamic padding
in a token classification task) the predictions will be padded (on the right) to allow for concatenation into
one array. The padding index is -100.`;return{c(){i=r("p"),i.textContent=$},l(m){i=a(m,"P",{"data-svelte-h":!0}),l(i)!=="svelte-vq7haq"&&(i.textContent=$)},m(m,c){A(m,i,c)},p:F,d(m){m&&d(i)}}}function tm(C){let i,$=`If your predictions or labels have different sequence lengths (for instance because you’re doing dynamic
padding in a token classification task) the predictions will be padded (on the right) to allow for
concatenation into one array. The padding index is -100.`;return{c(){i=r("p"),i.textContent=$},l(m){i=a(m,"P",{"data-svelte-h":!0}),l(i)!=="svelte-1c3ugfb"&&(i.textContent=$)},m(m,c){A(m,i,c)},p:F,d(m){m&&d(i)}}}function om(C){let i,$="Example:",m,c,x;return c=new ye({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRyYWluaW5nQXJndW1lbnRzJTBBJTBBYXJncyUyMCUzRCUyMFRyYWluaW5nQXJndW1lbnRzKCUyMndvcmtpbmdfZGlyJTIyKSUwQWFyZ3MlMjAlM0QlMjBhcmdzLnNldF9kYXRhbG9hZGVyKHRyYWluX2JhdGNoX3NpemUlM0QxNiUyQyUyMGV2YWxfYmF0Y2hfc2l6ZSUzRDY0KSUwQWFyZ3MucGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXpl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TrainingArguments

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

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

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

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

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

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

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>args = TrainingArguments(<span class="hljs-string">&quot;working_dir&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args = args.set_training(learning_rate=<span class="hljs-number">1e-4</span>, batch_size=<span class="hljs-number">32</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args.learning_rate
<span class="hljs-number">1e-4</span>`,wrap:!1}}),{c(){i=r("p"),i.textContent=$,m=o(),p(c.$$.fragment)},l(s){i=a(s,"P",{"data-svelte-h":!0}),l(i)!=="svelte-11lpom8"&&(i.textContent=$),m=n(s),u(c.$$.fragment,s)},m(s,k){A(s,i,k),A(s,m,k),g(c,s,k),x=!0},p:F,i(s){x||(h(c.$$.fragment,s),x=!0)},o(s){f(c.$$.fragment,s),x=!1},d(s){s&&(d(i),d(m)),_(c,s)}}}function gm(C){let i,$,m,c,x,s,k,El='The <a href="/docs/transformers/v4.39.2/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/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a> goes hand-in-hand with the <a href="/docs/transformers/v4.39.2/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.',oa,vt,Bl='<a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Seq2SeqTrainer">Seq2SeqTrainer</a> and <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Seq2SeqTrainingArguments">Seq2SeqTrainingArguments</a> inherit from the <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a> and <code>TrainingArgument</code> classes and they’re adapted for training models for sequence-to-sequence tasks such as summarization or translation.',na,Se,ra,yt,aa,b,Tt,Ca,Lo,Gl="Trainer is a simple but feature-complete training and eval loop for PyTorch, optimized for 🤗 Transformers.",Pa,No,Vl="Important attributes:",Ma,jo,Xl=`<li><strong>model</strong> — Always points to the core model. If using a transformers model, it will be a <a href="/docs/transformers/v4.39.2/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>`,za,Ce,wt,Fa,Oo,Yl='Add a callback to the current list of <a href="/docs/transformers/v4.39.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>.',Wa,Pe,xt,Ia,Ho,Zl=`A helper wrapper that creates an appropriate context manager for <code>autocast</code> while feeding it the desired
arguments, depending on the situation.`,Da,Y,qt,Ua,Ro,Ql="How the loss is computed by Trainer. By default, all models return the loss in the first element.",La,Jo,Kl="Subclass and override for custom behavior.",Na,Me,$t,ja,Eo,ed="A helper wrapper to group together context managers.",Oa,ze,kt,Ha,Bo,td="Creates a draft of a model card using the information available to the <code>Trainer</code>.",Ra,Z,At,Ja,Go,od="Setup the optimizer.",Ea,Vo,nd=`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.`,Ba,Q,St,Ga,Xo,rd="Setup the optimizer and the learning rate scheduler.",Va,Yo,ad=`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.`,Xa,Fe,Ct,Ya,Zo,sd=`Setup the scheduler. The optimizer of the trainer must have been set up either before this method is called or
passed as an argument.`,Za,L,Pt,Qa,Qo,id="Run evaluation and returns metrics.",Ka,Ko,ld=`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).`,es,en,dd="You can also subclass and override this method to inject custom behavior.",ts,K,Mt,os,tn,cd="Prediction/evaluation loop, shared by <code>Trainer.evaluate()</code> and <code>Trainer.predict()</code>.",ns,on,md="Works both with or without labels.",rs,We,zt,as,nn,pd=`For models that inherit from <a href="/docs/transformers/v4.39.2/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.`,ss,ee,Ft,is,rn,ud="Get all parameter names that weight decay will be applied to",ls,an,gd=`Note that some models implement their own layernorm instead of calling nn.LayerNorm, weight decay could still
apply to those modules since this function only filter out instance of nn.LayerNorm`,ds,te,Wt,cs,sn,hd="Returns the evaluation <code>~torch.utils.data.DataLoader</code>.",ms,ln,fd="Subclass and override this method if you want to inject some custom behavior.",ps,Ie,It,us,dn,_d="Returns the optimizer class and optimizer parameters based on the training arguments.",gs,oe,Dt,hs,cn,bd="Returns the test <code>~torch.utils.data.DataLoader</code>.",fs,mn,vd="Subclass and override this method if you want to inject some custom behavior.",_s,N,Ut,bs,pn,yd="Returns the training <code>~torch.utils.data.DataLoader</code>.",vs,un,Td=`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.`,ys,gn,wd="Subclass and override this method if you want to inject some custom behavior.",Ts,ne,Lt,ws,hn,xd=`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.`,xs,De,qs,Ue,Nt,$s,fn,qd="Initializes a git repo in <code>self.args.hub_model_id</code>.",ks,Le,jt,As,_n,$d=`Whether or not this process is the local (e.g., on one machine if training in a distributed fashion on several
machines) main process.`,Ss,Ne,Ot,Cs,bn,kd=`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).`,Ps,re,Ht,Ms,vn,Ad="Log <code>logs</code> on the various objects watching training.",zs,yn,Sd="Subclass and override this method to inject custom behavior.",Fs,P,Rt,Ws,Tn,Cd="Log metrics in a specially formatted way",Is,wn,Pd="Under distributed environment this is done only for a process with rank 0.",Ds,xn,Md="Notes on memory reports:",Us,qn,zd="In order to get memory usage report you need to install <code>psutil</code>. You can do that with <code>pip install psutil</code>.",Ls,je,Ns,$n,Fd="<strong>Understanding the reports:</strong>",js,kn,Wd=`<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>`,Os,An,Id=`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.`,Hs,Sn,Dd=`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.`,Rs,Cn,Ud=`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.`,Js,Pn,Ld=`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.`,Es,Mn,Nd=`Note that this tracker doesn’t account for memory allocations outside of <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>’s <code>__init__</code>, <code>train</code>,
<code>evaluate</code> and <code>predict</code> calls.`,Bs,zn,jd=`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.`,Gs,Fn,Od=`This also means that if any other tool that is used along the <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a> calls
<code>torch.cuda.reset_peak_memory_stats</code>, the gpu peak memory stats could be invalid. And the <a href="/docs/transformers/v4.39.2/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.`,Vs,Wn,Hd="For best performance you may want to consider turning the memory profiling off for production runs.",Xs,Oe,Jt,Ys,In,Rd="Reformat Trainer metrics values to a human-readable format",Zs,He,Et,Qs,Dn,Jd=`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`,Ks,Re,Bt,ei,Un,Ed="Helper to get number of tokens in a <code>~torch.utils.data.DataLoader</code> by enumerating dataloader.",ti,ae,Gt,oi,Ln,Bd='Remove a callback from the current list of <a href="/docs/transformers/v4.39.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> and returns it.',ni,Nn,Gd="If the callback is not found, returns <code>None</code> (and no error is raised).",ri,W,Vt,ai,jn,Vd="Run prediction and returns predictions and potential metrics.",si,On,Xd=`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>.`,ii,Je,li,Hn,Yd="Returns: <em>NamedTuple</em> A namedtuple with the following keys:",di,Rn,Zd=`<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>`,ci,se,Xt,mi,Jn,Qd="Prediction/evaluation loop, shared by <code>Trainer.evaluate()</code> and <code>Trainer.predict()</code>.",pi,En,Kd="Works both with or without labels.",ui,ie,Yt,gi,Bn,ec="Perform an evaluation step on <code>model</code> using <code>inputs</code>.",hi,Gn,tc="Subclass and override to inject custom behavior.",fi,Ee,Zt,_i,Vn,oc="Sets values in the deepspeed plugin based on the Trainer args",bi,Be,Qt,vi,Xn,nc="Upload <code>self.model</code> and <code>self.tokenizer</code> to the 🤗 model hub on the repo <code>self.args.hub_model_id</code>.",yi,Ge,Kt,Ti,Yn,rc='Remove a callback from the current list of <a href="/docs/transformers/v4.39.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>.',wi,j,eo,xi,Zn,ac="Save metrics into a json file for that split, e.g. <code>train_results.json</code>.",qi,Qn,sc="Under distributed environment this is done only for a process with rank 0.",$i,Kn,ic=`To understand the metrics please read the docstring of <a href="/docs/transformers/v4.39.2/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,to,Ai,er,lc="Will save the model, so you can reload it using <code>from_pretrained()</code>.",Si,tr,dc="Will only save from the main process.",Ci,de,oo,Pi,or,cc="Saves the Trainer state, since Trainer.save_model saves only the tokenizer with the model",Mi,nr,mc="Under distributed environment this is done only for a process with rank 0.",zi,Ve,no,Fi,rr,pc="Main training entry point.",Wi,ce,ro,Ii,ar,uc="Perform a training step on a batch of inputs.",Di,sr,gc="Subclass and override to inject custom behavior.",sa,ao,ia,G,so,Ui,O,io,Li,ir,hc="Run evaluation and returns metrics.",Ni,lr,fc=`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).`,ji,dr,_c="You can also subclass and override this method to inject custom behavior.",Oi,I,lo,Hi,cr,bc="Run prediction and returns predictions and potential metrics.",Ri,mr,vc=`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>.`,Ji,Xe,Ei,pr,yc="Returns: <em>NamedTuple</em> A namedtuple with the following keys:",Bi,ur,Tc=`<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>`,la,co,da,S,mo,Gi,gr,wc=`TrainingArguments is the subset of the arguments we use in our example scripts <strong>which relate to the training loop
itself</strong>.`,Vi,hr,xc=`Using <a href="/docs/transformers/v4.39.2/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.`,Xi,D,po,Yi,fr,qc=`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.`,Zi,_r,$c=`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.`,Qi,br,kc=`For the replica processes the log level defaults to <code>logging.WARNING</code> unless overridden by <code>log_level_replica</code>
argument.`,Ki,vr,Ac="The choice between the main and replica process settings is made according to the return value of <code>should_log</code>.",el,Ye,uo,tl,yr,Sc="Get number of steps used for a linear warmup.",ol,me,go,nl,Tr,Cc=`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.`,rl,wr,Pc=`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.`,al,pe,ho,sl,xr,Mc="A method that regroups all arguments linked to the dataloaders creation.",il,Ze,ll,ue,fo,dl,qr,zc="A method that regroups all arguments linked to evaluation.",cl,Qe,ml,ge,_o,pl,$r,Fc="A method that regroups all arguments linked to logging.",ul,Ke,gl,he,bo,hl,kr,Wc="A method that regroups all arguments linked to the learning rate scheduler and its hyperparameters.",fl,et,_l,fe,vo,bl,Ar,Ic="A method that regroups all arguments linked to the optimizer and its hyperparameters.",vl,tt,yl,H,yo,Tl,Sr,Dc="A method that regroups all arguments linked to synchronizing checkpoints with the Hub.",wl,ot,xl,nt,ql,_e,To,$l,Cr,Uc="A method that regroups all arguments linked to checkpoint saving.",kl,rt,Al,R,wo,Sl,Pr,Lc="A method that regroups all basic arguments linked to testing on a held-out dataset.",Cl,at,Pl,st,Ml,J,xo,zl,Mr,Nc="A method that regroups all basic arguments linked to the training.",Fl,it,Wl,lt,Il,dt,qo,Dl,zr,jc=`Serializes this instance while replace <code>Enum</code> by their values (for JSON serialization support). It obfuscates
the token values by removing their value.`,Ul,ct,$o,Ll,Fr,Oc="Serializes this instance to a JSON string.",Nl,mt,ko,jl,Wr,Hc="Sanitized serialization to use with TensorBoard’s hparams",ca,Ao,ma,U,So,Ol,Ir,Rc=`TrainingArguments is the subset of the arguments we use in our example scripts <strong>which relate to the training loop
itself</strong>.`,Hl,Dr,Jc=`Using <a href="/docs/transformers/v4.39.2/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.`,Rl,pt,Co,Jl,Ur,Ec=`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,ea,ua;return x=new ta({props:{title:"Trainer",local:"trainer",headingTag:"h1"}}),Se=new Uo({props:{warning:!0,$$slots:{default:[Zc]},$$scope:{ctx:C}}}),yt=new ta({props:{title:"Trainer",local:"api-reference ][ transformers.Trainer",headingTag:"h2"}}),Tt=new q({props:{name:"class transformers.Trainer",anchor:"transformers.Trainer",parameters:[{name:"model",val:": Union = None"},{name:"args",val:": TrainingArguments = None"},{name:"data_collator",val:": Optional = None"},{name:"train_dataset",val:": Optional = None"},{name:"eval_dataset",val:": Union = None"},{name:"tokenizer",val:": Optional = None"},{name:"model_init",val:": Optional = None"},{name:"compute_metrics",val:": Optional = None"},{name:"callbacks",val:": Optional = None"},{name:"optimizers",val:": Tuple = (None, None)"},{name:"preprocess_logits_for_metrics",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.Trainer.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.39.2/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <code>torch.nn.Module</code>, <em>optional</em>) &#x2014;
The model to train, evaluate or use for predictions. If not provided, a <code>model_init</code> must be passed.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p><a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a> is optimized to work with the <a href="/docs/transformers/v4.39.2/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> provided by the library. You can still use
your own models defined as <code>torch.nn.Module</code> as long as they work the same way as the &#x1F917; Transformers
models.</p>

					</div>`,name:"model"},{anchor:"transformers.Trainer.args",description:`<strong>args</strong> (<a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>, <em>optional</em>) &#x2014;
The arguments to tweak for training. Will default to a basic instance of <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> with the
<code>output_dir</code> set to a directory named <em>tmp_trainer</em> in the current directory if not provided.`,name:"args"},{anchor:"transformers.Trainer.data_collator",description:`<strong>data_collator</strong> (<code>DataCollator</code>, <em>optional</em>) &#x2014;
The function to use to form a batch from a list of elements of <code>train_dataset</code> or <code>eval_dataset</code>. Will
default to <a href="/docs/transformers/v4.39.2/en/main_classes/data_collator#transformers.default_data_collator">default_data_collator()</a> if no <code>tokenizer</code> is provided, an instance of
<a href="/docs/transformers/v4.39.2/en/main_classes/data_collator#transformers.DataCollatorWithPadding">DataCollatorWithPadding</a> otherwise.`,name:"data_collator"},{anchor:"transformers.Trainer.train_dataset",description:`<strong>train_dataset</strong> (<code>torch.utils.data.Dataset</code> or <code>torch.utils.data.IterableDataset</code>, <em>optional</em>) &#x2014;
The dataset to use for training. If it is a <a href="https://huggingface.co/docs/datasets/v2.18.0/en/package_reference/main_classes#datasets.Dataset" rel="nofollow">Dataset</a>, columns not accepted by the
<code>model.forward()</code> method are automatically removed.</p>
<p>Note that if it&#x2019;s a <code>torch.utils.data.IterableDataset</code> with some randomization and you are training in a
distributed fashion, your iterable dataset should either use a internal attribute <code>generator</code> that is a
<code>torch.Generator</code> for the randomization that must be identical on all processes (and the Trainer will
manually set the seed of this <code>generator</code> at each epoch) or have a <code>set_epoch()</code> method that internally
sets the seed of the RNGs used.`,name:"train_dataset"},{anchor:"transformers.Trainer.eval_dataset",description:`<strong>eval_dataset</strong> (Union[<code>torch.utils.data.Dataset</code>, Dict[str, <code>torch.utils.data.Dataset</code>]), <em>optional</em>) &#x2014;
The dataset to use for evaluation. If it is a <a href="https://huggingface.co/docs/datasets/v2.18.0/en/package_reference/main_classes#datasets.Dataset" rel="nofollow">Dataset</a>, columns not accepted by the
<code>model.forward()</code> method are automatically removed. If it is a dictionary, it will evaluate on each
dataset prepending the dictionary key to the metric name.`,name:"eval_dataset"},{anchor:"transformers.Trainer.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.39.2/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase">PreTrainedTokenizerBase</a>, <em>optional</em>) &#x2014;
The tokenizer used to preprocess the data. If provided, will be used to automatically pad the inputs to the
maximum length when batching inputs, and it will be saved along the model to make it easier to rerun an
interrupted training or reuse the fine-tuned model.`,name:"tokenizer"},{anchor:"transformers.Trainer.model_init",description:`<strong>model_init</strong> (<code>Callable[[], PreTrainedModel]</code>, <em>optional</em>) &#x2014;
A function that instantiates the model to be used. If provided, each call to <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer.train">train()</a> will start
from a new instance of the model as given by this function.</p>
<p>The function may have zero argument, or a single one containing the optuna/Ray Tune/SigOpt trial object, to
be able to choose different architectures according to hyper parameters (such as layer count, sizes of
inner layers, dropout probabilities etc).`,name:"model_init"},{anchor:"transformers.Trainer.compute_metrics",description:`<strong>compute_metrics</strong> (<code>Callable[[EvalPrediction], Dict]</code>, <em>optional</em>) &#x2014;
The function that will be used to compute metrics at evaluation. Must take a <a href="/docs/transformers/v4.39.2/en/internal/trainer_utils#transformers.EvalPrediction">EvalPrediction</a> and return
a dictionary string to metric values.`,name:"compute_metrics"},{anchor:"transformers.Trainer.callbacks",description:`<strong>callbacks</strong> (List of <a href="/docs/transformers/v4.39.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>, <em>optional</em>) &#x2014;
A list of callbacks to customize the training loop. Will add those to the list of default callbacks
detailed in <a href="callback">here</a>.</p>
<p>If you want to remove one of the default callbacks used, use the <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer.remove_callback">Trainer.remove_callback()</a> method.`,name:"callbacks"},{anchor:"transformers.Trainer.optimizers",description:`<strong>optimizers</strong> (<code>Tuple[torch.optim.Optimizer, torch.optim.lr_scheduler.LambdaLR]</code>, <em>optional</em>, defaults to <code>(None, None)</code>) &#x2014;
A tuple containing the optimizer and the scheduler to use. Will default to an instance of <a href="/docs/transformers/v4.39.2/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> on your
model and a scheduler given by <a href="/docs/transformers/v4.39.2/en/main_classes/optimizer_schedules#transformers.get_linear_schedule_with_warmup">get_linear_schedule_with_warmup()</a> controlled by <code>args</code>.`,name:"optimizers"},{anchor:"transformers.Trainer.preprocess_logits_for_metrics",description:`<strong>preprocess_logits_for_metrics</strong> (<code>Callable[[torch.Tensor, torch.Tensor], torch.Tensor]</code>, <em>optional</em>) &#x2014;
A function that preprocess the logits right before caching them at each evaluation step. Must take two
tensors, the logits and the labels, and return the logits once processed as desired. The modifications made
by this function will be reflected in the predictions received by <code>compute_metrics</code>.</p>
<p>Note that the labels (second parameter) will be <code>None</code> if the dataset does not have them.`,name:"preprocess_logits_for_metrics"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L262"}}),wt=new q({props:{name:"add_callback",anchor:"transformers.Trainer.add_callback",parameters:[{name:"callback",val:""}],parametersDescription:[{anchor:"transformers.Trainer.add_callback.callback",description:`<strong>callback</strong> (<code>type</code> or <a href="/docs/transformers/v4.39.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>) &#x2014;
A <a href="/docs/transformers/v4.39.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> class or an instance of a <a href="/docs/transformers/v4.39.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>. In the
first case, will instantiate a member of that class.`,name:"callback"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L697"}}),xt=new q({props:{name:"autocast_smart_context_manager",anchor:"transformers.Trainer.autocast_smart_context_manager",parameters:[{name:"cache_enabled",val:": Optional = True"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L2998"}}),qt=new q({props:{name:"compute_loss",anchor:"transformers.Trainer.compute_loss",parameters:[{name:"model",val:""},{name:"inputs",val:""},{name:"return_outputs",val:" = False"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L3049"}}),$t=new q({props:{name:"compute_loss_context_manager",anchor:"transformers.Trainer.compute_loss_context_manager",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L2992"}}),kt=new q({props:{name:"create_model_card",anchor:"transformers.Trainer.create_model_card",parameters:[{name:"language",val:": Optional = None"},{name:"license",val:": Optional = None"},{name:"tags",val:": Union = None"},{name:"model_name",val:": Optional = None"},{name:"finetuned_from",val:": Optional = None"},{name:"tasks",val:": Union = None"},{name:"dataset_tags",val:": Union = None"},{name:"dataset",val:": Union = None"},{name:"dataset_args",val:": Union = None"}],parametersDescription:[{anchor:"transformers.Trainer.create_model_card.language",description:`<strong>language</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The language of the model (if applicable)`,name:"language"},{anchor:"transformers.Trainer.create_model_card.license",description:`<strong>license</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The license of the model. Will default to the license of the pretrained model used, if the original
model given to the <code>Trainer</code> comes from a repo on the Hub.`,name:"license"},{anchor:"transformers.Trainer.create_model_card.tags",description:`<strong>tags</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
Some tags to be included in the metadata of the model card.`,name:"tags"},{anchor:"transformers.Trainer.create_model_card.model_name",description:`<strong>model_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the model.`,name:"model_name"},{anchor:"transformers.Trainer.create_model_card.finetuned_from",description:`<strong>finetuned_from</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the model used to fine-tune this one (if applicable). Will default to the name of the repo
of the original model given to the <code>Trainer</code> (if it comes from the Hub).`,name:"finetuned_from"},{anchor:"transformers.Trainer.create_model_card.tasks",description:`<strong>tasks</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several task identifiers, to be included in the metadata of the model card.`,name:"tasks"},{anchor:"transformers.Trainer.create_model_card.dataset_tags",description:`<strong>dataset_tags</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several dataset tags, to be included in the metadata of the model card.`,name:"dataset_tags"},{anchor:"transformers.Trainer.create_model_card.dataset",description:`<strong>dataset</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several dataset identifiers, to be included in the metadata of the model card.`,name:"dataset"},{anchor:"transformers.Trainer.create_model_card.dataset_args",description:`<strong>dataset_args</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several dataset arguments, to be included in the metadata of the model card.`,name:"dataset_args"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L3834"}}),At=new q({props:{name:"create_optimizer",anchor:"transformers.Trainer.create_optimizer",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L990"}}),St=new q({props:{name:"create_optimizer_and_scheduler",anchor:"transformers.Trainer.create_optimizer_and_scheduler",parameters:[{name:"num_training_steps",val:": int"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L963"}}),Ct=new q({props:{name:"create_scheduler",anchor:"transformers.Trainer.create_scheduler",parameters:[{name:"num_training_steps",val:": int"},{name:"optimizer",val:": Optimizer = None"}],parametersDescription:[{anchor:"transformers.Trainer.create_scheduler.num_training_steps",description:"<strong>num_training_steps</strong> (int) &#x2014; The number of training steps to do.",name:"num_training_steps"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L1320"}}),Pt=new q({props:{name:"evaluate",anchor:"transformers.Trainer.evaluate",parameters:[{name:"eval_dataset",val:": Union = None"},{name:"ignore_keys",val:": Optional = None"},{name:"metric_key_prefix",val:": str = 'eval'"}],parametersDescription:[{anchor:"transformers.Trainer.evaluate.eval_dataset",description:`<strong>eval_dataset</strong> (Union[<code>Dataset</code>, Dict[str, <code>Dataset</code>]), <em>optional</em>) &#x2014;
Pass a dataset if you wish to override <code>self.eval_dataset</code>. If it is a <a href="https://huggingface.co/docs/datasets/v2.18.0/en/package_reference/main_classes#datasets.Dataset" rel="nofollow">Dataset</a>, columns
not accepted by the <code>model.forward()</code> method are automatically removed. If it is a dictionary, it will
evaluate on each dataset, prepending the dictionary key to the metric name. Datasets must implement the
<code>__len__</code> method.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>If you pass a dictionary with names of datasets as keys and datasets as values, evaluate will run
separate evaluations on each dataset. This can be useful to monitor how training affects other
datasets or simply to get a more fine-grained evaluation.
When used with <code>load_best_model_at_end</code>, make sure <code>metric_for_best_model</code> references exactly one
of the datasets. If you, for example, pass in <code>{&quot;data1&quot;: data1, &quot;data2&quot;: data2}</code> for two datasets
<code>data1</code> and <code>data2</code>, you could specify <code>metric_for_best_model=&quot;eval_data1_loss&quot;</code> for using the
loss on <code>data1</code> and <code>metric_for_best_model=&quot;eval_data1_loss&quot;</code> for the loss on <code>data2</code>.</p>

					</div>`,name:"eval_dataset"},{anchor:"transformers.Trainer.evaluate.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"},{anchor:"transformers.Trainer.evaluate.metric_key_prefix",description:`<strong>metric_key_prefix</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;eval&quot;</code>) &#x2014;
An optional prefix to be used as the metrics key prefix. For example the metrics &#x201C;bleu&#x201D; will be named
&#x201C;eval_bleu&#x201D; if the prefix is &#x201C;eval&#x201D; (default)`,name:"metric_key_prefix"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L3298",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>
`}}),Mt=new q({props:{name:"evaluation_loop",anchor:"transformers.Trainer.evaluation_loop",parameters:[{name:"dataloader",val:": DataLoader"},{name:"description",val:": str"},{name:"prediction_loss_only",val:": Optional = None"},{name:"ignore_keys",val:": Optional = None"},{name:"metric_key_prefix",val:": str = 'eval'"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L3461"}}),zt=new q({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/v4.39.2/src/transformers/trainer.py#L3799",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>
`}}),Ft=new q({props:{name:"get_decay_parameter_names",anchor:"transformers.Trainer.get_decay_parameter_names",parameters:[{name:"model",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L979"}}),Wt=new q({props:{name:"get_eval_dataloader",anchor:"transformers.Trainer.get_eval_dataloader",parameters:[{name:"eval_dataset",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.Trainer.get_eval_dataloader.eval_dataset",description:`<strong>eval_dataset</strong> (<code>torch.utils.data.Dataset</code>, <em>optional</em>) &#x2014;
If provided, will override <code>self.eval_dataset</code>. If it is a <a href="https://huggingface.co/docs/datasets/v2.18.0/en/package_reference/main_classes#datasets.Dataset" rel="nofollow">Dataset</a>, columns not accepted
by the <code>model.forward()</code> method are automatically removed. It must implement <code>__len__</code>.`,name:"eval_dataset"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L882"}}),It=new q({props:{name:"get_optimizer_cls_and_kwargs",anchor:"transformers.Trainer.get_optimizer_cls_and_kwargs",parameters:[{name:"args",val:": TrainingArguments"},{name:"model",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.Trainer.get_optimizer_cls_and_kwargs.args",description:`<strong>args</strong> (<code>transformers.training_args.TrainingArguments</code>) &#x2014;
The training arguments for the training session.`,name:"args"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L1048"}}),Dt=new q({props:{name:"get_test_dataloader",anchor:"transformers.Trainer.get_test_dataloader",parameters:[{name:"test_dataset",val:": Dataset"}],parametersDescription:[{anchor:"transformers.Trainer.get_test_dataloader.test_dataset",description:`<strong>test_dataset</strong> (<code>torch.utils.data.Dataset</code>, <em>optional</em>) &#x2014;
The test dataset to use. If it is a <a href="https://huggingface.co/docs/datasets/v2.18.0/en/package_reference/main_classes#datasets.Dataset" rel="nofollow">Dataset</a>, columns not accepted by the
<code>model.forward()</code> method are automatically removed. It must implement <code>__len__</code>.`,name:"test_dataset"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L929"}}),Ut=new q({props:{name:"get_train_dataloader",anchor:"transformers.Trainer.get_train_dataloader",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L825"}}),Lt=new q({props:{name:"hyperparameter_search",anchor:"transformers.Trainer.hyperparameter_search",parameters:[{name:"hp_space",val:": Optional = None"},{name:"compute_objective",val:": Optional = None"},{name:"n_trials",val:": int = 20"},{name:"direction",val:": Union = 'minimize'"},{name:"backend",val:": Union = None"},{name:"hp_name",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Trainer.hyperparameter_search.hp_space",description:`<strong>hp_space</strong> (<code>Callable[[&quot;optuna.Trial&quot;], Dict[str, float]]</code>, <em>optional</em>) &#x2014;
A function that defines the hyperparameter search space. Will default to
<code>default_hp_space_optuna()</code> or <code>default_hp_space_ray()</code> or
<code>default_hp_space_sigopt()</code> depending on your backend.`,name:"hp_space"},{anchor:"transformers.Trainer.hyperparameter_search.compute_objective",description:`<strong>compute_objective</strong> (<code>Callable[[Dict[str, float]], float]</code>, <em>optional</em>) &#x2014;
A function computing the objective to minimize or maximize from the metrics returned by the <code>evaluate</code>
method. Will default to <code>default_compute_objective()</code>.`,name:"compute_objective"},{anchor:"transformers.Trainer.hyperparameter_search.n_trials",description:`<strong>n_trials</strong> (<code>int</code>, <em>optional</em>, defaults to 100) &#x2014;
The number of trial runs to test.`,name:"n_trials"},{anchor:"transformers.Trainer.hyperparameter_search.direction",description:`<strong>direction</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>, defaults to <code>&quot;minimize&quot;</code>) &#x2014;
If it&#x2019;s single objective optimization, direction is <code>str</code>, can be <code>&quot;minimize&quot;</code> or <code>&quot;maximize&quot;</code>, you
should pick <code>&quot;minimize&quot;</code> when optimizing the validation loss, <code>&quot;maximize&quot;</code> when optimizing one or
several metrics. If it&#x2019;s multi objectives optimization, direction is <code>List[str]</code>, can be List of
<code>&quot;minimize&quot;</code> and <code>&quot;maximize&quot;</code>, you should pick <code>&quot;minimize&quot;</code> when optimizing the validation loss,
<code>&quot;maximize&quot;</code> when optimizing one or several metrics.`,name:"direction"},{anchor:"transformers.Trainer.hyperparameter_search.backend",description:`<strong>backend</strong> (<code>str</code> or <code>~training_utils.HPSearchBackend</code>, <em>optional</em>) &#x2014;
The backend to use for hyperparameter search. Will default to optuna or Ray Tune or SigOpt, depending
on which one is installed. If all are installed, will default to optuna.`,name:"backend"},{anchor:"transformers.Trainer.hyperparameter_search.hp_name",description:`<strong>hp_name</strong> (<code>Callable[[&quot;optuna.Trial&quot;], str]]</code>, <em>optional</em>) &#x2014;
A function that defines the trial/run name. Will default to None.`,name:"hp_name"},{anchor:"transformers.Trainer.hyperparameter_search.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to <code>optuna.create_study</code> or <code>ray.tune.run</code>. For more
information see:</p>
<ul>
<li>the documentation of
<a href="https://optuna.readthedocs.io/en/stable/reference/generated/optuna.study.create_study.html" rel="nofollow">optuna.create_study</a></li>
<li>the documentation of <a href="https://docs.ray.io/en/latest/tune/api_docs/execution.html#tune-run" rel="nofollow">tune.run</a></li>
<li>the documentation of <a href="https://app.sigopt.com/docs/endpoints/experiments/create" rel="nofollow">sigopt</a></li>
</ul>`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L2860",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>
`}}),De=new Uo({props:{warning:!0,$$slots:{default:[Qc]},$$scope:{ctx:C}}}),Nt=new q({props:{name:"init_hf_repo",anchor:"transformers.Trainer.init_hf_repo",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L3817"}}),jt=new q({props:{name:"is_local_process_zero",anchor:"transformers.Trainer.is_local_process_zero",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L3086"}}),Ot=new q({props:{name:"is_world_process_zero",anchor:"transformers.Trainer.is_world_process_zero",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L3093"}}),Ht=new q({props:{name:"log",anchor:"transformers.Trainer.log",parameters:[{name:"logs",val:": Dict"}],parametersDescription:[{anchor:"transformers.Trainer.log.logs",description:`<strong>logs</strong> (<code>Dict[str, float]</code>) &#x2014;
The values to log.`,name:"logs"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L2939"}}),Rt=new q({props:{name:"log_metrics",anchor:"transformers.Trainer.log_metrics",parameters:[{name:"split",val:""},{name:"metrics",val:""}],parametersDescription:[{anchor:"transformers.Trainer.log_metrics.split",description:`<strong>split</strong> (<code>str</code>) &#x2014;
Mode/split name: one of <code>train</code>, <code>eval</code>, <code>test</code>`,name:"split"},{anchor:"transformers.Trainer.log_metrics.metrics",description:`<strong>metrics</strong> (<code>Dict[str, float]</code>) &#x2014;
The metrics returned from train/evaluate/predictmetrics: metrics dict`,name:"metrics"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer_pt_utils.py#L922"}}),je=new ve({props:{anchor:"transformers.Trainer.log_metrics.example",$$slots:{default:[Kc]},$$scope:{ctx:C}}}),Jt=new q({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/v4.39.2/src/transformers/trainer_pt_utils.py#L896",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>metrics (<code>Dict[str, float]</code>)</p>
`}}),Et=new q({props:{name:"num_examples",anchor:"transformers.Trainer.num_examples",parameters:[{name:"dataloader",val:": DataLoader"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L1339"}}),Bt=new q({props:{name:"num_tokens",anchor:"transformers.Trainer.num_tokens",parameters:[{name:"train_dl",val:": DataLoader"},{name:"max_steps",val:": Optional = None"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L1353"}}),Gt=new q({props:{name:"pop_callback",anchor:"transformers.Trainer.pop_callback",parameters:[{name:"callback",val:""}],parametersDescription:[{anchor:"transformers.Trainer.pop_callback.callback",description:`<strong>callback</strong> (<code>type</code> or <a href="/docs/transformers/v4.39.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>) &#x2014;
A <a href="/docs/transformers/v4.39.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> class or an instance of a <a href="/docs/transformers/v4.39.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>. In the
first case, will pop the first member of that class found in the list of callbacks.`,name:"callback"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L708",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/v4.39.2/en/main_classes/callback#transformers.TrainerCallback"
>TrainerCallback</a></p>
`}}),Vt=new q({props:{name:"predict",anchor:"transformers.Trainer.predict",parameters:[{name:"test_dataset",val:": Dataset"},{name:"ignore_keys",val:": Optional = None"},{name:"metric_key_prefix",val:": str = 'test'"}],parametersDescription:[{anchor:"transformers.Trainer.predict.test_dataset",description:`<strong>test_dataset</strong> (<code>Dataset</code>) &#x2014;
Dataset to run the predictions on. If it is an <code>datasets.Dataset</code>, columns not accepted by the
<code>model.forward()</code> method are automatically removed. Has to implement the method <code>__len__</code>`,name:"test_dataset"},{anchor:"transformers.Trainer.predict.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"},{anchor:"transformers.Trainer.predict.metric_key_prefix",description:`<strong>metric_key_prefix</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;test&quot;</code>) &#x2014;
An optional prefix to be used as the metrics key prefix. For example the metrics &#x201C;bleu&#x201D; will be named
&#x201C;test_bleu&#x201D; if the prefix is &#x201C;test&#x201D; (default)`,name:"metric_key_prefix"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L3399"}}),Je=new Uo({props:{$$slots:{default:[em]},$$scope:{ctx:C}}}),Xt=new q({props:{name:"prediction_loop",anchor:"transformers.Trainer.prediction_loop",parameters:[{name:"dataloader",val:": DataLoader"},{name:"description",val:": str"},{name:"prediction_loss_only",val:": Optional = None"},{name:"ignore_keys",val:": Optional = None"},{name:"metric_key_prefix",val:": str = 'eval'"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L4039"}}),Yt=new q({props:{name:"prediction_step",anchor:"transformers.Trainer.prediction_step",parameters:[{name:"model",val:": Module"},{name:"inputs",val:": Dict"},{name:"prediction_loss_only",val:": bool"},{name:"ignore_keys",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.Trainer.prediction_step.model",description:`<strong>model</strong> (<code>nn.Module</code>) &#x2014;
The model to evaluate.`,name:"model"},{anchor:"transformers.Trainer.prediction_step.inputs",description:`<strong>inputs</strong> (<code>Dict[str, Union[torch.Tensor, Any]]</code>) &#x2014;
The inputs and targets of the model.</p>
<p>The dictionary will be unpacked before being fed to the model. Most models expect the targets under the
argument <code>labels</code>. Check your model&#x2019;s documentation for all accepted arguments.`,name:"inputs"},{anchor:"transformers.Trainer.prediction_step.prediction_loss_only",description:`<strong>prediction_loss_only</strong> (<code>bool</code>) &#x2014;
Whether or not to return the loss only.`,name:"prediction_loss_only"},{anchor:"transformers.Trainer.prediction_step.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L3694",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>
`}}),Zt=new q({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/v4.39.2/src/transformers/trainer.py#L4298"}}),Qt=new q({props:{name:"push_to_hub",anchor:"transformers.Trainer.push_to_hub",parameters:[{name:"commit_message",val:": Optional = 'End of training'"},{name:"blocking",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Trainer.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;End of training&quot;</code>) &#x2014;
Message to commit while pushing.`,name:"commit_message"},{anchor:"transformers.Trainer.push_to_hub.blocking",description:`<strong>blocking</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the function should return only when the <code>git push</code> has finished.`,name:"blocking"},{anchor:"transformers.Trainer.push_to_hub.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer.create_model_card">create_model_card()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L3972",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>
`}}),Kt=new q({props:{name:"remove_callback",anchor:"transformers.Trainer.remove_callback",parameters:[{name:"callback",val:""}],parametersDescription:[{anchor:"transformers.Trainer.remove_callback.callback",description:`<strong>callback</strong> (<code>type</code> or <a href="/docs/transformers/v4.39.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>) &#x2014;
A <a href="/docs/transformers/v4.39.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> class or an instance of a <a href="/docs/transformers/v4.39.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>. In the
first case, will remove the first member of that class found in the list of callbacks.`,name:"callback"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L724"}}),eo=new q({props:{name:"save_metrics",anchor:"transformers.Trainer.save_metrics",parameters:[{name:"split",val:""},{name:"metrics",val:""},{name:"combined",val:" = True"}],parametersDescription:[{anchor:"transformers.Trainer.save_metrics.split",description:`<strong>split</strong> (<code>str</code>) &#x2014;
Mode/split name: one of <code>train</code>, <code>eval</code>, <code>test</code>, <code>all</code>`,name:"split"},{anchor:"transformers.Trainer.save_metrics.metrics",description:`<strong>metrics</strong> (<code>Dict[str, float]</code>) &#x2014;
The metrics returned from train/evaluate/predict`,name:"metrics"},{anchor:"transformers.Trainer.save_metrics.combined",description:`<strong>combined</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Creates combined metrics by updating <code>all_results.json</code> with metrics of this call`,name:"combined"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer_pt_utils.py#L1012"}}),to=new q({props:{name:"save_model",anchor:"transformers.Trainer.save_model",parameters:[{name:"output_dir",val:": Optional = None"},{name:"_internal_call",val:": bool = False"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L3105"}}),oo=new q({props:{name:"save_state",anchor:"transformers.Trainer.save_state",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer_pt_utils.py#L1050"}}),no=new q({props:{name:"train",anchor:"transformers.Trainer.train",parameters:[{name:"resume_from_checkpoint",val:": Union = None"},{name:"trial",val:": Union = None"},{name:"ignore_keys_for_eval",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Trainer.train.resume_from_checkpoint",description:`<strong>resume_from_checkpoint</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
If a <code>str</code>, local path to a saved checkpoint as saved by a previous instance of <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>. If a
<code>bool</code> and equals <code>True</code>, load the last checkpoint in <em>args.output_dir</em> as saved by a previous instance
of <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>. If present, training will resume from the model/optimizer/scheduler states loaded here.`,name:"resume_from_checkpoint"},{anchor:"transformers.Trainer.train.trial",description:`<strong>trial</strong> (<code>optuna.Trial</code> or <code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
The trial run or the hyperparameter dictionary for hyperparameter search.`,name:"trial"},{anchor:"transformers.Trainer.train.ignore_keys_for_eval",description:`<strong>ignore_keys_for_eval</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions for evaluation during the training.`,name:"ignore_keys_for_eval"},{anchor:"transformers.Trainer.train.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments used to hide deprecated arguments`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L1679"}}),ro=new q({props:{name:"training_step",anchor:"transformers.Trainer.training_step",parameters:[{name:"model",val:": Module"},{name:"inputs",val:": Dict"}],parametersDescription:[{anchor:"transformers.Trainer.training_step.model",description:`<strong>model</strong> (<code>nn.Module</code>) &#x2014;
The model to train.`,name:"model"},{anchor:"transformers.Trainer.training_step.inputs",description:`<strong>inputs</strong> (<code>Dict[str, Union[torch.Tensor, Any]]</code>) &#x2014;
The inputs and targets of the model.</p>
<p>The dictionary will be unpacked before being fed to the model. Most models expect the targets under the
argument <code>labels</code>. Check your model&#x2019;s documentation for all accepted arguments.`,name:"inputs"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer.py#L3010",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>
`}}),ao=new ta({props:{title:"Seq2SeqTrainer",local:"transformers.Seq2SeqTrainer",headingTag:"h2"}}),so=new q({props:{name:"class transformers.Seq2SeqTrainer",anchor:"transformers.Seq2SeqTrainer",parameters:[{name:"model",val:": Union = None"},{name:"args",val:": TrainingArguments = None"},{name:"data_collator",val:": Optional = None"},{name:"train_dataset",val:": Optional = None"},{name:"eval_dataset",val:": Union = None"},{name:"tokenizer",val:": Optional = None"},{name:"model_init",val:": Optional = None"},{name:"compute_metrics",val:": Optional = None"},{name:"callbacks",val:": Optional = None"},{name:"optimizers",val:": Tuple = (None, None)"},{name:"preprocess_logits_for_metrics",val:": Optional = None"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer_seq2seq.py#L42"}}),io=new q({props:{name:"evaluate",anchor:"transformers.Seq2SeqTrainer.evaluate",parameters:[{name:"eval_dataset",val:": Optional = None"},{name:"ignore_keys",val:": Optional = None"},{name:"metric_key_prefix",val:": str = 'eval'"},{name:"**gen_kwargs",val:""}],parametersDescription:[{anchor:"transformers.Seq2SeqTrainer.evaluate.eval_dataset",description:`<strong>eval_dataset</strong> (<code>Dataset</code>, <em>optional</em>) &#x2014;
Pass a dataset if you wish to override <code>self.eval_dataset</code>. If it is an <a href="https://huggingface.co/docs/datasets/v2.18.0/en/package_reference/main_classes#datasets.Dataset" rel="nofollow">Dataset</a>, columns
not accepted by the <code>model.forward()</code> method are automatically removed. It must implement the <code>__len__</code>
method.`,name:"eval_dataset"},{anchor:"transformers.Seq2SeqTrainer.evaluate.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"},{anchor:"transformers.Seq2SeqTrainer.evaluate.metric_key_prefix",description:`<strong>metric_key_prefix</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;eval&quot;</code>) &#x2014;
An optional prefix to be used as the metrics key prefix. For example the metrics &#x201C;bleu&#x201D; will be named
&#x201C;eval_bleu&#x201D; if the prefix is <code>&quot;eval&quot;</code> (default)`,name:"metric_key_prefix"},{anchor:"transformers.Seq2SeqTrainer.evaluate.max_length",description:`<strong>max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The maximum target length to use when predicting with the generate method.`,name:"max_length"},{anchor:"transformers.Seq2SeqTrainer.evaluate.num_beams",description:`<strong>num_beams</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of beams for beam search that will be used when predicting with the generate method. 1 means no
beam search.
gen_kwargs &#x2014;
Additional <code>generate</code> specific kwargs.`,name:"num_beams"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer_seq2seq.py#L126",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary containing the evaluation loss and the potential metrics computed from the predictions. The
dictionary also contains the epoch number which comes from the training state.</p>
`}}),lo=new q({props:{name:"predict",anchor:"transformers.Seq2SeqTrainer.predict",parameters:[{name:"test_dataset",val:": Dataset"},{name:"ignore_keys",val:": Optional = None"},{name:"metric_key_prefix",val:": str = 'test'"},{name:"**gen_kwargs",val:""}],parametersDescription:[{anchor:"transformers.Seq2SeqTrainer.predict.test_dataset",description:`<strong>test_dataset</strong> (<code>Dataset</code>) &#x2014;
Dataset to run the predictions on. If it is a <a href="https://huggingface.co/docs/datasets/v2.18.0/en/package_reference/main_classes#datasets.Dataset" rel="nofollow">Dataset</a>, columns not accepted by the
<code>model.forward()</code> method are automatically removed. Has to implement the method <code>__len__</code>`,name:"test_dataset"},{anchor:"transformers.Seq2SeqTrainer.predict.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"},{anchor:"transformers.Seq2SeqTrainer.predict.metric_key_prefix",description:`<strong>metric_key_prefix</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;eval&quot;</code>) &#x2014;
An optional prefix to be used as the metrics key prefix. For example the metrics &#x201C;bleu&#x201D; will be named
&#x201C;eval_bleu&#x201D; if the prefix is <code>&quot;eval&quot;</code> (default)`,name:"metric_key_prefix"},{anchor:"transformers.Seq2SeqTrainer.predict.max_length",description:`<strong>max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The maximum target length to use when predicting with the generate method.`,name:"max_length"},{anchor:"transformers.Seq2SeqTrainer.predict.num_beams",description:`<strong>num_beams</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of beams for beam search that will be used when predicting with the generate method. 1 means no
beam search.
gen_kwargs &#x2014;
Additional <code>generate</code> specific kwargs.`,name:"num_beams"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/trainer_seq2seq.py#L182"}}),Xe=new Uo({props:{$$slots:{default:[tm]},$$scope:{ctx:C}}}),co=new ta({props:{title:"TrainingArguments",local:"transformers.TrainingArguments",headingTag:"h2"}}),mo=new q({props:{name:"class transformers.TrainingArguments",anchor:"transformers.TrainingArguments",parameters:[{name:"output_dir",val:": str"},{name:"overwrite_output_dir",val:": bool = False"},{name:"do_train",val:": bool = False"},{name:"do_eval",val:": bool = False"},{name:"do_predict",val:": bool = False"},{name:"evaluation_strategy",val:": Union = 'no'"},{name:"prediction_loss_only",val:": bool = False"},{name:"per_device_train_batch_size",val:": int = 8"},{name:"per_device_eval_batch_size",val:": int = 8"},{name:"per_gpu_train_batch_size",val:": Optional = None"},{name:"per_gpu_eval_batch_size",val:": Optional = None"},{name:"gradient_accumulation_steps",val:": int = 1"},{name:"eval_accumulation_steps",val:": Optional = None"},{name:"eval_delay",val:": Optional = 0"},{name:"learning_rate",val:": float = 5e-05"},{name:"weight_decay",val:": float = 0.0"},{name:"adam_beta1",val:": float = 0.9"},{name:"adam_beta2",val:": float = 0.999"},{name:"adam_epsilon",val:": float = 1e-08"},{name:"max_grad_norm",val:": float = 1.0"},{name:"num_train_epochs",val:": float = 3.0"},{name:"max_steps",val:": int = -1"},{name:"lr_scheduler_type",val:": Union = 'linear'"},{name:"lr_scheduler_kwargs",val:": Optional = <factory>"},{name:"warmup_ratio",val:": float = 0.0"},{name:"warmup_steps",val:": int = 0"},{name:"log_level",val:": Optional = 'passive'"},{name:"log_level_replica",val:": Optional = 'warning'"},{name:"log_on_each_node",val:": bool = True"},{name:"logging_dir",val:": Optional = None"},{name:"logging_strategy",val:": Union = 'steps'"},{name:"logging_first_step",val:": bool = False"},{name:"logging_steps",val:": float = 500"},{name:"logging_nan_inf_filter",val:": bool = True"},{name:"save_strategy",val:": Union = 'steps'"},{name:"save_steps",val:": float = 500"},{name:"save_total_limit",val:": Optional = None"},{name:"save_safetensors",val:": Optional = True"},{name:"save_on_each_node",val:": bool = False"},{name:"save_only_model",val:": bool = False"},{name:"no_cuda",val:": bool = False"},{name:"use_cpu",val:": bool = False"},{name:"use_mps_device",val:": bool = False"},{name:"seed",val:": int = 42"},{name:"data_seed",val:": Optional = None"},{name:"jit_mode_eval",val:": bool = False"},{name:"use_ipex",val:": bool = False"},{name:"bf16",val:": bool = False"},{name:"fp16",val:": bool = False"},{name:"fp16_opt_level",val:": str = 'O1'"},{name:"half_precision_backend",val:": str = 'auto'"},{name:"bf16_full_eval",val:": bool = False"},{name:"fp16_full_eval",val:": bool = False"},{name:"tf32",val:": Optional = None"},{name:"local_rank",val:": int = -1"},{name:"ddp_backend",val:": Optional = None"},{name:"tpu_num_cores",val:": Optional = None"},{name:"tpu_metrics_debug",val:": bool = False"},{name:"debug",val:": Union = ''"},{name:"dataloader_drop_last",val:": bool = False"},{name:"eval_steps",val:": Optional = None"},{name:"dataloader_num_workers",val:": int = 0"},{name:"dataloader_prefetch_factor",val:": Optional = None"},{name:"past_index",val:": int = -1"},{name:"run_name",val:": Optional = None"},{name:"disable_tqdm",val:": Optional = None"},{name:"remove_unused_columns",val:": Optional = True"},{name:"label_names",val:": Optional = None"},{name:"load_best_model_at_end",val:": Optional = False"},{name:"metric_for_best_model",val:": Optional = None"},{name:"greater_is_better",val:": Optional = None"},{name:"ignore_data_skip",val:": bool = False"},{name:"fsdp",val:": Union = ''"},{name:"fsdp_min_num_params",val:": int = 0"},{name:"fsdp_config",val:": Union = None"},{name:"fsdp_transformer_layer_cls_to_wrap",val:": Optional = None"},{name:"accelerator_config",val:": Optional = None"},{name:"deepspeed",val:": Optional = None"},{name:"label_smoothing_factor",val:": float = 0.0"},{name:"optim",val:": Union = 'adamw_torch'"},{name:"optim_args",val:": Optional = None"},{name:"adafactor",val:": bool = False"},{name:"group_by_length",val:": bool = False"},{name:"length_column_name",val:": Optional = 'length'"},{name:"report_to",val:": Optional = None"},{name:"ddp_find_unused_parameters",val:": Optional = None"},{name:"ddp_bucket_cap_mb",val:": Optional = None"},{name:"ddp_broadcast_buffers",val:": Optional = None"},{name:"dataloader_pin_memory",val:": bool = True"},{name:"dataloader_persistent_workers",val:": bool = False"},{name:"skip_memory_metrics",val:": bool = True"},{name:"use_legacy_prediction_loop",val:": bool = False"},{name:"push_to_hub",val:": bool = False"},{name:"resume_from_checkpoint",val:": Optional = None"},{name:"hub_model_id",val:": Optional = None"},{name:"hub_strategy",val:": Union = 'every_save'"},{name:"hub_token",val:": Optional = None"},{name:"hub_private_repo",val:": bool = False"},{name:"hub_always_push",val:": bool = False"},{name:"gradient_checkpointing",val:": bool = False"},{name:"gradient_checkpointing_kwargs",val:": Optional = None"},{name:"include_inputs_for_metrics",val:": bool = False"},{name:"fp16_backend",val:": str = 'auto'"},{name:"push_to_hub_model_id",val:": Optional = None"},{name:"push_to_hub_organization",val:": Optional = None"},{name:"push_to_hub_token",val:": Optional = None"},{name:"mp_parameters",val:": str = ''"},{name:"auto_find_batch_size",val:": bool = False"},{name:"full_determinism",val:": bool = False"},{name:"torchdynamo",val:": Optional = None"},{name:"ray_scope",val:": Optional = 'last'"},{name:"ddp_timeout",val:": Optional = 1800"},{name:"torch_compile",val:": bool = False"},{name:"torch_compile_backend",val:": Optional = None"},{name:"torch_compile_mode",val:": Optional = None"},{name:"dispatch_batches",val:": Optional = None"},{name:"split_batches",val:": Optional = None"},{name:"include_tokens_per_second",val:": Optional = False"},{name:"include_num_input_tokens_seen",val:": Optional = False"},{name:"neftune_noise_alpha",val:": Optional = None"},{name:"optim_target_modules",val:": Union = None"}],parametersDescription:[{anchor:"transformers.TrainingArguments.output_dir",description:`<strong>output_dir</strong> (<code>str</code>) &#x2014;
The output directory where the model predictions and checkpoints will be written.`,name:"output_dir"},{anchor:"transformers.TrainingArguments.overwrite_output_dir",description:`<strong>overwrite_output_dir</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, overwrite the content of the output directory. Use this to continue training if <code>output_dir</code>
points to a checkpoint directory.`,name:"overwrite_output_dir"},{anchor:"transformers.TrainingArguments.do_train",description:`<strong>do_train</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to run training or not. This argument is not directly used by <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s intended to be used
by your training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"do_train"},{anchor:"transformers.TrainingArguments.do_eval",description:`<strong>do_eval</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to run evaluation on the validation set or not. Will be set to <code>True</code> if <code>evaluation_strategy</code> is
different from <code>&quot;no&quot;</code>. This argument is not directly used by <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s intended to be used by your
training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"do_eval"},{anchor:"transformers.TrainingArguments.do_predict",description:`<strong>do_predict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to run predictions on the test set or not. This argument is not directly used by <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s
intended to be used by your training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"do_predict"},{anchor:"transformers.TrainingArguments.evaluation_strategy",description:`<strong>evaluation_strategy</strong> (<code>str</code> or <a href="/docs/transformers/v4.39.2/en/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;no&quot;</code>) &#x2014;
The evaluation strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No evaluation is done during training.</li>
<li><code>&quot;steps&quot;</code>: Evaluation is done (and logged) every <code>eval_steps</code>.</li>
<li><code>&quot;epoch&quot;</code>: Evaluation is done at the end of each epoch.</li>
</ul>`,name:"evaluation_strategy"},{anchor:"transformers.TrainingArguments.prediction_loss_only",description:`<strong>prediction_loss_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When performing evaluation and generating predictions, only returns the loss.`,name:"prediction_loss_only"},{anchor:"transformers.TrainingArguments.per_device_train_batch_size",description:`<strong>per_device_train_batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
The batch size per GPU/XPU/TPU/MPS/NPU core/CPU for training.`,name:"per_device_train_batch_size"},{anchor:"transformers.TrainingArguments.per_device_eval_batch_size",description:`<strong>per_device_eval_batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
The batch size per GPU/XPU/TPU/MPS/NPU core/CPU for evaluation.`,name:"per_device_eval_batch_size"},{anchor:"transformers.TrainingArguments.gradient_accumulation_steps",description:`<strong>gradient_accumulation_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of updates steps to accumulate the gradients for, before performing a backward/update pass.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p>When using gradient accumulation, one step is counted as one step with backward pass. Therefore, logging,
evaluation, save will be conducted every <code>gradient_accumulation_steps * xxx_step</code> training examples.</p>

					</div>`,name:"gradient_accumulation_steps"},{anchor:"transformers.TrainingArguments.eval_accumulation_steps",description:`<strong>eval_accumulation_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of predictions steps to accumulate the output tensors for, before moving the results to the CPU. If
left unset, the whole predictions are accumulated on GPU/NPU/TPU before being moved to the CPU (faster but
requires more memory).`,name:"eval_accumulation_steps"},{anchor:"transformers.TrainingArguments.eval_delay",description:`<strong>eval_delay</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Number of epochs or steps to wait for before the first evaluation can be performed, depending on the
evaluation_strategy.`,name:"eval_delay"},{anchor:"transformers.TrainingArguments.learning_rate",description:`<strong>learning_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 5e-5) &#x2014;
The initial learning rate for <a href="/docs/transformers/v4.39.2/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> optimizer.`,name:"learning_rate"},{anchor:"transformers.TrainingArguments.weight_decay",description:`<strong>weight_decay</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The weight decay to apply (if not zero) to all layers except all bias and LayerNorm weights in <a href="/docs/transformers/v4.39.2/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a>
optimizer.`,name:"weight_decay"},{anchor:"transformers.TrainingArguments.adam_beta1",description:`<strong>adam_beta1</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
The beta1 hyperparameter for the <a href="/docs/transformers/v4.39.2/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> optimizer.`,name:"adam_beta1"},{anchor:"transformers.TrainingArguments.adam_beta2",description:`<strong>adam_beta2</strong> (<code>float</code>, <em>optional</em>, defaults to 0.999) &#x2014;
The beta2 hyperparameter for the <a href="/docs/transformers/v4.39.2/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> optimizer.`,name:"adam_beta2"},{anchor:"transformers.TrainingArguments.adam_epsilon",description:`<strong>adam_epsilon</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-8) &#x2014;
The epsilon hyperparameter for the <a href="/docs/transformers/v4.39.2/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> optimizer.`,name:"adam_epsilon"},{anchor:"transformers.TrainingArguments.max_grad_norm",description:`<strong>max_grad_norm</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
Maximum gradient norm (for gradient clipping).`,name:"max_grad_norm"},{anchor:"transformers.TrainingArguments.num_train_epochs(float,",description:`<strong>num_train_epochs(<code>float</code>,</strong> <em>optional</em>, defaults to 3.0) &#x2014;
Total number of training epochs to perform (if not an integer, will perform the decimal part percents of
the last epoch before stopping training).`,name:"num_train_epochs(float,"},{anchor:"transformers.TrainingArguments.max_steps",description:`<strong>max_steps</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
If set to a positive number, the total number of training steps to perform. Overrides <code>num_train_epochs</code>.
For a finite dataset, training is reiterated through the dataset (if all data is exhausted) until
<code>max_steps</code> is reached.`,name:"max_steps"},{anchor:"transformers.TrainingArguments.lr_scheduler_type",description:`<strong>lr_scheduler_type</strong> (<code>str</code> or <a href="/docs/transformers/v4.39.2/en/main_classes/optimizer_schedules#transformers.SchedulerType">SchedulerType</a>, <em>optional</em>, defaults to <code>&quot;linear&quot;</code>) &#x2014;
The scheduler type to use. See the documentation of <a href="/docs/transformers/v4.39.2/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/v4.39.2/en/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;steps&quot;</code>) &#x2014;
The logging strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No logging is done during training.</li>
<li><code>&quot;epoch&quot;</code>: Logging is done at the end of each epoch.</li>
<li><code>&quot;steps&quot;</code>: Logging is done every <code>logging_steps</code>.</li>
</ul>`,name:"logging_strategy"},{anchor:"transformers.TrainingArguments.logging_first_step",description:`<strong>logging_first_step</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to log the first <code>global_step</code> or not.`,name:"logging_first_step"},{anchor:"transformers.TrainingArguments.logging_steps",description:`<strong>logging_steps</strong> (<code>int</code> or <code>float</code>, <em>optional</em>, defaults to 500) &#x2014;
Number of update steps between two logs if <code>logging_strategy=&quot;steps&quot;</code>. Should be an integer or a float in
range <code>[0,1)</code>. If smaller than 1, will be interpreted as ratio of total training steps.`,name:"logging_steps"},{anchor:"transformers.TrainingArguments.logging_nan_inf_filter",description:`<strong>logging_nan_inf_filter</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to filter <code>nan</code> and <code>inf</code> losses for logging. If set to <code>True</code> the loss of every step that is <code>nan</code>
or <code>inf</code> is filtered and the average loss of the current logging window is taken instead.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p><code>logging_nan_inf_filter</code> only influences the logging of loss values, it does not change the behavior the
gradient is computed or applied to the model.</p>

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

					</div>`,name:"load_best_model_at_end"},{anchor:"transformers.TrainingArguments.metric_for_best_model",description:`<strong>metric_for_best_model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Use in conjunction with <code>load_best_model_at_end</code> to specify the metric to use to compare two different
models. Must be the name of a metric returned by the evaluation with or without the prefix <code>&quot;eval_&quot;</code>. Will
default to <code>&quot;loss&quot;</code> if unspecified and <code>load_best_model_at_end=True</code> (to use the evaluation loss).</p>
<p>If you set this value, <code>greater_is_better</code> will default to <code>True</code>. Don&#x2019;t forget to set it to <code>False</code> if
your metric is better when lower.`,name:"metric_for_best_model"},{anchor:"transformers.TrainingArguments.greater_is_better",description:`<strong>greater_is_better</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Use in conjunction with <code>load_best_model_at_end</code> and <code>metric_for_best_model</code> to specify if better models
should have a greater metric or not. Will default to:</p>
<ul>
<li><code>True</code> if <code>metric_for_best_model</code> is set to a value that isn&#x2019;t <code>&quot;loss&quot;</code> or <code>&quot;eval_loss&quot;</code>.</li>
<li><code>False</code> if <code>metric_for_best_model</code> is not set, or set to <code>&quot;loss&quot;</code> or <code>&quot;eval_loss&quot;</code>.</li>
</ul>`,name:"greater_is_better"},{anchor:"transformers.TrainingArguments.ignore_data_skip",description:`<strong>ignore_data_skip</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When resuming training, whether or not to skip the epochs and batches to get the data loading at the same
stage as in the previous training. If set to <code>True</code>, the training will begin faster (as that skipping step
can take a long time) but will not yield the same results as the interrupted training would have.`,name:"ignore_data_skip"},{anchor:"transformers.TrainingArguments.fsdp",description:`<strong>fsdp</strong> (<code>bool</code>, <code>str</code> or list of <code>FSDPOption</code>, <em>optional</em>, defaults to <code>&apos;&apos;</code>) &#x2014;
Use PyTorch Distributed Parallel Training (in distributed training only).</p>
<p>A list of options along the following:</p>
<ul>
<li><code>&quot;full_shard&quot;</code>: Shard parameters, gradients and optimizer states.</li>
<li><code>&quot;shard_grad_op&quot;</code>: Shard optimizer states and gradients.</li>
<li><code>&quot;hybrid_shard&quot;</code>: Apply <code>FULL_SHARD</code> within a node, and replicate parameters across nodes.</li>
<li><code>&quot;hybrid_shard_zero2&quot;</code>: Apply <code>SHARD_GRAD_OP</code> within a node, and replicate parameters across nodes.</li>
<li><code>&quot;offload&quot;</code>: Offload parameters and gradients to CPUs (only compatible with <code>&quot;full_shard&quot;</code> and
<code>&quot;shard_grad_op&quot;</code>).</li>
<li><code>&quot;auto_wrap&quot;</code>: Automatically recursively wrap layers with FSDP using <code>default_auto_wrap_policy</code>.</li>
</ul>`,name:"fsdp"},{anchor:"transformers.TrainingArguments.fsdp_config",description:`<strong>fsdp_config</strong> (<code>str</code> or <code>dict</code>, <em>optional</em>) &#x2014;
Config to be used with fsdp (Pytorch Distributed Parallel Training). The value is either a location of
fsdp json config file (e.g., <code>fsdp_config.json</code>) or an already loaded json file as <code>dict</code>.</p>
<p>A List of config and its options:</p>
<ul>
<li>
<p>min_num_params (<code>int</code>, <em>optional</em>, defaults to <code>0</code>):
FSDP&#x2019;s minimum number of parameters for Default Auto Wrapping. (useful only when <code>fsdp</code> field is
passed).</p>
</li>
<li>
<p>transformer_layer_cls_to_wrap (<code>List[str]</code>, <em>optional</em>):
List of transformer layer class names (case-sensitive) to wrap, e.g, <code>BertLayer</code>, <code>GPTJBlock</code>,
<code>T5Block</code> &#x2026; (useful only when <code>fsdp</code> flag is passed).</p>
</li>
<li>
<p>backward_prefetch (<code>str</code>, <em>optional</em>)
FSDP&#x2019;s backward prefetch mode. Controls when to prefetch next set of parameters (useful only when
<code>fsdp</code> field is passed).</p>
<p>A list of options along the following:</p>
<ul>
<li><code>&quot;backward_pre&quot;</code> : Prefetches the next set of parameters before the current set of parameter&#x2019;s
gradient
computation.</li>
<li><code>&quot;backward_post&quot;</code> : This prefetches the next set of parameters after the current set of
parameter&#x2019;s
gradient computation.</li>
</ul>
</li>
<li>
<p>forward_prefetch (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
FSDP&#x2019;s forward prefetch mode (useful only when <code>fsdp</code> field is passed).
If <code>&quot;True&quot;</code>, then FSDP explicitly prefetches the next upcoming all-gather while executing in the
forward pass.</p>
</li>
<li>
<p>limit_all_gathers (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
FSDP&#x2019;s limit_all_gathers (useful only when <code>fsdp</code> field is passed).
If <code>&quot;True&quot;</code>, FSDP explicitly synchronizes the CPU thread to prevent too many in-flight
all-gathers.</p>
</li>
<li>
<p>use_orig_params (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>)
If <code>&quot;True&quot;</code>, allows non-uniform <code>requires_grad</code> during init, which means support for interspersed
frozen and trainable paramteres. Useful in cases such as parameter-efficient fine-tuning. Please
refer this
[blog](<a href="https://dev-discuss.pytorch.org/t/rethinking-pytorch-fully-sharded-data-parallel-fsdp-from-first-principles/1019" rel="nofollow">https://dev-discuss.pytorch.org/t/rethinking-pytorch-fully-sharded-data-parallel-fsdp-from-first-principles/1019</a></p>
</li>
<li>
<p>sync_module_states (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>)
If <code>&quot;True&quot;</code>, each individually wrapped FSDP unit will broadcast module parameters from rank 0 to
ensure they are the same across all ranks after initialization</p>
</li>
<li>
<p>activation_checkpointing (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
If <code>&quot;True&quot;</code>, activation checkpointing is a technique to reduce memory usage by clearing activations of
certain layers and recomputing them during a backward pass. Effectively, this trades extra
computation time for reduced memory usage.</p>
</li>
<li>
<p>xla (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether to use PyTorch/XLA Fully Sharded Data Parallel Training. This is an experimental feature
and its API may evolve in the future.</p>
</li>
<li>
<p>xla_fsdp_settings (<code>dict</code>, <em>optional</em>)
The value is a dictionary which stores the XLA FSDP wrapping parameters.</p>
<p>For a complete list of options, please see <a href="https://github.com/pytorch/xla/blob/master/torch_xla/distributed/fsdp/xla_fully_sharded_data_parallel.py" rel="nofollow">here</a>.</p>
</li>
<li>
<p>xla_fsdp_grad_ckpt (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Will use gradient checkpointing over each nested XLA FSDP wrapped layer. This setting can only be
used when the xla flag is set to true, and an auto wrapping policy is specified through
fsdp_min_num_params or fsdp_transformer_layer_cls_to_wrap.</p>
</li>
</ul>`,name:"fsdp_config"},{anchor:"transformers.TrainingArguments.deepspeed",description:`<strong>deepspeed</strong> (<code>str</code> or <code>dict</code>, <em>optional</em>) &#x2014;
Use <a href="https://github.com/microsoft/deepspeed" rel="nofollow">Deepspeed</a>. This is an experimental feature and its API may
evolve in the future. The value is either the location of DeepSpeed json config file (e.g.,
<code>ds_config.json</code>) or an already loaded json file as a <code>dict</code>&#x201D;`,name:"deepspeed"},{anchor:"transformers.TrainingArguments.accelerator_config",description:`<strong>accelerator_config</strong> (<code>str</code>, <code>dict</code>, or <code>AcceleratorConfig</code>, <em>optional</em>) &#x2014;
Config to be used with the internal <code>Accelerator</code> implementation. The value is either a location of
accelerator json config file (e.g., <code>accelerator_config.json</code>), an already loaded json file as <code>dict</code>,
or an instance of <code>AcceleratorConfig</code>.</p>
<p>A list of config and its options:</p>
<ul>
<li>split_batches (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether or not the accelerator should split the batches yielded by the dataloaders across the devices. If
<code>True</code> the actual batch size used will be the same on any kind of distributed processes, but it must be a
round multiple of the <code>num_processes</code> you are using. If <code>False</code>, actual batch size used will be the one set
in your script multiplied by the number of processes.</li>
<li>dispatch_batches (<code>bool</code>, <em>optional</em>):
If set to <code>True</code>, the dataloader prepared by the Accelerator is only iterated through on the main process
and then the batches are split and broadcast to each process. Will default to <code>True</code> for <code>DataLoader</code> whose
underlying dataset is an <code>IterableDataset</code>, <code>False</code> otherwise.</li>
<li>even_batches (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>):
If set to <code>True</code>, in cases where the total batch size across all processes does not exactly divide the
dataset, samples at the start of the dataset will be duplicated so the batch can be divided equally among
all workers.</li>
<li>use_seedable_sampler (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>):
Whether or not use a fully seedable random sampler (<code>accelerate.data_loader.SeedableRandomSampler</code>). Ensures
training results are fully reproducable using a different sampling technique. While seed-to-seed results
may differ, on average the differences are neglible when using multiple different seeds to compare. Should
also be ran with <code>~utils.set_seed</code> for the best results.</li>
</ul>`,name:"accelerator_config"},{anchor:"transformers.TrainingArguments.label_smoothing_factor",description:`<strong>label_smoothing_factor</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The label smoothing factor to use. Zero means no label smoothing, otherwise the underlying onehot-encoded
labels are changed from 0s and 1s to <code>label_smoothing_factor/num_labels</code> and <code>1 - label_smoothing_factor + label_smoothing_factor/num_labels</code> respectively.`,name:"label_smoothing_factor"},{anchor:"transformers.TrainingArguments.debug",description:`<strong>debug</strong> (<code>str</code> or list of <code>DebugOption</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
Enable one or more debug features. This is an experimental feature.</p>
<p>Possible options are:</p>
<ul>
<li><code>&quot;underflow_overflow&quot;</code>: detects overflow in model&#x2019;s input/outputs and reports the last frames that led to
the event</li>
<li><code>&quot;tpu_metrics_debug&quot;</code>: print debug metrics on TPU</li>
</ul>
<p>The options should be separated by whitespaces.`,name:"debug"},{anchor:"transformers.TrainingArguments.optim",description:`<strong>optim</strong> (<code>str</code> or <code>training_args.OptimizerNames</code>, <em>optional</em>, defaults to <code>&quot;adamw_torch&quot;</code>) &#x2014;
The optimizer to use: adamw_hf, adamw_torch, adamw_torch_fused, adamw_apex_fused, adamw_anyprecision or
adafactor.`,name:"optim"},{anchor:"transformers.TrainingArguments.optim_args",description:`<strong>optim_args</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Optional arguments that are supplied to AnyPrecisionAdamW.`,name:"optim_args"},{anchor:"transformers.TrainingArguments.group_by_length",description:`<strong>group_by_length</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to group together samples of roughly the same length in the training dataset (to minimize
padding applied and be more efficient). Only useful if applying dynamic padding.`,name:"group_by_length"},{anchor:"transformers.TrainingArguments.length_column_name",description:`<strong>length_column_name</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;length&quot;</code>) &#x2014;
Column name for precomputed lengths. If the column exists, grouping by length will use these values rather
than computing them on train startup. Ignored unless <code>group_by_length</code> is <code>True</code> and the dataset is an
instance of <code>Dataset</code>.`,name:"length_column_name"},{anchor:"transformers.TrainingArguments.report_to",description:`<strong>report_to</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>, defaults to <code>&quot;all&quot;</code>) &#x2014;
The list of integrations to report the results and logs to. Supported platforms are <code>&quot;azure_ml&quot;</code>,
<code>&quot;clearml&quot;</code>, <code>&quot;codecarbon&quot;</code>, <code>&quot;comet_ml&quot;</code>, <code>&quot;dagshub&quot;</code>, <code>&quot;dvclive&quot;</code>, <code>&quot;flyte&quot;</code>, <code>&quot;mlflow&quot;</code>, <code>&quot;neptune&quot;</code>,
<code>&quot;tensorboard&quot;</code>, and <code>&quot;wandb&quot;</code>. Use <code>&quot;all&quot;</code> to report to all integrations installed, <code>&quot;none&quot;</code> for no
integrations.`,name:"report_to"},{anchor:"transformers.TrainingArguments.ddp_find_unused_parameters",description:`<strong>ddp_find_unused_parameters</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>find_unused_parameters</code> passed to
<code>DistributedDataParallel</code>. Will default to <code>False</code> if gradient checkpointing is used, <code>True</code> otherwise.`,name:"ddp_find_unused_parameters"},{anchor:"transformers.TrainingArguments.ddp_bucket_cap_mb",description:`<strong>ddp_bucket_cap_mb</strong> (<code>int</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>bucket_cap_mb</code> passed to <code>DistributedDataParallel</code>.`,name:"ddp_bucket_cap_mb"},{anchor:"transformers.TrainingArguments.ddp_broadcast_buffers",description:`<strong>ddp_broadcast_buffers</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>broadcast_buffers</code> passed to
<code>DistributedDataParallel</code>. Will default to <code>False</code> if gradient checkpointing is used, <code>True</code> otherwise.`,name:"ddp_broadcast_buffers"},{anchor:"transformers.TrainingArguments.dataloader_pin_memory",description:`<strong>dataloader_pin_memory</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether you want to pin memory in data loaders or not. Will default to <code>True</code>.`,name:"dataloader_pin_memory"},{anchor:"transformers.TrainingArguments.dataloader_persistent_workers",description:`<strong>dataloader_persistent_workers</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, the data loader will not shut down the worker processes after a dataset has been consumed once.
This allows to maintain the workers Dataset instances alive. Can potentially speed up training, but will
increase RAM usage. Will default to <code>False</code>.`,name:"dataloader_persistent_workers"},{anchor:"transformers.TrainingArguments.dataloader_prefetch_factor",description:`<strong>dataloader_prefetch_factor</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of batches loaded in advance by each worker.
2 means there will be a total of 2 * num_workers batches prefetched across all workers.`,name:"dataloader_prefetch_factor"},{anchor:"transformers.TrainingArguments.skip_memory_metrics",description:`<strong>skip_memory_metrics</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to skip adding of memory profiler reports to metrics. This is skipped by default because it slows
down the training and evaluation speed.`,name:"skip_memory_metrics"},{anchor:"transformers.TrainingArguments.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push the model to the Hub every time the model is saved. If this is activated,
<code>output_dir</code> will begin a git directory synced with the repo (determined by <code>hub_model_id</code>) and the content
will be pushed each time a save is triggered (depending on your <code>save_strategy</code>). Calling
<a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer.save_model">save_model()</a> will also trigger a push.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p>If <code>output_dir</code> exists, it needs to be a local clone of the repository to which the <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a> will be
pushed.</p>

					</div>`,name:"push_to_hub"},{anchor:"transformers.TrainingArguments.resume_from_checkpoint",description:`<strong>resume_from_checkpoint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The path to a folder with a valid checkpoint for your model. This argument is not directly used by
<a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s intended to be used by your training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"resume_from_checkpoint"},{anchor:"transformers.TrainingArguments.hub_model_id",description:`<strong>hub_model_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the repository to keep in sync with the local <em>output_dir</em>. It can be a simple model ID in
which case the model will be pushed in your namespace. Otherwise it should be the whole repository name,
for instance <code>&quot;user_name/model&quot;</code>, which allows you to push to an organization you are a member of with
<code>&quot;organization_name/model&quot;</code>. Will default to <code>user_name/output_dir_name</code> with <em>output_dir_name</em> being the
name of <code>output_dir</code>.</p>
<p>Will default to the name of <code>output_dir</code>.`,name:"hub_model_id"},{anchor:"transformers.TrainingArguments.hub_strategy",description:`<strong>hub_strategy</strong> (<code>str</code> or <code>HubStrategy</code>, <em>optional</em>, defaults to <code>&quot;every_save&quot;</code>) &#x2014;
Defines the scope of what is pushed to the Hub and when. Possible values are:</p>
<ul>
<li><code>&quot;end&quot;</code>: push the model, its configuration, the tokenizer (if passed along to the <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>) and a
draft of a model card when the <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer.save_model">save_model()</a> method is called.</li>
<li><code>&quot;every_save&quot;</code>: push the model, its configuration, the tokenizer (if passed along to the <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>) and
a draft of a model card each time there is a model save. The pushes are asynchronous to not block
training, and in case the save are very frequent, a new push is only attempted if the previous one is
finished. A last push is made with the final model at the end of training.</li>
<li><code>&quot;checkpoint&quot;</code>: like <code>&quot;every_save&quot;</code> but the latest checkpoint is also pushed in a subfolder named
last-checkpoint, allowing you to resume training easily with
<code>trainer.train(resume_from_checkpoint=&quot;last-checkpoint&quot;)</code>.</li>
<li><code>&quot;all_checkpoints&quot;</code>: like <code>&quot;checkpoint&quot;</code> but all checkpoints are pushed like they appear in the output
folder (so you will get one checkpoint folder per folder in your final repository)</li>
</ul>`,name:"hub_strategy"},{anchor:"transformers.TrainingArguments.hub_token",description:`<strong>hub_token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to use to push the model to the Hub. Will default to the token in the cache folder obtained with
<code>huggingface-cli login</code>.`,name:"hub_token"},{anchor:"transformers.TrainingArguments.hub_private_repo",description:`<strong>hub_private_repo</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, the Hub repo will be set to private.`,name:"hub_private_repo"},{anchor:"transformers.TrainingArguments.hub_always_push",description:`<strong>hub_always_push</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Unless this is <code>True</code>, the <code>Trainer</code> will skip pushing a checkpoint when the previous push is not finished.`,name:"hub_always_push"},{anchor:"transformers.TrainingArguments.gradient_checkpointing",description:`<strong>gradient_checkpointing</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, use gradient checkpointing to save memory at the expense of slower backward pass.`,name:"gradient_checkpointing"},{anchor:"transformers.TrainingArguments.gradient_checkpointing_kwargs",description:`<strong>gradient_checkpointing_kwargs</strong> (<code>dict</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Key word arguments to be passed to the <code>gradient_checkpointing_enable</code> method.`,name:"gradient_checkpointing_kwargs"},{anchor:"transformers.TrainingArguments.include_inputs_for_metrics",description:`<strong>include_inputs_for_metrics</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the inputs will be passed to the <code>compute_metrics</code> function. This is intended for metrics
that need inputs, predictions and references for scoring calculation in Metric class.`,name:"include_inputs_for_metrics"},{anchor:"transformers.TrainingArguments.auto_find_batch_size",description:`<strong>auto_find_batch_size</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to find a batch size that will fit into memory automatically through exponential decay, avoiding
CUDA Out-of-Memory errors. Requires accelerate to be installed (<code>pip install accelerate</code>)`,name:"auto_find_batch_size"},{anchor:"transformers.TrainingArguments.full_determinism",description:`<strong>full_determinism</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, <a href="/docs/transformers/v4.39.2/en/internal/trainer_utils#transformers.enable_full_determinism">enable_full_determinism()</a> is called instead of <a href="/docs/transformers/v4.39.2/en/internal/trainer_utils#transformers.set_seed">set_seed()</a> to ensure reproducible results in
distributed training. Important: this will negatively impact the performance, so only use it for debugging.`,name:"full_determinism"},{anchor:"transformers.TrainingArguments.torchdynamo",description:`<strong>torchdynamo</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If set, the backend compiler for TorchDynamo. Possible choices are <code>&quot;eager&quot;</code>, <code>&quot;aot_eager&quot;</code>, <code>&quot;inductor&quot;</code>,
<code>&quot;nvfuser&quot;</code>, <code>&quot;aot_nvfuser&quot;</code>, <code>&quot;aot_cudagraphs&quot;</code>, <code>&quot;ofi&quot;</code>, <code>&quot;fx2trt&quot;</code>, <code>&quot;onnxrt&quot;</code> and <code>&quot;ipex&quot;</code>.`,name:"torchdynamo"},{anchor:"transformers.TrainingArguments.ray_scope",description:`<strong>ray_scope</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;last&quot;</code>) &#x2014;
The scope to use when doing hyperparameter search with Ray. By default, <code>&quot;last&quot;</code> will be used. Ray will
then use the last checkpoint of all trials, compare those, and select the best one. However, other options
are also available. See the <a href="https://docs.ray.io/en/latest/tune/api_docs/analysis.html#ray.tune.ExperimentAnalysis.get_best_trial" rel="nofollow">Ray documentation</a> for
more options.`,name:"ray_scope"},{anchor:"transformers.TrainingArguments.ddp_timeout",description:`<strong>ddp_timeout</strong> (<code>int</code>, <em>optional</em>, defaults to 1800) &#x2014;
The timeout for <code>torch.distributed.init_process_group</code> calls, used to avoid GPU socket timeouts when
performing slow operations in distributed runnings. Please refer the [PyTorch documentation]
(<a href="https://pytorch.org/docs/stable/distributed.html#torch.distributed.init_process_group" rel="nofollow">https://pytorch.org/docs/stable/distributed.html#torch.distributed.init_process_group</a>) for more
information.`,name:"ddp_timeout"},{anchor:"transformers.TrainingArguments.use_mps_device",description:`<strong>use_mps_device</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
This argument is deprecated.<code>mps</code> device will be used if it is available similar to <code>cuda</code> device.`,name:"use_mps_device"},{anchor:"transformers.TrainingArguments.torch_compile",description:`<strong>torch_compile</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to compile the model using PyTorch 2.0
<a href="https://pytorch.org/get-started/pytorch-2.0/" rel="nofollow"><code>torch.compile</code></a>.</p>
<p>This will use the best defaults for the <a href="https://pytorch.org/docs/stable/generated/torch.compile.html?highlight=torch+compile#torch.compile" rel="nofollow"><code>torch.compile</code>
API</a>.
You can customize the defaults with the argument <code>torch_compile_backend</code> and <code>torch_compile_mode</code> but we
don&#x2019;t guarantee any of them will work as the support is progressively rolled in in PyTorch.</p>
<p>This flag and the whole compile API is experimental and subject to change in future releases.`,name:"torch_compile"},{anchor:"transformers.TrainingArguments.torch_compile_backend",description:`<strong>torch_compile_backend</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The backend to use in <code>torch.compile</code>. If set to any value, <code>torch_compile</code> will be set to <code>True</code>.</p>
<p>Refer to the PyTorch doc for possible values and note that they may change across PyTorch versions.</p>
<p>This flag is experimental and subject to change in future releases.`,name:"torch_compile_backend"},{anchor:"transformers.TrainingArguments.torch_compile_mode",description:`<strong>torch_compile_mode</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The mode to use in <code>torch.compile</code>. If set to any value, <code>torch_compile</code> will be set to <code>True</code>.</p>
<p>Refer to the PyTorch doc for possible values and note that they may change across PyTorch versions.</p>
<p>This flag is experimental and subject to change in future releases.`,name:"torch_compile_mode"},{anchor:"transformers.TrainingArguments.split_batches",description:`<strong>split_batches</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the accelerator should split the batches yielded by the dataloaders across the devices
during distributed training. If</p>
<p>set to <code>True</code>, the actual batch size used will be the same on any kind of distributed processes, but it
must be a</p>
<p>round multiple of the number of processes you are using (such as GPUs).`,name:"split_batches"},{anchor:"transformers.TrainingArguments.include_tokens_per_second",description:`<strong>include_tokens_per_second</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to compute the number of tokens per second per device for training speed metrics.</p>
<p>This will iterate over the entire training dataloader once beforehand,</p>
<p>and will slow down the entire process.`,name:"include_tokens_per_second"},{anchor:"transformers.TrainingArguments.include_num_input_tokens_seen",description:`<strong>include_num_input_tokens_seen</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to track the number of input tokens seen throughout training.</p>
<p>May be slower in distributed training as gather operations must be called.`,name:"include_num_input_tokens_seen"},{anchor:"transformers.TrainingArguments.neftune_noise_alpha",description:`<strong>neftune_noise_alpha</strong> (<code>Optional[float]</code>) &#x2014;
If not <code>None</code>, this will activate NEFTune noise embeddings. This can drastically improve model performance
for instruction fine-tuning. Check out the <a href="https://arxiv.org/abs/2310.05914" rel="nofollow">original paper</a> and the
<a href="https://github.com/neelsjain/NEFTune" rel="nofollow">original code</a>. Support transformers <code>PreTrainedModel</code> and also
<code>PeftModel</code> from peft.`,name:"neftune_noise_alpha"},{anchor:"transformers.TrainingArguments.optim_target_modules",description:`<strong>optim_target_modules</strong> (<code>Union[str, List[str]]</code>, <em>optional</em>) &#x2014;
The target modules to optimize, i.e. the module names that you would like to train, right now this is used only for GaLore algorithm
<a href="https://arxiv.org/abs/2403.03507" rel="nofollow">https://arxiv.org/abs/2403.03507</a>
See: <a href="https://github.com/jiaweizzhao/GaLore" rel="nofollow">https://github.com/jiaweizzhao/GaLore</a> for more details. You need to make sure to pass a valid GaloRe
optimizer, e.g. one of: &#x201C;galore_adamw&#x201D;, &#x201C;galore_adamw_8bit&#x201D;, &#x201C;galore_adafactor&#x201D; and make sure that the target modules are <code>nn.Linear</code> modules
only.`,name:"optim_target_modules"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/training_args.py#L176"}}),po=new q({props:{name:"get_process_log_level",anchor:"transformers.TrainingArguments.get_process_log_level",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/training_args.py#L2134"}}),uo=new q({props:{name:"get_warmup_steps",anchor:"transformers.TrainingArguments.get_warmup_steps",parameters:[{name:"num_training_steps",val:": int"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/training_args.py#L2223"}}),go=new q({props:{name:"main_process_first",anchor:"transformers.TrainingArguments.main_process_first",parameters:[{name:"local",val:" = True"},{name:"desc",val:" = 'work'"}],parametersDescription:[{anchor:"transformers.TrainingArguments.main_process_first.local",description:`<strong>local</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
if <code>True</code> first means process of rank 0 of each node if <code>False</code> first means process of rank 0 of node
rank 0 In multi-node environment with a shared filesystem you most likely will want to use
<code>local=False</code> so that only the main process of the first node will do the processing. If however, the
filesystem is not shared, then the main process of each node will need to do the processing, which is
the default behavior.`,name:"local"},{anchor:"transformers.TrainingArguments.main_process_first.desc",description:`<strong>desc</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;work&quot;</code>) &#x2014;
a work description to be used in debug logs`,name:"desc"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/training_args.py#L2172"}}),ho=new q({props:{name:"set_dataloader",anchor:"transformers.TrainingArguments.set_dataloader",parameters:[{name:"train_batch_size",val:": int = 8"},{name:"eval_batch_size",val:": int = 8"},{name:"drop_last",val:": bool = False"},{name:"num_workers",val:": int = 0"},{name:"pin_memory",val:": bool = True"},{name:"persistent_workers",val:": bool = False"},{name:"prefetch_factor",val:": Optional = None"},{name:"auto_find_batch_size",val:": bool = False"},{name:"ignore_data_skip",val:": bool = False"},{name:"sampler_seed",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_dataloader.drop_last",description:`<strong>drop_last</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to drop the last incomplete batch (if the length of the dataset is not divisible by the batch
size) or not.`,name:"drop_last"},{anchor:"transformers.TrainingArguments.set_dataloader.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of subprocesses to use for data loading (PyTorch only). 0 means that the data will be loaded in
the main process.`,name:"num_workers"},{anchor:"transformers.TrainingArguments.set_dataloader.pin_memory",description:`<strong>pin_memory</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether you want to pin memory in data loaders or not. Will default to <code>True</code>.`,name:"pin_memory"},{anchor:"transformers.TrainingArguments.set_dataloader.persistent_workers",description:`<strong>persistent_workers</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, the data loader will not shut down the worker processes after a dataset has been consumed
once. This allows to maintain the workers Dataset instances alive. Can potentially speed up training,
but will increase RAM usage. Will default to <code>False</code>.`,name:"persistent_workers"},{anchor:"transformers.TrainingArguments.set_dataloader.prefetch_factor",description:`<strong>prefetch_factor</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of batches loaded in advance by each worker.
2 means there will be a total of 2 * num_workers batches prefetched across all workers.`,name:"prefetch_factor"},{anchor:"transformers.TrainingArguments.set_dataloader.auto_find_batch_size",description:`<strong>auto_find_batch_size</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to find a batch size that will fit into memory automatically through exponential decay,
avoiding CUDA Out-of-Memory errors. Requires accelerate to be installed (<code>pip install accelerate</code>)`,name:"auto_find_batch_size"},{anchor:"transformers.TrainingArguments.set_dataloader.ignore_data_skip",description:`<strong>ignore_data_skip</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When resuming training, whether or not to skip the epochs and batches to get the data loading at the
same stage as in the previous training. If set to <code>True</code>, the training will begin faster (as that
skipping step can take a long time) but will not yield the same results as the interrupted training
would have.`,name:"ignore_data_skip"},{anchor:"transformers.TrainingArguments.set_dataloader.sampler_seed",description:`<strong>sampler_seed</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Random seed to be used with data samplers. If not set, random generators for data sampling will use the
same seed as <code>self.seed</code>. This can be used to ensure reproducibility of data sampling, independent of
the model seed.`,name:"sampler_seed"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/training_args.py#L2738"}}),Ze=new ve({props:{anchor:"transformers.TrainingArguments.set_dataloader.example",$$slots:{default:[om]},$$scope:{ctx:C}}}),fo=new q({props:{name:"set_evaluate",anchor:"transformers.TrainingArguments.set_evaluate",parameters:[{name:"strategy",val:": Union = 'no'"},{name:"steps",val:": int = 500"},{name:"batch_size",val:": int = 8"},{name:"accumulation_steps",val:": Optional = None"},{name:"delay",val:": Optional = None"},{name:"loss_only",val:": bool = False"},{name:"jit_mode",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_evaluate.strategy",description:`<strong>strategy</strong> (<code>str</code> or <a href="/docs/transformers/v4.39.2/en/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;no&quot;</code>) &#x2014;
The evaluation strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No evaluation is done during training.</li>
<li><code>&quot;steps&quot;</code>: Evaluation is done (and logged) every <code>steps</code>.</li>
<li><code>&quot;epoch&quot;</code>: Evaluation is done at the end of each epoch.</li>
</ul>
<p>Setting a <code>strategy</code> different from <code>&quot;no&quot;</code> will set <code>self.do_eval</code> to <code>True</code>.`,name:"strategy"},{anchor:"transformers.TrainingArguments.set_evaluate.steps",description:`<strong>steps</strong> (<code>int</code>, <em>optional</em>, defaults to 500) &#x2014;
Number of update steps between two evaluations if <code>strategy=&quot;steps&quot;</code>.`,name:"steps"},{anchor:"transformers.TrainingArguments.set_evaluate.batch_size",description:`<strong>batch_size</strong> (<code>int</code> <em>optional</em>, defaults to 8) &#x2014;
The batch size per device (GPU/TPU core/CPU&#x2026;) used for evaluation.`,name:"batch_size"},{anchor:"transformers.TrainingArguments.set_evaluate.accumulation_steps",description:`<strong>accumulation_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of predictions steps to accumulate the output tensors for, before moving the results to the CPU.
If left unset, the whole predictions are accumulated on GPU/TPU before being moved to the CPU (faster
but requires more memory).`,name:"accumulation_steps"},{anchor:"transformers.TrainingArguments.set_evaluate.delay",description:`<strong>delay</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Number of epochs or steps to wait for before the first evaluation can be performed, depending on the
evaluation_strategy.`,name:"delay"},{anchor:"transformers.TrainingArguments.set_evaluate.loss_only",description:`<strong>loss_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Ignores all outputs except the loss.`,name:"loss_only"},{anchor:"transformers.TrainingArguments.set_evaluate.jit_mode",description:`<strong>jit_mode</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use PyTorch jit trace for inference.`,name:"jit_mode"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/training_args.py#L2347"}}),Qe=new ve({props:{anchor:"transformers.TrainingArguments.set_evaluate.example",$$slots:{default:[nm]},$$scope:{ctx:C}}}),_o=new q({props:{name:"set_logging",anchor:"transformers.TrainingArguments.set_logging",parameters:[{name:"strategy",val:": Union = 'steps'"},{name:"steps",val:": int = 500"},{name:"report_to",val:": Union = 'none'"},{name:"level",val:": str = 'passive'"},{name:"first_step",val:": bool = False"},{name:"nan_inf_filter",val:": bool = False"},{name:"on_each_node",val:": bool = False"},{name:"replica_level",val:": str = 'passive'"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_logging.strategy",description:`<strong>strategy</strong> (<code>str</code> or <a href="/docs/transformers/v4.39.2/en/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;steps&quot;</code>) &#x2014;
The logging strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No logging is done during training.</li>
<li><code>&quot;epoch&quot;</code>: Logging is done at the end of each epoch.</li>
<li><code>&quot;steps&quot;</code>: Logging is done every <code>logging_steps</code>.</li>
</ul>`,name:"strategy"},{anchor:"transformers.TrainingArguments.set_logging.steps",description:`<strong>steps</strong> (<code>int</code>, <em>optional</em>, defaults to 500) &#x2014;
Number of update steps between two logs if <code>strategy=&quot;steps&quot;</code>.`,name:"steps"},{anchor:"transformers.TrainingArguments.set_logging.level",description:`<strong>level</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;passive&quot;</code>) &#x2014;
Logger log level to use on the main process. Possible choices are the log levels as strings: <code>&quot;debug&quot;</code>,
<code>&quot;info&quot;</code>, <code>&quot;warning&quot;</code>, <code>&quot;error&quot;</code> and <code>&quot;critical&quot;</code>, plus a <code>&quot;passive&quot;</code> level which doesn&#x2019;t set anything
and lets the application set the level.`,name:"level"},{anchor:"transformers.TrainingArguments.set_logging.report_to",description:`<strong>report_to</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>, defaults to <code>&quot;all&quot;</code>) &#x2014;
The list of integrations to report the results and logs to. Supported platforms are <code>&quot;azure_ml&quot;</code>,
<code>&quot;clearml&quot;</code>, <code>&quot;codecarbon&quot;</code>, <code>&quot;comet_ml&quot;</code>, <code>&quot;dagshub&quot;</code>, <code>&quot;dvclive&quot;</code>, <code>&quot;flyte&quot;</code>, <code>&quot;mlflow&quot;</code>,
<code>&quot;neptune&quot;</code>, <code>&quot;tensorboard&quot;</code>, and <code>&quot;wandb&quot;</code>. Use <code>&quot;all&quot;</code> to report to all integrations installed,
<code>&quot;none&quot;</code> for no integrations.`,name:"report_to"},{anchor:"transformers.TrainingArguments.set_logging.first_step",description:`<strong>first_step</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to log and evaluate the first <code>global_step</code> or not.`,name:"first_step"},{anchor:"transformers.TrainingArguments.set_logging.nan_inf_filter",description:`<strong>nan_inf_filter</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to filter <code>nan</code> and <code>inf</code> losses for logging. If set to <code>True</code> the loss of every step that is
<code>nan</code> or <code>inf</code> is filtered and the average loss of the current logging window is taken instead.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p><code>nan_inf_filter</code> only influences the logging of loss values, it does not change the behavior the
gradient is computed or applied to the model.</p>

					</div>`,name:"nan_inf_filter"},{anchor:"transformers.TrainingArguments.set_logging.on_each_node",description:`<strong>on_each_node</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
In multinode distributed training, whether to log using <code>log_level</code> once per node, or only on the main
node.`,name:"on_each_node"},{anchor:"transformers.TrainingArguments.set_logging.replica_level",description:`<strong>replica_level</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;passive&quot;</code>) &#x2014;
Logger log level to use on replicas. Same choices as <code>log_level</code>`,name:"replica_level"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/training_args.py#L2497"}}),Ke=new ve({props:{anchor:"transformers.TrainingArguments.set_logging.example",$$slots:{default:[rm]},$$scope:{ctx:C}}}),bo=new q({props:{name:"set_lr_scheduler",anchor:"transformers.TrainingArguments.set_lr_scheduler",parameters:[{name:"name",val:": Union = 'linear'"},{name:"num_epochs",val:": float = 3.0"},{name:"max_steps",val:": int = -1"},{name:"warmup_ratio",val:": float = 0"},{name:"warmup_steps",val:": int = 0"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_lr_scheduler.name",description:`<strong>name</strong> (<code>str</code> or <a href="/docs/transformers/v4.39.2/en/main_classes/optimizer_schedules#transformers.SchedulerType">SchedulerType</a>, <em>optional</em>, defaults to <code>&quot;linear&quot;</code>) &#x2014;
The scheduler type to use. See the documentation of <a href="/docs/transformers/v4.39.2/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/v4.39.2/src/transformers/training_args.py#L2693"}}),et=new ve({props:{anchor:"transformers.TrainingArguments.set_lr_scheduler.example",$$slots:{default:[am]},$$scope:{ctx:C}}}),vo=new q({props:{name:"set_optimizer",anchor:"transformers.TrainingArguments.set_optimizer",parameters:[{name:"name",val:": Union = 'adamw_torch'"},{name:"learning_rate",val:": float = 5e-05"},{name:"weight_decay",val:": float = 0"},{name:"beta1",val:": float = 0.9"},{name:"beta2",val:": float = 0.999"},{name:"epsilon",val:": float = 1e-08"},{name:"args",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_optimizer.name",description:`<strong>name</strong> (<code>str</code> or <code>training_args.OptimizerNames</code>, <em>optional</em>, defaults to <code>&quot;adamw_torch&quot;</code>) &#x2014;
The optimizer to use: <code>&quot;adamw_hf&quot;</code>, <code>&quot;adamw_torch&quot;</code>, <code>&quot;adamw_torch_fused&quot;</code>, <code>&quot;adamw_apex_fused&quot;</code>,
<code>&quot;adamw_anyprecision&quot;</code> or <code>&quot;adafactor&quot;</code>.`,name:"name"},{anchor:"transformers.TrainingArguments.set_optimizer.learning_rate",description:`<strong>learning_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 5e-5) &#x2014;
The initial learning rate.`,name:"learning_rate"},{anchor:"transformers.TrainingArguments.set_optimizer.weight_decay",description:`<strong>weight_decay</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The weight decay to apply (if not zero) to all layers except all bias and LayerNorm weights.`,name:"weight_decay"},{anchor:"transformers.TrainingArguments.set_optimizer.beta1",description:`<strong>beta1</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
The beta1 hyperparameter for the adam optimizer or its variants.`,name:"beta1"},{anchor:"transformers.TrainingArguments.set_optimizer.beta2",description:`<strong>beta2</strong> (<code>float</code>, <em>optional</em>, defaults to 0.999) &#x2014;
The beta2 hyperparameter for the adam optimizer or its variants.`,name:"beta2"},{anchor:"transformers.TrainingArguments.set_optimizer.epsilon",description:`<strong>epsilon</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-8) &#x2014;
The epsilon hyperparameter for the adam optimizer or its variants.`,name:"epsilon"},{anchor:"transformers.TrainingArguments.set_optimizer.args",description:`<strong>args</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Optional arguments that are supplied to AnyPrecisionAdamW (only useful when
<code>optim=&quot;adamw_anyprecision&quot;</code>).`,name:"args"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/training_args.py#L2642"}}),tt=new ve({props:{anchor:"transformers.TrainingArguments.set_optimizer.example",$$slots:{default:[sm]},$$scope:{ctx:C}}}),yo=new q({props:{name:"set_push_to_hub",anchor:"transformers.TrainingArguments.set_push_to_hub",parameters:[{name:"model_id",val:": str"},{name:"strategy",val:": Union = 'every_save'"},{name:"token",val:": Optional = None"},{name:"private_repo",val:": bool = False"},{name:"always_push",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_push_to_hub.model_id",description:`<strong>model_id</strong> (<code>str</code>) &#x2014;
The name of the repository to keep in sync with the local <em>output_dir</em>. It can be a simple model ID in
which case the model will be pushed in your namespace. Otherwise it should be the whole repository
name, for instance <code>&quot;user_name/model&quot;</code>, which allows you to push to an organization you are a member of
with <code>&quot;organization_name/model&quot;</code>.`,name:"model_id"},{anchor:"transformers.TrainingArguments.set_push_to_hub.strategy",description:`<strong>strategy</strong> (<code>str</code> or <code>HubStrategy</code>, <em>optional</em>, defaults to <code>&quot;every_save&quot;</code>) &#x2014;
Defines the scope of what is pushed to the Hub and when. Possible values are:</p>
<ul>
<li><code>&quot;end&quot;</code>: push the model, its configuration, the tokenizer (if passed along to the <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>) and a
draft of a model card when the <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer.save_model">save_model()</a> method is called.</li>
<li><code>&quot;every_save&quot;</code>: push the model, its configuration, the tokenizer (if passed along to the <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>)
and
a draft of a model card each time there is a model save. The pushes are asynchronous to not block
training, and in case the save are very frequent, a new push is only attempted if the previous one is
finished. A last push is made with the final model at the end of training.</li>
<li><code>&quot;checkpoint&quot;</code>: like <code>&quot;every_save&quot;</code> but the latest checkpoint is also pushed in a subfolder named
last-checkpoint, allowing you to resume training easily with
<code>trainer.train(resume_from_checkpoint=&quot;last-checkpoint&quot;)</code>.</li>
<li><code>&quot;all_checkpoints&quot;</code>: like <code>&quot;checkpoint&quot;</code> but all checkpoints are pushed like they appear in the
output
folder (so you will get one checkpoint folder per folder in your final repository)</li>
</ul>`,name:"strategy"},{anchor:"transformers.TrainingArguments.set_push_to_hub.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to use to push the model to the Hub. Will default to the token in the cache folder obtained
with <code>huggingface-cli login</code>.`,name:"token"},{anchor:"transformers.TrainingArguments.set_push_to_hub.private_repo",description:`<strong>private_repo</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, the Hub repo will be set to private.`,name:"private_repo"},{anchor:"transformers.TrainingArguments.set_push_to_hub.always_push",description:`<strong>always_push</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Unless this is <code>True</code>, the <code>Trainer</code> will skip pushing a checkpoint when the previous push is not
finished.`,name:"always_push"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/training_args.py#L2572"}}),ot=new Uo({props:{$$slots:{default:[im]},$$scope:{ctx:C}}}),nt=new ve({props:{anchor:"transformers.TrainingArguments.set_push_to_hub.example",$$slots:{default:[lm]},$$scope:{ctx:C}}}),To=new q({props:{name:"set_save",anchor:"transformers.TrainingArguments.set_save",parameters:[{name:"strategy",val:": Union = 'steps'"},{name:"steps",val:": int = 500"},{name:"total_limit",val:": Optional = None"},{name:"on_each_node",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_save.strategy",description:`<strong>strategy</strong> (<code>str</code> or <a href="/docs/transformers/v4.39.2/en/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;steps&quot;</code>) &#x2014;
The checkpoint save strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No save is done during training.</li>
<li><code>&quot;epoch&quot;</code>: Save is done at the end of each epoch.</li>
<li><code>&quot;steps&quot;</code>: Save is done every <code>save_steps</code>.</li>
</ul>`,name:"strategy"},{anchor:"transformers.TrainingArguments.set_save.steps",description:`<strong>steps</strong> (<code>int</code>, <em>optional</em>, defaults to 500) &#x2014;
Number of updates steps before two checkpoint saves if <code>strategy=&quot;steps&quot;</code>.`,name:"steps"},{anchor:"transformers.TrainingArguments.set_save.total_limit",description:`<strong>total_limit</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If a value is passed, will limit the total amount of checkpoints. Deletes the older checkpoints in
<code>output_dir</code>.`,name:"total_limit"},{anchor:"transformers.TrainingArguments.set_save.on_each_node",description:`<strong>on_each_node</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When doing multi-node distributed training, whether to save models and checkpoints on each node, or
only on the main one.</p>
<p>This should not be activated when the different nodes use the same storage as the files will be saved
with the same names for each node.`,name:"on_each_node"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/training_args.py#L2448"}}),rt=new ve({props:{anchor:"transformers.TrainingArguments.set_save.example",$$slots:{default:[dm]},$$scope:{ctx:C}}}),wo=new q({props:{name:"set_testing",anchor:"transformers.TrainingArguments.set_testing",parameters:[{name:"batch_size",val:": int = 8"},{name:"loss_only",val:": bool = False"},{name:"jit_mode",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_testing.batch_size",description:`<strong>batch_size</strong> (<code>int</code> <em>optional</em>, defaults to 8) &#x2014;
The batch size per device (GPU/TPU core/CPU&#x2026;) used for testing.`,name:"batch_size"},{anchor:"transformers.TrainingArguments.set_testing.loss_only",description:`<strong>loss_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Ignores all outputs except the loss.`,name:"loss_only"},{anchor:"transformers.TrainingArguments.set_testing.jit_mode",description:`<strong>jit_mode</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use PyTorch jit trace for inference.`,name:"jit_mode"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/training_args.py#L2408"}}),at=new Uo({props:{$$slots:{default:[cm]},$$scope:{ctx:C}}}),st=new ve({props:{anchor:"transformers.TrainingArguments.set_testing.example",$$slots:{default:[mm]},$$scope:{ctx:C}}}),xo=new q({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/v4.39.2/src/transformers/training_args.py#L2272"}}),it=new Uo({props:{$$slots:{default:[pm]},$$scope:{ctx:C}}}),lt=new ve({props:{anchor:"transformers.TrainingArguments.set_training.example",$$slots:{default:[um]},$$scope:{ctx:C}}}),qo=new q({props:{name:"to_dict",anchor:"transformers.TrainingArguments.to_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/training_args.py#L2232"}}),$o=new q({props:{name:"to_json_string",anchor:"transformers.TrainingArguments.to_json_string",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/training_args.py#L2252"}}),ko=new q({props:{name:"to_sanitized_dict",anchor:"transformers.TrainingArguments.to_sanitized_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/training_args.py#L2258"}}),Ao=new ta({props:{title:"Seq2SeqTrainingArguments",local:"transformers.Seq2SeqTrainingArguments",headingTag:"h2"}}),So=new q({props:{name:"class transformers.Seq2SeqTrainingArguments",anchor:"transformers.Seq2SeqTrainingArguments",parameters:[{name:"output_dir",val:": str"},{name:"overwrite_output_dir",val:": bool = False"},{name:"do_train",val:": bool = False"},{name:"do_eval",val:": bool = False"},{name:"do_predict",val:": bool = False"},{name:"evaluation_strategy",val:": Union = 'no'"},{name:"prediction_loss_only",val:": bool = False"},{name:"per_device_train_batch_size",val:": int = 8"},{name:"per_device_eval_batch_size",val:": int = 8"},{name:"per_gpu_train_batch_size",val:": Optional = None"},{name:"per_gpu_eval_batch_size",val:": Optional = None"},{name:"gradient_accumulation_steps",val:": int = 1"},{name:"eval_accumulation_steps",val:": Optional = None"},{name:"eval_delay",val:": Optional = 0"},{name:"learning_rate",val:": float = 5e-05"},{name:"weight_decay",val:": float = 0.0"},{name:"adam_beta1",val:": float = 0.9"},{name:"adam_beta2",val:": float = 0.999"},{name:"adam_epsilon",val:": float = 1e-08"},{name:"max_grad_norm",val:": float = 1.0"},{name:"num_train_epochs",val:": float = 3.0"},{name:"max_steps",val:": int = -1"},{name:"lr_scheduler_type",val:": Union = 'linear'"},{name:"lr_scheduler_kwargs",val:": Optional = <factory>"},{name:"warmup_ratio",val:": float = 0.0"},{name:"warmup_steps",val:": int = 0"},{name:"log_level",val:": Optional = 'passive'"},{name:"log_level_replica",val:": Optional = 'warning'"},{name:"log_on_each_node",val:": bool = True"},{name:"logging_dir",val:": Optional = None"},{name:"logging_strategy",val:": Union = 'steps'"},{name:"logging_first_step",val:": bool = False"},{name:"logging_steps",val:": float = 500"},{name:"logging_nan_inf_filter",val:": bool = True"},{name:"save_strategy",val:": Union = 'steps'"},{name:"save_steps",val:": float = 500"},{name:"save_total_limit",val:": Optional = None"},{name:"save_safetensors",val:": Optional = True"},{name:"save_on_each_node",val:": bool = False"},{name:"save_only_model",val:": bool = False"},{name:"no_cuda",val:": bool = False"},{name:"use_cpu",val:": bool = False"},{name:"use_mps_device",val:": bool = False"},{name:"seed",val:": int = 42"},{name:"data_seed",val:": Optional = None"},{name:"jit_mode_eval",val:": bool = False"},{name:"use_ipex",val:": bool = False"},{name:"bf16",val:": bool = False"},{name:"fp16",val:": bool = False"},{name:"fp16_opt_level",val:": str = 'O1'"},{name:"half_precision_backend",val:": str = 'auto'"},{name:"bf16_full_eval",val:": bool = False"},{name:"fp16_full_eval",val:": bool = False"},{name:"tf32",val:": Optional = None"},{name:"local_rank",val:": int = -1"},{name:"ddp_backend",val:": Optional = None"},{name:"tpu_num_cores",val:": Optional = None"},{name:"tpu_metrics_debug",val:": bool = False"},{name:"debug",val:": Union = ''"},{name:"dataloader_drop_last",val:": bool = False"},{name:"eval_steps",val:": Optional = None"},{name:"dataloader_num_workers",val:": int = 0"},{name:"dataloader_prefetch_factor",val:": Optional = None"},{name:"past_index",val:": int = -1"},{name:"run_name",val:": Optional = None"},{name:"disable_tqdm",val:": Optional = None"},{name:"remove_unused_columns",val:": Optional = True"},{name:"label_names",val:": Optional = None"},{name:"load_best_model_at_end",val:": Optional = False"},{name:"metric_for_best_model",val:": Optional = None"},{name:"greater_is_better",val:": Optional = None"},{name:"ignore_data_skip",val:": bool = False"},{name:"fsdp",val:": Union = ''"},{name:"fsdp_min_num_params",val:": int = 0"},{name:"fsdp_config",val:": Union = None"},{name:"fsdp_transformer_layer_cls_to_wrap",val:": Optional = None"},{name:"accelerator_config",val:": Optional = None"},{name:"deepspeed",val:": Optional = None"},{name:"label_smoothing_factor",val:": float = 0.0"},{name:"optim",val:": Union = 'adamw_torch'"},{name:"optim_args",val:": Optional = None"},{name:"adafactor",val:": bool = False"},{name:"group_by_length",val:": bool = False"},{name:"length_column_name",val:": Optional = 'length'"},{name:"report_to",val:": Optional = None"},{name:"ddp_find_unused_parameters",val:": Optional = None"},{name:"ddp_bucket_cap_mb",val:": Optional = None"},{name:"ddp_broadcast_buffers",val:": Optional = None"},{name:"dataloader_pin_memory",val:": bool = True"},{name:"dataloader_persistent_workers",val:": bool = False"},{name:"skip_memory_metrics",val:": bool = True"},{name:"use_legacy_prediction_loop",val:": bool = False"},{name:"push_to_hub",val:": bool = False"},{name:"resume_from_checkpoint",val:": Optional = None"},{name:"hub_model_id",val:": Optional = None"},{name:"hub_strategy",val:": Union = 'every_save'"},{name:"hub_token",val:": Optional = None"},{name:"hub_private_repo",val:": bool = False"},{name:"hub_always_push",val:": bool = False"},{name:"gradient_checkpointing",val:": bool = False"},{name:"gradient_checkpointing_kwargs",val:": Optional = None"},{name:"include_inputs_for_metrics",val:": bool = False"},{name:"fp16_backend",val:": str = 'auto'"},{name:"push_to_hub_model_id",val:": Optional = None"},{name:"push_to_hub_organization",val:": Optional = None"},{name:"push_to_hub_token",val:": Optional = None"},{name:"mp_parameters",val:": str = ''"},{name:"auto_find_batch_size",val:": bool = False"},{name:"full_determinism",val:": bool = False"},{name:"torchdynamo",val:": Optional = None"},{name:"ray_scope",val:": Optional = 'last'"},{name:"ddp_timeout",val:": Optional = 1800"},{name:"torch_compile",val:": bool = False"},{name:"torch_compile_backend",val:": Optional = None"},{name:"torch_compile_mode",val:": Optional = None"},{name:"dispatch_batches",val:": Optional = None"},{name:"split_batches",val:": Optional = None"},{name:"include_tokens_per_second",val:": Optional = False"},{name:"include_num_input_tokens_seen",val:": Optional = False"},{name:"neftune_noise_alpha",val:": Optional = None"},{name:"optim_target_modules",val:": Union = None"},{name:"sortish_sampler",val:": bool = False"},{name:"predict_with_generate",val:": bool = False"},{name:"generation_max_length",val:": Optional = None"},{name:"generation_num_beams",val:": Optional = None"},{name:"generation_config",val:": Union = None"}],parametersDescription:[{anchor:"transformers.Seq2SeqTrainingArguments.output_dir",description:`<strong>output_dir</strong> (<code>str</code>) &#x2014;
The output directory where the model predictions and checkpoints will be written.`,name:"output_dir"},{anchor:"transformers.Seq2SeqTrainingArguments.overwrite_output_dir",description:`<strong>overwrite_output_dir</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, overwrite the content of the output directory. Use this to continue training if <code>output_dir</code>
points to a checkpoint directory.`,name:"overwrite_output_dir"},{anchor:"transformers.Seq2SeqTrainingArguments.do_train",description:`<strong>do_train</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to run training or not. This argument is not directly used by <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s intended to be used
by your training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"do_train"},{anchor:"transformers.Seq2SeqTrainingArguments.do_eval",description:`<strong>do_eval</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to run evaluation on the validation set or not. Will be set to <code>True</code> if <code>evaluation_strategy</code> is
different from <code>&quot;no&quot;</code>. This argument is not directly used by <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s intended to be used by your
training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"do_eval"},{anchor:"transformers.Seq2SeqTrainingArguments.do_predict",description:`<strong>do_predict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to run predictions on the test set or not. This argument is not directly used by <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s
intended to be used by your training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"do_predict"},{anchor:"transformers.Seq2SeqTrainingArguments.evaluation_strategy",description:`<strong>evaluation_strategy</strong> (<code>str</code> or <a href="/docs/transformers/v4.39.2/en/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;no&quot;</code>) &#x2014;
The evaluation strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No evaluation is done during training.</li>
<li><code>&quot;steps&quot;</code>: Evaluation is done (and logged) every <code>eval_steps</code>.</li>
<li><code>&quot;epoch&quot;</code>: Evaluation is done at the end of each epoch.</li>
</ul>`,name:"evaluation_strategy"},{anchor:"transformers.Seq2SeqTrainingArguments.prediction_loss_only",description:`<strong>prediction_loss_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When performing evaluation and generating predictions, only returns the loss.`,name:"prediction_loss_only"},{anchor:"transformers.Seq2SeqTrainingArguments.per_device_train_batch_size",description:`<strong>per_device_train_batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
The batch size per GPU/XPU/TPU/MPS/NPU core/CPU for training.`,name:"per_device_train_batch_size"},{anchor:"transformers.Seq2SeqTrainingArguments.per_device_eval_batch_size",description:`<strong>per_device_eval_batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
The batch size per GPU/XPU/TPU/MPS/NPU core/CPU for evaluation.`,name:"per_device_eval_batch_size"},{anchor:"transformers.Seq2SeqTrainingArguments.gradient_accumulation_steps",description:`<strong>gradient_accumulation_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of updates steps to accumulate the gradients for, before performing a backward/update pass.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p>When using gradient accumulation, one step is counted as one step with backward pass. Therefore, logging,
evaluation, save will be conducted every <code>gradient_accumulation_steps * xxx_step</code> training examples.</p>

					</div>`,name:"gradient_accumulation_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.eval_accumulation_steps",description:`<strong>eval_accumulation_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of predictions steps to accumulate the output tensors for, before moving the results to the CPU. If
left unset, the whole predictions are accumulated on GPU/NPU/TPU before being moved to the CPU (faster but
requires more memory).`,name:"eval_accumulation_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.eval_delay",description:`<strong>eval_delay</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Number of epochs or steps to wait for before the first evaluation can be performed, depending on the
evaluation_strategy.`,name:"eval_delay"},{anchor:"transformers.Seq2SeqTrainingArguments.learning_rate",description:`<strong>learning_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 5e-5) &#x2014;
The initial learning rate for <a href="/docs/transformers/v4.39.2/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> optimizer.`,name:"learning_rate"},{anchor:"transformers.Seq2SeqTrainingArguments.weight_decay",description:`<strong>weight_decay</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The weight decay to apply (if not zero) to all layers except all bias and LayerNorm weights in <a href="/docs/transformers/v4.39.2/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a>
optimizer.`,name:"weight_decay"},{anchor:"transformers.Seq2SeqTrainingArguments.adam_beta1",description:`<strong>adam_beta1</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
The beta1 hyperparameter for the <a href="/docs/transformers/v4.39.2/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> optimizer.`,name:"adam_beta1"},{anchor:"transformers.Seq2SeqTrainingArguments.adam_beta2",description:`<strong>adam_beta2</strong> (<code>float</code>, <em>optional</em>, defaults to 0.999) &#x2014;
The beta2 hyperparameter for the <a href="/docs/transformers/v4.39.2/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> optimizer.`,name:"adam_beta2"},{anchor:"transformers.Seq2SeqTrainingArguments.adam_epsilon",description:`<strong>adam_epsilon</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-8) &#x2014;
The epsilon hyperparameter for the <a href="/docs/transformers/v4.39.2/en/main_classes/optimizer_schedules#transformers.AdamW">AdamW</a> optimizer.`,name:"adam_epsilon"},{anchor:"transformers.Seq2SeqTrainingArguments.max_grad_norm",description:`<strong>max_grad_norm</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
Maximum gradient norm (for gradient clipping).`,name:"max_grad_norm"},{anchor:"transformers.Seq2SeqTrainingArguments.num_train_epochs(float,",description:`<strong>num_train_epochs(<code>float</code>,</strong> <em>optional</em>, defaults to 3.0) &#x2014;
Total number of training epochs to perform (if not an integer, will perform the decimal part percents of
the last epoch before stopping training).`,name:"num_train_epochs(float,"},{anchor:"transformers.Seq2SeqTrainingArguments.max_steps",description:`<strong>max_steps</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
If set to a positive number, the total number of training steps to perform. Overrides <code>num_train_epochs</code>.
For a finite dataset, training is reiterated through the dataset (if all data is exhausted) until
<code>max_steps</code> is reached.`,name:"max_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.lr_scheduler_type",description:`<strong>lr_scheduler_type</strong> (<code>str</code> or <a href="/docs/transformers/v4.39.2/en/main_classes/optimizer_schedules#transformers.SchedulerType">SchedulerType</a>, <em>optional</em>, defaults to <code>&quot;linear&quot;</code>) &#x2014;
The scheduler type to use. See the documentation of <a href="/docs/transformers/v4.39.2/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/v4.39.2/en/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;steps&quot;</code>) &#x2014;
The logging strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No logging is done during training.</li>
<li><code>&quot;epoch&quot;</code>: Logging is done at the end of each epoch.</li>
<li><code>&quot;steps&quot;</code>: Logging is done every <code>logging_steps</code>.</li>
</ul>`,name:"logging_strategy"},{anchor:"transformers.Seq2SeqTrainingArguments.logging_first_step",description:`<strong>logging_first_step</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to log the first <code>global_step</code> or not.`,name:"logging_first_step"},{anchor:"transformers.Seq2SeqTrainingArguments.logging_steps",description:`<strong>logging_steps</strong> (<code>int</code> or <code>float</code>, <em>optional</em>, defaults to 500) &#x2014;
Number of update steps between two logs if <code>logging_strategy=&quot;steps&quot;</code>. Should be an integer or a float in
range <code>[0,1)</code>. If smaller than 1, will be interpreted as ratio of total training steps.`,name:"logging_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.logging_nan_inf_filter",description:`<strong>logging_nan_inf_filter</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to filter <code>nan</code> and <code>inf</code> losses for logging. If set to <code>True</code> the loss of every step that is <code>nan</code>
or <code>inf</code> is filtered and the average loss of the current logging window is taken instead.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p><code>logging_nan_inf_filter</code> only influences the logging of loss values, it does not change the behavior the
gradient is computed or applied to the model.</p>

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

					</div>`,name:"load_best_model_at_end"},{anchor:"transformers.Seq2SeqTrainingArguments.metric_for_best_model",description:`<strong>metric_for_best_model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Use in conjunction with <code>load_best_model_at_end</code> to specify the metric to use to compare two different
models. Must be the name of a metric returned by the evaluation with or without the prefix <code>&quot;eval_&quot;</code>. Will
default to <code>&quot;loss&quot;</code> if unspecified and <code>load_best_model_at_end=True</code> (to use the evaluation loss).</p>
<p>If you set this value, <code>greater_is_better</code> will default to <code>True</code>. Don&#x2019;t forget to set it to <code>False</code> if
your metric is better when lower.`,name:"metric_for_best_model"},{anchor:"transformers.Seq2SeqTrainingArguments.greater_is_better",description:`<strong>greater_is_better</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Use in conjunction with <code>load_best_model_at_end</code> and <code>metric_for_best_model</code> to specify if better models
should have a greater metric or not. Will default to:</p>
<ul>
<li><code>True</code> if <code>metric_for_best_model</code> is set to a value that isn&#x2019;t <code>&quot;loss&quot;</code> or <code>&quot;eval_loss&quot;</code>.</li>
<li><code>False</code> if <code>metric_for_best_model</code> is not set, or set to <code>&quot;loss&quot;</code> or <code>&quot;eval_loss&quot;</code>.</li>
</ul>`,name:"greater_is_better"},{anchor:"transformers.Seq2SeqTrainingArguments.ignore_data_skip",description:`<strong>ignore_data_skip</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When resuming training, whether or not to skip the epochs and batches to get the data loading at the same
stage as in the previous training. If set to <code>True</code>, the training will begin faster (as that skipping step
can take a long time) but will not yield the same results as the interrupted training would have.`,name:"ignore_data_skip"},{anchor:"transformers.Seq2SeqTrainingArguments.fsdp",description:`<strong>fsdp</strong> (<code>bool</code>, <code>str</code> or list of <code>FSDPOption</code>, <em>optional</em>, defaults to <code>&apos;&apos;</code>) &#x2014;
Use PyTorch Distributed Parallel Training (in distributed training only).</p>
<p>A list of options along the following:</p>
<ul>
<li><code>&quot;full_shard&quot;</code>: Shard parameters, gradients and optimizer states.</li>
<li><code>&quot;shard_grad_op&quot;</code>: Shard optimizer states and gradients.</li>
<li><code>&quot;hybrid_shard&quot;</code>: Apply <code>FULL_SHARD</code> within a node, and replicate parameters across nodes.</li>
<li><code>&quot;hybrid_shard_zero2&quot;</code>: Apply <code>SHARD_GRAD_OP</code> within a node, and replicate parameters across nodes.</li>
<li><code>&quot;offload&quot;</code>: Offload parameters and gradients to CPUs (only compatible with <code>&quot;full_shard&quot;</code> and
<code>&quot;shard_grad_op&quot;</code>).</li>
<li><code>&quot;auto_wrap&quot;</code>: Automatically recursively wrap layers with FSDP using <code>default_auto_wrap_policy</code>.</li>
</ul>`,name:"fsdp"},{anchor:"transformers.Seq2SeqTrainingArguments.fsdp_config",description:`<strong>fsdp_config</strong> (<code>str</code> or <code>dict</code>, <em>optional</em>) &#x2014;
Config to be used with fsdp (Pytorch Distributed Parallel Training). The value is either a location of
fsdp json config file (e.g., <code>fsdp_config.json</code>) or an already loaded json file as <code>dict</code>.</p>
<p>A List of config and its options:</p>
<ul>
<li>
<p>min_num_params (<code>int</code>, <em>optional</em>, defaults to <code>0</code>):
FSDP&#x2019;s minimum number of parameters for Default Auto Wrapping. (useful only when <code>fsdp</code> field is
passed).</p>
</li>
<li>
<p>transformer_layer_cls_to_wrap (<code>List[str]</code>, <em>optional</em>):
List of transformer layer class names (case-sensitive) to wrap, e.g, <code>BertLayer</code>, <code>GPTJBlock</code>,
<code>T5Block</code> &#x2026; (useful only when <code>fsdp</code> flag is passed).</p>
</li>
<li>
<p>backward_prefetch (<code>str</code>, <em>optional</em>)
FSDP&#x2019;s backward prefetch mode. Controls when to prefetch next set of parameters (useful only when
<code>fsdp</code> field is passed).</p>
<p>A list of options along the following:</p>
<ul>
<li><code>&quot;backward_pre&quot;</code> : Prefetches the next set of parameters before the current set of parameter&#x2019;s
gradient
computation.</li>
<li><code>&quot;backward_post&quot;</code> : This prefetches the next set of parameters after the current set of
parameter&#x2019;s
gradient computation.</li>
</ul>
</li>
<li>
<p>forward_prefetch (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
FSDP&#x2019;s forward prefetch mode (useful only when <code>fsdp</code> field is passed).
If <code>&quot;True&quot;</code>, then FSDP explicitly prefetches the next upcoming all-gather while executing in the
forward pass.</p>
</li>
<li>
<p>limit_all_gathers (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
FSDP&#x2019;s limit_all_gathers (useful only when <code>fsdp</code> field is passed).
If <code>&quot;True&quot;</code>, FSDP explicitly synchronizes the CPU thread to prevent too many in-flight
all-gathers.</p>
</li>
<li>
<p>use_orig_params (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>)
If <code>&quot;True&quot;</code>, allows non-uniform <code>requires_grad</code> during init, which means support for interspersed
frozen and trainable paramteres. Useful in cases such as parameter-efficient fine-tuning. Please
refer this
[blog](<a href="https://dev-discuss.pytorch.org/t/rethinking-pytorch-fully-sharded-data-parallel-fsdp-from-first-principles/1019" rel="nofollow">https://dev-discuss.pytorch.org/t/rethinking-pytorch-fully-sharded-data-parallel-fsdp-from-first-principles/1019</a></p>
</li>
<li>
<p>sync_module_states (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>)
If <code>&quot;True&quot;</code>, each individually wrapped FSDP unit will broadcast module parameters from rank 0 to
ensure they are the same across all ranks after initialization</p>
</li>
<li>
<p>activation_checkpointing (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
If <code>&quot;True&quot;</code>, activation checkpointing is a technique to reduce memory usage by clearing activations of
certain layers and recomputing them during a backward pass. Effectively, this trades extra
computation time for reduced memory usage.</p>
</li>
<li>
<p>xla (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether to use PyTorch/XLA Fully Sharded Data Parallel Training. This is an experimental feature
and its API may evolve in the future.</p>
</li>
<li>
<p>xla_fsdp_settings (<code>dict</code>, <em>optional</em>)
The value is a dictionary which stores the XLA FSDP wrapping parameters.</p>
<p>For a complete list of options, please see <a href="https://github.com/pytorch/xla/blob/master/torch_xla/distributed/fsdp/xla_fully_sharded_data_parallel.py" rel="nofollow">here</a>.</p>
</li>
<li>
<p>xla_fsdp_grad_ckpt (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Will use gradient checkpointing over each nested XLA FSDP wrapped layer. This setting can only be
used when the xla flag is set to true, and an auto wrapping policy is specified through
fsdp_min_num_params or fsdp_transformer_layer_cls_to_wrap.</p>
</li>
</ul>`,name:"fsdp_config"},{anchor:"transformers.Seq2SeqTrainingArguments.deepspeed",description:`<strong>deepspeed</strong> (<code>str</code> or <code>dict</code>, <em>optional</em>) &#x2014;
Use <a href="https://github.com/microsoft/deepspeed" rel="nofollow">Deepspeed</a>. This is an experimental feature and its API may
evolve in the future. The value is either the location of DeepSpeed json config file (e.g.,
<code>ds_config.json</code>) or an already loaded json file as a <code>dict</code>&#x201D;`,name:"deepspeed"},{anchor:"transformers.Seq2SeqTrainingArguments.accelerator_config",description:`<strong>accelerator_config</strong> (<code>str</code>, <code>dict</code>, or <code>AcceleratorConfig</code>, <em>optional</em>) &#x2014;
Config to be used with the internal <code>Accelerator</code> implementation. The value is either a location of
accelerator json config file (e.g., <code>accelerator_config.json</code>), an already loaded json file as <code>dict</code>,
or an instance of <code>AcceleratorConfig</code>.</p>
<p>A list of config and its options:</p>
<ul>
<li>split_batches (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether or not the accelerator should split the batches yielded by the dataloaders across the devices. If
<code>True</code> the actual batch size used will be the same on any kind of distributed processes, but it must be a
round multiple of the <code>num_processes</code> you are using. If <code>False</code>, actual batch size used will be the one set
in your script multiplied by the number of processes.</li>
<li>dispatch_batches (<code>bool</code>, <em>optional</em>):
If set to <code>True</code>, the dataloader prepared by the Accelerator is only iterated through on the main process
and then the batches are split and broadcast to each process. Will default to <code>True</code> for <code>DataLoader</code> whose
underlying dataset is an <code>IterableDataset</code>, <code>False</code> otherwise.</li>
<li>even_batches (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>):
If set to <code>True</code>, in cases where the total batch size across all processes does not exactly divide the
dataset, samples at the start of the dataset will be duplicated so the batch can be divided equally among
all workers.</li>
<li>use_seedable_sampler (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>):
Whether or not use a fully seedable random sampler (<code>accelerate.data_loader.SeedableRandomSampler</code>). Ensures
training results are fully reproducable using a different sampling technique. While seed-to-seed results
may differ, on average the differences are neglible when using multiple different seeds to compare. Should
also be ran with <code>~utils.set_seed</code> for the best results.</li>
</ul>`,name:"accelerator_config"},{anchor:"transformers.Seq2SeqTrainingArguments.label_smoothing_factor",description:`<strong>label_smoothing_factor</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The label smoothing factor to use. Zero means no label smoothing, otherwise the underlying onehot-encoded
labels are changed from 0s and 1s to <code>label_smoothing_factor/num_labels</code> and <code>1 - label_smoothing_factor + label_smoothing_factor/num_labels</code> respectively.`,name:"label_smoothing_factor"},{anchor:"transformers.Seq2SeqTrainingArguments.debug",description:`<strong>debug</strong> (<code>str</code> or list of <code>DebugOption</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
Enable one or more debug features. This is an experimental feature.</p>
<p>Possible options are:</p>
<ul>
<li><code>&quot;underflow_overflow&quot;</code>: detects overflow in model&#x2019;s input/outputs and reports the last frames that led to
the event</li>
<li><code>&quot;tpu_metrics_debug&quot;</code>: print debug metrics on TPU</li>
</ul>
<p>The options should be separated by whitespaces.`,name:"debug"},{anchor:"transformers.Seq2SeqTrainingArguments.optim",description:`<strong>optim</strong> (<code>str</code> or <code>training_args.OptimizerNames</code>, <em>optional</em>, defaults to <code>&quot;adamw_torch&quot;</code>) &#x2014;
The optimizer to use: adamw_hf, adamw_torch, adamw_torch_fused, adamw_apex_fused, adamw_anyprecision or
adafactor.`,name:"optim"},{anchor:"transformers.Seq2SeqTrainingArguments.optim_args",description:`<strong>optim_args</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Optional arguments that are supplied to AnyPrecisionAdamW.`,name:"optim_args"},{anchor:"transformers.Seq2SeqTrainingArguments.group_by_length",description:`<strong>group_by_length</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to group together samples of roughly the same length in the training dataset (to minimize
padding applied and be more efficient). Only useful if applying dynamic padding.`,name:"group_by_length"},{anchor:"transformers.Seq2SeqTrainingArguments.length_column_name",description:`<strong>length_column_name</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;length&quot;</code>) &#x2014;
Column name for precomputed lengths. If the column exists, grouping by length will use these values rather
than computing them on train startup. Ignored unless <code>group_by_length</code> is <code>True</code> and the dataset is an
instance of <code>Dataset</code>.`,name:"length_column_name"},{anchor:"transformers.Seq2SeqTrainingArguments.report_to",description:`<strong>report_to</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>, defaults to <code>&quot;all&quot;</code>) &#x2014;
The list of integrations to report the results and logs to. Supported platforms are <code>&quot;azure_ml&quot;</code>,
<code>&quot;clearml&quot;</code>, <code>&quot;codecarbon&quot;</code>, <code>&quot;comet_ml&quot;</code>, <code>&quot;dagshub&quot;</code>, <code>&quot;dvclive&quot;</code>, <code>&quot;flyte&quot;</code>, <code>&quot;mlflow&quot;</code>, <code>&quot;neptune&quot;</code>,
<code>&quot;tensorboard&quot;</code>, and <code>&quot;wandb&quot;</code>. Use <code>&quot;all&quot;</code> to report to all integrations installed, <code>&quot;none&quot;</code> for no
integrations.`,name:"report_to"},{anchor:"transformers.Seq2SeqTrainingArguments.ddp_find_unused_parameters",description:`<strong>ddp_find_unused_parameters</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>find_unused_parameters</code> passed to
<code>DistributedDataParallel</code>. Will default to <code>False</code> if gradient checkpointing is used, <code>True</code> otherwise.`,name:"ddp_find_unused_parameters"},{anchor:"transformers.Seq2SeqTrainingArguments.ddp_bucket_cap_mb",description:`<strong>ddp_bucket_cap_mb</strong> (<code>int</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>bucket_cap_mb</code> passed to <code>DistributedDataParallel</code>.`,name:"ddp_bucket_cap_mb"},{anchor:"transformers.Seq2SeqTrainingArguments.ddp_broadcast_buffers",description:`<strong>ddp_broadcast_buffers</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>broadcast_buffers</code> passed to
<code>DistributedDataParallel</code>. Will default to <code>False</code> if gradient checkpointing is used, <code>True</code> otherwise.`,name:"ddp_broadcast_buffers"},{anchor:"transformers.Seq2SeqTrainingArguments.dataloader_pin_memory",description:`<strong>dataloader_pin_memory</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether you want to pin memory in data loaders or not. Will default to <code>True</code>.`,name:"dataloader_pin_memory"},{anchor:"transformers.Seq2SeqTrainingArguments.dataloader_persistent_workers",description:`<strong>dataloader_persistent_workers</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, the data loader will not shut down the worker processes after a dataset has been consumed once.
This allows to maintain the workers Dataset instances alive. Can potentially speed up training, but will
increase RAM usage. Will default to <code>False</code>.`,name:"dataloader_persistent_workers"},{anchor:"transformers.Seq2SeqTrainingArguments.dataloader_prefetch_factor",description:`<strong>dataloader_prefetch_factor</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of batches loaded in advance by each worker.
2 means there will be a total of 2 * num_workers batches prefetched across all workers.`,name:"dataloader_prefetch_factor"},{anchor:"transformers.Seq2SeqTrainingArguments.skip_memory_metrics",description:`<strong>skip_memory_metrics</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to skip adding of memory profiler reports to metrics. This is skipped by default because it slows
down the training and evaluation speed.`,name:"skip_memory_metrics"},{anchor:"transformers.Seq2SeqTrainingArguments.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push the model to the Hub every time the model is saved. If this is activated,
<code>output_dir</code> will begin a git directory synced with the repo (determined by <code>hub_model_id</code>) and the content
will be pushed each time a save is triggered (depending on your <code>save_strategy</code>). Calling
<a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer.save_model">save_model()</a> will also trigger a push.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p>If <code>output_dir</code> exists, it needs to be a local clone of the repository to which the <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a> will be
pushed.</p>

					</div>`,name:"push_to_hub"},{anchor:"transformers.Seq2SeqTrainingArguments.resume_from_checkpoint",description:`<strong>resume_from_checkpoint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The path to a folder with a valid checkpoint for your model. This argument is not directly used by
<a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s intended to be used by your training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"resume_from_checkpoint"},{anchor:"transformers.Seq2SeqTrainingArguments.hub_model_id",description:`<strong>hub_model_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the repository to keep in sync with the local <em>output_dir</em>. It can be a simple model ID in
which case the model will be pushed in your namespace. Otherwise it should be the whole repository name,
for instance <code>&quot;user_name/model&quot;</code>, which allows you to push to an organization you are a member of with
<code>&quot;organization_name/model&quot;</code>. Will default to <code>user_name/output_dir_name</code> with <em>output_dir_name</em> being the
name of <code>output_dir</code>.</p>
<p>Will default to the name of <code>output_dir</code>.`,name:"hub_model_id"},{anchor:"transformers.Seq2SeqTrainingArguments.hub_strategy",description:`<strong>hub_strategy</strong> (<code>str</code> or <code>HubStrategy</code>, <em>optional</em>, defaults to <code>&quot;every_save&quot;</code>) &#x2014;
Defines the scope of what is pushed to the Hub and when. Possible values are:</p>
<ul>
<li><code>&quot;end&quot;</code>: push the model, its configuration, the tokenizer (if passed along to the <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>) and a
draft of a model card when the <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer.save_model">save_model()</a> method is called.</li>
<li><code>&quot;every_save&quot;</code>: push the model, its configuration, the tokenizer (if passed along to the <a href="/docs/transformers/v4.39.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>) and
a draft of a model card each time there is a model save. The pushes are asynchronous to not block
training, and in case the save are very frequent, a new push is only attempted if the previous one is
finished. A last push is made with the final model at the end of training.</li>
<li><code>&quot;checkpoint&quot;</code>: like <code>&quot;every_save&quot;</code> but the latest checkpoint is also pushed in a subfolder named
last-checkpoint, allowing you to resume training easily with
<code>trainer.train(resume_from_checkpoint=&quot;last-checkpoint&quot;)</code>.</li>
<li><code>&quot;all_checkpoints&quot;</code>: like <code>&quot;checkpoint&quot;</code> but all checkpoints are pushed like they appear in the output
folder (so you will get one checkpoint folder per folder in your final repository)</li>
</ul>`,name:"hub_strategy"},{anchor:"transformers.Seq2SeqTrainingArguments.hub_token",description:`<strong>hub_token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to use to push the model to the Hub. Will default to the token in the cache folder obtained with
<code>huggingface-cli login</code>.`,name:"hub_token"},{anchor:"transformers.Seq2SeqTrainingArguments.hub_private_repo",description:`<strong>hub_private_repo</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, the Hub repo will be set to private.`,name:"hub_private_repo"},{anchor:"transformers.Seq2SeqTrainingArguments.hub_always_push",description:`<strong>hub_always_push</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Unless this is <code>True</code>, the <code>Trainer</code> will skip pushing a checkpoint when the previous push is not finished.`,name:"hub_always_push"},{anchor:"transformers.Seq2SeqTrainingArguments.gradient_checkpointing",description:`<strong>gradient_checkpointing</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, use gradient checkpointing to save memory at the expense of slower backward pass.`,name:"gradient_checkpointing"},{anchor:"transformers.Seq2SeqTrainingArguments.gradient_checkpointing_kwargs",description:`<strong>gradient_checkpointing_kwargs</strong> (<code>dict</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Key word arguments to be passed to the <code>gradient_checkpointing_enable</code> method.`,name:"gradient_checkpointing_kwargs"},{anchor:"transformers.Seq2SeqTrainingArguments.include_inputs_for_metrics",description:`<strong>include_inputs_for_metrics</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the inputs will be passed to the <code>compute_metrics</code> function. This is intended for metrics
that need inputs, predictions and references for scoring calculation in Metric class.`,name:"include_inputs_for_metrics"},{anchor:"transformers.Seq2SeqTrainingArguments.auto_find_batch_size",description:`<strong>auto_find_batch_size</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to find a batch size that will fit into memory automatically through exponential decay, avoiding
CUDA Out-of-Memory errors. Requires accelerate to be installed (<code>pip install accelerate</code>)`,name:"auto_find_batch_size"},{anchor:"transformers.Seq2SeqTrainingArguments.full_determinism",description:`<strong>full_determinism</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, <a href="/docs/transformers/v4.39.2/en/internal/trainer_utils#transformers.enable_full_determinism">enable_full_determinism()</a> is called instead of <a href="/docs/transformers/v4.39.2/en/internal/trainer_utils#transformers.set_seed">set_seed()</a> to ensure reproducible results in
distributed training. Important: this will negatively impact the performance, so only use it for debugging.`,name:"full_determinism"},{anchor:"transformers.Seq2SeqTrainingArguments.torchdynamo",description:`<strong>torchdynamo</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If set, the backend compiler for TorchDynamo. Possible choices are <code>&quot;eager&quot;</code>, <code>&quot;aot_eager&quot;</code>, <code>&quot;inductor&quot;</code>,
<code>&quot;nvfuser&quot;</code>, <code>&quot;aot_nvfuser&quot;</code>, <code>&quot;aot_cudagraphs&quot;</code>, <code>&quot;ofi&quot;</code>, <code>&quot;fx2trt&quot;</code>, <code>&quot;onnxrt&quot;</code> and <code>&quot;ipex&quot;</code>.`,name:"torchdynamo"},{anchor:"transformers.Seq2SeqTrainingArguments.ray_scope",description:`<strong>ray_scope</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;last&quot;</code>) &#x2014;
The scope to use when doing hyperparameter search with Ray. By default, <code>&quot;last&quot;</code> will be used. Ray will
then use the last checkpoint of all trials, compare those, and select the best one. However, other options
are also available. See the <a href="https://docs.ray.io/en/latest/tune/api_docs/analysis.html#ray.tune.ExperimentAnalysis.get_best_trial" rel="nofollow">Ray documentation</a> for
more options.`,name:"ray_scope"},{anchor:"transformers.Seq2SeqTrainingArguments.ddp_timeout",description:`<strong>ddp_timeout</strong> (<code>int</code>, <em>optional</em>, defaults to 1800) &#x2014;
The timeout for <code>torch.distributed.init_process_group</code> calls, used to avoid GPU socket timeouts when
performing slow operations in distributed runnings. Please refer the [PyTorch documentation]
(<a href="https://pytorch.org/docs/stable/distributed.html#torch.distributed.init_process_group" rel="nofollow">https://pytorch.org/docs/stable/distributed.html#torch.distributed.init_process_group</a>) for more
information.`,name:"ddp_timeout"},{anchor:"transformers.Seq2SeqTrainingArguments.use_mps_device",description:`<strong>use_mps_device</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
This argument is deprecated.<code>mps</code> device will be used if it is available similar to <code>cuda</code> device.`,name:"use_mps_device"},{anchor:"transformers.Seq2SeqTrainingArguments.torch_compile",description:`<strong>torch_compile</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to compile the model using PyTorch 2.0
<a href="https://pytorch.org/get-started/pytorch-2.0/" rel="nofollow"><code>torch.compile</code></a>.</p>
<p>This will use the best defaults for the <a href="https://pytorch.org/docs/stable/generated/torch.compile.html?highlight=torch+compile#torch.compile" rel="nofollow"><code>torch.compile</code>
API</a>.
You can customize the defaults with the argument <code>torch_compile_backend</code> and <code>torch_compile_mode</code> but we
don&#x2019;t guarantee any of them will work as the support is progressively rolled in in PyTorch.</p>
<p>This flag and the whole compile API is experimental and subject to change in future releases.`,name:"torch_compile"},{anchor:"transformers.Seq2SeqTrainingArguments.torch_compile_backend",description:`<strong>torch_compile_backend</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The backend to use in <code>torch.compile</code>. If set to any value, <code>torch_compile</code> will be set to <code>True</code>.</p>
<p>Refer to the PyTorch doc for possible values and note that they may change across PyTorch versions.</p>
<p>This flag is experimental and subject to change in future releases.`,name:"torch_compile_backend"},{anchor:"transformers.Seq2SeqTrainingArguments.torch_compile_mode",description:`<strong>torch_compile_mode</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The mode to use in <code>torch.compile</code>. If set to any value, <code>torch_compile</code> will be set to <code>True</code>.</p>
<p>Refer to the PyTorch doc for possible values and note that they may change across PyTorch versions.</p>
<p>This flag is experimental and subject to change in future releases.`,name:"torch_compile_mode"},{anchor:"transformers.Seq2SeqTrainingArguments.split_batches",description:`<strong>split_batches</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the accelerator should split the batches yielded by the dataloaders across the devices
during distributed training. If</p>
<p>set to <code>True</code>, the actual batch size used will be the same on any kind of distributed processes, but it
must be a</p>
<p>round multiple of the number of processes you are using (such as GPUs).`,name:"split_batches"},{anchor:"transformers.Seq2SeqTrainingArguments.include_tokens_per_second",description:`<strong>include_tokens_per_second</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to compute the number of tokens per second per device for training speed metrics.</p>
<p>This will iterate over the entire training dataloader once beforehand,</p>
<p>and will slow down the entire process.`,name:"include_tokens_per_second"},{anchor:"transformers.Seq2SeqTrainingArguments.include_num_input_tokens_seen",description:`<strong>include_num_input_tokens_seen</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to track the number of input tokens seen throughout training.</p>
<p>May be slower in distributed training as gather operations must be called.`,name:"include_num_input_tokens_seen"},{anchor:"transformers.Seq2SeqTrainingArguments.neftune_noise_alpha",description:`<strong>neftune_noise_alpha</strong> (<code>Optional[float]</code>) &#x2014;
If not <code>None</code>, this will activate NEFTune noise embeddings. This can drastically improve model performance
for instruction fine-tuning. Check out the <a href="https://arxiv.org/abs/2310.05914" rel="nofollow">original paper</a> and the
<a href="https://github.com/neelsjain/NEFTune" rel="nofollow">original code</a>. Support transformers <code>PreTrainedModel</code> and also
<code>PeftModel</code> from peft.`,name:"neftune_noise_alpha"},{anchor:"transformers.Seq2SeqTrainingArguments.optim_target_modules",description:`<strong>optim_target_modules</strong> (<code>Union[str, List[str]]</code>, <em>optional</em>) &#x2014;
The target modules to optimize, i.e. the module names that you would like to train, right now this is used only for GaLore algorithm
<a href="https://arxiv.org/abs/2403.03507" rel="nofollow">https://arxiv.org/abs/2403.03507</a>
See: <a href="https://github.com/jiaweizzhao/GaLore" rel="nofollow">https://github.com/jiaweizzhao/GaLore</a> for more details. You need to make sure to pass a valid GaloRe
optimizer, e.g. one of: &#x201C;galore_adamw&#x201D;, &#x201C;galore_adamw_8bit&#x201D;, &#x201C;galore_adafactor&#x201D; and make sure that the target modules are <code>nn.Linear</code> modules
only.`,name:"optim_target_modules"},{anchor:"transformers.Seq2SeqTrainingArguments.sortish_sampler",description:`<strong>sortish_sampler</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use a <em>sortish sampler</em> or not. Only possible if the underlying datasets are <em>Seq2SeqDataset</em>
for now but will become generally available in the near future.</p>
<p>It sorts the inputs according to lengths in order to minimize the padding size, with a bit of randomness
for the training set.`,name:"sortish_sampler"},{anchor:"transformers.Seq2SeqTrainingArguments.predict_with_generate",description:`<strong>predict_with_generate</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use generate to calculate generative metrics (ROUGE, BLEU).`,name:"predict_with_generate"},{anchor:"transformers.Seq2SeqTrainingArguments.generation_max_length",description:`<strong>generation_max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The <code>max_length</code> to use on each evaluation loop when <code>predict_with_generate=True</code>. Will default to the
<code>max_length</code> value of the model configuration.`,name:"generation_max_length"},{anchor:"transformers.Seq2SeqTrainingArguments.generation_num_beams",description:`<strong>generation_num_beams</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The <code>num_beams</code> to use on each evaluation loop when <code>predict_with_generate=True</code>. Will default to the
<code>num_beams</code> value of the model configuration.`,name:"generation_num_beams"},{anchor:"transformers.Seq2SeqTrainingArguments.generation_config",description:`<strong>generation_config</strong> (<code>str</code> or <code>Path</code> or <a href="/docs/transformers/v4.39.2/en/main_classes/text_generation#transformers.GenerationConfig">GenerationConfig</a>, <em>optional</em>) &#x2014;
Allows to load a <a href="/docs/transformers/v4.39.2/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/v4.39.2/en/main_classes/text_generation#transformers.GenerationConfig.save_pretrained">save_pretrained()</a> method, e.g., <code>./my_model_directory/</code>.</li>
<li>a <a href="/docs/transformers/v4.39.2/en/main_classes/text_generation#transformers.GenerationConfig">GenerationConfig</a> object.</li>
</ul>`,name:"generation_config"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/training_args_seq2seq.py#L28"}}),Co=new q({props:{name:"to_dict",anchor:"transformers.Seq2SeqTrainingArguments.to_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/training_args_seq2seq.py#L86"}}),{c(){i=r("meta"),$=o(),m=r("p"),c=o(),p(x.$$.fragment),s=o(),k=r("p"),k.innerHTML=El,oa=o(),vt=r("p"),vt.innerHTML=Bl,na=o(),p(Se.$$.fragment),ra=o(),p(yt.$$.fragment),aa=o(),b=r("div"),p(Tt.$$.fragment),Ca=o(),Lo=r("p"),Lo.textContent=Gl,Pa=o(),No=r("p"),No.textContent=Vl,Ma=o(),jo=r("ul"),jo.innerHTML=Xl,za=o(),Ce=r("div"),p(wt.$$.fragment),Fa=o(),Oo=r("p"),Oo.innerHTML=Yl,Wa=o(),Pe=r("div"),p(xt.$$.fragment),Ia=o(),Ho=r("p"),Ho.innerHTML=Zl,Da=o(),Y=r("div"),p(qt.$$.fragment),Ua=o(),Ro=r("p"),Ro.textContent=Ql,La=o(),Jo=r("p"),Jo.textContent=Kl,Na=o(),Me=r("div"),p($t.$$.fragment),ja=o(),Eo=r("p"),Eo.textContent=ed,Oa=o(),ze=r("div"),p(kt.$$.fragment),Ha=o(),Bo=r("p"),Bo.innerHTML=td,Ra=o(),Z=r("div"),p(At.$$.fragment),Ja=o(),Go=r("p"),Go.textContent=od,Ea=o(),Vo=r("p"),Vo.innerHTML=nd,Ba=o(),Q=r("div"),p(St.$$.fragment),Ga=o(),Xo=r("p"),Xo.textContent=rd,Va=o(),Yo=r("p"),Yo.innerHTML=ad,Xa=o(),Fe=r("div"),p(Ct.$$.fragment),Ya=o(),Zo=r("p"),Zo.textContent=sd,Za=o(),L=r("div"),p(Pt.$$.fragment),Qa=o(),Qo=r("p"),Qo.textContent=id,Ka=o(),Ko=r("p"),Ko.innerHTML=ld,es=o(),en=r("p"),en.textContent=dd,ts=o(),K=r("div"),p(Mt.$$.fragment),os=o(),tn=r("p"),tn.innerHTML=cd,ns=o(),on=r("p"),on.textContent=md,rs=o(),We=r("div"),p(zt.$$.fragment),as=o(),nn=r("p"),nn.innerHTML=pd,ss=o(),ee=r("div"),p(Ft.$$.fragment),is=o(),rn=r("p"),rn.textContent=ud,ls=o(),an=r("p"),an.textContent=gd,ds=o(),te=r("div"),p(Wt.$$.fragment),cs=o(),sn=r("p"),sn.innerHTML=hd,ms=o(),ln=r("p"),ln.textContent=fd,ps=o(),Ie=r("div"),p(It.$$.fragment),us=o(),dn=r("p"),dn.textContent=_d,gs=o(),oe=r("div"),p(Dt.$$.fragment),hs=o(),cn=r("p"),cn.innerHTML=bd,fs=o(),mn=r("p"),mn.textContent=vd,_s=o(),N=r("div"),p(Ut.$$.fragment),bs=o(),pn=r("p"),pn.innerHTML=yd,vs=o(),un=r("p"),un.innerHTML=Td,ys=o(),gn=r("p"),gn.textContent=wd,Ts=o(),ne=r("div"),p(Lt.$$.fragment),ws=o(),hn=r("p"),hn.innerHTML=xd,xs=o(),p(De.$$.fragment),qs=o(),Ue=r("div"),p(Nt.$$.fragment),$s=o(),fn=r("p"),fn.innerHTML=qd,ks=o(),Le=r("div"),p(jt.$$.fragment),As=o(),_n=r("p"),_n.textContent=$d,Ss=o(),Ne=r("div"),p(Ot.$$.fragment),Cs=o(),bn=r("p"),bn.innerHTML=kd,Ps=o(),re=r("div"),p(Ht.$$.fragment),Ms=o(),vn=r("p"),vn.innerHTML=Ad,zs=o(),yn=r("p"),yn.textContent=Sd,Fs=o(),P=r("div"),p(Rt.$$.fragment),Ws=o(),Tn=r("p"),Tn.textContent=Cd,Is=o(),wn=r("p"),wn.textContent=Pd,Ds=o(),xn=r("p"),xn.textContent=Md,Us=o(),qn=r("p"),qn.innerHTML=zd,Ls=o(),p(je.$$.fragment),Ns=o(),$n=r("p"),$n.innerHTML=Fd,js=o(),kn=r("ul"),kn.innerHTML=Wd,Os=o(),An=r("p"),An.textContent=Id,Hs=o(),Sn=r("p"),Sn.textContent=Dd,Rs=o(),Cn=r("p"),Cn.innerHTML=Ud,Js=o(),Pn=r("p"),Pn.innerHTML=Ld,Es=o(),Mn=r("p"),Mn.innerHTML=Nd,Bs=o(),zn=r("p"),zn.innerHTML=jd,Gs=o(),Fn=r("p"),Fn.innerHTML=Od,Vs=o(),Wn=r("p"),Wn.textContent=Hd,Xs=o(),Oe=r("div"),p(Jt.$$.fragment),Ys=o(),In=r("p"),In.textContent=Rd,Zs=o(),He=r("div"),p(Et.$$.fragment),Qs=o(),Dn=r("p"),Dn.innerHTML=Jd,Ks=o(),Re=r("div"),p(Bt.$$.fragment),ei=o(),Un=r("p"),Un.innerHTML=Ed,ti=o(),ae=r("div"),p(Gt.$$.fragment),oi=o(),Ln=r("p"),Ln.innerHTML=Bd,ni=o(),Nn=r("p"),Nn.innerHTML=Gd,ri=o(),W=r("div"),p(Vt.$$.fragment),ai=o(),jn=r("p"),jn.textContent=Vd,si=o(),On=r("p"),On.innerHTML=Xd,ii=o(),p(Je.$$.fragment),li=o(),Hn=r("p"),Hn.innerHTML=Yd,di=o(),Rn=r("ul"),Rn.innerHTML=Zd,ci=o(),se=r("div"),p(Xt.$$.fragment),mi=o(),Jn=r("p"),Jn.innerHTML=Qd,pi=o(),En=r("p"),En.textContent=Kd,ui=o(),ie=r("div"),p(Yt.$$.fragment),gi=o(),Bn=r("p"),Bn.innerHTML=ec,hi=o(),Gn=r("p"),Gn.textContent=tc,fi=o(),Ee=r("div"),p(Zt.$$.fragment),_i=o(),Vn=r("p"),Vn.textContent=oc,bi=o(),Be=r("div"),p(Qt.$$.fragment),vi=o(),Xn=r("p"),Xn.innerHTML=nc,yi=o(),Ge=r("div"),p(Kt.$$.fragment),Ti=o(),Yn=r("p"),Yn.innerHTML=rc,wi=o(),j=r("div"),p(eo.$$.fragment),xi=o(),Zn=r("p"),Zn.innerHTML=ac,qi=o(),Qn=r("p"),Qn.textContent=sc,$i=o(),Kn=r("p"),Kn.innerHTML=ic,ki=o(),le=r("div"),p(to.$$.fragment),Ai=o(),er=r("p"),er.innerHTML=lc,Si=o(),tr=r("p"),tr.textContent=dc,Ci=o(),de=r("div"),p(oo.$$.fragment),Pi=o(),or=r("p"),or.textContent=cc,Mi=o(),nr=r("p"),nr.textContent=mc,zi=o(),Ve=r("div"),p(no.$$.fragment),Fi=o(),rr=r("p"),rr.textContent=pc,Wi=o(),ce=r("div"),p(ro.$$.fragment),Ii=o(),ar=r("p"),ar.textContent=uc,Di=o(),sr=r("p"),sr.textContent=gc,sa=o(),p(ao.$$.fragment),ia=o(),G=r("div"),p(so.$$.fragment),Ui=o(),O=r("div"),p(io.$$.fragment),Li=o(),ir=r("p"),ir.textContent=hc,Ni=o(),lr=r("p"),lr.innerHTML=fc,ji=o(),dr=r("p"),dr.textContent=_c,Oi=o(),I=r("div"),p(lo.$$.fragment),Hi=o(),cr=r("p"),cr.textContent=bc,Ri=o(),mr=r("p"),mr.innerHTML=vc,Ji=o(),p(Xe.$$.fragment),Ei=o(),pr=r("p"),pr.innerHTML=yc,Bi=o(),ur=r("ul"),ur.innerHTML=Tc,la=o(),p(co.$$.fragment),da=o(),S=r("div"),p(mo.$$.fragment),Gi=o(),gr=r("p"),gr.innerHTML=wc,Vi=o(),hr=r("p"),hr.innerHTML=xc,Xi=o(),D=r("div"),p(po.$$.fragment),Yi=o(),fr=r("p"),fr.textContent=qc,Zi=o(),_r=r("p"),_r.innerHTML=$c,Qi=o(),br=r("p"),br.innerHTML=kc,Ki=o(),vr=r("p"),vr.innerHTML=Ac,el=o(),Ye=r("div"),p(uo.$$.fragment),tl=o(),yr=r("p"),yr.textContent=Sc,ol=o(),me=r("div"),p(go.$$.fragment),nl=o(),Tr=r("p"),Tr.textContent=Cc,rl=o(),wr=r("p"),wr.innerHTML=Pc,al=o(),pe=r("div"),p(ho.$$.fragment),sl=o(),xr=r("p"),xr.textContent=Mc,il=o(),p(Ze.$$.fragment),ll=o(),ue=r("div"),p(fo.$$.fragment),dl=o(),qr=r("p"),qr.textContent=zc,cl=o(),p(Qe.$$.fragment),ml=o(),ge=r("div"),p(_o.$$.fragment),pl=o(),$r=r("p"),$r.textContent=Fc,ul=o(),p(Ke.$$.fragment),gl=o(),he=r("div"),p(bo.$$.fragment),hl=o(),kr=r("p"),kr.textContent=Wc,fl=o(),p(et.$$.fragment),_l=o(),fe=r("div"),p(vo.$$.fragment),bl=o(),Ar=r("p"),Ar.textContent=Ic,vl=o(),p(tt.$$.fragment),yl=o(),H=r("div"),p(yo.$$.fragment),Tl=o(),Sr=r("p"),Sr.textContent=Dc,wl=o(),p(ot.$$.fragment),xl=o(),p(nt.$$.fragment),ql=o(),_e=r("div"),p(To.$$.fragment),$l=o(),Cr=r("p"),Cr.textContent=Uc,kl=o(),p(rt.$$.fragment),Al=o(),R=r("div"),p(wo.$$.fragment),Sl=o(),Pr=r("p"),Pr.textContent=Lc,Cl=o(),p(at.$$.fragment),Pl=o(),p(st.$$.fragment),Ml=o(),J=r("div"),p(xo.$$.fragment),zl=o(),Mr=r("p"),Mr.textContent=Nc,Fl=o(),p(it.$$.fragment),Wl=o(),p(lt.$$.fragment),Il=o(),dt=r("div"),p(qo.$$.fragment),Dl=o(),zr=r("p"),zr.innerHTML=jc,Ul=o(),ct=r("div"),p($o.$$.fragment),Ll=o(),Fr=r("p"),Fr.textContent=Oc,Nl=o(),mt=r("div"),p(ko.$$.fragment),jl=o(),Wr=r("p"),Wr.textContent=Hc,ca=o(),p(Ao.$$.fragment),ma=o(),U=r("div"),p(So.$$.fragment),Ol=o(),Ir=r("p"),Ir.innerHTML=Rc,Hl=o(),Dr=r("p"),Dr.innerHTML=Jc,Rl=o(),pt=r("div"),p(Co.$$.fragment),Jl=o(),Ur=r("p"),Ur.innerHTML=Ec,pa=o(),ea=r("p"),this.h()},l(t){const y=Yc("svelte-u9bgzb",document.head);i=a(y,"META",{name:!0,content:!0}),y.forEach(d),$=n(t),m=a(t,"P",{}),T(m).forEach(d),c=n(t),u(x.$$.fragment,t),s=n(t),k=a(t,"P",{"data-svelte-h":!0}),l(k)!=="svelte-hgda53"&&(k.innerHTML=El),oa=n(t),vt=a(t,"P",{"data-svelte-h":!0}),l(vt)!=="svelte-tgtdm4"&&(vt.innerHTML=Bl),na=n(t),u(Se.$$.fragment,t),ra=n(t),u(yt.$$.fragment,t),aa=n(t),b=a(t,"DIV",{class:!0});var v=T(b);u(Tt.$$.fragment,v),Ca=n(v),Lo=a(v,"P",{"data-svelte-h":!0}),l(Lo)!=="svelte-xa06uv"&&(Lo.textContent=Gl),Pa=n(v),No=a(v,"P",{"data-svelte-h":!0}),l(No)!=="svelte-1tbd587"&&(No.textContent=Vl),Ma=n(v),jo=a(v,"UL",{"data-svelte-h":!0}),l(jo)!=="svelte-11z8357"&&(jo.innerHTML=Xl),za=n(v),Ce=a(v,"DIV",{class:!0});var Po=T(Ce);u(wt.$$.fragment,Po),Fa=n(Po),Oo=a(Po,"P",{"data-svelte-h":!0}),l(Oo)!=="svelte-8yj0o4"&&(Oo.innerHTML=Yl),Po.forEach(d),Wa=n(v),Pe=a(v,"DIV",{class:!0});var Mo=T(Pe);u(xt.$$.fragment,Mo),Ia=n(Mo),Ho=a(Mo,"P",{"data-svelte-h":!0}),l(Ho)!=="svelte-9kwitf"&&(Ho.innerHTML=Zl),Mo.forEach(d),Da=n(v),Y=a(v,"DIV",{class:!0});var Te=T(Y);u(qt.$$.fragment,Te),Ua=n(Te),Ro=a(Te,"P",{"data-svelte-h":!0}),l(Ro)!=="svelte-1feheyo"&&(Ro.textContent=Ql),La=n(Te),Jo=a(Te,"P",{"data-svelte-h":!0}),l(Jo)!=="svelte-1be1oij"&&(Jo.textContent=Kl),Te.forEach(d),Na=n(v),Me=a(v,"DIV",{class:!0});var zo=T(Me);u($t.$$.fragment,zo),ja=n(zo),Eo=a(zo,"P",{"data-svelte-h":!0}),l(Eo)!=="svelte-1agg8ch"&&(Eo.textContent=ed),zo.forEach(d),Oa=n(v),ze=a(v,"DIV",{class:!0});var Fo=T(ze);u(kt.$$.fragment,Fo),Ha=n(Fo),Bo=a(Fo,"P",{"data-svelte-h":!0}),l(Bo)!=="svelte-1mh859w"&&(Bo.innerHTML=td),Fo.forEach(d),Ra=n(v),Z=a(v,"DIV",{class:!0});var we=T(Z);u(At.$$.fragment,we),Ja=n(we),Go=a(we,"P",{"data-svelte-h":!0}),l(Go)!=="svelte-1w438iv"&&(Go.textContent=od),Ea=n(we),Vo=a(we,"P",{"data-svelte-h":!0}),l(Vo)!=="svelte-nadplw"&&(Vo.innerHTML=nd),we.forEach(d),Ba=n(v),Q=a(v,"DIV",{class:!0});var xe=T(Q);u(St.$$.fragment,xe),Ga=n(xe),Xo=a(xe,"P",{"data-svelte-h":!0}),l(Xo)!=="svelte-wdco14"&&(Xo.textContent=rd),Va=n(xe),Yo=a(xe,"P",{"data-svelte-h":!0}),l(Yo)!=="svelte-zasfqr"&&(Yo.innerHTML=ad),xe.forEach(d),Xa=n(v),Fe=a(v,"DIV",{class:!0});var Wo=T(Fe);u(Ct.$$.fragment,Wo),Ya=n(Wo),Zo=a(Wo,"P",{"data-svelte-h":!0}),l(Zo)!=="svelte-qi4mtl"&&(Zo.textContent=sd),Wo.forEach(d),Za=n(v),L=a(v,"DIV",{class:!0});var V=T(L);u(Pt.$$.fragment,V),Qa=n(V),Qo=a(V,"P",{"data-svelte-h":!0}),l(Qo)!=="svelte-1mcvryw"&&(Qo.textContent=id),Ka=n(V),Ko=a(V,"P",{"data-svelte-h":!0}),l(Ko)!=="svelte-1339kj6"&&(Ko.innerHTML=ld),es=n(V),en=a(V,"P",{"data-svelte-h":!0}),l(en)!=="svelte-1h30111"&&(en.textContent=dd),V.forEach(d),ts=n(v),K=a(v,"DIV",{class:!0});var qe=T(K);u(Mt.$$.fragment,qe),os=n(qe),tn=a(qe,"P",{"data-svelte-h":!0}),l(tn)!=="svelte-1v5gmc1"&&(tn.innerHTML=cd),ns=n(qe),on=a(qe,"P",{"data-svelte-h":!0}),l(on)!=="svelte-1tyo99t"&&(on.textContent=md),qe.forEach(d),rs=n(v),We=a(v,"DIV",{class:!0});var Io=T(We);u(zt.$$.fragment,Io),as=n(Io),nn=a(Io,"P",{"data-svelte-h":!0}),l(nn)!=="svelte-olx78x"&&(nn.innerHTML=pd),Io.forEach(d),ss=n(v),ee=a(v,"DIV",{class:!0});var $e=T(ee);u(Ft.$$.fragment,$e),is=n($e),rn=a($e,"P",{"data-svelte-h":!0}),l(rn)!=="svelte-yguuq6"&&(rn.textContent=ud),ls=n($e),an=a($e,"P",{"data-svelte-h":!0}),l(an)!=="svelte-452p7a"&&(an.textContent=gd),$e.forEach(d),ds=n(v),te=a(v,"DIV",{class:!0});var ke=T(te);u(Wt.$$.fragment,ke),cs=n(ke),sn=a(ke,"P",{"data-svelte-h":!0}),l(sn)!=="svelte-xesobz"&&(sn.innerHTML=hd),ms=n(ke),ln=a(ke,"P",{"data-svelte-h":!0}),l(ln)!=="svelte-1v6sccr"&&(ln.textContent=fd),ke.forEach(d),ps=n(v),Ie=a(v,"DIV",{class:!0});var Do=T(Ie);u(It.$$.fragment,Do),us=n(Do),dn=a(Do,"P",{"data-svelte-h":!0}),l(dn)!=="svelte-1enq7q"&&(dn.textContent=_d),Do.forEach(d),gs=n(v),oe=a(v,"DIV",{class:!0});var Ae=T(oe);u(Dt.$$.fragment,Ae),hs=n(Ae),cn=a(Ae,"P",{"data-svelte-h":!0}),l(cn)!=="svelte-upvtbd"&&(cn.innerHTML=bd),fs=n(Ae),mn=a(Ae,"P",{"data-svelte-h":!0}),l(mn)!=="svelte-1v6sccr"&&(mn.textContent=vd),Ae.forEach(d),_s=n(v),N=a(v,"DIV",{class:!0});var X=T(N);u(Ut.$$.fragment,X),bs=n(X),pn=a(X,"P",{"data-svelte-h":!0}),l(pn)!=="svelte-dkae9b"&&(pn.innerHTML=yd),vs=n(X),un=a(X,"P",{"data-svelte-h":!0}),l(un)!=="svelte-2uvyde"&&(un.innerHTML=Td),ys=n(X),gn=a(X,"P",{"data-svelte-h":!0}),l(gn)!=="svelte-1v6sccr"&&(gn.textContent=wd),X.forEach(d),Ts=n(v),ne=a(v,"DIV",{class:!0});var Lr=T(ne);u(Lt.$$.fragment,Lr),ws=n(Lr),hn=a(Lr,"P",{"data-svelte-h":!0}),l(hn)!=="svelte-mf62ka"&&(hn.innerHTML=xd),xs=n(Lr),u(De.$$.fragment,Lr),Lr.forEach(d),qs=n(v),Ue=a(v,"DIV",{class:!0});var ga=T(Ue);u(Nt.$$.fragment,ga),$s=n(ga),fn=a(ga,"P",{"data-svelte-h":!0}),l(fn)!=="svelte-rjlxwe"&&(fn.innerHTML=qd),ga.forEach(d),ks=n(v),Le=a(v,"DIV",{class:!0});var ha=T(Le);u(jt.$$.fragment,ha),As=n(ha),_n=a(ha,"P",{"data-svelte-h":!0}),l(_n)!=="svelte-16imdke"&&(_n.textContent=$d),ha.forEach(d),Ss=n(v),Ne=a(v,"DIV",{class:!0});var fa=T(Ne);u(Ot.$$.fragment,fa),Cs=n(fa),bn=a(fa,"P",{"data-svelte-h":!0}),l(bn)!=="svelte-1s7jdq8"&&(bn.innerHTML=kd),fa.forEach(d),Ps=n(v),re=a(v,"DIV",{class:!0});var Nr=T(re);u(Ht.$$.fragment,Nr),Ms=n(Nr),vn=a(Nr,"P",{"data-svelte-h":!0}),l(vn)!=="svelte-19fk55y"&&(vn.innerHTML=Ad),zs=n(Nr),yn=a(Nr,"P",{"data-svelte-h":!0}),l(yn)!=="svelte-1tz9xhn"&&(yn.textContent=Sd),Nr.forEach(d),Fs=n(v),P=a(v,"DIV",{class:!0});var z=T(P);u(Rt.$$.fragment,z),Ws=n(z),Tn=a(z,"P",{"data-svelte-h":!0}),l(Tn)!=="svelte-1q4m3ey"&&(Tn.textContent=Cd),Is=n(z),wn=a(z,"P",{"data-svelte-h":!0}),l(wn)!=="svelte-5vrny9"&&(wn.textContent=Pd),Ds=n(z),xn=a(z,"P",{"data-svelte-h":!0}),l(xn)!=="svelte-k63f70"&&(xn.textContent=Md),Us=n(z),qn=a(z,"P",{"data-svelte-h":!0}),l(qn)!=="svelte-y2g1lw"&&(qn.innerHTML=zd),Ls=n(z),u(je.$$.fragment,z),Ns=n(z),$n=a(z,"P",{"data-svelte-h":!0}),l($n)!=="svelte-ny4g3p"&&($n.innerHTML=Fd),js=n(z),kn=a(z,"UL",{"data-svelte-h":!0}),l(kn)!=="svelte-9luch7"&&(kn.innerHTML=Wd),Os=n(z),An=a(z,"P",{"data-svelte-h":!0}),l(An)!=="svelte-100tlvw"&&(An.textContent=Id),Hs=n(z),Sn=a(z,"P",{"data-svelte-h":!0}),l(Sn)!=="svelte-1d82c6u"&&(Sn.textContent=Dd),Rs=n(z),Cn=a(z,"P",{"data-svelte-h":!0}),l(Cn)!=="svelte-d1rr2j"&&(Cn.innerHTML=Ud),Js=n(z),Pn=a(z,"P",{"data-svelte-h":!0}),l(Pn)!=="svelte-m7v5wt"&&(Pn.innerHTML=Ld),Es=n(z),Mn=a(z,"P",{"data-svelte-h":!0}),l(Mn)!=="svelte-mp8cbk"&&(Mn.innerHTML=Nd),Bs=n(z),zn=a(z,"P",{"data-svelte-h":!0}),l(zn)!=="svelte-1lmh4zl"&&(zn.innerHTML=jd),Gs=n(z),Fn=a(z,"P",{"data-svelte-h":!0}),l(Fn)!=="svelte-18piyrt"&&(Fn.innerHTML=Od),Vs=n(z),Wn=a(z,"P",{"data-svelte-h":!0}),l(Wn)!=="svelte-1ocu6t3"&&(Wn.textContent=Hd),z.forEach(d),Xs=n(v),Oe=a(v,"DIV",{class:!0});var _a=T(Oe);u(Jt.$$.fragment,_a),Ys=n(_a),In=a(_a,"P",{"data-svelte-h":!0}),l(In)!=="svelte-otcx5b"&&(In.textContent=Rd),_a.forEach(d),Zs=n(v),He=a(v,"DIV",{class:!0});var ba=T(He);u(Et.$$.fragment,ba),Qs=n(ba),Dn=a(ba,"P",{"data-svelte-h":!0}),l(Dn)!=="svelte-19inmpu"&&(Dn.innerHTML=Jd),ba.forEach(d),Ks=n(v),Re=a(v,"DIV",{class:!0});var va=T(Re);u(Bt.$$.fragment,va),ei=n(va),Un=a(va,"P",{"data-svelte-h":!0}),l(Un)!=="svelte-tkw811"&&(Un.innerHTML=Ed),va.forEach(d),ti=n(v),ae=a(v,"DIV",{class:!0});var jr=T(ae);u(Gt.$$.fragment,jr),oi=n(jr),Ln=a(jr,"P",{"data-svelte-h":!0}),l(Ln)!=="svelte-1b3898p"&&(Ln.innerHTML=Bd),ni=n(jr),Nn=a(jr,"P",{"data-svelte-h":!0}),l(Nn)!=="svelte-1ojzwr1"&&(Nn.innerHTML=Gd),jr.forEach(d),ri=n(v),W=a(v,"DIV",{class:!0});var E=T(W);u(Vt.$$.fragment,E),ai=n(E),jn=a(E,"P",{"data-svelte-h":!0}),l(jn)!=="svelte-1b6cpoy"&&(jn.textContent=Vd),si=n(E),On=a(E,"P",{"data-svelte-h":!0}),l(On)!=="svelte-o30dtk"&&(On.innerHTML=Xd),ii=n(E),u(Je.$$.fragment,E),li=n(E),Hn=a(E,"P",{"data-svelte-h":!0}),l(Hn)!=="svelte-1t1ea6f"&&(Hn.innerHTML=Yd),di=n(E),Rn=a(E,"UL",{"data-svelte-h":!0}),l(Rn)!=="svelte-15ctb4a"&&(Rn.innerHTML=Zd),E.forEach(d),ci=n(v),se=a(v,"DIV",{class:!0});var Or=T(se);u(Xt.$$.fragment,Or),mi=n(Or),Jn=a(Or,"P",{"data-svelte-h":!0}),l(Jn)!=="svelte-1v5gmc1"&&(Jn.innerHTML=Qd),pi=n(Or),En=a(Or,"P",{"data-svelte-h":!0}),l(En)!=="svelte-1tyo99t"&&(En.textContent=Kd),Or.forEach(d),ui=n(v),ie=a(v,"DIV",{class:!0});var Hr=T(ie);u(Yt.$$.fragment,Hr),gi=n(Hr),Bn=a(Hr,"P",{"data-svelte-h":!0}),l(Bn)!=="svelte-1y56pc5"&&(Bn.innerHTML=ec),hi=n(Hr),Gn=a(Hr,"P",{"data-svelte-h":!0}),l(Gn)!=="svelte-qjfexy"&&(Gn.textContent=tc),Hr.forEach(d),fi=n(v),Ee=a(v,"DIV",{class:!0});var ya=T(Ee);u(Zt.$$.fragment,ya),_i=n(ya),Vn=a(ya,"P",{"data-svelte-h":!0}),l(Vn)!=="svelte-o5qc7e"&&(Vn.textContent=oc),ya.forEach(d),bi=n(v),Be=a(v,"DIV",{class:!0});var Ta=T(Be);u(Qt.$$.fragment,Ta),vi=n(Ta),Xn=a(Ta,"P",{"data-svelte-h":!0}),l(Xn)!=="svelte-1jhnoxo"&&(Xn.innerHTML=nc),Ta.forEach(d),yi=n(v),Ge=a(v,"DIV",{class:!0});var wa=T(Ge);u(Kt.$$.fragment,wa),Ti=n(wa),Yn=a(wa,"P",{"data-svelte-h":!0}),l(Yn)!=="svelte-g0l8i2"&&(Yn.innerHTML=rc),wa.forEach(d),wi=n(v),j=a(v,"DIV",{class:!0});var ut=T(j);u(eo.$$.fragment,ut),xi=n(ut),Zn=a(ut,"P",{"data-svelte-h":!0}),l(Zn)!=="svelte-9dohab"&&(Zn.innerHTML=ac),qi=n(ut),Qn=a(ut,"P",{"data-svelte-h":!0}),l(Qn)!=="svelte-5vrny9"&&(Qn.textContent=sc),$i=n(ut),Kn=a(ut,"P",{"data-svelte-h":!0}),l(Kn)!=="svelte-rcqnsm"&&(Kn.innerHTML=ic),ut.forEach(d),ki=n(v),le=a(v,"DIV",{class:!0});var Rr=T(le);u(to.$$.fragment,Rr),Ai=n(Rr),er=a(Rr,"P",{"data-svelte-h":!0}),l(er)!=="svelte-r8h4ov"&&(er.innerHTML=lc),Si=n(Rr),tr=a(Rr,"P",{"data-svelte-h":!0}),l(tr)!=="svelte-1e6bius"&&(tr.textContent=dc),Rr.forEach(d),Ci=n(v),de=a(v,"DIV",{class:!0});var Jr=T(de);u(oo.$$.fragment,Jr),Pi=n(Jr),or=a(Jr,"P",{"data-svelte-h":!0}),l(or)!=="svelte-1g3hgx9"&&(or.textContent=cc),Mi=n(Jr),nr=a(Jr,"P",{"data-svelte-h":!0}),l(nr)!=="svelte-5vrny9"&&(nr.textContent=mc),Jr.forEach(d),zi=n(v),Ve=a(v,"DIV",{class:!0});var xa=T(Ve);u(no.$$.fragment,xa),Fi=n(xa),rr=a(xa,"P",{"data-svelte-h":!0}),l(rr)!=="svelte-1cilnet"&&(rr.textContent=pc),xa.forEach(d),Wi=n(v),ce=a(v,"DIV",{class:!0});var Er=T(ce);u(ro.$$.fragment,Er),Ii=n(Er),ar=a(Er,"P",{"data-svelte-h":!0}),l(ar)!=="svelte-4qplkw"&&(ar.textContent=uc),Di=n(Er),sr=a(Er,"P",{"data-svelte-h":!0}),l(sr)!=="svelte-qjfexy"&&(sr.textContent=gc),Er.forEach(d),v.forEach(d),sa=n(t),u(ao.$$.fragment,t),ia=n(t),G=a(t,"DIV",{class:!0});var Br=T(G);u(so.$$.fragment,Br),Ui=n(Br),O=a(Br,"DIV",{class:!0});var gt=T(O);u(io.$$.fragment,gt),Li=n(gt),ir=a(gt,"P",{"data-svelte-h":!0}),l(ir)!=="svelte-1mcvryw"&&(ir.textContent=hc),Ni=n(gt),lr=a(gt,"P",{"data-svelte-h":!0}),l(lr)!=="svelte-1339kj6"&&(lr.innerHTML=fc),ji=n(gt),dr=a(gt,"P",{"data-svelte-h":!0}),l(dr)!=="svelte-1h30111"&&(dr.textContent=_c),gt.forEach(d),Oi=n(Br),I=a(Br,"DIV",{class:!0});var B=T(I);u(lo.$$.fragment,B),Hi=n(B),cr=a(B,"P",{"data-svelte-h":!0}),l(cr)!=="svelte-1b6cpoy"&&(cr.textContent=bc),Ri=n(B),mr=a(B,"P",{"data-svelte-h":!0}),l(mr)!=="svelte-o30dtk"&&(mr.innerHTML=vc),Ji=n(B),u(Xe.$$.fragment,B),Ei=n(B),pr=a(B,"P",{"data-svelte-h":!0}),l(pr)!=="svelte-1t1ea6f"&&(pr.innerHTML=yc),Bi=n(B),ur=a(B,"UL",{"data-svelte-h":!0}),l(ur)!=="svelte-15ctb4a"&&(ur.innerHTML=Tc),B.forEach(d),Br.forEach(d),la=n(t),u(co.$$.fragment,t),da=n(t),S=a(t,"DIV",{class:!0});var M=T(S);u(mo.$$.fragment,M),Gi=n(M),gr=a(M,"P",{"data-svelte-h":!0}),l(gr)!=="svelte-avfxjl"&&(gr.innerHTML=wc),Vi=n(M),hr=a(M,"P",{"data-svelte-h":!0}),l(hr)!=="svelte-o985cf"&&(hr.innerHTML=xc),Xi=n(M),D=a(M,"DIV",{class:!0});var be=T(D);u(po.$$.fragment,be),Yi=n(be),fr=a(be,"P",{"data-svelte-h":!0}),l(fr)!=="svelte-hj8f41"&&(fr.textContent=qc),Zi=n(be),_r=a(be,"P",{"data-svelte-h":!0}),l(_r)!=="svelte-1iq1lj0"&&(_r.innerHTML=$c),Qi=n(be),br=a(be,"P",{"data-svelte-h":!0}),l(br)!=="svelte-18bal86"&&(br.innerHTML=kc),Ki=n(be),vr=a(be,"P",{"data-svelte-h":!0}),l(vr)!=="svelte-oacj0p"&&(vr.innerHTML=Ac),be.forEach(d),el=n(M),Ye=a(M,"DIV",{class:!0});var qa=T(Ye);u(uo.$$.fragment,qa),tl=n(qa),yr=a(qa,"P",{"data-svelte-h":!0}),l(yr)!=="svelte-9pbc1"&&(yr.textContent=Sc),qa.forEach(d),ol=n(M),me=a(M,"DIV",{class:!0});var Gr=T(me);u(go.$$.fragment,Gr),nl=n(Gr),Tr=a(Gr,"P",{"data-svelte-h":!0}),l(Tr)!=="svelte-13fy4lg"&&(Tr.textContent=Cc),rl=n(Gr),wr=a(Gr,"P",{"data-svelte-h":!0}),l(wr)!=="svelte-1aa165w"&&(wr.innerHTML=Pc),Gr.forEach(d),al=n(M),pe=a(M,"DIV",{class:!0});var Vr=T(pe);u(ho.$$.fragment,Vr),sl=n(Vr),xr=a(Vr,"P",{"data-svelte-h":!0}),l(xr)!=="svelte-12p68tr"&&(xr.textContent=Mc),il=n(Vr),u(Ze.$$.fragment,Vr),Vr.forEach(d),ll=n(M),ue=a(M,"DIV",{class:!0});var Xr=T(ue);u(fo.$$.fragment,Xr),dl=n(Xr),qr=a(Xr,"P",{"data-svelte-h":!0}),l(qr)!=="svelte-9ywrxl"&&(qr.textContent=zc),cl=n(Xr),u(Qe.$$.fragment,Xr),Xr.forEach(d),ml=n(M),ge=a(M,"DIV",{class:!0});var Yr=T(ge);u(_o.$$.fragment,Yr),pl=n(Yr),$r=a(Yr,"P",{"data-svelte-h":!0}),l($r)!=="svelte-1lwqsi8"&&($r.textContent=Fc),ul=n(Yr),u(Ke.$$.fragment,Yr),Yr.forEach(d),gl=n(M),he=a(M,"DIV",{class:!0});var Zr=T(he);u(bo.$$.fragment,Zr),hl=n(Zr),kr=a(Zr,"P",{"data-svelte-h":!0}),l(kr)!=="svelte-mc54aq"&&(kr.textContent=Wc),fl=n(Zr),u(et.$$.fragment,Zr),Zr.forEach(d),_l=n(M),fe=a(M,"DIV",{class:!0});var Qr=T(fe);u(vo.$$.fragment,Qr),bl=n(Qr),Ar=a(Qr,"P",{"data-svelte-h":!0}),l(Ar)!=="svelte-18hco78"&&(Ar.textContent=Ic),vl=n(Qr),u(tt.$$.fragment,Qr),Qr.forEach(d),yl=n(M),H=a(M,"DIV",{class:!0});var ht=T(H);u(yo.$$.fragment,ht),Tl=n(ht),Sr=a(ht,"P",{"data-svelte-h":!0}),l(Sr)!=="svelte-y1tcex"&&(Sr.textContent=Dc),wl=n(ht),u(ot.$$.fragment,ht),xl=n(ht),u(nt.$$.fragment,ht),ht.forEach(d),ql=n(M),_e=a(M,"DIV",{class:!0});var Kr=T(_e);u(To.$$.fragment,Kr),$l=n(Kr),Cr=a(Kr,"P",{"data-svelte-h":!0}),l(Cr)!=="svelte-1duj623"&&(Cr.textContent=Uc),kl=n(Kr),u(rt.$$.fragment,Kr),Kr.forEach(d),Al=n(M),R=a(M,"DIV",{class:!0});var ft=T(R);u(wo.$$.fragment,ft),Sl=n(ft),Pr=a(ft,"P",{"data-svelte-h":!0}),l(Pr)!=="svelte-lhuo6p"&&(Pr.textContent=Lc),Cl=n(ft),u(at.$$.fragment,ft),Pl=n(ft),u(st.$$.fragment,ft),ft.forEach(d),Ml=n(M),J=a(M,"DIV",{class:!0});var _t=T(J);u(xo.$$.fragment,_t),zl=n(_t),Mr=a(_t,"P",{"data-svelte-h":!0}),l(Mr)!=="svelte-1h65v06"&&(Mr.textContent=Nc),Fl=n(_t),u(it.$$.fragment,_t),Wl=n(_t),u(lt.$$.fragment,_t),_t.forEach(d),Il=n(M),dt=a(M,"DIV",{class:!0});var $a=T(dt);u(qo.$$.fragment,$a),Dl=n($a),zr=a($a,"P",{"data-svelte-h":!0}),l(zr)!=="svelte-1ciob6u"&&(zr.innerHTML=jc),$a.forEach(d),Ul=n(M),ct=a(M,"DIV",{class:!0});var ka=T(ct);u($o.$$.fragment,ka),Ll=n(ka),Fr=a(ka,"P",{"data-svelte-h":!0}),l(Fr)!=="svelte-5ayq1f"&&(Fr.textContent=Oc),ka.forEach(d),Nl=n(M),mt=a(M,"DIV",{class:!0});var Aa=T(mt);u(ko.$$.fragment,Aa),jl=n(Aa),Wr=a(Aa,"P",{"data-svelte-h":!0}),l(Wr)!=="svelte-lg45ly"&&(Wr.textContent=Hc),Aa.forEach(d),M.forEach(d),ca=n(t),u(Ao.$$.fragment,t),ma=n(t),U=a(t,"DIV",{class:!0});var bt=T(U);u(So.$$.fragment,bt),Ol=n(bt),Ir=a(bt,"P",{"data-svelte-h":!0}),l(Ir)!=="svelte-avfxjl"&&(Ir.innerHTML=Rc),Hl=n(bt),Dr=a(bt,"P",{"data-svelte-h":!0}),l(Dr)!=="svelte-o985cf"&&(Dr.innerHTML=Jc),Rl=n(bt),pt=a(bt,"DIV",{class:!0});var Sa=T(pt);u(Co.$$.fragment,Sa),Jl=n(Sa),Ur=a(Sa,"P",{"data-svelte-h":!0}),l(Ur)!=="svelte-yrflrv"&&(Ur.innerHTML=Ec),Sa.forEach(d),bt.forEach(d),pa=n(t),ea=a(t,"P",{}),T(ea).forEach(d),this.h()},h(){w(i,"name","hf:doc:metadata"),w(i,"content",hm),w(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(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(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(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(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(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(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(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(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(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(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(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(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(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(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(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(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(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(He,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(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(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(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(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(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(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(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(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(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(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(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(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(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(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(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(_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(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(dt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(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(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(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(t,y){e(document.head,i),A(t,$,y),A(t,m,y),A(t,c,y),g(x,t,y),A(t,s,y),A(t,k,y),A(t,oa,y),A(t,vt,y),A(t,na,y),g(Se,t,y),A(t,ra,y),g(yt,t,y),A(t,aa,y),A(t,b,y),g(Tt,b,null),e(b,Ca),e(b,Lo),e(b,Pa),e(b,No),e(b,Ma),e(b,jo),e(b,za),e(b,Ce),g(wt,Ce,null),e(Ce,Fa),e(Ce,Oo),e(b,Wa),e(b,Pe),g(xt,Pe,null),e(Pe,Ia),e(Pe,Ho),e(b,Da),e(b,Y),g(qt,Y,null),e(Y,Ua),e(Y,Ro),e(Y,La),e(Y,Jo),e(b,Na),e(b,Me),g($t,Me,null),e(Me,ja),e(Me,Eo),e(b,Oa),e(b,ze),g(kt,ze,null),e(ze,Ha),e(ze,Bo),e(b,Ra),e(b,Z),g(At,Z,null),e(Z,Ja),e(Z,Go),e(Z,Ea),e(Z,Vo),e(b,Ba),e(b,Q),g(St,Q,null),e(Q,Ga),e(Q,Xo),e(Q,Va),e(Q,Yo),e(b,Xa),e(b,Fe),g(Ct,Fe,null),e(Fe,Ya),e(Fe,Zo),e(b,Za),e(b,L),g(Pt,L,null),e(L,Qa),e(L,Qo),e(L,Ka),e(L,Ko),e(L,es),e(L,en),e(b,ts),e(b,K),g(Mt,K,null),e(K,os),e(K,tn),e(K,ns),e(K,on),e(b,rs),e(b,We),g(zt,We,null),e(We,as),e(We,nn),e(b,ss),e(b,ee),g(Ft,ee,null),e(ee,is),e(ee,rn),e(ee,ls),e(ee,an),e(b,ds),e(b,te),g(Wt,te,null),e(te,cs),e(te,sn),e(te,ms),e(te,ln),e(b,ps),e(b,Ie),g(It,Ie,null),e(Ie,us),e(Ie,dn),e(b,gs),e(b,oe),g(Dt,oe,null),e(oe,hs),e(oe,cn),e(oe,fs),e(oe,mn),e(b,_s),e(b,N),g(Ut,N,null),e(N,bs),e(N,pn),e(N,vs),e(N,un),e(N,ys),e(N,gn),e(b,Ts),e(b,ne),g(Lt,ne,null),e(ne,ws),e(ne,hn),e(ne,xs),g(De,ne,null),e(b,qs),e(b,Ue),g(Nt,Ue,null),e(Ue,$s),e(Ue,fn),e(b,ks),e(b,Le),g(jt,Le,null),e(Le,As),e(Le,_n),e(b,Ss),e(b,Ne),g(Ot,Ne,null),e(Ne,Cs),e(Ne,bn),e(b,Ps),e(b,re),g(Ht,re,null),e(re,Ms),e(re,vn),e(re,zs),e(re,yn),e(b,Fs),e(b,P),g(Rt,P,null),e(P,Ws),e(P,Tn),e(P,Is),e(P,wn),e(P,Ds),e(P,xn),e(P,Us),e(P,qn),e(P,Ls),g(je,P,null),e(P,Ns),e(P,$n),e(P,js),e(P,kn),e(P,Os),e(P,An),e(P,Hs),e(P,Sn),e(P,Rs),e(P,Cn),e(P,Js),e(P,Pn),e(P,Es),e(P,Mn),e(P,Bs),e(P,zn),e(P,Gs),e(P,Fn),e(P,Vs),e(P,Wn),e(b,Xs),e(b,Oe),g(Jt,Oe,null),e(Oe,Ys),e(Oe,In),e(b,Zs),e(b,He),g(Et,He,null),e(He,Qs),e(He,Dn),e(b,Ks),e(b,Re),g(Bt,Re,null),e(Re,ei),e(Re,Un),e(b,ti),e(b,ae),g(Gt,ae,null),e(ae,oi),e(ae,Ln),e(ae,ni),e(ae,Nn),e(b,ri),e(b,W),g(Vt,W,null),e(W,ai),e(W,jn),e(W,si),e(W,On),e(W,ii),g(Je,W,null),e(W,li),e(W,Hn),e(W,di),e(W,Rn),e(b,ci),e(b,se),g(Xt,se,null),e(se,mi),e(se,Jn),e(se,pi),e(se,En),e(b,ui),e(b,ie),g(Yt,ie,null),e(ie,gi),e(ie,Bn),e(ie,hi),e(ie,Gn),e(b,fi),e(b,Ee),g(Zt,Ee,null),e(Ee,_i),e(Ee,Vn),e(b,bi),e(b,Be),g(Qt,Be,null),e(Be,vi),e(Be,Xn),e(b,yi),e(b,Ge),g(Kt,Ge,null),e(Ge,Ti),e(Ge,Yn),e(b,wi),e(b,j),g(eo,j,null),e(j,xi),e(j,Zn),e(j,qi),e(j,Qn),e(j,$i),e(j,Kn),e(b,ki),e(b,le),g(to,le,null),e(le,Ai),e(le,er),e(le,Si),e(le,tr),e(b,Ci),e(b,de),g(oo,de,null),e(de,Pi),e(de,or),e(de,Mi),e(de,nr),e(b,zi),e(b,Ve),g(no,Ve,null),e(Ve,Fi),e(Ve,rr),e(b,Wi),e(b,ce),g(ro,ce,null),e(ce,Ii),e(ce,ar),e(ce,Di),e(ce,sr),A(t,sa,y),g(ao,t,y),A(t,ia,y),A(t,G,y),g(so,G,null),e(G,Ui),e(G,O),g(io,O,null),e(O,Li),e(O,ir),e(O,Ni),e(O,lr),e(O,ji),e(O,dr),e(G,Oi),e(G,I),g(lo,I,null),e(I,Hi),e(I,cr),e(I,Ri),e(I,mr),e(I,Ji),g(Xe,I,null),e(I,Ei),e(I,pr),e(I,Bi),e(I,ur),A(t,la,y),g(co,t,y),A(t,da,y),A(t,S,y),g(mo,S,null),e(S,Gi),e(S,gr),e(S,Vi),e(S,hr),e(S,Xi),e(S,D),g(po,D,null),e(D,Yi),e(D,fr),e(D,Zi),e(D,_r),e(D,Qi),e(D,br),e(D,Ki),e(D,vr),e(S,el),e(S,Ye),g(uo,Ye,null),e(Ye,tl),e(Ye,yr),e(S,ol),e(S,me),g(go,me,null),e(me,nl),e(me,Tr),e(me,rl),e(me,wr),e(S,al),e(S,pe),g(ho,pe,null),e(pe,sl),e(pe,xr),e(pe,il),g(Ze,pe,null),e(S,ll),e(S,ue),g(fo,ue,null),e(ue,dl),e(ue,qr),e(ue,cl),g(Qe,ue,null),e(S,ml),e(S,ge),g(_o,ge,null),e(ge,pl),e(ge,$r),e(ge,ul),g(Ke,ge,null),e(S,gl),e(S,he),g(bo,he,null),e(he,hl),e(he,kr),e(he,fl),g(et,he,null),e(S,_l),e(S,fe),g(vo,fe,null),e(fe,bl),e(fe,Ar),e(fe,vl),g(tt,fe,null),e(S,yl),e(S,H),g(yo,H,null),e(H,Tl),e(H,Sr),e(H,wl),g(ot,H,null),e(H,xl),g(nt,H,null),e(S,ql),e(S,_e),g(To,_e,null),e(_e,$l),e(_e,Cr),e(_e,kl),g(rt,_e,null),e(S,Al),e(S,R),g(wo,R,null),e(R,Sl),e(R,Pr),e(R,Cl),g(at,R,null),e(R,Pl),g(st,R,null),e(S,Ml),e(S,J),g(xo,J,null),e(J,zl),e(J,Mr),e(J,Fl),g(it,J,null),e(J,Wl),g(lt,J,null),e(S,Il),e(S,dt),g(qo,dt,null),e(dt,Dl),e(dt,zr),e(S,Ul),e(S,ct),g($o,ct,null),e(ct,Ll),e(ct,Fr),e(S,Nl),e(S,mt),g(ko,mt,null),e(mt,jl),e(mt,Wr),A(t,ca,y),g(Ao,t,y),A(t,ma,y),A(t,U,y),g(So,U,null),e(U,Ol),e(U,Ir),e(U,Hl),e(U,Dr),e(U,Rl),e(U,pt),g(Co,pt,null),e(pt,Jl),e(pt,Ur),A(t,pa,y),A(t,ea,y),ua=!0},p(t,[y]){const v={};y&2&&(v.$$scope={dirty:y,ctx:t}),Se.$set(v);const Po={};y&2&&(Po.$$scope={dirty:y,ctx:t}),De.$set(Po);const Mo={};y&2&&(Mo.$$scope={dirty:y,ctx:t}),je.$set(Mo);const Te={};y&2&&(Te.$$scope={dirty:y,ctx:t}),Je.$set(Te);const zo={};y&2&&(zo.$$scope={dirty:y,ctx:t}),Xe.$set(zo);const Fo={};y&2&&(Fo.$$scope={dirty:y,ctx:t}),Ze.$set(Fo);const we={};y&2&&(we.$$scope={dirty:y,ctx:t}),Qe.$set(we);const xe={};y&2&&(xe.$$scope={dirty:y,ctx:t}),Ke.$set(xe);const Wo={};y&2&&(Wo.$$scope={dirty:y,ctx:t}),et.$set(Wo);const V={};y&2&&(V.$$scope={dirty:y,ctx:t}),tt.$set(V);const qe={};y&2&&(qe.$$scope={dirty:y,ctx:t}),ot.$set(qe);const Io={};y&2&&(Io.$$scope={dirty:y,ctx:t}),nt.$set(Io);const $e={};y&2&&($e.$$scope={dirty:y,ctx:t}),rt.$set($e);const ke={};y&2&&(ke.$$scope={dirty:y,ctx:t}),at.$set(ke);const Do={};y&2&&(Do.$$scope={dirty:y,ctx:t}),st.$set(Do);const Ae={};y&2&&(Ae.$$scope={dirty:y,ctx:t}),it.$set(Ae);const X={};y&2&&(X.$$scope={dirty:y,ctx:t}),lt.$set(X)},i(t){ua||(h(x.$$.fragment,t),h(Se.$$.fragment,t),h(yt.$$.fragment,t),h(Tt.$$.fragment,t),h(wt.$$.fragment,t),h(xt.$$.fragment,t),h(qt.$$.fragment,t),h($t.$$.fragment,t),h(kt.$$.fragment,t),h(At.$$.fragment,t),h(St.$$.fragment,t),h(Ct.$$.fragment,t),h(Pt.$$.fragment,t),h(Mt.$$.fragment,t),h(zt.$$.fragment,t),h(Ft.$$.fragment,t),h(Wt.$$.fragment,t),h(It.$$.fragment,t),h(Dt.$$.fragment,t),h(Ut.$$.fragment,t),h(Lt.$$.fragment,t),h(De.$$.fragment,t),h(Nt.$$.fragment,t),h(jt.$$.fragment,t),h(Ot.$$.fragment,t),h(Ht.$$.fragment,t),h(Rt.$$.fragment,t),h(je.$$.fragment,t),h(Jt.$$.fragment,t),h(Et.$$.fragment,t),h(Bt.$$.fragment,t),h(Gt.$$.fragment,t),h(Vt.$$.fragment,t),h(Je.$$.fragment,t),h(Xt.$$.fragment,t),h(Yt.$$.fragment,t),h(Zt.$$.fragment,t),h(Qt.$$.fragment,t),h(Kt.$$.fragment,t),h(eo.$$.fragment,t),h(to.$$.fragment,t),h(oo.$$.fragment,t),h(no.$$.fragment,t),h(ro.$$.fragment,t),h(ao.$$.fragment,t),h(so.$$.fragment,t),h(io.$$.fragment,t),h(lo.$$.fragment,t),h(Xe.$$.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(Ze.$$.fragment,t),h(fo.$$.fragment,t),h(Qe.$$.fragment,t),h(_o.$$.fragment,t),h(Ke.$$.fragment,t),h(bo.$$.fragment,t),h(et.$$.fragment,t),h(vo.$$.fragment,t),h(tt.$$.fragment,t),h(yo.$$.fragment,t),h(ot.$$.fragment,t),h(nt.$$.fragment,t),h(To.$$.fragment,t),h(rt.$$.fragment,t),h(wo.$$.fragment,t),h(at.$$.fragment,t),h(st.$$.fragment,t),h(xo.$$.fragment,t),h(it.$$.fragment,t),h(lt.$$.fragment,t),h(qo.$$.fragment,t),h($o.$$.fragment,t),h(ko.$$.fragment,t),h(Ao.$$.fragment,t),h(So.$$.fragment,t),h(Co.$$.fragment,t),ua=!0)},o(t){f(x.$$.fragment,t),f(Se.$$.fragment,t),f(yt.$$.fragment,t),f(Tt.$$.fragment,t),f(wt.$$.fragment,t),f(xt.$$.fragment,t),f(qt.$$.fragment,t),f($t.$$.fragment,t),f(kt.$$.fragment,t),f(At.$$.fragment,t),f(St.$$.fragment,t),f(Ct.$$.fragment,t),f(Pt.$$.fragment,t),f(Mt.$$.fragment,t),f(zt.$$.fragment,t),f(Ft.$$.fragment,t),f(Wt.$$.fragment,t),f(It.$$.fragment,t),f(Dt.$$.fragment,t),f(Ut.$$.fragment,t),f(Lt.$$.fragment,t),f(De.$$.fragment,t),f(Nt.$$.fragment,t),f(jt.$$.fragment,t),f(Ot.$$.fragment,t),f(Ht.$$.fragment,t),f(Rt.$$.fragment,t),f(je.$$.fragment,t),f(Jt.$$.fragment,t),f(Et.$$.fragment,t),f(Bt.$$.fragment,t),f(Gt.$$.fragment,t),f(Vt.$$.fragment,t),f(Je.$$.fragment,t),f(Xt.$$.fragment,t),f(Yt.$$.fragment,t),f(Zt.$$.fragment,t),f(Qt.$$.fragment,t),f(Kt.$$.fragment,t),f(eo.$$.fragment,t),f(to.$$.fragment,t),f(oo.$$.fragment,t),f(no.$$.fragment,t),f(ro.$$.fragment,t),f(ao.$$.fragment,t),f(so.$$.fragment,t),f(io.$$.fragment,t),f(lo.$$.fragment,t),f(Xe.$$.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(Ze.$$.fragment,t),f(fo.$$.fragment,t),f(Qe.$$.fragment,t),f(_o.$$.fragment,t),f(Ke.$$.fragment,t),f(bo.$$.fragment,t),f(et.$$.fragment,t),f(vo.$$.fragment,t),f(tt.$$.fragment,t),f(yo.$$.fragment,t),f(ot.$$.fragment,t),f(nt.$$.fragment,t),f(To.$$.fragment,t),f(rt.$$.fragment,t),f(wo.$$.fragment,t),f(at.$$.fragment,t),f(st.$$.fragment,t),f(xo.$$.fragment,t),f(it.$$.fragment,t),f(lt.$$.fragment,t),f(qo.$$.fragment,t),f($o.$$.fragment,t),f(ko.$$.fragment,t),f(Ao.$$.fragment,t),f(So.$$.fragment,t),f(Co.$$.fragment,t),ua=!1},d(t){t&&(d($),d(m),d(c),d(s),d(k),d(oa),d(vt),d(na),d(ra),d(aa),d(b),d(sa),d(ia),d(G),d(la),d(da),d(S),d(ca),d(ma),d(U),d(pa),d(ea)),d(i),_(x,t),_(Se,t),_(yt,t),_(Tt),_(wt),_(xt),_(qt),_($t),_(kt),_(At),_(St),_(Ct),_(Pt),_(Mt),_(zt),_(Ft),_(Wt),_(It),_(Dt),_(Ut),_(Lt),_(De),_(Nt),_(jt),_(Ot),_(Ht),_(Rt),_(je),_(Jt),_(Et),_(Bt),_(Gt),_(Vt),_(Je),_(Xt),_(Yt),_(Zt),_(Qt),_(Kt),_(eo),_(to),_(oo),_(no),_(ro),_(ao,t),_(so),_(io),_(lo),_(Xe),_(co,t),_(mo),_(po),_(uo),_(go),_(ho),_(Ze),_(fo),_(Qe),_(_o),_(Ke),_(bo),_(et),_(vo),_(tt),_(yo),_(ot),_(nt),_(To),_(rt),_(wo),_(at),_(st),_(xo),_(it),_(lt),_(qo),_($o),_(ko),_(Ao,t),_(So),_(Co)}}}const hm='{"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 fm(C){return Gc(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class qm extends Vc{constructor(i){super(),Xc(this,i,fm,gm,Bc,{})}}export{qm as component};
