import{s as iv,o as lv,n as P}from"../chunks/scheduler.bdbef820.js";import{S as dv,i as cv,g as s,s as n,r as p,A as mv,h as i,f as o,c as a,j as w,u,x as d,k as x,y as t,a as l,v as g,d as h,t as f,w as _}from"../chunks/index.33f81d56.js";import{T as jt}from"../chunks/Tip.34194030.js";import{D as M}from"../chunks/Docstring.b3df4217.js";import{C as j}from"../chunks/CodeBlock.3bad7fc9.js";import{E as $e}from"../chunks/ExampleCodeBlock.d705c5b9.js";import{H as L,E as pv}from"../chunks/index.474b463a.js";function uv(C){let m,k=`<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> クラスは 🤗 Transformers モデル用に最適化されており、驚くべき動作をする可能性があります
他の機種で使用する場合。独自のモデルで使用する場合は、次の点を確認してください。`,v,b,$=`<li>モデルは常に <a href="/docs/transformers/main/ja/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> のタプルまたはサブクラスを返します。</li> <li><code>labels</code> 引数が指定され、その損失が最初の値として返される場合、モデルは損失を計算できます。
タプルの要素 (モデルがタプルを返す場合)</li> <li>モデルは複数のラベル引数を受け入れることができます (<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> で <code>label_names</code> を使用して、その名前を <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> に示します) が、それらのいずれにも <code>&quot;label&quot;</code> という名前を付ける必要はありません。</li>`;return{c(){m=s("p"),m.innerHTML=k,v=n(),b=s("ul"),b.innerHTML=$},l(c){m=i(c,"P",{"data-svelte-h":!0}),d(m)!=="svelte-lp29i0"&&(m.innerHTML=k),v=a(c),b=i(c,"UL",{"data-svelte-h":!0}),d(b)!=="svelte-1mf36i8"&&(b.innerHTML=$)},m(c,q){l(c,m,q),l(c,v,q),l(c,b,q)},p:P,d(c){c&&(o(m),o(v),o(b))}}}function gv(C){let m,k=`To use this method, you need to have provided a <code>model_init</code> when initializing your <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a>: we need to
reinitialize the model at each new run. This is incompatible with the <code>optimizers</code> argument, so you need to
subclass <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> and override the method <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer.create_optimizer_and_scheduler">create_optimizer_and_scheduler()</a> for custom
optimizer/scheduler.`;return{c(){m=s("p"),m.innerHTML=k},l(v){m=i(v,"P",{"data-svelte-h":!0}),d(m)!=="svelte-17di6jz"&&(m.innerHTML=k)},m(v,b){l(v,m,b)},p:P,d(v){v&&o(m)}}}function hv(C){let m,k="Now when this method is run, you will see a report that will include:",v,b,$;return b=new j({props:{code:"aW5pdF9tZW1fY3B1X2FsbG9jX2RlbHRhJTIwJTIwJTIwJTNEJTIwJTIwJTIwJTIwJTIwMTMwMU1CJTBBaW5pdF9tZW1fY3B1X3BlYWtlZF9kZWx0YSUyMCUyMCUzRCUyMCUyMCUyMCUyMCUyMCUyMDE1NE1CJTBBaW5pdF9tZW1fZ3B1X2FsbG9jX2RlbHRhJTIwJTIwJTIwJTNEJTIwJTIwJTIwJTIwJTIwJTIwMjMwTUIlMEFpbml0X21lbV9ncHVfcGVha2VkX2RlbHRhJTIwJTIwJTNEJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwME1CJTBBdHJhaW5fbWVtX2NwdV9hbGxvY19kZWx0YSUyMCUyMCUzRCUyMCUyMCUyMCUyMCUyMDEzNDVNQiUwQXRyYWluX21lbV9jcHVfcGVha2VkX2RlbHRhJTIwJTNEJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwME1CJTBBdHJhaW5fbWVtX2dwdV9hbGxvY19kZWx0YSUyMCUyMCUzRCUyMCUyMCUyMCUyMCUyMCUyMDY5M01CJTBBdHJhaW5fbWVtX2dwdV9wZWFrZWRfZGVsdGElMjAlM0QlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjA3TUI=",highlighted:`<span class="hljs-attr">init_mem_cpu_alloc_delta</span>   =     <span class="hljs-number">1301</span>MB
<span class="hljs-attr">init_mem_cpu_peaked_delta</span>  =      <span class="hljs-number">154</span>MB
<span class="hljs-attr">init_mem_gpu_alloc_delta</span>   =      <span class="hljs-number">230</span>MB
<span class="hljs-attr">init_mem_gpu_peaked_delta</span>  =        <span class="hljs-number">0</span>MB
<span class="hljs-attr">train_mem_cpu_alloc_delta</span>  =     <span class="hljs-number">1345</span>MB
<span class="hljs-attr">train_mem_cpu_peaked_delta</span> =        <span class="hljs-number">0</span>MB
<span class="hljs-attr">train_mem_gpu_alloc_delta</span>  =      <span class="hljs-number">693</span>MB
<span class="hljs-attr">train_mem_gpu_peaked_delta</span> =        <span class="hljs-number">7</span>MB`,wrap:!1}}),{c(){m=s("p"),m.textContent=k,v=n(),p(b.$$.fragment)},l(c){m=i(c,"P",{"data-svelte-h":!0}),d(m)!=="svelte-1lw76cy"&&(m.textContent=k),v=a(c),u(b.$$.fragment,c)},m(c,q){l(c,m,q),l(c,v,q),g(b,c,q),$=!0},p:P,i(c){$||(h(b.$$.fragment,c),$=!0)},o(c){f(b.$$.fragment,c),$=!1},d(c){c&&(o(m),o(v)),_(b,c)}}}function fv(C){let m,k=`If your predictions or labels have different sequence length (for instance because you’re doing dynamic padding
in a token classification task) the predictions will be padded (on the right) to allow for concatenation into
one array. The padding index is -100.`;return{c(){m=s("p"),m.textContent=k},l(v){m=i(v,"P",{"data-svelte-h":!0}),d(m)!=="svelte-vq7haq"&&(m.textContent=k)},m(v,b){l(v,m,b)},p:P,d(v){v&&o(m)}}}function _v(C){let m,k=`If your predictions or labels have different sequence lengths (for instance because you’re doing dynamic
padding in a token classification task) the predictions will be padded (on the right) to allow for
concatenation into one array. The padding index is -100.`;return{c(){m=s("p"),m.textContent=k},l(v){m=i(v,"P",{"data-svelte-h":!0}),d(m)!=="svelte-1c3ugfb"&&(m.textContent=k)},m(v,b){l(v,m,b)},p:P,d(v){v&&o(m)}}}function bv(C){let m,k="Example:",v,b,$;return b=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRyYWluaW5nQXJndW1lbnRzJTBBJTBBYXJncyUyMCUzRCUyMFRyYWluaW5nQXJndW1lbnRzKCUyMndvcmtpbmdfZGlyJTIyKSUwQWFyZ3MlMjAlM0QlMjBhcmdzLnNldF9kYXRhbG9hZGVyKHRyYWluX2JhdGNoX3NpemUlM0QxNiUyQyUyMGV2YWxfYmF0Y2hfc2l6ZSUzRDY0KSUwQWFyZ3MucGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXpl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TrainingArguments

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

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

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

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

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

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

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>args = TrainingArguments(<span class="hljs-string">&quot;working_dir&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args = args.set_training(learning_rate=<span class="hljs-number">1e-4</span>, batch_size=<span class="hljs-number">32</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>args.learning_rate
<span class="hljs-number">1e-4</span>`,wrap:!1}}),{c(){m=s("p"),m.textContent=k,v=n(),p(b.$$.fragment)},l(c){m=i(c,"P",{"data-svelte-h":!0}),d(m)!=="svelte-11lpom8"&&(m.textContent=k),v=a(c),u(b.$$.fragment,c)},m(c,q){l(c,m,q),l(c,v,q),g(b,c,q),$=!0},p:P,i(c){$||(h(b.$$.fragment,c),$=!0)},o(c){f(b.$$.fragment,c),$=!1},d(c){c&&(o(m),o(v)),_(b,c)}}}function Cv(C){let m,k=`MacOS マシンに PyTorch &gt;= 1.13 (執筆時点ではナイトリー バージョン) をインストールすることを強くお勧めします。
トランスベースのモデルのモデルの正確性とパフォーマンスの向上に関連する主要な修正が行われています。
詳細については、<a href="https://github.com/pytorch/pytorch/issues/82707" rel="nofollow">https://github.com/pytorch/pytorch/issues/82707</a> を参照してください。`;return{c(){m=s("p"),m.innerHTML=k},l(v){m=i(v,"P",{"data-svelte-h":!0}),d(m)!=="svelte-jhax21"&&(m.innerHTML=k)},m(v,b){l(v,m,b)},p:P,d(v){v&&o(m)}}}function Iv(C){let m,k,v,b,$,c,q,th='<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> クラスは、ほとんどの標準的なユースケースに対して、PyTorch で機能を完全にトレーニングするための API を提供します。これは、<a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">サンプル スクリプト</a> のほとんどで使用されています。',ul,Ct,oh='<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> をインスタンス化する前に、トレーニング中にカスタマイズのすべてのポイントにアクセスするために <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> を作成します。',gl,It,nh='この API は、複数の GPU/TPU での分散トレーニング、<a href="https://github.com/NVIDIA/apex" rel="nofollow">NVIDIA Apex</a> および PyTorch のネイティブ AMP による混合精度をサポートします。',hl,Jt,ah='<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> には、上記の機能をサポートする基本的なトレーニング ループが含まれています。カスタム動作を挿入するには、それらをサブクラス化し、次のメソッドをオーバーライドします。',fl,St,rh=`<li><strong>get_train_dataloader</strong> — トレーニング データローダーを作成します。</li> <li><strong>get_eval_dataloader</strong> — 評価用データローダーを作成します。</li> <li><strong>get_test_dataloader</strong> — テスト データローダーを作成します。</li> <li><strong>log</strong> — トレーニングを監視しているさまざまなオブジェクトに関する情報をログに記録します。</li> <li><strong>create_optimizer_and_scheduler</strong> — オプティマイザと学習率スケジューラが渡されなかった場合にセットアップします。
初期化。 <code>create_optimizer</code>メソッドと<code>create_scheduler</code>メソッドをサブクラス化またはオーバーライドすることもできることに注意してください。
別々に。</li> <li><strong>create_optimizer</strong> — init で渡されなかった場合にオプティマイザーをセットアップします。</li> <li><strong>create_scheduler</strong> — init で渡されなかった場合、学習率スケジューラを設定します。</li> <li><strong>compute_loss</strong> - トレーニング入力のバッチの損失を計算します。</li> <li><strong>training_step</strong> — トレーニング ステップを実行します。</li> <li><strong>prediction_step</strong> — 評価/テスト ステップを実行します。</li> <li><strong>evaluate</strong> — 評価ループを実行し、メトリクスを返します。</li> <li><strong>predict</strong> — テスト セットの予測 (ラベルが使用可能な場合はメトリクスも含む) を返します。</li>`,_l,Ie,bl,Ut,sh='以下は、加重損失を使用するように <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> をカスタマイズする方法の例です (不均衡なトレーニング セットがある場合に役立ちます)。',vl,Lt,yl,Pt,ih='PyTorch <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> のトレーニング ループの動作をカスタマイズするもう 1 つの方法は、トレーニング ループの状態を検査できる <a href="%E3%82%B3%E3%83%BC%E3%83%AB%E3%83%90%E3%83%83%E3%82%AF">callbacks</a> を使用することです (進行状況レポート、TensorBoard または他の ML プラットフォームでのログ記録など)。決定（早期停止など）。',Tl,Ft,wl,y,Nt,ym,Lr,lh="Trainer is a simple but feature-complete training and eval loop for PyTorch, optimized for 🤗 Transformers.",Tm,Pr,dh="Important attributes:",wm,Fr,ch=`<li><strong>model</strong> — Always points to the core model. If using a transformers model, it will be a <a href="/docs/transformers/main/ja/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>`,xm,Je,zt,Mm,Nr,mh='Add a callback to the current list of <a href="/docs/transformers/main/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>.',$m,Se,Dt,km,zr,ph=`A helper wrapper that creates an appropriate context manager for <code>autocast</code> while feeding it the desired
arguments, depending on the situation.`,qm,te,Wt,Am,Dr,uh="How the loss is computed by Trainer. By default, all models return the loss in the first element.",jm,Wr,gh="Subclass and override for custom behavior.",Cm,Ue,Ht,Im,Hr,hh="A helper wrapper to group together context managers.",Jm,Le,Rt,Sm,Rr,fh="Creates a draft of a model card using the information available to the <code>Trainer</code>.",Um,oe,Et,Lm,Er,_h="Setup the optimizer.",Pm,Br,bh=`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.`,Fm,ne,Bt,Nm,Vr,vh="Setup the optimizer and the learning rate scheduler.",zm,Zr,yh=`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.`,Dm,Pe,Vt,Wm,Xr,Th=`Setup the scheduler. The optimizer of the trainer must have been set up either before this method is called or
passed as an argument.`,Hm,H,Zt,Rm,Gr,wh="Run evaluation and returns metrics.",Em,Or,xh=`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).`,Bm,Yr,Mh="You can also subclass and override this method to inject custom behavior.",Vm,ae,Xt,Zm,Qr,$h="Prediction/evaluation loop, shared by <code>Trainer.evaluate()</code> and <code>Trainer.predict()</code>.",Xm,Kr,kh="Works both with or without labels.",Gm,Fe,Gt,Om,es,qh=`For models that inherit from <a href="/docs/transformers/main/ja/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.`,Ym,R,Ot,Qm,ts,Ah="Get all parameter names that weight decay will be applied to.",Km,os,jh="This function filters out parameters in two ways:",ep,ns,Ch="<li>By layer type (instances of layers specified in ALL_LAYERNORM_LAYERS)</li> <li>By parameter name patterns (containing ‘bias’, ‘layernorm’, or ‘rmsnorm’)</li>",tp,re,Yt,op,as,Ih="Returns the evaluation <code>~torch.utils.data.DataLoader</code>.",np,rs,Jh="Subclass and override this method if you want to inject some custom behavior.",ap,Ne,Qt,rp,ss,Sh="Returns the learning rate of each parameter from self.optimizer.",sp,ze,Kt,ip,is,Uh="Get the number of trainable parameters.",lp,De,eo,dp,ls,Lh="Returns the optimizer class and optimizer parameters based on the training arguments.",cp,We,to,mp,ds,Ph="Returns optimizer group for a parameter if given, else returns all optimizer groups for params.",pp,se,oo,up,cs,Fh="Returns the test <code>~torch.utils.data.DataLoader</code>.",gp,ms,Nh="Subclass and override this method if you want to inject some custom behavior.",hp,E,no,fp,ps,zh="Returns the training <code>~torch.utils.data.DataLoader</code>.",_p,us,Dh=`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.`,bp,gs,Wh="Subclass and override this method if you want to inject some custom behavior.",vp,ie,ao,yp,hs,Hh=`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.`,Tp,He,wp,Re,ro,xp,fs,Rh="Initializes a git repo in <code>self.args.hub_model_id</code>.",Mp,Ee,so,$p,_s,Eh=`Whether or not this process is the local (e.g., on one machine if training in a distributed fashion on several
machines) main process.`,kp,Be,io,qp,bs,Bh=`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).`,Ap,le,lo,jp,vs,Vh="Log <code>logs</code> on the various objects watching training.",Cp,ys,Zh="Subclass and override this method to inject custom behavior.",Ip,I,co,Jp,Ts,Xh="Log metrics in a specially formatted way.",Sp,ws,Gh="Under distributed environment this is done only for a process with rank 0.",Up,xs,Oh="Notes on memory reports:",Lp,Ms,Yh="In order to get memory usage report you need to install <code>psutil</code>. You can do that with <code>pip install psutil</code>.",Pp,Ve,Fp,$s,Qh="<strong>Understanding the reports:</strong>",Np,ks,Kh=`<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>`,zp,qs,ef=`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.`,Dp,As,tf=`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.`,Wp,js,of=`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.`,Hp,Cs,nf=`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.`,Rp,Is,af=`Note that this tracker doesn’t account for memory allocations outside of <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a>’s <code>__init__</code>, <code>train</code>,
<code>evaluate</code> and <code>predict</code> calls.`,Ep,Js,rf=`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.`,Bp,Ss,sf=`This also means that if any other tool that is used along the <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> calls
<code>torch.cuda.reset_peak_memory_stats</code>, the gpu peak memory stats could be invalid. And the <a href="/docs/transformers/main/ja/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.`,Vp,Us,lf="For best performance you may want to consider turning the memory profiling off for production runs.",Zp,Ze,mo,Xp,Ls,df="Reformat Trainer metrics values to a human-readable format.",Gp,Xe,po,Op,Ps,cf=`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`,Yp,Ge,uo,Qp,Fs,mf="Helper to get number of tokens in a <code>~torch.utils.data.DataLoader</code> by enumerating dataloader.",Kp,de,go,eu,Ns,pf='Remove a callback from the current list of <a href="/docs/transformers/main/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> and returns it.',tu,zs,uf="If the callback is not found, returns <code>None</code> (and no error is raised).",ou,F,ho,nu,Ds,gf="Run prediction and returns predictions and potential metrics.",au,Ws,hf=`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>.`,ru,Oe,su,Hs,ff="Returns: <em>NamedTuple</em> A namedtuple with the following keys:",iu,Rs,_f=`<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>`,lu,ce,fo,du,Es,bf="Prediction/evaluation loop, shared by <code>Trainer.evaluate()</code> and <code>Trainer.predict()</code>.",cu,Bs,vf="Works both with or without labels.",mu,me,_o,pu,Vs,yf="Perform an evaluation step on <code>model</code> using <code>inputs</code>.",uu,Zs,Tf="Subclass and override to inject custom behavior.",gu,Ye,bo,hu,Xs,wf="Sets values in the deepspeed plugin based on the Trainer args",fu,Qe,vo,_u,Gs,xf="Upload <code>self.model</code> and <code>self.processing_class</code> to the 🤗 model hub on the repo <code>self.args.hub_model_id</code>.",bu,Ke,yo,vu,Os,Mf='Remove a callback from the current list of <a href="/docs/transformers/main/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>.',yu,B,To,Tu,Ys,$f="Save metrics into a json file for that split, e.g. <code>train_results.json</code>.",wu,Qs,kf="Under distributed environment this is done only for a process with rank 0.",xu,Ks,qf=`To understand the metrics please read the docstring of <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer.log_metrics">log_metrics()</a>. The only difference is that raw
unformatted numbers are saved in the current method.`,Mu,pe,wo,$u,ei,Af="Will save the model, so you can reload it using <code>from_pretrained()</code>.",ku,ti,jf="Will only save from the main process.",qu,ue,xo,Au,oi,Cf="Saves the Trainer state, since Trainer.save_model saves only the tokenizer with the model.",ju,ni,If="Under distributed environment this is done only for a process with rank 0.",Cu,ge,Mo,Iu,ai,Jf="Calculates and returns the following values:",Ju,ri,Sf="<li><code>num_train_epochs</code></li> <li><code>num_update_steps_per_epoch</code></li> <li><code>num_examples</code></li> <li><code>num_train_samples</code></li> <li><code>epoch_based</code></li> <li><code>len_dataloader</code></li> <li><code>max_steps</code></li>",Su,et,$o,Uu,si,Uf="Main training entry point.",Lu,he,ko,Pu,ii,Lf="Perform a training step on a batch of inputs.",Fu,li,Pf="Subclass and override to inject custom behavior.",xl,qo,Ml,Q,Ao,Nu,V,jo,zu,di,Ff="Run evaluation and returns metrics.",Du,ci,Nf=`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).`,Wu,mi,zf="You can also subclass and override this method to inject custom behavior.",Hu,N,Co,Ru,pi,Df="Run prediction and returns predictions and potential metrics.",Eu,ui,Wf=`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>.`,Bu,tt,Vu,gi,Hf="Returns: <em>NamedTuple</em> A namedtuple with the following keys:",Zu,hi,Rf=`<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>`,$l,Io,kl,A,Jo,Xu,fi,Ef=`TrainingArguments is the subset of the arguments we use in our example scripts <strong>which relate to the training loop
itself</strong>.`,Gu,_i,Bf=`Using <a href="/docs/transformers/main/ja/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.`,Ou,D,So,Yu,bi,Vf=`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.`,Qu,vi,Zf=`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.`,Ku,yi,Xf=`For the replica processes the log level defaults to <code>logging.WARNING</code> unless overridden by <code>log_level_replica</code>
argument.`,eg,Ti,Gf="The choice between the main and replica process settings is made according to the return value of <code>should_log</code>.",tg,ot,Uo,og,wi,Of="Get number of steps used for a linear warmup.",ng,fe,Lo,ag,xi,Yf=`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.`,rg,Mi,Qf=`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.`,sg,_e,Po,ig,$i,Kf="A method that regroups all arguments linked to the dataloaders creation.",lg,nt,dg,be,Fo,cg,ki,e_="A method that regroups all arguments linked to evaluation.",mg,at,pg,ve,No,ug,qi,t_="A method that regroups all arguments linked to logging.",gg,rt,hg,ye,zo,fg,Ai,o_="A method that regroups all arguments linked to the learning rate scheduler and its hyperparameters.",_g,st,bg,Te,Do,vg,ji,n_="A method that regroups all arguments linked to the optimizer and its hyperparameters.",yg,it,Tg,Z,Wo,wg,Ci,a_="A method that regroups all arguments linked to synchronizing checkpoints with the Hub.",xg,lt,Mg,dt,$g,we,Ho,kg,Ii,r_="A method that regroups all arguments linked to checkpoint saving.",qg,ct,Ag,X,Ro,jg,Ji,s_="A method that regroups all basic arguments linked to testing on a held-out dataset.",Cg,mt,Ig,pt,Jg,G,Eo,Sg,Si,i_="A method that regroups all basic arguments linked to the training.",Ug,ut,Lg,gt,Pg,ht,Bo,Fg,Ui,l_=`Serializes this instance while replace <code>Enum</code> by their values (for JSON serialization support). It obfuscates
the token values by removing their value.`,Ng,ft,Vo,zg,Li,d_="Serializes this instance to a JSON string.",Dg,_t,Zo,Wg,Pi,c_="Sanitized serialization to use with TensorBoard’s hparams",ql,Xo,Al,W,Go,Hg,Fi,m_=`TrainingArguments is the subset of the arguments we use in our example scripts <strong>which relate to the training loop
itself</strong>.`,Rg,Ni,p_=`Using <a href="/docs/transformers/main/ja/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.`,Eg,bt,Oo,Bg,zi,u_=`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.`,jl,Yo,Cl,Qo,g_=`デフォルトでは、<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> はすべてのチェックポイントを、
<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> を使用しています。これらは、xxx を含む<code>checkpoint-xxx</code>という名前のサブフォルダーに保存されます。
それはトレーニングの段階でした。`,Il,Ko,h_='チェックポイントからトレーニングを再開するには、次のいずれかを使用して <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer.train">Trainer.train()</a> を呼び出します。',Jl,en,f_=`<li><code>resume_from_checkpoint=True</code> は最新のチェックポイントからトレーニングを再開します</li> <li><code>resume_from_checkpoint=checkpoint_dir</code> ディレクトリ内の特定のチェックポイントからトレーニングを再開します
合格した。</li>`,Sl,tn,__=`さらに、<code>push_to_hub=True</code> を使用すると、モデル ハブにチェックポイントを簡単に保存できます。デフォルトでは、すべて
中間チェックポイントに保存されたモデルは別のコミットに保存されますが、オプティマイザーの状態は保存されません。適応できます
<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> の <code>hub-strategy</code> 値を次のいずれかにします。`,Ul,on,b_=`<li><code>&quot;checkpoint&quot;</code>: 最新のチェックポイントも last-checkpoint という名前のサブフォルダーにプッシュされます。
<code>trainer.train(resume_from_checkpoint=&quot;output_dir/last-checkpoint&quot;)</code> を使用してトレーニングを簡単に再開します。</li> <li><code>&quot;all_checkpoints&quot;</code>: すべてのチェックポイントは、出力フォルダーに表示されるようにプッシュされます (したがって、1 つのチェックポイントが得られます)
最終リポジトリ内のフォルダーごとのチェックポイント フォルダー)</li>`,Ll,nn,Pl,an,v_='デフォルトでは、<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> はメインプロセスに <code>logging.INFO</code> を使用し、レプリカがある場合には <code>logging.WARNING</code> を使用します。',Fl,rn,y_=`これらのデフォルトは、<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> の 5 つの <code>logging</code> レベルのいずれかを使用するようにオーバーライドできます。
引数:`,Nl,sn,T_="<li><code>log_level</code> - メインプロセス用</li> <li><code>log_level_replica</code> - レプリカ用</li>",zl,ln,w_=`さらに、<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> の <code>log_on_each_node</code> が <code>False</code> に設定されている場合、メイン ノードのみが
メイン プロセスのログ レベル設定を使用すると、他のすべてのノードはレプリカのログ レベル設定を使用します。`,Dl,dn,x_=`<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> は、<code>transformers</code> のログ レベルをノードごとに個別に設定することに注意してください。
<code>Trainer.__init__()</code>。したがって、他の機能を利用する場合は、これをより早く設定することをお勧めします (次の例を参照)。
<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> オブジェクトを作成する前の <code>transformers</code> 機能。`,Wl,cn,M_="これをアプリケーションで使用する方法の例を次に示します。",Hl,mn,Rl,pn,$_=`そして、メイン ノードと他のすべてのノードで重複する可能性が高いものを出力しないように警告するだけを表示したい場合は、
警告: 次のように実行できます。`,El,un,Bl,gn,k_=`マルチノード環境で、各ノードのメインプロセスのログを繰り返したくない場合は、次のようにします。
上記を次のように変更します。`,Vl,hn,Zl,fn,q_=`その後、最初のノードのメイン プロセスのみが「警告」レベルでログに記録され、メイン ノード上の他のすべてのプロセスはログに記録されます。
ノードと他のノード上のすべてのプロセスは「エラー」レベルでログに記録されます。`,Xl,_n,A_="アプリケーションをできるだけ静かにする必要がある場合は、次のようにします。",Gl,bn,Ol,vn,j_="(マルチノード環境の場合は <code>--log_on_each_node 0</code> を追加します)",Yl,yn,Ql,Tn,C_=`<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> によって生成されたチェックポイントから再開する場合、すべての努力がその状態を復元するために行われます。
<em>python</em>、<em>numpy</em>、および <em>pytorch</em> の RNG 状態は、そのチェックポイントを保存した時点と同じ状態になります。
これにより、「停止して再開」というスタイルのトレーニングが、ノンストップトレーニングに可能な限り近づけられるはずです。`,Kl,wn,I_=`ただし、さまざまなデフォルトの非決定的な pytorch 設定により、これは完全に機能しない可能性があります。フルをご希望の場合は
決定論については、<a href="https://pytorch.org/docs/stable/notes/randomness" rel="nofollow">ランダム性のソースの制御</a> を参照してください。ドキュメントで説明されているように、これらの設定の一部は
物事を決定論的にするもの (例: <code>torch.backends.cudnn.deterministic</code>) は物事を遅くする可能性があるため、これは
デフォルトでは実行できませんが、必要に応じて自分で有効にすることができます。`,ed,xn,td,Mn,J_="どの GPU をどのような順序で使用するかをプログラムに指示する方法について説明します。",od,$n,S_='<a href="https://pytorch.org/docs/stable/generated/torch.nn.Parallel.DistributedDataParallel.html" rel="nofollow"><code>DistributedDataParallel</code></a> を使用して GPU のサブセットのみを使用する場合、使用する GPU の数を指定するだけです。 。たとえば、GPU が 4 つあるが、最初の 2 つを使用したい場合は、次のようにします。',nd,kn,ad,qn,U_='<a href="https://github.com/huggingface/accelerate" rel="nofollow"><code>accelerate</code></a> または <a href="https://github.com/deepspeedai/DeepSpeed" rel="nofollow"><code>deepspeed</code></a> がインストールされている場合は、次を使用して同じことを達成することもできます。の一つ：',rd,An,sd,jn,id,Cn,L_='これらのランチャーを使用するために、Accelerate または <a href="deepspeed">Deepspeed 統合</a> 機能を使用する必要はありません。',ld,In,P_="これまでは、プログラムに使用する GPU の数を指示できました。次に、特定の GPU を選択し、その順序を制御する方法について説明します。",dd,Jn,F_="次の環境変数は、使用する GPU とその順序を制御するのに役立ちます。",cd,Sn,N_="<strong><code>CUDA_VISIBLE_DEVICES</code></strong>",md,Un,z_="複数の GPU があり、そのうちの 1 つまたはいくつかの GPU だけを使用したい場合は、環境変数 <code>CUDA_VISIBLE_DEVICES</code> を使用する GPU のリストに設定します。",pd,Ln,D_="たとえば、4 つの GPU (0、1、2、3) があるとします。物理 GPU 0 と 2 のみで実行するには、次のようにします。",ud,Pn,gd,Fn,W_="したがって、pytorch は 2 つの GPU のみを認識し、物理 GPU 0 と 2 はそれぞれ <code>cuda:0</code> と <code>cuda:1</code> にマッピングされます。",hd,Nn,H_="順序を変更することもできます。",fd,zn,_d,Dn,R_="ここでは、物理 GPU 0 と 2 がそれぞれ<code>cuda:1</code>と<code>cuda:0</code>にマッピングされています。",bd,Wn,E_='上記の例はすべて <code>DistributedDataParallel</code> 使用パターンのものですが、同じ方法が <a href="https://pytorch.org/docs/stable/generated/torch.nn.DataParallel.html" rel="nofollow"><code>DataParallel</code></a> でも機能します。',vd,Hn,yd,Rn,B_="GPU のない環境をエミュレートするには、次のようにこの環境変数を空の値に設定するだけです。",Td,En,wd,Bn,V_="他の環境変数と同様に、これらをコマンド ラインに追加する代わりに、次のようにエクスポートすることもできます。",xd,Vn,Md,Zn,Z_="ただし、この方法では、以前に環境変数を設定したことを忘れて、なぜ間違った GPU が使用されているのか理解できない可能性があるため、混乱を招く可能性があります。したがって、このセクションのほとんどの例で示されているように、同じコマンド ラインで特定の実行に対してのみ環境変数を設定するのが一般的です。",$d,Xn,X_="<strong><code>CUDA_DEVICE_ORDER</code></strong>",kd,Gn,G_="物理デバイスの順序を制御する追加の環境変数 <code>CUDA_DEVICE_ORDER</code> があります。選択肢は次の 2 つです。",qd,On,O_="<li>PCIe バス ID 順 (<code>nvidia-smi</code> の順序と一致) - これがデフォルトです。</li>",Ad,Yn,jd,vt,Y_="<li>GPU コンピューティング能力順に並べる</li>",Cd,Qn,Id,Kn,Q_="ほとんどの場合、この環境変数を気にする必要はありませんが、古い GPU と新しい GPU が物理的に挿入されているため、遅い古いカードが遅くなっているように見えるような偏ったセットアップを行っている場合には、非常に役立ちます。初め。これを解決する 1 つの方法は、カードを交換することです。ただし、カードを交換できない場合 (デバイスの冷却が影響を受けた場合など)、<code>CUDA_DEVICE_ORDER=FASTEST_FIRST</code>を設定すると、常に新しい高速カードが最初に配置されます。ただし、<code>nvidia-smi</code>は依然として PCIe の順序でレポートするため、多少混乱するでしょう。",Jd,ea,K_="順序を入れ替えるもう 1 つの解決策は、以下を使用することです。",Sd,ta,Ud,oa,eb="この例では 2 つの GPU だけを使用していますが、もちろん、コンピューターに搭載されている数の GPU にも同じことが当てはまります。",Ld,na,tb="また、この環境変数を設定する場合は、<code>~/.bashrc</code> ファイルまたはその他の起動設定ファイルに設定して、忘れるのが最善です。",Pd,aa,Fd,ra,ob=`<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> は、トレーニングを劇的に改善する可能性のあるライブラリをサポートするように拡張されました。
時間とはるかに大きなモデルに適合します。`,Nd,sa,nb='現在、サードパーティのソリューション <a href="https://github.com/deepspeedai/DeepSpeed" rel="nofollow">DeepSpeed</a> および <a href="https://pytorch.org/docs/stable/fsdp.html" rel="nofollow">PyTorch FSDP</a> をサポートしています。論文 <a href="https://arxiv.org/abs/1910.02054" rel="nofollow">ZeRO: メモリの最適化兆パラメータ モデルのトレーニングに向けて、Samyam Rajbhandari、Jeff Rasley、Olatunji Ruwase、Yuxiong He 著</a>。',zd,ia,ab='この提供されるサポートは、この記事の執筆時点では新しくて実験的なものです。 DeepSpeed と PyTorch FSDP のサポートはアクティブであり、それに関する問題は歓迎しますが、FairScale 統合は PyTorch メインに統合されているため、もうサポートしていません (<a href="#pytorch-fully-sharded-data-parallel">PyTorch FSDP 統合</a>)',Dd,Di,Wd,la,Hd,da,rb="この記事の執筆時点では、Deepspeed を使用するには、CUDA C++ コードをコンパイルする必要があります。",Rd,ca,sb=`すべてのインストールの問題は、<a href="https://github.com/deepspeedai/DeepSpeed/issues" rel="nofollow">Deepspeed</a> の対応する GitHub の問題を通じて対処する必要がありますが、ビルド中に発生する可能性のある一般的な問題がいくつかあります。
CUDA 拡張機能を構築する必要がある PyTorch 拡張機能。`,Ed,ma,ib="したがって、次の操作を実行中に CUDA 関連のビルドの問題が発生した場合は、次のとおりです。",Bd,pa,Vd,ua,lb="まず次の注意事項をお読みください。",Zd,ga,db=`これらのノートでは、<code>pytorch</code> が CUDA <code>10.2</code> でビルドされた場合に何をすべきかの例を示します。あなたの状況が次のような場合
異なる場合は、バージョン番号を目的のバージョンに調整することを忘れないでください。`,Xd,ha,Gd,fa,cb=`Pytorch には独自の CUDA ツールキットが付属していますが、これら 2 つのプロジェクトをビルドするには、同一バージョンの CUDA が必要です。
システム全体にインストールされます。`,Od,_a,mb=`たとえば、Python 環境に <code>cudatoolkit==10.2</code> を指定して <code>pytorch</code> をインストールした場合は、次のものも必要です。
CUDA <code>10.2</code> がシステム全体にインストールされました。`,Yd,ba,pb=`正確な場所はシステムによって異なる場合がありますが、多くのシステムでは<code>/usr/local/cuda-10.2</code>が最も一般的な場所です。
Unix システム。 CUDA が正しく設定され、<code>PATH</code>環境変数に追加されると、
次のようにしてインストール場所を指定します。`,Qd,va,Kd,ya,ub=`CUDA がシステム全体にインストールされていない場合は、最初にインストールしてください。お気に入りを使用して手順を見つけることができます
検索エンジン。たとえば、Ubuntu を使用している場合は、<a href="https://www.google.com/search?q=ubuntu+cuda+10.2+install" rel="nofollow">ubuntu cuda 10.2 install</a> を検索するとよいでしょう。`,ec,Ta,tc,wa,gb=`もう 1 つの考えられる一般的な問題は、システム全体に複数の CUDA ツールキットがインストールされている可能性があることです。たとえばあなた
がある可能性があり：`,oc,xa,nc,Ma,hb=`この状況では、<code>PATH</code> および <code>LD_LIBRARY_PATH</code> 環境変数に以下が含まれていることを確認する必要があります。
目的の CUDA バージョンへの正しいパス。通常、パッケージ インストーラーは、これらに、
最後のバージョンがインストールされました。適切なパッケージが見つからないためにパッケージのビルドが失敗するという問題が発生した場合は、
CUDA バージョンがシステム全体にインストールされているにもかかわらず、前述の 2 つを調整する必要があることを意味します
環境変数。`,ac,$a,fb="まず、その内容を見てみましょう。",rc,ka,sc,qa,_b="それで、中に何が入っているかがわかります。",ic,Aa,bb="<code>LD_LIBRARY_PATH</code> が空である可能性があります。",lc,ja,vb=`<code>PATH</code> は実行可能ファイルが存在する場所をリストし、<code>LD_LIBRARY_PATH</code> は共有ライブラリの場所を示します。
探すことです。どちらの場合も、前のエントリが後のエントリより優先されます。 <code>:</code> は複数を区切るために使用されます
エントリ。`,dc,Ca,yb=`ここで、ビルド プログラムに特定の CUDA ツールキットの場所を指示するには、最初にリストされる希望のパスを挿入します。
やっていること：`,cc,Ia,mc,Ja,Tb="既存の値を上書きするのではなく、先頭に追加することに注意してください。",pc,Sa,wb=`もちろん、必要に応じてバージョン番号やフルパスを調整します。割り当てたディレクトリが実際に機能することを確認してください
存在する。 <code>lib64</code> サブディレクトリは、<code>libcudart.so</code> などのさまざまな CUDA <code>.so</code> オブジェクトが存在する場所です。
システムでは別の名前が付けられますが、現実を反映するように調整してください。`,uc,Ua,gc,La,xb=`一部の古い CUDA バージョンは、新しいコンパイラでのビルドを拒否する場合があります。たとえば、あなたは<code>gcc-9</code>を持っていますが、それが必要です
<code>gcc-7</code>。`,hc,Pa,Mb="それにはさまざまな方法があります。",fc,Fa,$b="最新の CUDA ツールキットをインストールできる場合は、通常、新しいコンパイラがサポートされているはずです。",_c,Na,kb=`あるいは、既に所有しているコンパイラに加えて、下位バージョンのコンパイラをインストールすることもできます。
すでに存在しますが、デフォルトではないため、ビルドシステムはそれを認識できません。 「gcc-7」がインストールされているが、
ビルドシステムが見つからないというメッセージを表示する場合は、次の方法で解決できる可能性があります。`,bc,za,vc,Da,qb=`ここでは、<code>/usr/local/cuda-10.2/bin/gcc</code> から <code>gcc-7</code> へのシンボリックリンクを作成しています。
<code>/usr/local/cuda-10.2/bin/</code> は <code>PATH</code> 環境変数内にある必要があります (前の問題の解決策を参照)。
<code>gcc-7</code> (および <code>g++7</code>) が見つかるはずで、ビルドは成功します。`,yc,Wa,Ab="いつものように、状況に合わせて例のパスを編集してください。",Tc,Ha,wc,Ra,jb=`より大きなバッチ サイズで巨大なモデルのトレーニングを高速化するには、完全にシャード化されたデータ並列モデルを使用できます。
このタイプのデータ並列パラダイムでは、オプティマイザーの状態、勾配、パラメーターをシャーディングすることで、より多くのデータと大規模なモデルをフィッティングできます。
この機能とその利点の詳細については、<a href="https://pytorch.org/blog/introducing-pytorch-full-sharded-data-Parallel-api/" rel="nofollow">完全シャーディング データ並列ブログ</a> をご覧ください。
最新の PyTorch の Fully Sharded Data Parallel (FSDP) トレーニング機能を統合しました。
必要なのは、設定を通じて有効にすることだけです。`,xc,Ea,Cb=`<strong>FSDP サポートに必要な PyTorch バージョン</strong>: PyTorch Nightly (リリース後にこれを読んだ場合は 1.12.0)
FSDP を有効にしたモデルの保存は、最近の修正でのみ利用できるためです。`,Mc,Ba,Ib="<strong>使用法</strong>：",$c,Va,Jb=`<li><p>配布されたランチャーが追加されていることを確認してください
まだ使用していない場合は、<code>-m torch.distributed.launch --nproc_per_node=NUMBER_OF_GPUS_YOU_HAVE</code>を使用します。</p></li> <li><p><strong>シャーディング戦略</strong>:</p> <ul><li>FULL_SHARD : データ並列ワーカー/GPU にわたるシャード オプティマイザーの状態 + 勾配 + モデル パラメーター。
このためには、コマンドライン引数に<code>--fsdp full_shard</code>を追加します。</li> <li>SHARD_GRAD_OP : シャード オプティマイザーの状態 + データ並列ワーカー/GPU 全体の勾配。
このためには、コマンドライン引数に<code>--fsdp shard_grad_op</code>を追加します。</li> <li>NO_SHARD : シャーディングなし。このためには、コマンドライン引数に<code>--fsdp no_shard</code>を追加します。</li></ul></li> <li><p>パラメータと勾配を CPU にオフロードするには、
コマンドライン引数に<code>--fsdp &quot;full_shard offload&quot;</code>または<code>--fsdp &quot;shard_grad_op offload&quot;</code>を追加します。</p></li> <li><p><code>default_auto_wrap_policy</code> を使用して FSDP でレイヤーを自動的に再帰的にラップするには、
コマンドライン引数に<code>--fsdp &quot;full_shard auto_wrap&quot;</code>または<code>--fsdp &quot;shard_grad_op auto_wrap&quot;</code>を追加します。</p></li> <li><p>CPU オフロードと自動ラッピングの両方を有効にするには、
コマンドライン引数に<code>--fsdp &quot;full_shard offload auto_wrap&quot;</code>または<code>--fsdp &quot;shard_grad_op offload auto_wrap&quot;</code>を追加します。</p></li> <li><p>残りの FSDP 構成は、<code>--fsdp_config &lt;path_to_fsdp_config.json&gt;</code>を介して渡されます。それは、次のいずれかの場所です。
FSDP json 構成ファイル (例: <code>fsdp_config.json</code>)、またはすでにロードされている json ファイルを <code>dict</code> として使用します。</p> <ul><li>自動ラッピングが有効な場合は、トランスベースの自動ラップ ポリシーまたはサイズ ベースの自動ラップ ポリシーを使用できます。<ul><li>トランスフォーマーベースの自動ラップポリシーの場合、構成ファイルで <code>fsdp_transformer_layer_cls_to_wrap</code> を指定することをお勧めします。指定しない場合、使用可能な場合、デフォルト値は <code>model._no_split_modules</code> になります。
これは、ラップするトランスフォーマー層クラス名のリスト (大文字と小文字を区別) を指定します (例: <code>BertLayer</code>、<code>GPTJBlock</code>、<code>T5Block</code> …)。
重みを共有するサブモジュール (埋め込み層など) が異なる FSDP ラップされたユニットにならないようにする必要があるため、これは重要です。
このポリシーを使用すると、マルチヘッド アテンションとそれに続くいくつかの MLP レイヤーを含むブロックごとにラッピングが発生します。
共有埋め込みを含む残りの層は、同じ最も外側の FSDP ユニットにラップされるのが便利です。
したがって、トランスベースのモデルにはこれを使用してください。</li> <li>サイズベースの自動ラップポリシーの場合は、設定ファイルに<code>fsdp_min_num_params</code>を追加してください。
自動ラッピングのための FSDP のパラメータの最小数を指定します。</li></ul></li> <li>設定ファイルで <code>fsdp_backward_prefetch</code> を指定できるようになりました。次のパラメータのセットをいつプリフェッチするかを制御します。
<code>backward_pre</code> と <code>backward_pos</code> が利用可能なオプションです。
詳細については、<code>torch.distributed.fsdp.full_sharded_data_Parallel.BackwardPrefetch</code>を参照してください。</li> <li>設定ファイルで <code>fsdp_forward_prefetch</code> を指定できるようになりました。次のパラメータのセットをいつプリフェッチするかを制御します。
<code>True</code>の場合、FSDP はフォワード パスでの実行中に、次に来るオールギャザーを明示的にプリフェッチします。</li> <li>設定ファイルで <code>limit_all_gathers</code> を指定できるようになりました。
<code>True</code>の場合、FSDP は CPU スレッドを明示的に同期して、実行中のオールギャザが多すぎるのを防ぎます。</li> <li><code>activation_checkpointing</code>を設定ファイルで指定できるようになりました。
<code>True</code>の場合、FSDP アクティベーション チェックポイントは、FSDP のアクティベーションをクリアすることでメモリ使用量を削減する手法です。
特定のレイヤーを処理し、バックワード パス中にそれらを再計算します。事実上、これは余分な計算時間を犠牲にします
メモリ使用量を削減します。</li></ul></li>`,kc,Za,Sb="<strong>注意すべき注意点がいくつかあります</strong>",qc,Xa,Ub=`<li>これは <code>generate</code> と互換性がないため、 <code>--predict_with_generate</code> とも互換性がありません
すべての seq2seq/clm スクリプト (翻訳/要約/clm など)。
問題 <a href="https://github.com/huggingface/transformers/issues/21667" rel="nofollow">#21667</a> を参照してください。</li>`,Ac,Ga,jc,Oa,Lb=`TPU ユーザーの皆様に朗報です。 PyTorch/XLA は FSDP をサポートするようになりました。
最新の Fully Sharded Data Parallel (FSDP) トレーニングがすべてサポートされています。
詳細については、<a href="https://pytorch.org/blog/scaling-pytorch-models-on-cloud-tpus-with-fsdp/" rel="nofollow">FSDP を使用した Cloud TPU での PyTorch モデルのスケーリング</a> および <a href="https://github.com/pytorch/xla/tree/master/torch_xla/distributed/fsdp" rel="nofollow">PyTorch/XLA 実装 を参照してください。 FSDP の</a>
必要なのは、設定を通じて有効にすることだけです。`,Cc,Ya,Pb="<strong>FSDP サポートに必要な PyTorch/XLA バージョン</strong>: &gt;=2.0",Ic,Qa,Fb="<strong>使用法</strong>：",Jc,Ka,Nb="<code>--fsdp &quot;full shard&quot;</code> を、<code>--fsdp_config &lt;path_to_fsdp_config.json&gt;</code> に加えられる次の変更とともに渡します。",Sc,er,zb=`<li>PyTorch/XLA FSDP を有効にするには、<code>xla</code>を<code>True</code>に設定する必要があります。</li> <li><code>xla_fsdp_settings</code> 値は、XLA FSDP ラッピング パラメータを格納する辞書です。
オプションの完全なリストについては、<a href="https://github.com/pytorch/xla/blob/master/torch_xla/distributed/fsdp/xla_full_sharded_data_Parallel.py" rel="nofollow">こちら</a>。</li> <li><code>xla_fsdp_grad_ckpt</code>。 <code>True</code>の場合、ネストされた XLA FSDP でラップされた各レイヤー上で勾配チェックポイントを使用します。
この設定は、xla フラグが true に設定されており、自動ラッピング ポリシーが指定されている場合にのみ使用できます。
<code>fsdp_min_num_params</code> または <code>fsdp_transformer_layer_cls_to_wrap</code>。</li> <li>トランスフォーマー ベースの自動ラップ ポリシーまたはサイズ ベースの自動ラップ ポリシーのいずれかを使用できます。<ul><li>トランスフォーマーベースの自動ラップポリシーの場合、構成ファイルで <code>fsdp_transformer_layer_cls_to_wrap</code> を指定することをお勧めします。指定しない場合、使用可能な場合、デフォルト値は <code>model._no_split_modules</code> になります。
これは、ラップするトランスフォーマー層クラス名のリスト (大文字と小文字を区別) を指定します (例: <code>BertLayer</code>、<code>GPTJBlock</code>、<code>T5Block</code> …)。
重みを共有するサブモジュール (埋め込み層など) が異なる FSDP ラップされたユニットにならないようにする必要があるため、これは重要です。
このポリシーを使用すると、マルチヘッド アテンションとそれに続くいくつかの MLP レイヤーを含むブロックごとにラッピングが発生します。
共有埋め込みを含む残りの層は、同じ最も外側の FSDP ユニットにラップされるのが便利です。
したがって、トランスベースのモデルにはこれを使用してください。</li> <li>サイズベースの自動ラップポリシーの場合は、設定ファイルに<code>fsdp_min_num_params</code>を追加してください。
自動ラッピングのための FSDP のパラメータの最小数を指定します。</li></ul></li>`,Uc,tr,Lc,or,Db=`PyTorch v1.12 リリースにより、開発者と研究者は Apple シリコン GPU を利用してモデル トレーニングを大幅に高速化できます。
これにより、プロトタイピングや微調整などの機械学習ワークフローを Mac 上でローカルで実行できるようになります。
PyTorch のバックエンドとしての Apple の Metal Performance Shaders (MPS) はこれを可能にし、新しい <code>&quot;mps&quot;</code> デバイス経由で使用できます。
これにより、計算グラフとプリミティブが MPS Graph フレームワークと MPS によって提供される調整されたカーネルにマッピングされます。
詳細については、公式ドキュメント <a href="https://pytorch.org/blog/introducing-accelerated-pytorch-training-on-mac/" rel="nofollow">Mac での Accelerated PyTorch Training の紹介</a> を参照してください。
および <a href="https://pytorch.org/docs/stable/notes/mps.html" rel="nofollow">MPS バックエンド</a>。`,Pc,yt,Fc,nr,Wb="<strong>Apple Silicon チップを使用したトレーニングと推論の利点</strong>",Nc,ar,Hb=`<li>ユーザーがローカルで大規模なネットワークやバッチ サイズをトレーニングできるようにします</li> <li>ユニファイド メモリ アーキテクチャにより、データ取得の遅延が短縮され、GPU がメモリ ストア全体に直接アクセスできるようになります。
したがって、エンドツーエンドのパフォーマンスが向上します。</li> <li>クラウドベースの開発に関連するコストや追加のローカル GPU の必要性を削減します。</li>`,zc,rr,Rb=`<strong>前提条件</strong>: mps サポートを備えたトーチをインストールするには、
この素晴らしいメディア記事 <a href="https://medium.com/towards-data-science/gpu-acceleration-comes-to-pytorch-on-m1-macs-195c399efcc1" rel="nofollow">GPU アクセラレーションが M1 Mac の PyTorch に登場</a> に従ってください。 。`,Dc,sr,Eb=`<strong>使用法</strong>：
<code>mps</code> デバイスは、<code>cuda</code> デバイスが使用される方法と同様に利用可能な場合、デフォルトで使用されます。
したがって、ユーザーによるアクションは必要ありません。
たとえば、以下のコマンドを使用して、Apple Silicon GPU を使用して公式の Glue テキスト分類タスクを (ルート フォルダーから) 実行できます。`,Wc,ir,Hc,lr,Bb="<strong>注意すべきいくつかの注意事項</strong>",Rc,dr,Vb=`<li>一部の PyTorch 操作は mps に実装されていないため、エラーがスローされます。
これを回避する 1 つの方法は、環境変数 <code>PYTORCH_ENABLE_MPS_FALLBACK=1</code> を設定することです。
これらの操作では CPU にフォールバックします。ただし、それでも UserWarning がスローされます。</li> <li>分散セットアップ<code>gloo</code>および<code>nccl</code>は、<code>mps</code>デバイスでは動作しません。
これは、現在「mps」デバイス タイプの単一 GPU のみを使用できることを意味します。</li>`,Ec,cr,Zb=`最後に、覚えておいてください。 🤗 <code>Trainer</code> は MPS バックエンドのみを統合するため、
MPS バックエンドの使用に関して問題や質問がある場合は、
<a href="https://github.com/pytorch/pytorch/issues" rel="nofollow">PyTorch GitHub</a> に問題を提出してください。`,Bc,mr,Vc,pr,Xb="加速してトレーナーにパワーを与えましょう。ユーザーが期待することに関しては、次のとおりです。",Zc,ur,Gb="<li>トレーナー引数に対して FSDP、DeepSpeed などのトレーナー インテレーションを変更せずに使用し続けることができます。</li> <li>トレーナーで Accelerate Launcher を使用できるようになりました (推奨)。</li>",Xc,gr,Ob="トレーナーで Accelerate Launcher を使用する手順:",Gc,xe,Wi,Yb="<p>🤗 Accelerate がインストールされていることを確認してください。Accelerate がないと <code>Trainer</code> を使用することはできません。そうでない場合は、<code>pip install accelerate</code>してください。 Accelerate のバージョンを更新する必要がある場合もあります: <code>pip install activate --upgrade</code></p>",Vg,U,Hi,Qb=`<code>accelerate config</code>を実行し、アンケートに記入します。以下は加速設定の例です。
ａ． DDP マルチノード マルチ GPU 構成:`,Zg,hr,Xg,Ri,Kb="b. FSDP config:",Gg,fr,Og,Ei,ev="c.ファイルを指す DeepSpeed 構成:",Yg,_r,Qg,Bi,tv="d.加速プラグインを使用した DeepSpeed 構成:",Kg,br,eh,Vi,ov=`<p>加速設定またはランチャー引数によって上記で処理された引数以外の引数を使用して、トレーナー スクリプトを実行します。
以下は、上記の FSDP 構成で<code>accelerate launcher</code>を使用して<code>run_glue.py</code>を実行する例です。</p>`,Oc,vr,Yc,Tt,nv="<li><code>accelerate launch</code>するための cmd 引数を直接使用することもできます。上の例は次のようにマッピングされます。</li>",Qc,yr,Kc,Tr,av='詳細については、🤗 Accelerate CLI ガイドを参照してください: <a href="https://huggingface.co/docs/accelerate/basic_tutorials/launch" rel="nofollow">🤗 Accelerate スクリプトの起動</a>。',em,wr,rv="移動されたセクション:",tm,xr,sv=`[ <a href="./deepspeed#deepspeed-trainer-integration">DeepSpeed</a><a id="deepspeed"></a>
| <a href="./deepspeed#deepspeed-installation">Installation</a><a id="installation"></a>
| <a href="./deepspeed#deepspeed-multi-gpu">Deployment with multiple GPUs</a><a id="deployment-with-multiple-gpus"></a>
| <a href="./deepspeed#deepspeed-one-gpu">Deployment with one GPU</a><a id="deployment-with-one-gpu"></a>
| <a href="./deepspeed#deepspeed-notebook">Deployment in Notebooks</a><a id="deployment-in-notebooks"></a>
| <a href="./deepspeed#deepspeed-config">Configuration</a><a id="configuration"></a>
| <a href="./deepspeed#deepspeed-config-passing">Passing Configuration</a><a id="passing-configuration"></a>
| <a href="./deepspeed#deepspeed-config-shared">Shared Configuration</a><a id="shared-configuration"></a>
| <a href="./deepspeed#deepspeed-zero">ZeRO</a><a id="zero"></a>
| <a href="./deepspeed#deepspeed-zero2-config">ZeRO-2 Config</a><a id="zero-2-config"></a>
| <a href="./deepspeed#deepspeed-zero3-config">ZeRO-3 Config</a><a id="zero-3-config"></a>
| <a href="./deepspeed#deepspeed-nvme">NVMe Support</a><a id="nvme-support"></a>
| <a href="./deepspeed#deepspeed-zero2-zero3-performance">ZeRO-2 vs ZeRO-3 Performance</a><a id="zero-2-vs-zero-3-performance"></a>
| <a href="./deepspeed#deepspeed-zero2-example">ZeRO-2 Example</a><a id="zero-2-example"></a>
| <a href="./deepspeed#deepspeed-zero3-example">ZeRO-3 Example</a><a id="zero-3-example"></a>
| <a href="./deepspeed#deepspeed-optimizer">Optimizer</a><a id="optimizer"></a>
| <a href="./deepspeed#deepspeed-scheduler">Scheduler</a><a id="scheduler"></a>
| <a href="./deepspeed#deepspeed-fp32">fp32 Precision</a><a id="fp32-precision"></a>
| <a href="./deepspeed#deepspeed-amp">Automatic Mixed Precision</a><a id="automatic-mixed-precision"></a>
| <a href="./deepspeed#deepspeed-bs">Batch Size</a><a id="batch-size"></a>
| <a href="./deepspeed#deepspeed-grad-acc">Gradient Accumulation</a><a id="gradient-accumulation"></a>
| <a href="./deepspeed#deepspeed-grad-clip">Gradient Clipping</a><a id="gradient-clipping"></a>
| <a href="./deepspeed#deepspeed-weight-extraction">Getting The Model Weights Out</a><a id="getting-the-model-weights-out"></a>
]`,om,Mr,nm,pl,am;return $=new L({props:{title:"Trainer",local:"trainer",headingTag:"h1"}}),Ie=new jt({props:{warning:!0,$$slots:{default:[uv]},$$scope:{ctx:C}}}),Lt=new j({props:{code:"ZnJvbSUyMHRvcmNoJTIwaW1wb3J0JTIwbm4lMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwVHJhaW5lciUwQSUwQSUwQWNsYXNzJTIwQ3VzdG9tVHJhaW5lcihUcmFpbmVyKSUzQSUwQSUyMCUyMCUyMCUyMGRlZiUyMGNvbXB1dGVfbG9zcyhzZWxmJTJDJTIwbW9kZWwlMkMlMjBpbnB1dHMlMkMlMjByZXR1cm5fb3V0cHV0cyUzREZhbHNlKSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGxhYmVscyUyMCUzRCUyMGlucHV0cy5wb3AoJTIybGFiZWxzJTIyKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMyUyMGZvcndhcmQlMjBwYXNzJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGxvZ2l0cyUyMCUzRCUyMG91dHB1dHMuZ2V0KCUyMmxvZ2l0cyUyMiklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjMlMjBjb21wdXRlJTIwY3VzdG9tJTIwbG9zcyUyMChzdXBwb3NlJTIwb25lJTIwaGFzJTIwMyUyMGxhYmVscyUyMHdpdGglMjBkaWZmZXJlbnQlMjB3ZWlnaHRzKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGxvc3NfZmN0JTIwJTNEJTIwbm4uQ3Jvc3NFbnRyb3B5TG9zcyh3ZWlnaHQlM0R0b3JjaC50ZW5zb3IoJTVCMS4wJTJDJTIwMi4wJTJDJTIwMy4wJTVEJTJDJTIwZGV2aWNlJTNEbW9kZWwuZGV2aWNlKSklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBsb3NzJTIwJTNEJTIwbG9zc19mY3QobG9naXRzLnZpZXcoLTElMkMlMjBzZWxmLm1vZGVsLmNvbmZpZy5udW1fbGFiZWxzKSUyQyUyMGxhYmVscy52aWV3KC0xKSklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjByZXR1cm4lMjAobG9zcyUyQyUyMG91dHB1dHMpJTIwaWYlMjByZXR1cm5fb3V0cHV0cyUyMGVsc2UlMjBsb3Nz",highlighted:`<span class="hljs-keyword">from</span> torch <span class="hljs-keyword">import</span> nn
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> Trainer


<span class="hljs-keyword">class</span> <span class="hljs-title class_">CustomTrainer</span>(<span class="hljs-title class_ inherited__">Trainer</span>):
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">compute_loss</span>(<span class="hljs-params">self, model, inputs, return_outputs=<span class="hljs-literal">False</span></span>):
        labels = inputs.pop(<span class="hljs-string">&quot;labels&quot;</span>)
        <span class="hljs-comment"># forward pass</span>
        outputs = model(**inputs)
        logits = outputs.get(<span class="hljs-string">&quot;logits&quot;</span>)
        <span class="hljs-comment"># compute custom loss (suppose one has 3 labels with different weights)</span>
        loss_fct = nn.CrossEntropyLoss(weight=torch.tensor([<span class="hljs-number">1.0</span>, <span class="hljs-number">2.0</span>, <span class="hljs-number">3.0</span>], device=model.device))
        loss = loss_fct(logits.view(-<span class="hljs-number">1</span>, self.model.config.num_labels), labels.view(-<span class="hljs-number">1</span>))
        <span class="hljs-keyword">return</span> (loss, outputs) <span class="hljs-keyword">if</span> return_outputs <span class="hljs-keyword">else</span> loss`,wrap:!1}}),Ft=new L({props:{title:"Trainer",local:"transformers.Trainer",headingTag:"h2"}}),Nt=new M({props:{name:"class transformers.Trainer",anchor:"transformers.Trainer",parameters:[{name:"model",val:": typing.Union[transformers.modeling_utils.PreTrainedModel, torch.nn.modules.module.Module, NoneType] = None"},{name:"args",val:": TrainingArguments = None"},{name:"data_collator",val:": typing.Optional[transformers.data.data_collator.DataCollator] = None"},{name:"train_dataset",val:": typing.Union[torch.utils.data.dataset.Dataset, torch.utils.data.dataset.IterableDataset, ForwardRef('datasets.Dataset'), NoneType] = None"},{name:"eval_dataset",val:": typing.Union[torch.utils.data.dataset.Dataset, dict[str, torch.utils.data.dataset.Dataset], ForwardRef('datasets.Dataset'), NoneType] = None"},{name:"processing_class",val:": typing.Union[transformers.tokenization_utils_base.PreTrainedTokenizerBase, transformers.image_processing_utils.BaseImageProcessor, transformers.feature_extraction_utils.FeatureExtractionMixin, transformers.processing_utils.ProcessorMixin, NoneType] = None"},{name:"model_init",val:": typing.Optional[typing.Callable[[], transformers.modeling_utils.PreTrainedModel]] = None"},{name:"compute_loss_func",val:": typing.Optional[typing.Callable] = None"},{name:"compute_metrics",val:": typing.Optional[typing.Callable[[transformers.trainer_utils.EvalPrediction], dict]] = None"},{name:"callbacks",val:": typing.Optional[list[transformers.trainer_callback.TrainerCallback]] = None"},{name:"optimizers",val:": tuple = (None, None)"},{name:"optimizer_cls_and_kwargs",val:": typing.Optional[tuple[type[torch.optim.optimizer.Optimizer], dict[str, typing.Any]]] = None"},{name:"preprocess_logits_for_metrics",val:": typing.Optional[typing.Callable[[torch.Tensor, torch.Tensor], torch.Tensor]] = None"}],parametersDescription:[{anchor:"transformers.Trainer.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <code>torch.nn.Module</code>, <em>optional</em>) &#x2014;
The model to train, evaluate or use for predictions. If not provided, a <code>model_init</code> must be passed.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p><a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> is optimized to work with the <a href="/docs/transformers/main/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> provided by the library. You can still use
your own models defined as <code>torch.nn.Module</code> as long as they work the same way as the &#x1F917; Transformers
models.</p>

					</div>`,name:"model"},{anchor:"transformers.Trainer.args",description:`<strong>args</strong> (<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>, <em>optional</em>) &#x2014;
The arguments to tweak for training. Will default to a basic instance of <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> with the
<code>output_dir</code> set to a directory named <em>tmp_trainer</em> in the current directory if not provided.`,name:"args"},{anchor:"transformers.Trainer.data_collator",description:`<strong>data_collator</strong> (<code>DataCollator</code>, <em>optional</em>) &#x2014;
The function to use to form a batch from a list of elements of <code>train_dataset</code> or <code>eval_dataset</code>. Will
default to <a href="/docs/transformers/main/ja/main_classes/data_collator#transformers.default_data_collator">default_data_collator()</a> if no <code>processing_class</code> is provided, an instance of
<a href="/docs/transformers/main/ja/main_classes/data_collator#transformers.DataCollatorWithPadding">DataCollatorWithPadding</a> otherwise if the processing_class is a feature extractor or tokenizer.`,name:"data_collator"},{anchor:"transformers.Trainer.train_dataset",description:`<strong>train_dataset</strong> (Union[<code>torch.utils.data.Dataset</code>, <code>torch.utils.data.IterableDataset</code>, <code>datasets.Dataset</code>], <em>optional</em>) &#x2014;
The dataset to use for training. If it is a <code>Dataset</code>, columns not accepted by the
<code>model.forward()</code> method are automatically removed.</p>
<p>Note that if it&#x2019;s a <code>torch.utils.data.IterableDataset</code> with some randomization and you are training in a
distributed fashion, your iterable dataset should either use a internal attribute <code>generator</code> that is a
<code>torch.Generator</code> for the randomization that must be identical on all processes (and the Trainer will
manually set the seed of this <code>generator</code> at each epoch) or have a <code>set_epoch()</code> method that internally
sets the seed of the RNGs used.`,name:"train_dataset"},{anchor:"transformers.Trainer.eval_dataset",description:`<strong>eval_dataset</strong> (Union[<code>torch.utils.data.Dataset</code>, Dict[str, <code>torch.utils.data.Dataset</code>, <code>datasets.Dataset</code>]), <em>optional</em>) &#x2014;
The dataset to use for evaluation. If it is a <code>Dataset</code>, columns not accepted by the
<code>model.forward()</code> method are automatically removed. If it is a dictionary, it will evaluate on each
dataset prepending the dictionary key to the metric name.`,name:"eval_dataset"},{anchor:"transformers.Trainer.processing_class",description:`<strong>processing_class</strong> (<code>PreTrainedTokenizerBase</code> or <code>BaseImageProcessor</code> or <code>FeatureExtractionMixin</code> or <code>ProcessorMixin</code>, <em>optional</em>) &#x2014;
Processing class used to process the data. If provided, will be used to automatically process the inputs
for the model, and it will be saved along the model to make it easier to rerun an interrupted training or
reuse the fine-tuned model.
This supercedes the <code>tokenizer</code> argument, which is now deprecated.`,name:"processing_class"},{anchor:"transformers.Trainer.model_init",description:`<strong>model_init</strong> (<code>Callable[[], PreTrainedModel]</code>, <em>optional</em>) &#x2014;
A function that instantiates the model to be used. If provided, each call to <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer.train">train()</a> will start
from a new instance of the model as given by this function.</p>
<p>The function may have zero argument, or a single one containing the optuna/Ray Tune/SigOpt trial object, to
be able to choose different architectures according to hyper parameters (such as layer count, sizes of
inner layers, dropout probabilities etc).`,name:"model_init"},{anchor:"transformers.Trainer.compute_loss_func",description:`<strong>compute_loss_func</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that accepts the raw model outputs, labels, and the number of items in the entire accumulated
batch (batch_size * gradient_accumulation_steps) and returns the loss. For example, see the default <a href="https://github.com/huggingface/transformers/blob/052e652d6d53c2b26ffde87e039b723949a53493/src/transformers/trainer.py#L3618" rel="nofollow">loss function</a> used by <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a>.`,name:"compute_loss_func"},{anchor:"transformers.Trainer.compute_metrics",description:`<strong>compute_metrics</strong> (<code>Callable[[EvalPrediction], Dict]</code>, <em>optional</em>) &#x2014;
The function that will be used to compute metrics at evaluation. Must take a <a href="/docs/transformers/main/ja/internal/trainer_utils#transformers.EvalPrediction">EvalPrediction</a> and return
a dictionary string to metric values. <em>Note</em> When passing TrainingArgs with <code>batch_eval_metrics</code> set to
<code>True</code>, your compute_metrics function must take a boolean <code>compute_result</code> argument. This will be triggered
after the last eval batch to signal that the function needs to calculate and return the global summary
statistics rather than accumulating the batch-level statistics`,name:"compute_metrics"},{anchor:"transformers.Trainer.callbacks",description:`<strong>callbacks</strong> (List of <a href="/docs/transformers/main/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>, <em>optional</em>) &#x2014;
A list of callbacks to customize the training loop. Will add those to the list of default callbacks
detailed in <a href="callback">here</a>.</p>
<p>If you want to remove one of the default callbacks used, use the <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer.remove_callback">Trainer.remove_callback()</a> method.`,name:"callbacks"},{anchor:"transformers.Trainer.optimizers",description:`<strong>optimizers</strong> (<code>Tuple[torch.optim.Optimizer, torch.optim.lr_scheduler.LambdaLR]</code>, <em>optional</em>, defaults to <code>(None, None)</code>) &#x2014;
A tuple containing the optimizer and the scheduler to use. Will default to an instance of <code>AdamW</code> on your
model and a scheduler given by <a href="/docs/transformers/main/ja/main_classes/optimizer_schedules#transformers.get_linear_schedule_with_warmup">get_linear_schedule_with_warmup()</a> controlled by <code>args</code>.`,name:"optimizers"},{anchor:"transformers.Trainer.optimizer_cls_and_kwargs",description:`<strong>optimizer_cls_and_kwargs</strong> (<code>Tuple[Type[torch.optim.Optimizer], Dict[str, Any]]</code>, <em>optional</em>) &#x2014;
A tuple containing the optimizer class and keyword arguments to use.
Overrides <code>optim</code> and <code>optim_args</code> in <code>args</code>. Incompatible with the <code>optimizers</code> argument.</p>
<p>Unlike <code>optimizers</code>, this argument avoids the need to place model parameters on the correct devices before initializing the Trainer.`,name:"optimizer_cls_and_kwargs"},{anchor:"transformers.Trainer.preprocess_logits_for_metrics",description:`<strong>preprocess_logits_for_metrics</strong> (<code>Callable[[torch.Tensor, torch.Tensor], torch.Tensor]</code>, <em>optional</em>) &#x2014;
A function that preprocess the logits right before caching them at each evaluation step. Must take two
tensors, the logits and the labels, and return the logits once processed as desired. The modifications made
by this function will be reflected in the predictions received by <code>compute_metrics</code>.</p>
<p>Note that the labels (second parameter) will be <code>None</code> if the dataset does not have them.`,name:"preprocess_logits_for_metrics"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L316"}}),zt=new M({props:{name:"add_callback",anchor:"transformers.Trainer.add_callback",parameters:[{name:"callback",val:""}],parametersDescription:[{anchor:"transformers.Trainer.add_callback.callback",description:'<strong>callback</strong> (<code>type</code> or [`~transformers.TrainerCallback]`) &#x2014;\nA <a href="/docs/transformers/main/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> class or an instance of a <a href="/docs/transformers/main/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>. In the\nfirst case, will instantiate a member of that class.',name:"callback"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L862"}}),Dt=new M({props:{name:"autocast_smart_context_manager",anchor:"transformers.Trainer.autocast_smart_context_manager",parameters:[{name:"cache_enabled",val:": typing.Optional[bool] = True"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3686"}}),Wt=new M({props:{name:"compute_loss",anchor:"transformers.Trainer.compute_loss",parameters:[{name:"model",val:""},{name:"inputs",val:""},{name:"return_outputs",val:" = False"},{name:"num_items_in_batch",val:" = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3778"}}),Ht=new M({props:{name:"compute_loss_context_manager",anchor:"transformers.Trainer.compute_loss_context_manager",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3680"}}),Rt=new M({props:{name:"create_model_card",anchor:"transformers.Trainer.create_model_card",parameters:[{name:"language",val:": typing.Optional[str] = None"},{name:"license",val:": typing.Optional[str] = None"},{name:"tags",val:": typing.Union[str, list[str], NoneType] = None"},{name:"model_name",val:": typing.Optional[str] = None"},{name:"finetuned_from",val:": typing.Optional[str] = None"},{name:"tasks",val:": typing.Union[str, list[str], NoneType] = None"},{name:"dataset_tags",val:": typing.Union[str, list[str], NoneType] = None"},{name:"dataset",val:": typing.Union[str, list[str], NoneType] = None"},{name:"dataset_args",val:": typing.Union[str, list[str], NoneType] = None"}],parametersDescription:[{anchor:"transformers.Trainer.create_model_card.language",description:`<strong>language</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The language of the model (if applicable)`,name:"language"},{anchor:"transformers.Trainer.create_model_card.license",description:`<strong>license</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The license of the model. Will default to the license of the pretrained model used, if the original
model given to the <code>Trainer</code> comes from a repo on the Hub.`,name:"license"},{anchor:"transformers.Trainer.create_model_card.tags",description:`<strong>tags</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
Some tags to be included in the metadata of the model card.`,name:"tags"},{anchor:"transformers.Trainer.create_model_card.model_name",description:`<strong>model_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the model.`,name:"model_name"},{anchor:"transformers.Trainer.create_model_card.finetuned_from",description:`<strong>finetuned_from</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the model used to fine-tune this one (if applicable). Will default to the name of the repo
of the original model given to the <code>Trainer</code> (if it comes from the Hub).`,name:"finetuned_from"},{anchor:"transformers.Trainer.create_model_card.tasks",description:`<strong>tasks</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several task identifiers, to be included in the metadata of the model card.`,name:"tasks"},{anchor:"transformers.Trainer.create_model_card.dataset_tags",description:`<strong>dataset_tags</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several dataset tags, to be included in the metadata of the model card.`,name:"dataset_tags"},{anchor:"transformers.Trainer.create_model_card.dataset",description:`<strong>dataset</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several dataset identifiers, to be included in the metadata of the model card.`,name:"dataset"},{anchor:"transformers.Trainer.create_model_card.dataset_args",description:`<strong>dataset_args</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
One or several dataset arguments, to be included in the metadata of the model card.`,name:"dataset_args"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4620"}}),Et=new M({props:{name:"create_optimizer",anchor:"transformers.Trainer.create_optimizer",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1200"}}),Bt=new M({props:{name:"create_optimizer_and_scheduler",anchor:"transformers.Trainer.create_optimizer_and_scheduler",parameters:[{name:"num_training_steps",val:": int"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1173"}}),Vt=new M({props:{name:"create_scheduler",anchor:"transformers.Trainer.create_scheduler",parameters:[{name:"num_training_steps",val:": int"},{name:"optimizer",val:": Optimizer = None"}],parametersDescription:[{anchor:"transformers.Trainer.create_scheduler.num_training_steps",description:"<strong>num_training_steps</strong> (int) &#x2014; The number of training steps to do.",name:"num_training_steps"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1736"}}),Zt=new M({props:{name:"evaluate",anchor:"transformers.Trainer.evaluate",parameters:[{name:"eval_dataset",val:": typing.Union[torch.utils.data.dataset.Dataset, dict[str, torch.utils.data.dataset.Dataset], NoneType] = None"},{name:"ignore_keys",val:": typing.Optional[list[str]] = None"},{name:"metric_key_prefix",val:": str = 'eval'"}],parametersDescription:[{anchor:"transformers.Trainer.evaluate.eval_dataset",description:`<strong>eval_dataset</strong> (Union[<code>Dataset</code>, Dict[str, <code>Dataset</code>]), <em>optional</em>) &#x2014;
Pass a dataset if you wish to override <code>self.eval_dataset</code>. If it is a <code>Dataset</code>, columns
not accepted by the <code>model.forward()</code> method are automatically removed. If it is a dictionary, it will
evaluate on each dataset, prepending the dictionary key to the metric name. Datasets must implement the
<code>__len__</code> method.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>If you pass a dictionary with names of datasets as keys and datasets as values, evaluate will run
separate evaluations on each dataset. This can be useful to monitor how training affects other
datasets or simply to get a more fine-grained evaluation.
When used with <code>load_best_model_at_end</code>, make sure <code>metric_for_best_model</code> references exactly one
of the datasets. If you, for example, pass in <code>{&quot;data1&quot;: data1, &quot;data2&quot;: data2}</code> for two datasets
<code>data1</code> and <code>data2</code>, you could specify <code>metric_for_best_model=&quot;eval_data1_loss&quot;</code> for using the
loss on <code>data1</code> and <code>metric_for_best_model=&quot;eval_data2_loss&quot;</code> for the loss on <code>data2</code>.</p>

					</div>`,name:"eval_dataset"},{anchor:"transformers.Trainer.evaluate.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"},{anchor:"transformers.Trainer.evaluate.metric_key_prefix",description:`<strong>metric_key_prefix</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;eval&quot;</code>) &#x2014;
An optional prefix to be used as the metrics key prefix. For example the metrics &#x201C;bleu&#x201D; will be named
&#x201C;eval_bleu&#x201D; if the prefix is &#x201C;eval&#x201D; (default)`,name:"metric_key_prefix"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4078",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>
`}}),Xt=new M({props:{name:"evaluation_loop",anchor:"transformers.Trainer.evaluation_loop",parameters:[{name:"dataloader",val:": DataLoader"},{name:"description",val:": str"},{name:"prediction_loss_only",val:": typing.Optional[bool] = None"},{name:"ignore_keys",val:": typing.Optional[list[str]] = None"},{name:"metric_key_prefix",val:": str = 'eval'"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4246"}}),Gt=new M({props:{name:"floating_point_ops",anchor:"transformers.Trainer.floating_point_ops",parameters:[{name:"inputs",val:": dict"}],parametersDescription:[{anchor:"transformers.Trainer.floating_point_ops.inputs",description:`<strong>inputs</strong> (<code>Dict[str, Union[torch.Tensor, Any]]</code>) &#x2014;
The inputs and targets of the model.`,name:"inputs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4584",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>
`}}),Ot=new M({props:{name:"get_decay_parameter_names",anchor:"transformers.Trainer.get_decay_parameter_names",parameters:[{name:"model",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1189"}}),Yt=new M({props:{name:"get_eval_dataloader",anchor:"transformers.Trainer.get_eval_dataloader",parameters:[{name:"eval_dataset",val:": typing.Union[str, torch.utils.data.dataset.Dataset, NoneType] = None"}],parametersDescription:[{anchor:"transformers.Trainer.get_eval_dataloader.eval_dataset",description:`<strong>eval_dataset</strong> (<code>str</code> or <code>torch.utils.data.Dataset</code>, <em>optional</em>) &#x2014;
If a <code>str</code>, will use <code>self.eval_dataset[eval_dataset]</code> as the evaluation dataset. If a <code>Dataset</code>, will override <code>self.eval_dataset</code> and must implement <code>__len__</code>. If it is a <code>Dataset</code>, columns not accepted by the <code>model.forward()</code> method are automatically removed.`,name:"eval_dataset"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1078"}}),Qt=new M({props:{name:"get_learning_rates",anchor:"transformers.Trainer.get_learning_rates",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1273"}}),Kt=new M({props:{name:"get_num_trainable_parameters",anchor:"transformers.Trainer.get_num_trainable_parameters",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1267"}}),eo=new M({props:{name:"get_optimizer_cls_and_kwargs",anchor:"transformers.Trainer.get_optimizer_cls_and_kwargs",parameters:[{name:"args",val:": TrainingArguments"},{name:"model",val:": typing.Optional[transformers.modeling_utils.PreTrainedModel] = None"}],parametersDescription:[{anchor:"transformers.Trainer.get_optimizer_cls_and_kwargs.args",description:`<strong>args</strong> (<code>transformers.training_args.TrainingArguments</code>) &#x2014;
The training arguments for the training session.`,name:"args"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1297"}}),to=new M({props:{name:"get_optimizer_group",anchor:"transformers.Trainer.get_optimizer_group",parameters:[{name:"param",val:": typing.Union[str, torch.nn.parameter.Parameter, NoneType] = None"}],parametersDescription:[{anchor:"transformers.Trainer.get_optimizer_group.param",description:`<strong>param</strong> (<code>str</code> or <code>torch.nn.parameter.Parameter</code>, <em>optional</em>) &#x2014;
The parameter for which optimizer group needs to be returned.`,name:"param"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1281"}}),oo=new M({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 <code>Dataset</code>, columns not accepted by the
<code>model.forward()</code> method are automatically removed. It must implement <code>__len__</code>.`,name:"test_dataset"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1139"}}),no=new M({props:{name:"get_train_dataloader",anchor:"transformers.Trainer.get_train_dataloader",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L998"}}),ao=new M({props:{name:"hyperparameter_search",anchor:"transformers.Trainer.hyperparameter_search",parameters:[{name:"hp_space",val:": typing.Optional[typing.Callable[[ForwardRef('optuna.Trial')], dict[str, float]]] = None"},{name:"compute_objective",val:": typing.Optional[typing.Callable[[dict[str, float]], float]] = None"},{name:"n_trials",val:": int = 20"},{name:"direction",val:": typing.Union[str, list[str]] = 'minimize'"},{name:"backend",val:": typing.Union[ForwardRef('str'), transformers.trainer_utils.HPSearchBackend, NoneType] = None"},{name:"hp_name",val:": typing.Optional[typing.Callable[[ForwardRef('optuna.Trial')], str]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Trainer.hyperparameter_search.hp_space",description:`<strong>hp_space</strong> (<code>Callable[[&quot;optuna.Trial&quot;], Dict[str, float]]</code>, <em>optional</em>) &#x2014;
A function that defines the hyperparameter search space. Will default to
<code>default_hp_space_optuna()</code> or <code>default_hp_space_ray()</code> or
<code>default_hp_space_sigopt()</code> depending on your backend.`,name:"hp_space"},{anchor:"transformers.Trainer.hyperparameter_search.compute_objective",description:`<strong>compute_objective</strong> (<code>Callable[[Dict[str, float]], float]</code>, <em>optional</em>) &#x2014;
A function computing the objective to minimize or maximize from the metrics returned by the <code>evaluate</code>
method. Will default to <code>default_compute_objective()</code>.`,name:"compute_objective"},{anchor:"transformers.Trainer.hyperparameter_search.n_trials",description:`<strong>n_trials</strong> (<code>int</code>, <em>optional</em>, defaults to 100) &#x2014;
The number of trial runs to test.`,name:"n_trials"},{anchor:"transformers.Trainer.hyperparameter_search.direction",description:`<strong>direction</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>, defaults to <code>&quot;minimize&quot;</code>) &#x2014;
If it&#x2019;s single objective optimization, direction is <code>str</code>, can be <code>&quot;minimize&quot;</code> or <code>&quot;maximize&quot;</code>, you
should pick <code>&quot;minimize&quot;</code> when optimizing the validation loss, <code>&quot;maximize&quot;</code> when optimizing one or
several metrics. If it&#x2019;s multi objectives optimization, direction is <code>List[str]</code>, can be List of
<code>&quot;minimize&quot;</code> and <code>&quot;maximize&quot;</code>, you should pick <code>&quot;minimize&quot;</code> when optimizing the validation loss,
<code>&quot;maximize&quot;</code> when optimizing one or several metrics.`,name:"direction"},{anchor:"transformers.Trainer.hyperparameter_search.backend",description:`<strong>backend</strong> (<code>str</code> or <code>~training_utils.HPSearchBackend</code>, <em>optional</em>) &#x2014;
The backend to use for hyperparameter search. Will default to optuna or Ray Tune or SigOpt, depending
on which one is installed. If all are installed, will default to optuna.`,name:"backend"},{anchor:"transformers.Trainer.hyperparameter_search.hp_name",description:`<strong>hp_name</strong> (<code>Callable[[&quot;optuna.Trial&quot;], str]]</code>, <em>optional</em>) &#x2014;
A function that defines the trial/run name. Will default to None.`,name:"hp_name"},{anchor:"transformers.Trainer.hyperparameter_search.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments for each backend:</p>
<ul>
<li><code>optuna</code>: parameters from
<a href="https://optuna.readthedocs.io/en/stable/reference/generated/optuna.study.create_study.html" rel="nofollow">optuna.study.create_study</a>
and also the parameters <code>timeout</code>, <code>n_jobs</code> and <code>gc_after_trial</code> from
<a href="https://optuna.readthedocs.io/en/stable/reference/generated/optuna.study.Study.html#optuna.study.Study.optimize" rel="nofollow">optuna.study.Study.optimize</a></li>
<li><code>ray</code>: parameters from <a href="https://docs.ray.io/en/latest/tune/api_docs/execution.html#tune-run" rel="nofollow">tune.run</a>.
If <code>resources_per_trial</code> is not set in the <code>kwargs</code>, it defaults to 1 CPU core and 1 GPU (if available).
If <code>progress_reporter</code> is not set in the <code>kwargs</code>,
<a href="https://docs.ray.io/en/latest/tune/api/doc/ray.tune.CLIReporter.html" rel="nofollow">ray.tune.CLIReporter</a> is used.</li>
<li><code>sigopt</code>: the parameter <code>proxies</code> from
<a href="https://docs.sigopt.com/support/faq#how-do-i-use-sigopt-with-a-proxy" rel="nofollow">sigopt.Connection.set_proxies</a>.</li>
</ul>`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3539",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>
`}}),He=new jt({props:{warning:!0,$$slots:{default:[gv]},$$scope:{ctx:C}}}),ro=new M({props:{name:"init_hf_repo",anchor:"transformers.Trainer.init_hf_repo",parameters:[{name:"token",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4602"}}),so=new M({props:{name:"is_local_process_zero",anchor:"transformers.Trainer.is_local_process_zero",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3830"}}),io=new M({props:{name:"is_world_process_zero",anchor:"transformers.Trainer.is_world_process_zero",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3837"}}),lo=new M({props:{name:"log",anchor:"transformers.Trainer.log",parameters:[{name:"logs",val:": dict"},{name:"start_time",val:": typing.Optional[float] = None"}],parametersDescription:[{anchor:"transformers.Trainer.log.logs",description:`<strong>logs</strong> (<code>Dict[str, float]</code>) &#x2014;
The values to log.`,name:"logs"},{anchor:"transformers.Trainer.log.start_time",description:`<strong>start_time</strong> (<code>Optional[float]</code>) &#x2014;
The start of training.`,name:"start_time"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3623"}}),co=new M({props:{name:"log_metrics",anchor:"transformers.Trainer.log_metrics",parameters:[{name:"split",val:""},{name:"metrics",val:""}],parametersDescription:[{anchor:"transformers.Trainer.log_metrics.split",description:`<strong>split</strong> (<code>str</code>) &#x2014;
Mode/split name: one of <code>train</code>, <code>eval</code>, <code>test</code>`,name:"split"},{anchor:"transformers.Trainer.log_metrics.metrics",description:`<strong>metrics</strong> (<code>Dict[str, float]</code>) &#x2014;
The metrics returned from train/evaluate/predictmetrics: metrics dict`,name:"metrics"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_pt_utils.py#L964"}}),Ve=new $e({props:{anchor:"transformers.Trainer.log_metrics.example",$$slots:{default:[hv]},$$scope:{ctx:C}}}),mo=new M({props:{name:"metrics_format",anchor:"transformers.Trainer.metrics_format",parameters:[{name:"metrics",val:": dict"}],parametersDescription:[{anchor:"transformers.Trainer.metrics_format.metrics",description:`<strong>metrics</strong> (<code>Dict[str, float]</code>) &#x2014;
The metrics returned from train/evaluate/predict`,name:"metrics"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_pt_utils.py#L938",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>
`}}),po=new M({props:{name:"num_examples",anchor:"transformers.Trainer.num_examples",parameters:[{name:"dataloader",val:": DataLoader"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1755"}}),uo=new M({props:{name:"num_tokens",anchor:"transformers.Trainer.num_tokens",parameters:[{name:"train_dl",val:": DataLoader"},{name:"max_steps",val:": typing.Optional[int] = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1769"}}),go=new M({props:{name:"pop_callback",anchor:"transformers.Trainer.pop_callback",parameters:[{name:"callback",val:""}],parametersDescription:[{anchor:"transformers.Trainer.pop_callback.callback",description:'<strong>callback</strong> (<code>type</code> or [`~transformers.TrainerCallback]`) &#x2014;\nA <a href="/docs/transformers/main/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> class or an instance of a <a href="/docs/transformers/main/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>. In the\nfirst case, will pop the first member of that class found in the list of callbacks.',name:"callback"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L873",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/transformers/main/ja/main_classes/callback#transformers.TrainerCallback"
>TrainerCallback</a></p>
`}}),ho=new M({props:{name:"predict",anchor:"transformers.Trainer.predict",parameters:[{name:"test_dataset",val:": Dataset"},{name:"ignore_keys",val:": typing.Optional[list[str]] = None"},{name:"metric_key_prefix",val:": str = 'test'"}],parametersDescription:[{anchor:"transformers.Trainer.predict.test_dataset",description:`<strong>test_dataset</strong> (<code>Dataset</code>) &#x2014;
Dataset to run the predictions on. If it is an <code>datasets.Dataset</code>, columns not accepted by the
<code>model.forward()</code> method are automatically removed. Has to implement the method <code>__len__</code>`,name:"test_dataset"},{anchor:"transformers.Trainer.predict.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"},{anchor:"transformers.Trainer.predict.metric_key_prefix",description:`<strong>metric_key_prefix</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;test&quot;</code>) &#x2014;
An optional prefix to be used as the metrics key prefix. For example the metrics &#x201C;bleu&#x201D; will be named
&#x201C;test_bleu&#x201D; if the prefix is &#x201C;test&#x201D; (default)`,name:"metric_key_prefix"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4182"}}),Oe=new jt({props:{$$slots:{default:[fv]},$$scope:{ctx:C}}}),fo=new M({props:{name:"prediction_loop",anchor:"transformers.Trainer.prediction_loop",parameters:[{name:"dataloader",val:": DataLoader"},{name:"description",val:": str"},{name:"prediction_loss_only",val:": typing.Optional[bool] = None"},{name:"ignore_keys",val:": typing.Optional[list[str]] = None"},{name:"metric_key_prefix",val:": str = 'eval'"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4847"}}),_o=new M({props:{name:"prediction_step",anchor:"transformers.Trainer.prediction_step",parameters:[{name:"model",val:": Module"},{name:"inputs",val:": dict"},{name:"prediction_loss_only",val:": bool"},{name:"ignore_keys",val:": typing.Optional[list[str]] = None"}],parametersDescription:[{anchor:"transformers.Trainer.prediction_step.model",description:`<strong>model</strong> (<code>nn.Module</code>) &#x2014;
The model to evaluate.`,name:"model"},{anchor:"transformers.Trainer.prediction_step.inputs",description:`<strong>inputs</strong> (<code>Dict[str, Union[torch.Tensor, Any]]</code>) &#x2014;
The inputs and targets of the model.</p>
<p>The dictionary will be unpacked before being fed to the model. Most models expect the targets under the
argument <code>labels</code>. Check your model&#x2019;s documentation for all accepted arguments.`,name:"inputs"},{anchor:"transformers.Trainer.prediction_step.prediction_loss_only",description:`<strong>prediction_loss_only</strong> (<code>bool</code>) &#x2014;
Whether or not to return the loss only.`,name:"prediction_loss_only"},{anchor:"transformers.Trainer.prediction_step.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4479",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>
`}}),bo=new M({props:{name:"propagate_args_to_deepspeed",anchor:"transformers.Trainer.propagate_args_to_deepspeed",parameters:[{name:"auto_find_batch_size",val:" = False"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L5201"}}),vo=new M({props:{name:"push_to_hub",anchor:"transformers.Trainer.push_to_hub",parameters:[{name:"commit_message",val:": typing.Optional[str] = 'End of training'"},{name:"blocking",val:": bool = True"},{name:"token",val:": typing.Optional[str] = None"},{name:"revision",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Trainer.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;End of training&quot;</code>) &#x2014;
Message to commit while pushing.`,name:"commit_message"},{anchor:"transformers.Trainer.push_to_hub.blocking",description:`<strong>blocking</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the function should return only when the <code>git push</code> has finished.`,name:"blocking"},{anchor:"transformers.Trainer.push_to_hub.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Token with write permission to overwrite Trainer&#x2019;s original args.`,name:"token"},{anchor:"transformers.Trainer.push_to_hub.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to commit from. Defaults to the head of the &#x201C;main&#x201D; branch.`,name:"revision"},{anchor:"transformers.Trainer.push_to_hub.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer.create_model_card">create_model_card()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L4767",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>
`}}),yo=new M({props:{name:"remove_callback",anchor:"transformers.Trainer.remove_callback",parameters:[{name:"callback",val:""}],parametersDescription:[{anchor:"transformers.Trainer.remove_callback.callback",description:'<strong>callback</strong> (<code>type</code> or [`~transformers.TrainerCallback]`) &#x2014;\nA <a href="/docs/transformers/main/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> class or an instance of a <a href="/docs/transformers/main/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>. In the\nfirst case, will remove the first member of that class found in the list of callbacks.',name:"callback"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L889"}}),To=new M({props:{name:"save_metrics",anchor:"transformers.Trainer.save_metrics",parameters:[{name:"split",val:""},{name:"metrics",val:""},{name:"combined",val:" = True"}],parametersDescription:[{anchor:"transformers.Trainer.save_metrics.split",description:`<strong>split</strong> (<code>str</code>) &#x2014;
Mode/split name: one of <code>train</code>, <code>eval</code>, <code>test</code>, <code>all</code>`,name:"split"},{anchor:"transformers.Trainer.save_metrics.metrics",description:`<strong>metrics</strong> (<code>Dict[str, float]</code>) &#x2014;
The metrics returned from train/evaluate/predict`,name:"metrics"},{anchor:"transformers.Trainer.save_metrics.combined",description:`<strong>combined</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Creates combined metrics by updating <code>all_results.json</code> with metrics of this call`,name:"combined"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_pt_utils.py#L1054"}}),wo=new M({props:{name:"save_model",anchor:"transformers.Trainer.save_model",parameters:[{name:"output_dir",val:": typing.Optional[str] = None"},{name:"_internal_call",val:": bool = False"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3849"}}),xo=new M({props:{name:"save_state",anchor:"transformers.Trainer.save_state",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_pt_utils.py#L1092"}}),Mo=new M({props:{name:"set_initial_training_values",anchor:"transformers.Trainer.set_initial_training_values",parameters:[{name:"args",val:": TrainingArguments"},{name:"dataloader",val:": DataLoader"},{name:"total_train_batch_size",val:": int"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L5274"}}),$o=new M({props:{name:"train",anchor:"transformers.Trainer.train",parameters:[{name:"resume_from_checkpoint",val:": typing.Union[bool, str, NoneType] = None"},{name:"trial",val:": typing.Union[ForwardRef('optuna.Trial'), dict[str, typing.Any], NoneType] = None"},{name:"ignore_keys_for_eval",val:": typing.Optional[list[str]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Trainer.train.resume_from_checkpoint",description:`<strong>resume_from_checkpoint</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
If a <code>str</code>, local path to a saved checkpoint as saved by a previous instance of <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a>. If a
<code>bool</code> and equals <code>True</code>, load the last checkpoint in <em>args.output_dir</em> as saved by a previous instance
of <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a>. If present, training will resume from the model/optimizer/scheduler states loaded here.`,name:"resume_from_checkpoint"},{anchor:"transformers.Trainer.train.trial",description:`<strong>trial</strong> (<code>optuna.Trial</code> or <code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
The trial run or the hyperparameter dictionary for hyperparameter search.`,name:"trial"},{anchor:"transformers.Trainer.train.ignore_keys_for_eval",description:`<strong>ignore_keys_for_eval</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions for evaluation during the training.`,name:"ignore_keys_for_eval"},{anchor:"transformers.Trainer.train.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments used to hide deprecated arguments`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L2131"}}),ko=new M({props:{name:"training_step",anchor:"transformers.Trainer.training_step",parameters:[{name:"model",val:": Module"},{name:"inputs",val:": dict"},{name:"num_items_in_batch",val:" = None"}],parametersDescription:[{anchor:"transformers.Trainer.training_step.model",description:`<strong>model</strong> (<code>nn.Module</code>) &#x2014;
The model to train.`,name:"model"},{anchor:"transformers.Trainer.training_step.inputs",description:`<strong>inputs</strong> (<code>Dict[str, Union[torch.Tensor, Any]]</code>) &#x2014;
The inputs and targets of the model.</p>
<p>The dictionary will be unpacked before being fed to the model. Most models expect the targets under the
argument <code>labels</code>. Check your model&#x2019;s documentation for all accepted arguments.`,name:"inputs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L3698",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>
`}}),qo=new L({props:{title:"Seq2SeqTrainer",local:"transformers.Seq2SeqTrainer",headingTag:"h2"}}),Ao=new M({props:{name:"class transformers.Seq2SeqTrainer",anchor:"transformers.Seq2SeqTrainer",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), torch.nn.modules.module.Module] = None"},{name:"args",val:": TrainingArguments = None"},{name:"data_collator",val:": typing.Optional[ForwardRef('DataCollator')] = None"},{name:"train_dataset",val:": typing.Union[torch.utils.data.dataset.Dataset, ForwardRef('IterableDataset'), ForwardRef('datasets.Dataset'), NoneType] = None"},{name:"eval_dataset",val:": typing.Union[torch.utils.data.dataset.Dataset, dict[str, torch.utils.data.dataset.Dataset], NoneType] = None"},{name:"processing_class",val:": typing.Union[ForwardRef('PreTrainedTokenizerBase'), ForwardRef('BaseImageProcessor'), ForwardRef('FeatureExtractionMixin'), ForwardRef('ProcessorMixin'), NoneType] = None"},{name:"model_init",val:": typing.Optional[typing.Callable[[], ForwardRef('PreTrainedModel')]] = None"},{name:"compute_loss_func",val:": typing.Optional[typing.Callable] = None"},{name:"compute_metrics",val:": typing.Optional[typing.Callable[[ForwardRef('EvalPrediction')], dict]] = None"},{name:"callbacks",val:": typing.Optional[list['TrainerCallback']] = None"},{name:"optimizers",val:": tuple = (None, None)"},{name:"preprocess_logits_for_metrics",val:": typing.Optional[typing.Callable[[torch.Tensor, torch.Tensor], torch.Tensor]] = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_seq2seq.py#L54"}}),jo=new M({props:{name:"evaluate",anchor:"transformers.Seq2SeqTrainer.evaluate",parameters:[{name:"eval_dataset",val:": typing.Optional[torch.utils.data.dataset.Dataset] = None"},{name:"ignore_keys",val:": typing.Optional[list[str]] = None"},{name:"metric_key_prefix",val:": str = 'eval'"},{name:"**gen_kwargs",val:""}],parametersDescription:[{anchor:"transformers.Seq2SeqTrainer.evaluate.eval_dataset",description:`<strong>eval_dataset</strong> (<code>Dataset</code>, <em>optional</em>) &#x2014;
Pass a dataset if you wish to override <code>self.eval_dataset</code>. If it is an <code>Dataset</code>, columns
not accepted by the <code>model.forward()</code> method are automatically removed. It must implement the <code>__len__</code>
method.`,name:"eval_dataset"},{anchor:"transformers.Seq2SeqTrainer.evaluate.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"},{anchor:"transformers.Seq2SeqTrainer.evaluate.metric_key_prefix",description:`<strong>metric_key_prefix</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;eval&quot;</code>) &#x2014;
An optional prefix to be used as the metrics key prefix. For example the metrics &#x201C;bleu&#x201D; will be named
&#x201C;eval_bleu&#x201D; if the prefix is <code>&quot;eval&quot;</code> (default)`,name:"metric_key_prefix"},{anchor:"transformers.Seq2SeqTrainer.evaluate.max_length",description:`<strong>max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The maximum target length to use when predicting with the generate method.`,name:"max_length"},{anchor:"transformers.Seq2SeqTrainer.evaluate.num_beams",description:`<strong>num_beams</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of beams for beam search that will be used when predicting with the generate method. 1 means no
beam search.`,name:"num_beams"},{anchor:"transformers.Seq2SeqTrainer.evaluate.gen_kwargs",description:`<strong>gen_kwargs</strong> &#x2014;
Additional <code>generate</code> specific kwargs.`,name:"gen_kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_seq2seq.py#L143",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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

					</div>`,name:"gradient_accumulation_steps"},{anchor:"transformers.TrainingArguments.eval_accumulation_steps",description:`<strong>eval_accumulation_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of predictions steps to accumulate the output tensors for, before moving the results to the CPU. If
left unset, the whole predictions are accumulated on the device accelerator before being moved to the CPU (faster but
requires more memory).`,name:"eval_accumulation_steps"},{anchor:"transformers.TrainingArguments.eval_delay",description:`<strong>eval_delay</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Number of epochs or steps to wait for before the first evaluation can be performed, depending on the
eval_strategy.`,name:"eval_delay"},{anchor:"transformers.TrainingArguments.torch_empty_cache_steps",description:`<strong>torch_empty_cache_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of steps to wait before calling <code>torch.&lt;device&gt;.empty_cache()</code>. If left unset or set to None, cache will not be emptied.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>This can help avoid CUDA out-of-memory errors by lowering peak VRAM usage at a cost of about <a href="https://github.com/huggingface/transformers/issues/31372" rel="nofollow">10% slower performance</a>.</p>

					</div>`,name:"torch_empty_cache_steps"},{anchor:"transformers.TrainingArguments.learning_rate",description:`<strong>learning_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 5e-5) &#x2014;
The initial learning rate for <code>AdamW</code> optimizer.`,name:"learning_rate"},{anchor:"transformers.TrainingArguments.weight_decay",description:`<strong>weight_decay</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The weight decay to apply (if not zero) to all layers except all bias and LayerNorm weights in <code>AdamW</code>
optimizer.`,name:"weight_decay"},{anchor:"transformers.TrainingArguments.adam_beta1",description:`<strong>adam_beta1</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
The beta1 hyperparameter for the <code>AdamW</code> optimizer.`,name:"adam_beta1"},{anchor:"transformers.TrainingArguments.adam_beta2",description:`<strong>adam_beta2</strong> (<code>float</code>, <em>optional</em>, defaults to 0.999) &#x2014;
The beta2 hyperparameter for the <code>AdamW</code> optimizer.`,name:"adam_beta2"},{anchor:"transformers.TrainingArguments.adam_epsilon",description:`<strong>adam_epsilon</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-8) &#x2014;
The epsilon hyperparameter for the <code>AdamW</code> optimizer.`,name:"adam_epsilon"},{anchor:"transformers.TrainingArguments.max_grad_norm",description:`<strong>max_grad_norm</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
Maximum gradient norm (for gradient clipping).`,name:"max_grad_norm"},{anchor:"transformers.TrainingArguments.num_train_epochs(float,",description:`<strong>num_train_epochs(<code>float</code>,</strong> <em>optional</em>, defaults to 3.0) &#x2014;
Total number of training epochs to perform (if not an integer, will perform the decimal part percents of
the last epoch before stopping training).`,name:"num_train_epochs(float,"},{anchor:"transformers.TrainingArguments.max_steps",description:`<strong>max_steps</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
If set to a positive number, the total number of training steps to perform. Overrides <code>num_train_epochs</code>.
For a finite dataset, training is reiterated through the dataset (if all data is exhausted) until
<code>max_steps</code> is reached.`,name:"max_steps"},{anchor:"transformers.TrainingArguments.lr_scheduler_type",description:`<strong>lr_scheduler_type</strong> (<code>str</code> or <a href="/docs/transformers/main/ja/main_classes/optimizer_schedules#transformers.SchedulerType">SchedulerType</a>, <em>optional</em>, defaults to <code>&quot;linear&quot;</code>) &#x2014;
The scheduler type to use. See the documentation of <a href="/docs/transformers/main/ja/main_classes/optimizer_schedules#transformers.SchedulerType">SchedulerType</a> for all possible values.`,name:"lr_scheduler_type"},{anchor:"transformers.TrainingArguments.lr_scheduler_kwargs",description:`<strong>lr_scheduler_kwargs</strong> (&#x2018;dict&#x2019;, <em>optional</em>, defaults to {}) &#x2014;
The extra arguments for the lr_scheduler. See the documentation of each scheduler for possible values.`,name:"lr_scheduler_kwargs"},{anchor:"transformers.TrainingArguments.warmup_ratio",description:`<strong>warmup_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Ratio of total training steps used for a linear warmup from 0 to <code>learning_rate</code>.`,name:"warmup_ratio"},{anchor:"transformers.TrainingArguments.warmup_steps",description:`<strong>warmup_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of steps used for a linear warmup from 0 to <code>learning_rate</code>. Overrides any effect of <code>warmup_ratio</code>.`,name:"warmup_steps"},{anchor:"transformers.TrainingArguments.log_level",description:`<strong>log_level</strong> (<code>str</code>, <em>optional</em>, defaults to <code>passive</code>) &#x2014;
Logger log level to use on the main process. Possible choices are the log levels as strings: &#x2018;debug&#x2019;,
&#x2018;info&#x2019;, &#x2018;warning&#x2019;, &#x2018;error&#x2019; and &#x2018;critical&#x2019;, plus a &#x2018;passive&#x2019; level which doesn&#x2019;t set anything and keeps the
current log level for the Transformers library (which will be <code>&quot;warning&quot;</code> by default).`,name:"log_level"},{anchor:"transformers.TrainingArguments.log_level_replica",description:`<strong>log_level_replica</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;warning&quot;</code>) &#x2014;
Logger log level to use on replicas. Same choices as <code>log_level</code>&#x201D;`,name:"log_level_replica"},{anchor:"transformers.TrainingArguments.log_on_each_node",description:`<strong>log_on_each_node</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
In multinode distributed training, whether to log using <code>log_level</code> once per node, or only on the main
node.`,name:"log_on_each_node"},{anchor:"transformers.TrainingArguments.logging_dir",description:`<strong>logging_dir</strong> (<code>str</code>, <em>optional</em>) &#x2014;
<a href="https://www.tensorflow.org/tensorboard" rel="nofollow">TensorBoard</a> log directory. Will default to
*output_dir/runs/<strong>CURRENT_DATETIME_HOSTNAME*</strong>.`,name:"logging_dir"},{anchor:"transformers.TrainingArguments.logging_strategy",description:`<strong>logging_strategy</strong> (<code>str</code> or <a href="/docs/transformers/main/ja/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;steps&quot;</code>) &#x2014;
The logging strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No logging is done during training.</li>
<li><code>&quot;epoch&quot;</code>: Logging is done at the end of each epoch.</li>
<li><code>&quot;steps&quot;</code>: Logging is done every <code>logging_steps</code>.</li>
</ul>`,name:"logging_strategy"},{anchor:"transformers.TrainingArguments.logging_first_step",description:`<strong>logging_first_step</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to log the first <code>global_step</code> or not.`,name:"logging_first_step"},{anchor:"transformers.TrainingArguments.logging_steps",description:`<strong>logging_steps</strong> (<code>int</code> or <code>float</code>, <em>optional</em>, defaults to 500) &#x2014;
Number of update steps between two logs if <code>logging_strategy=&quot;steps&quot;</code>. Should be an integer or a float in
range <code>[0,1)</code>. If smaller than 1, will be interpreted as ratio of total training steps.`,name:"logging_steps"},{anchor:"transformers.TrainingArguments.logging_nan_inf_filter",description:`<strong>logging_nan_inf_filter</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to filter <code>nan</code> and <code>inf</code> losses for logging. If set to <code>True</code> the loss of every step that is <code>nan</code>
or <code>inf</code> is filtered and the average loss of the current logging window is taken instead.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p><code>logging_nan_inf_filter</code> only influences the logging of loss values, it does not change the behavior the
gradient is computed or applied to the model.</p>

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

					</div>`,name:"load_best_model_at_end"},{anchor:"transformers.TrainingArguments.metric_for_best_model",description:`<strong>metric_for_best_model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Use in conjunction with <code>load_best_model_at_end</code> to specify the metric to use to compare two different
models. Must be the name of a metric returned by the evaluation with or without the prefix <code>&quot;eval_&quot;</code>.</p>
<p>If not specified, this will default to <code>&quot;loss&quot;</code> when either <code>load_best_model_at_end == True</code>
or <code>lr_scheduler_type == SchedulerType.REDUCE_ON_PLATEAU</code> (to use the evaluation loss).</p>
<p>If you set this value, <code>greater_is_better</code> will default to <code>True</code> unless the name ends with &#x201C;loss&#x201D;.
Don&#x2019;t forget to set it to <code>False</code> if your metric is better when lower.`,name:"metric_for_best_model"},{anchor:"transformers.TrainingArguments.greater_is_better",description:`<strong>greater_is_better</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Use in conjunction with <code>load_best_model_at_end</code> and <code>metric_for_best_model</code> to specify if better models
should have a greater metric or not. Will default to:</p>
<ul>
<li><code>True</code> if <code>metric_for_best_model</code> is set to a value that doesn&#x2019;t end in <code>&quot;loss&quot;</code>.</li>
<li><code>False</code> if <code>metric_for_best_model</code> is not set, or set to a value that ends in <code>&quot;loss&quot;</code>.</li>
</ul>`,name:"greater_is_better"},{anchor:"transformers.TrainingArguments.ignore_data_skip",description:`<strong>ignore_data_skip</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When resuming training, whether or not to skip the epochs and batches to get the data loading at the same
stage as in the previous training. If set to <code>True</code>, the training will begin faster (as that skipping step
can take a long time) but will not yield the same results as the interrupted training would have.`,name:"ignore_data_skip"},{anchor:"transformers.TrainingArguments.fsdp",description:`<strong>fsdp</strong> (<code>bool</code>, <code>str</code> or list of <code>FSDPOption</code>, <em>optional</em>, defaults to <code>&apos;&apos;</code>) &#x2014;
Use PyTorch Distributed Parallel Training (in distributed training only).</p>
<p>A list of options along the following:</p>
<ul>
<li><code>&quot;full_shard&quot;</code>: Shard parameters, gradients and optimizer states.</li>
<li><code>&quot;shard_grad_op&quot;</code>: Shard optimizer states and gradients.</li>
<li><code>&quot;hybrid_shard&quot;</code>: Apply <code>FULL_SHARD</code> within a node, and replicate parameters across nodes.</li>
<li><code>&quot;hybrid_shard_zero2&quot;</code>: Apply <code>SHARD_GRAD_OP</code> within a node, and replicate parameters across nodes.</li>
<li><code>&quot;offload&quot;</code>: Offload parameters and gradients to CPUs (only compatible with <code>&quot;full_shard&quot;</code> and
<code>&quot;shard_grad_op&quot;</code>).</li>
<li><code>&quot;auto_wrap&quot;</code>: Automatically recursively wrap layers with FSDP using <code>default_auto_wrap_policy</code>.</li>
</ul>`,name:"fsdp"},{anchor:"transformers.TrainingArguments.fsdp_config",description:`<strong>fsdp_config</strong> (<code>str</code> or <code>dict</code>, <em>optional</em>) &#x2014;
Config to be used with fsdp (Pytorch Distributed Parallel Training). The value is either a location of
fsdp json config file (e.g., <code>fsdp_config.json</code>) or an already loaded json file as <code>dict</code>.</p>
<p>A List of config and its options:</p>
<ul>
<li>
<p>min_num_params (<code>int</code>, <em>optional</em>, defaults to <code>0</code>):
FSDP&#x2019;s minimum number of parameters for Default Auto Wrapping. (useful only when <code>fsdp</code> field is
passed).</p>
</li>
<li>
<p>transformer_layer_cls_to_wrap (<code>List[str]</code>, <em>optional</em>):
List of transformer layer class names (case-sensitive) to wrap, e.g, <code>BertLayer</code>, <code>GPTJBlock</code>,
<code>T5Block</code> &#x2026; (useful only when <code>fsdp</code> flag is passed).</p>
</li>
<li>
<p>backward_prefetch (<code>str</code>, <em>optional</em>)
FSDP&#x2019;s backward prefetch mode. Controls when to prefetch next set of parameters (useful only when
<code>fsdp</code> field is passed).</p>
<p>A list of options along the following:</p>
<ul>
<li><code>&quot;backward_pre&quot;</code> : Prefetches the next set of parameters before the current set of parameter&#x2019;s
gradient
computation.</li>
<li><code>&quot;backward_post&quot;</code> : This prefetches the next set of parameters after the current set of
parameter&#x2019;s
gradient computation.</li>
</ul>
</li>
<li>
<p>forward_prefetch (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
FSDP&#x2019;s forward prefetch mode (useful only when <code>fsdp</code> field is passed).
If <code>&quot;True&quot;</code>, then FSDP explicitly prefetches the next upcoming all-gather while executing in the
forward pass.</p>
</li>
<li>
<p>limit_all_gathers (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
FSDP&#x2019;s limit_all_gathers (useful only when <code>fsdp</code> field is passed).
If <code>&quot;True&quot;</code>, FSDP explicitly synchronizes the CPU thread to prevent too many in-flight
all-gathers.</p>
</li>
<li>
<p>use_orig_params (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>)
If <code>&quot;True&quot;</code>, allows non-uniform <code>requires_grad</code> during init, which means support for interspersed
frozen and trainable parameters. Useful in cases such as parameter-efficient fine-tuning. Please
refer this
[blog](<a href="https://dev-discuss.pytorch.org/t/rethinking-pytorch-fully-sharded-data-parallel-fsdp-from-first-principles/1019" rel="nofollow">https://dev-discuss.pytorch.org/t/rethinking-pytorch-fully-sharded-data-parallel-fsdp-from-first-principles/1019</a></p>
</li>
<li>
<p>sync_module_states (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>)
If <code>&quot;True&quot;</code>, each individually wrapped FSDP unit will broadcast module parameters from rank 0 to
ensure they are the same across all ranks after initialization</p>
</li>
<li>
<p>cpu_ram_efficient_loading (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
If <code>&quot;True&quot;</code>, only the first process loads the pretrained model checkpoint while all other processes
have empty weights.  When this setting as <code>&quot;True&quot;</code>, <code>sync_module_states</code> also must to be <code>&quot;True&quot;</code>,
otherwise all the processes except the main process would have random weights leading to unexpected
behaviour during training.</p>
</li>
<li>
<p>activation_checkpointing (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
If <code>&quot;True&quot;</code>, activation checkpointing is a technique to reduce memory usage by clearing activations of
certain layers and recomputing them during a backward pass. Effectively, this trades extra
computation time for reduced memory usage.</p>
</li>
<li>
<p>xla (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether to use PyTorch/XLA Fully Sharded Data Parallel Training. This is an experimental feature
and its API may evolve in the future.</p>
</li>
<li>
<p>xla_fsdp_settings (<code>dict</code>, <em>optional</em>)
The value is a dictionary which stores the XLA FSDP wrapping parameters.</p>
<p>For a complete list of options, please see <a href="https://github.com/pytorch/xla/blob/master/torch_xla/distributed/fsdp/xla_fully_sharded_data_parallel.py" rel="nofollow">here</a>.</p>
</li>
<li>
<p>xla_fsdp_grad_ckpt (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Will use gradient checkpointing over each nested XLA FSDP wrapped layer. This setting can only be
used when the xla flag is set to true, and an auto wrapping policy is specified through
fsdp_min_num_params or fsdp_transformer_layer_cls_to_wrap.</p>
</li>
</ul>`,name:"fsdp_config"},{anchor:"transformers.TrainingArguments.tp_size",description:`<strong>tp_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Use tp_size to enable PyTorch tensor parallelism. Tensor parallelism support is only available to models having <code>base_tp_plan</code>
in their respective config classes.
Set a value greater than 1 to activate TP. The same is used to prepare device mesh internally. Requires accelerate&gt;1.3.0.`,name:"tp_size"},{anchor:"transformers.TrainingArguments.deepspeed",description:`<strong>deepspeed</strong> (<code>str</code> or <code>dict</code>, <em>optional</em>) &#x2014;
Use <a href="https://github.com/deepspeedai/DeepSpeed" rel="nofollow">Deepspeed</a>. This is an experimental feature and its API may
evolve in the future. The value is either the location of DeepSpeed json config file (e.g.,
<code>ds_config.json</code>) or an already loaded json file as a <code>dict</code>&#x201D;</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
If enabling any Zero-init, make sure that your model is not initialized until
*after* initializing the \`TrainingArguments\`, else it will not be applied.

					</div>`,name:"deepspeed"},{anchor:"transformers.TrainingArguments.accelerator_config",description:`<strong>accelerator_config</strong> (<code>str</code>, <code>dict</code>, or <code>AcceleratorConfig</code>, <em>optional</em>) &#x2014;
Config to be used with the internal <code>Accelerator</code> implementation. The value is either a location of
accelerator json config file (e.g., <code>accelerator_config.json</code>), an already loaded json file as <code>dict</code>,
or an instance of <code>AcceleratorConfig</code>.</p>
<p>A list of config and its options:</p>
<ul>
<li>split_batches (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether or not the accelerator should split the batches yielded by the dataloaders across the devices. If
<code>True</code> the actual batch size used will be the same on any kind of distributed processes, but it must be a
round multiple of the <code>num_processes</code> you are using. If <code>False</code>, actual batch size used will be the one set
in your script multiplied by the number of processes.</li>
<li>dispatch_batches (<code>bool</code>, <em>optional</em>):
If set to <code>True</code>, the dataloader prepared by the Accelerator is only iterated through on the main process
and then the batches are split and broadcast to each process. Will default to <code>True</code> for <code>DataLoader</code> whose
underlying dataset is an <code>IterableDataset</code>, <code>False</code> otherwise.</li>
<li>even_batches (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>):
If set to <code>True</code>, in cases where the total batch size across all processes does not exactly divide the
dataset, samples at the start of the dataset will be duplicated so the batch can be divided equally among
all workers.</li>
<li>use_seedable_sampler (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>):
Whether or not use a fully seedable random sampler (<code>accelerate.data_loader.SeedableRandomSampler</code>). Ensures
training results are fully reproducible using a different sampling technique. While seed-to-seed results
may differ, on average the differences are negligible when using multiple different seeds to compare. Should
also be ran with <code>~utils.set_seed</code> for the best results.</li>
<li>use_configured_state (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether or not to use a pre-configured <code>AcceleratorState</code> or <code>PartialState</code> defined before calling <code>TrainingArguments</code>.
If <code>True</code>, an <code>Accelerator</code> or <code>PartialState</code> must be initialized. Note that by doing so, this could lead to issues
with hyperparameter tuning.</li>
</ul>`,name:"accelerator_config"},{anchor:"transformers.TrainingArguments.label_smoothing_factor",description:`<strong>label_smoothing_factor</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The label smoothing factor to use. Zero means no label smoothing, otherwise the underlying onehot-encoded
labels are changed from 0s and 1s to <code>label_smoothing_factor/num_labels</code> and <code>1 - label_smoothing_factor + label_smoothing_factor/num_labels</code> respectively.`,name:"label_smoothing_factor"},{anchor:"transformers.TrainingArguments.debug",description:`<strong>debug</strong> (<code>str</code> or list of <code>DebugOption</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
Enable one or more debug features. This is an experimental feature.</p>
<p>Possible options are:</p>
<ul>
<li><code>&quot;underflow_overflow&quot;</code>: detects overflow in model&#x2019;s input/outputs and reports the last frames that led to
the event</li>
<li><code>&quot;tpu_metrics_debug&quot;</code>: print debug metrics on TPU</li>
</ul>
<p>The options should be separated by whitespaces.`,name:"debug"},{anchor:"transformers.TrainingArguments.optim",description:`<strong>optim</strong> (<code>str</code> or <code>training_args.OptimizerNames</code>, <em>optional</em>, defaults to <code>&quot;adamw_torch&quot;</code>) &#x2014;
The optimizer to use, such as &#x201C;adamw_torch&#x201D;, &#x201C;adamw_torch_fused&#x201D;, &#x201C;adamw_apex_fused&#x201D;, &#x201C;adamw_anyprecision&#x201D;,
&#x201C;adafactor&#x201D;. See <code>OptimizerNames</code> in <a href="https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py" rel="nofollow">training_args.py</a>
for a full list of optimizers.`,name:"optim"},{anchor:"transformers.TrainingArguments.optim_args",description:`<strong>optim_args</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Optional arguments that are supplied to optimizers such as AnyPrecisionAdamW, AdEMAMix, and GaLore.`,name:"optim_args"},{anchor:"transformers.TrainingArguments.group_by_length",description:`<strong>group_by_length</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to group together samples of roughly the same length in the training dataset (to minimize
padding applied and be more efficient). Only useful if applying dynamic padding.`,name:"group_by_length"},{anchor:"transformers.TrainingArguments.length_column_name",description:`<strong>length_column_name</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;length&quot;</code>) &#x2014;
Column name for precomputed lengths. If the column exists, grouping by length will use these values rather
than computing them on train startup. Ignored unless <code>group_by_length</code> is <code>True</code> and the dataset is an
instance of <code>Dataset</code>.`,name:"length_column_name"},{anchor:"transformers.TrainingArguments.report_to",description:`<strong>report_to</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>, defaults to <code>&quot;all&quot;</code>) &#x2014;
The list of integrations to report the results and logs to. Supported platforms are <code>&quot;azure_ml&quot;</code>,
<code>&quot;clearml&quot;</code>, <code>&quot;codecarbon&quot;</code>, <code>&quot;comet_ml&quot;</code>, <code>&quot;dagshub&quot;</code>, <code>&quot;dvclive&quot;</code>, <code>&quot;flyte&quot;</code>, <code>&quot;mlflow&quot;</code>, <code>&quot;neptune&quot;</code>,
<code>&quot;swanlab&quot;</code>, <code>&quot;tensorboard&quot;</code>, and <code>&quot;wandb&quot;</code>. Use <code>&quot;all&quot;</code> to report to all integrations installed, <code>&quot;none&quot;</code>
for no integrations.`,name:"report_to"},{anchor:"transformers.TrainingArguments.ddp_find_unused_parameters",description:`<strong>ddp_find_unused_parameters</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>find_unused_parameters</code> passed to
<code>DistributedDataParallel</code>. Will default to <code>False</code> if gradient checkpointing is used, <code>True</code> otherwise.`,name:"ddp_find_unused_parameters"},{anchor:"transformers.TrainingArguments.ddp_bucket_cap_mb",description:`<strong>ddp_bucket_cap_mb</strong> (<code>int</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>bucket_cap_mb</code> passed to <code>DistributedDataParallel</code>.`,name:"ddp_bucket_cap_mb"},{anchor:"transformers.TrainingArguments.ddp_broadcast_buffers",description:`<strong>ddp_broadcast_buffers</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>broadcast_buffers</code> passed to
<code>DistributedDataParallel</code>. Will default to <code>False</code> if gradient checkpointing is used, <code>True</code> otherwise.`,name:"ddp_broadcast_buffers"},{anchor:"transformers.TrainingArguments.dataloader_pin_memory",description:`<strong>dataloader_pin_memory</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether you want to pin memory in data loaders or not. Will default to <code>True</code>.`,name:"dataloader_pin_memory"},{anchor:"transformers.TrainingArguments.dataloader_persistent_workers",description:`<strong>dataloader_persistent_workers</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, the data loader will not shut down the worker processes after a dataset has been consumed once.
This allows to maintain the workers Dataset instances alive. Can potentially speed up training, but will
increase RAM usage. Will default to <code>False</code>.`,name:"dataloader_persistent_workers"},{anchor:"transformers.TrainingArguments.dataloader_prefetch_factor",description:`<strong>dataloader_prefetch_factor</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of batches loaded in advance by each worker.
2 means there will be a total of 2 * num_workers batches prefetched across all workers.`,name:"dataloader_prefetch_factor"},{anchor:"transformers.TrainingArguments.skip_memory_metrics",description:`<strong>skip_memory_metrics</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to skip adding of memory profiler reports to metrics. This is skipped by default because it slows
down the training and evaluation speed.`,name:"skip_memory_metrics"},{anchor:"transformers.TrainingArguments.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push the model to the Hub every time the model is saved. If this is activated,
<code>output_dir</code> will begin a git directory synced with the repo (determined by <code>hub_model_id</code>) and the content
will be pushed each time a save is triggered (depending on your <code>save_strategy</code>). Calling
<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer.save_model">save_model()</a> will also trigger a push.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p>If <code>output_dir</code> exists, it needs to be a local clone of the repository to which the <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> will be
pushed.</p>

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

					</div>`,name:"nan_inf_filter"},{anchor:"transformers.TrainingArguments.set_logging.on_each_node",description:`<strong>on_each_node</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
In multinode distributed training, whether to log using <code>log_level</code> once per node, or only on the main
node.`,name:"on_each_node"},{anchor:"transformers.TrainingArguments.set_logging.replica_level",description:`<strong>replica_level</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;passive&quot;</code>) &#x2014;
Logger log level to use on replicas. Same choices as <code>log_level</code>`,name:"replica_level"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L2774"}}),rt=new $e({props:{anchor:"transformers.TrainingArguments.set_logging.example",$$slots:{default:[yv]},$$scope:{ctx:C}}}),zo=new M({props:{name:"set_lr_scheduler",anchor:"transformers.TrainingArguments.set_lr_scheduler",parameters:[{name:"name",val:": typing.Union[str, transformers.trainer_utils.SchedulerType] = 'linear'"},{name:"num_epochs",val:": float = 3.0"},{name:"max_steps",val:": int = -1"},{name:"warmup_ratio",val:": float = 0"},{name:"warmup_steps",val:": int = 0"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_lr_scheduler.name",description:`<strong>name</strong> (<code>str</code> or <a href="/docs/transformers/main/ja/main_classes/optimizer_schedules#transformers.SchedulerType">SchedulerType</a>, <em>optional</em>, defaults to <code>&quot;linear&quot;</code>) &#x2014;
The scheduler type to use. See the documentation of <a href="/docs/transformers/main/ja/main_classes/optimizer_schedules#transformers.SchedulerType">SchedulerType</a> for all possible values.`,name:"name"},{anchor:"transformers.TrainingArguments.set_lr_scheduler.num_epochs(float,",description:`<strong>num_epochs(<code>float</code>,</strong> <em>optional</em>, defaults to 3.0) &#x2014;
Total number of training epochs to perform (if not an integer, will perform the decimal part percents
of the last epoch before stopping training).`,name:"num_epochs(float,"},{anchor:"transformers.TrainingArguments.set_lr_scheduler.max_steps",description:`<strong>max_steps</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
If set to a positive number, the total number of training steps to perform. Overrides <code>num_train_epochs</code>.
For a finite dataset, training is reiterated through the dataset (if all data is exhausted) until
<code>max_steps</code> is reached.`,name:"max_steps"},{anchor:"transformers.TrainingArguments.set_lr_scheduler.warmup_ratio",description:`<strong>warmup_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Ratio of total training steps used for a linear warmup from 0 to <code>learning_rate</code>.`,name:"warmup_ratio"},{anchor:"transformers.TrainingArguments.set_lr_scheduler.warmup_steps",description:`<strong>warmup_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of steps used for a linear warmup from 0 to <code>learning_rate</code>. Overrides any effect of
<code>warmup_ratio</code>.`,name:"warmup_steps"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L2970"}}),st=new $e({props:{anchor:"transformers.TrainingArguments.set_lr_scheduler.example",$$slots:{default:[Tv]},$$scope:{ctx:C}}}),Do=new M({props:{name:"set_optimizer",anchor:"transformers.TrainingArguments.set_optimizer",parameters:[{name:"name",val:": typing.Union[str, transformers.training_args.OptimizerNames] = 'adamw_torch'"},{name:"learning_rate",val:": float = 5e-05"},{name:"weight_decay",val:": float = 0"},{name:"beta1",val:": float = 0.9"},{name:"beta2",val:": float = 0.999"},{name:"epsilon",val:": float = 1e-08"},{name:"args",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_optimizer.name",description:`<strong>name</strong> (<code>str</code> or <code>training_args.OptimizerNames</code>, <em>optional</em>, defaults to <code>&quot;adamw_torch&quot;</code>) &#x2014;
The optimizer to use: <code>&quot;adamw_torch&quot;</code>, <code>&quot;adamw_torch_fused&quot;</code>, <code>&quot;adamw_apex_fused&quot;</code>,
<code>&quot;adamw_anyprecision&quot;</code> or <code>&quot;adafactor&quot;</code>.`,name:"name"},{anchor:"transformers.TrainingArguments.set_optimizer.learning_rate",description:`<strong>learning_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 5e-5) &#x2014;
The initial learning rate.`,name:"learning_rate"},{anchor:"transformers.TrainingArguments.set_optimizer.weight_decay",description:`<strong>weight_decay</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The weight decay to apply (if not zero) to all layers except all bias and LayerNorm weights.`,name:"weight_decay"},{anchor:"transformers.TrainingArguments.set_optimizer.beta1",description:`<strong>beta1</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
The beta1 hyperparameter for the adam optimizer or its variants.`,name:"beta1"},{anchor:"transformers.TrainingArguments.set_optimizer.beta2",description:`<strong>beta2</strong> (<code>float</code>, <em>optional</em>, defaults to 0.999) &#x2014;
The beta2 hyperparameter for the adam optimizer or its variants.`,name:"beta2"},{anchor:"transformers.TrainingArguments.set_optimizer.epsilon",description:`<strong>epsilon</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-8) &#x2014;
The epsilon hyperparameter for the adam optimizer or its variants.`,name:"epsilon"},{anchor:"transformers.TrainingArguments.set_optimizer.args",description:`<strong>args</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Optional arguments that are supplied to AnyPrecisionAdamW (only useful when
<code>optim=&quot;adamw_anyprecision&quot;</code>).`,name:"args"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L2919"}}),it=new $e({props:{anchor:"transformers.TrainingArguments.set_optimizer.example",$$slots:{default:[wv]},$$scope:{ctx:C}}}),Wo=new M({props:{name:"set_push_to_hub",anchor:"transformers.TrainingArguments.set_push_to_hub",parameters:[{name:"model_id",val:": str"},{name:"strategy",val:": typing.Union[str, transformers.trainer_utils.HubStrategy] = 'every_save'"},{name:"token",val:": typing.Optional[str] = None"},{name:"private_repo",val:": typing.Optional[bool] = None"},{name:"always_push",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_push_to_hub.model_id",description:`<strong>model_id</strong> (<code>str</code>) &#x2014;
The name of the repository to keep in sync with the local <em>output_dir</em>. It can be a simple model ID in
which case the model will be pushed in your namespace. Otherwise it should be the whole repository
name, for instance <code>&quot;user_name/model&quot;</code>, which allows you to push to an organization you are a member of
with <code>&quot;organization_name/model&quot;</code>.`,name:"model_id"},{anchor:"transformers.TrainingArguments.set_push_to_hub.strategy",description:`<strong>strategy</strong> (<code>str</code> or <code>HubStrategy</code>, <em>optional</em>, defaults to <code>&quot;every_save&quot;</code>) &#x2014;
Defines the scope of what is pushed to the Hub and when. Possible values are:</p>
<ul>
<li><code>&quot;end&quot;</code>: push the model, its configuration, the processing_class e.g. tokenizer (if passed along to the <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a>) and a
draft of a model card when the <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer.save_model">save_model()</a> method is called.</li>
<li><code>&quot;every_save&quot;</code>: push the model, its configuration, the processing_class e.g. tokenizer (if passed along to the <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a>)
and
a draft of a model card each time there is a model save. The pushes are asynchronous to not block
training, and in case the save are very frequent, a new push is only attempted if the previous one is
finished. A last push is made with the final model at the end of training.</li>
<li><code>&quot;checkpoint&quot;</code>: like <code>&quot;every_save&quot;</code> but the latest checkpoint is also pushed in a subfolder named
last-checkpoint, allowing you to resume training easily with
<code>trainer.train(resume_from_checkpoint=&quot;last-checkpoint&quot;)</code>.</li>
<li><code>&quot;all_checkpoints&quot;</code>: like <code>&quot;checkpoint&quot;</code> but all checkpoints are pushed like they appear in the
output
folder (so you will get one checkpoint folder per folder in your final repository)</li>
</ul>`,name:"strategy"},{anchor:"transformers.TrainingArguments.set_push_to_hub.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to use to push the model to the Hub. Will default to the token in the cache folder obtained
with <code>huggingface-cli login</code>.`,name:"token"},{anchor:"transformers.TrainingArguments.set_push_to_hub.private_repo",description:`<strong>private_repo</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to make the repo private. If <code>None</code> (default), the repo will be public unless the organization&#x2019;s default is private. This value is ignored if the repo already exists.`,name:"private_repo"},{anchor:"transformers.TrainingArguments.set_push_to_hub.always_push",description:`<strong>always_push</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Unless this is <code>True</code>, the <code>Trainer</code> will skip pushing a checkpoint when the previous push is not
finished.`,name:"always_push"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L2849"}}),lt=new jt({props:{$$slots:{default:[xv]},$$scope:{ctx:C}}}),dt=new $e({props:{anchor:"transformers.TrainingArguments.set_push_to_hub.example",$$slots:{default:[Mv]},$$scope:{ctx:C}}}),Ho=new M({props:{name:"set_save",anchor:"transformers.TrainingArguments.set_save",parameters:[{name:"strategy",val:": typing.Union[str, transformers.trainer_utils.IntervalStrategy] = 'steps'"},{name:"steps",val:": int = 500"},{name:"total_limit",val:": typing.Optional[int] = None"},{name:"on_each_node",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_save.strategy",description:`<strong>strategy</strong> (<code>str</code> or <a href="/docs/transformers/main/ja/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;steps&quot;</code>) &#x2014;
The checkpoint save strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No save is done during training.</li>
<li><code>&quot;epoch&quot;</code>: Save is done at the end of each epoch.</li>
<li><code>&quot;steps&quot;</code>: Save is done every <code>save_steps</code>.</li>
</ul>`,name:"strategy"},{anchor:"transformers.TrainingArguments.set_save.steps",description:`<strong>steps</strong> (<code>int</code>, <em>optional</em>, defaults to 500) &#x2014;
Number of updates steps before two checkpoint saves if <code>strategy=&quot;steps&quot;</code>.`,name:"steps"},{anchor:"transformers.TrainingArguments.set_save.total_limit",description:`<strong>total_limit</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If a value is passed, will limit the total amount of checkpoints. Deletes the older checkpoints in
<code>output_dir</code>.`,name:"total_limit"},{anchor:"transformers.TrainingArguments.set_save.on_each_node",description:`<strong>on_each_node</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When doing multi-node distributed training, whether to save models and checkpoints on each node, or
only on the main one.</p>
<p>This should not be activated when the different nodes use the same storage as the files will be saved
with the same names for each node.`,name:"on_each_node"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L2725"}}),ct=new $e({props:{anchor:"transformers.TrainingArguments.set_save.example",$$slots:{default:[$v]},$$scope:{ctx:C}}}),Ro=new M({props:{name:"set_testing",anchor:"transformers.TrainingArguments.set_testing",parameters:[{name:"batch_size",val:": int = 8"},{name:"loss_only",val:": bool = False"},{name:"jit_mode",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_testing.batch_size",description:`<strong>batch_size</strong> (<code>int</code> <em>optional</em>, defaults to 8) &#x2014;
The batch size per device (GPU/TPU core/CPU&#x2026;) used for testing.`,name:"batch_size"},{anchor:"transformers.TrainingArguments.set_testing.loss_only",description:`<strong>loss_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Ignores all outputs except the loss.`,name:"loss_only"},{anchor:"transformers.TrainingArguments.set_testing.jit_mode",description:`<strong>jit_mode</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use PyTorch jit trace for inference.`,name:"jit_mode"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L2685"}}),mt=new jt({props:{$$slots:{default:[kv]},$$scope:{ctx:C}}}),pt=new $e({props:{anchor:"transformers.TrainingArguments.set_testing.example",$$slots:{default:[qv]},$$scope:{ctx:C}}}),Eo=new M({props:{name:"set_training",anchor:"transformers.TrainingArguments.set_training",parameters:[{name:"learning_rate",val:": float = 5e-05"},{name:"batch_size",val:": int = 8"},{name:"weight_decay",val:": float = 0"},{name:"num_epochs",val:": float = 3"},{name:"max_steps",val:": int = -1"},{name:"gradient_accumulation_steps",val:": int = 1"},{name:"seed",val:": int = 42"},{name:"gradient_checkpointing",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TrainingArguments.set_training.learning_rate",description:`<strong>learning_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 5e-5) &#x2014;
The initial learning rate for the optimizer.`,name:"learning_rate"},{anchor:"transformers.TrainingArguments.set_training.batch_size",description:`<strong>batch_size</strong> (<code>int</code> <em>optional</em>, defaults to 8) &#x2014;
The batch size per device (GPU/TPU core/CPU&#x2026;) used for training.`,name:"batch_size"},{anchor:"transformers.TrainingArguments.set_training.weight_decay",description:`<strong>weight_decay</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The weight decay to apply (if not zero) to all layers except all bias and LayerNorm weights in the
optimizer.`,name:"weight_decay"},{anchor:"transformers.TrainingArguments.set_training.num_train_epochs(float,",description:`<strong>num_train_epochs(<code>float</code>,</strong> <em>optional</em>, defaults to 3.0) &#x2014;
Total number of training epochs to perform (if not an integer, will perform the decimal part percents
of the last epoch before stopping training).`,name:"num_train_epochs(float,"},{anchor:"transformers.TrainingArguments.set_training.max_steps",description:`<strong>max_steps</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
If set to a positive number, the total number of training steps to perform. Overrides <code>num_train_epochs</code>.
For a finite dataset, training is reiterated through the dataset (if all data is exhausted) until
<code>max_steps</code> is reached.`,name:"max_steps"},{anchor:"transformers.TrainingArguments.set_training.gradient_accumulation_steps",description:`<strong>gradient_accumulation_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of updates steps to accumulate the gradients for, before performing a backward/update pass.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p>When using gradient accumulation, one step is counted as one step with backward pass. Therefore,
logging, evaluation, save will be conducted every <code>gradient_accumulation_steps * xxx_step</code> training
examples.</p>

					</div>`,name:"gradient_accumulation_steps"},{anchor:"transformers.TrainingArguments.set_training.seed",description:`<strong>seed</strong> (<code>int</code>, <em>optional</em>, defaults to 42) &#x2014;
Random seed that will be set at the beginning of training. To ensure reproducibility across runs, use
the <code>~Trainer.model_init</code> function to instantiate the model if it has some randomly initialized
parameters.`,name:"seed"},{anchor:"transformers.TrainingArguments.set_training.gradient_checkpointing",description:`<strong>gradient_checkpointing</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, use gradient checkpointing to save memory at the expense of slower backward pass.`,name:"gradient_checkpointing"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L2549"}}),ut=new jt({props:{$$slots:{default:[Av]},$$scope:{ctx:C}}}),gt=new $e({props:{anchor:"transformers.TrainingArguments.set_training.example",$$slots:{default:[jv]},$$scope:{ctx:C}}}),Bo=new M({props:{name:"to_dict",anchor:"transformers.TrainingArguments.to_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L2507"}}),Vo=new M({props:{name:"to_json_string",anchor:"transformers.TrainingArguments.to_json_string",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L2529"}}),Zo=new M({props:{name:"to_sanitized_dict",anchor:"transformers.TrainingArguments.to_sanitized_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L2535"}}),Xo=new L({props:{title:"Seq2SeqTrainingArguments",local:"transformers.Seq2SeqTrainingArguments",headingTag:"h2"}}),Go=new M({props:{name:"class transformers.Seq2SeqTrainingArguments",anchor:"transformers.Seq2SeqTrainingArguments",parameters:[{name:"output_dir",val:": typing.Optional[str] = None"},{name:"overwrite_output_dir",val:": bool = False"},{name:"do_train",val:": bool = False"},{name:"do_eval",val:": bool = False"},{name:"do_predict",val:": bool = False"},{name:"eval_strategy",val:": typing.Union[transformers.trainer_utils.IntervalStrategy, str] = 'no'"},{name:"prediction_loss_only",val:": bool = False"},{name:"per_device_train_batch_size",val:": int = 8"},{name:"per_device_eval_batch_size",val:": int = 8"},{name:"per_gpu_train_batch_size",val:": typing.Optional[int] = None"},{name:"per_gpu_eval_batch_size",val:": typing.Optional[int] = None"},{name:"gradient_accumulation_steps",val:": int = 1"},{name:"eval_accumulation_steps",val:": typing.Optional[int] = None"},{name:"eval_delay",val:": typing.Optional[float] = 0"},{name:"torch_empty_cache_steps",val:": typing.Optional[int] = None"},{name:"learning_rate",val:": float = 5e-05"},{name:"weight_decay",val:": float = 0.0"},{name:"adam_beta1",val:": float = 0.9"},{name:"adam_beta2",val:": float = 0.999"},{name:"adam_epsilon",val:": float = 1e-08"},{name:"max_grad_norm",val:": float = 1.0"},{name:"num_train_epochs",val:": float = 3.0"},{name:"max_steps",val:": int = -1"},{name:"lr_scheduler_type",val:": typing.Union[transformers.trainer_utils.SchedulerType, str] = 'linear'"},{name:"lr_scheduler_kwargs",val:": typing.Union[dict, str, NoneType] = <factory>"},{name:"warmup_ratio",val:": float = 0.0"},{name:"warmup_steps",val:": int = 0"},{name:"log_level",val:": typing.Optional[str] = 'passive'"},{name:"log_level_replica",val:": typing.Optional[str] = 'warning'"},{name:"log_on_each_node",val:": bool = True"},{name:"logging_dir",val:": typing.Optional[str] = None"},{name:"logging_strategy",val:": typing.Union[transformers.trainer_utils.IntervalStrategy, str] = 'steps'"},{name:"logging_first_step",val:": bool = False"},{name:"logging_steps",val:": float = 500"},{name:"logging_nan_inf_filter",val:": bool = True"},{name:"save_strategy",val:": typing.Union[transformers.trainer_utils.SaveStrategy, str] = 'steps'"},{name:"save_steps",val:": float = 500"},{name:"save_total_limit",val:": typing.Optional[int] = None"},{name:"save_safetensors",val:": typing.Optional[bool] = True"},{name:"save_on_each_node",val:": bool = False"},{name:"save_only_model",val:": bool = False"},{name:"restore_callback_states_from_checkpoint",val:": bool = False"},{name:"no_cuda",val:": bool = False"},{name:"use_cpu",val:": bool = False"},{name:"use_mps_device",val:": bool = False"},{name:"seed",val:": int = 42"},{name:"data_seed",val:": typing.Optional[int] = None"},{name:"jit_mode_eval",val:": bool = False"},{name:"use_ipex",val:": bool = False"},{name:"bf16",val:": bool = False"},{name:"fp16",val:": bool = False"},{name:"fp16_opt_level",val:": str = 'O1'"},{name:"half_precision_backend",val:": str = 'auto'"},{name:"bf16_full_eval",val:": bool = False"},{name:"fp16_full_eval",val:": bool = False"},{name:"tf32",val:": typing.Optional[bool] = None"},{name:"local_rank",val:": int = -1"},{name:"ddp_backend",val:": typing.Optional[str] = None"},{name:"tpu_num_cores",val:": typing.Optional[int] = None"},{name:"tpu_metrics_debug",val:": bool = False"},{name:"debug",val:": typing.Union[str, list[transformers.debug_utils.DebugOption]] = ''"},{name:"dataloader_drop_last",val:": bool = False"},{name:"eval_steps",val:": typing.Optional[float] = None"},{name:"dataloader_num_workers",val:": int = 0"},{name:"dataloader_prefetch_factor",val:": typing.Optional[int] = None"},{name:"past_index",val:": int = -1"},{name:"run_name",val:": typing.Optional[str] = None"},{name:"disable_tqdm",val:": typing.Optional[bool] = None"},{name:"remove_unused_columns",val:": typing.Optional[bool] = True"},{name:"label_names",val:": typing.Optional[list[str]] = None"},{name:"load_best_model_at_end",val:": typing.Optional[bool] = False"},{name:"metric_for_best_model",val:": typing.Optional[str] = None"},{name:"greater_is_better",val:": typing.Optional[bool] = None"},{name:"ignore_data_skip",val:": bool = False"},{name:"fsdp",val:": typing.Union[list[transformers.trainer_utils.FSDPOption], str, NoneType] = ''"},{name:"fsdp_min_num_params",val:": int = 0"},{name:"fsdp_config",val:": typing.Union[dict, str, NoneType] = None"},{name:"tp_size",val:": typing.Optional[int] = 0"},{name:"fsdp_transformer_layer_cls_to_wrap",val:": typing.Optional[str] = None"},{name:"accelerator_config",val:": typing.Union[dict, str, NoneType] = None"},{name:"deepspeed",val:": typing.Union[dict, str, NoneType] = None"},{name:"label_smoothing_factor",val:": float = 0.0"},{name:"optim",val:": typing.Union[transformers.training_args.OptimizerNames, str] = 'adamw_torch'"},{name:"optim_args",val:": typing.Optional[str] = None"},{name:"adafactor",val:": bool = False"},{name:"group_by_length",val:": bool = False"},{name:"length_column_name",val:": typing.Optional[str] = 'length'"},{name:"report_to",val:": typing.Union[NoneType, str, list[str]] = None"},{name:"ddp_find_unused_parameters",val:": typing.Optional[bool] = None"},{name:"ddp_bucket_cap_mb",val:": typing.Optional[int] = None"},{name:"ddp_broadcast_buffers",val:": typing.Optional[bool] = None"},{name:"dataloader_pin_memory",val:": bool = True"},{name:"dataloader_persistent_workers",val:": bool = False"},{name:"skip_memory_metrics",val:": bool = True"},{name:"use_legacy_prediction_loop",val:": bool = False"},{name:"push_to_hub",val:": bool = False"},{name:"resume_from_checkpoint",val:": typing.Optional[str] = None"},{name:"hub_model_id",val:": typing.Optional[str] = None"},{name:"hub_strategy",val:": typing.Union[transformers.trainer_utils.HubStrategy, str] = 'every_save'"},{name:"hub_token",val:": typing.Optional[str] = None"},{name:"hub_private_repo",val:": typing.Optional[bool] = None"},{name:"hub_always_push",val:": bool = False"},{name:"gradient_checkpointing",val:": bool = False"},{name:"gradient_checkpointing_kwargs",val:": typing.Union[dict, str, NoneType] = None"},{name:"include_inputs_for_metrics",val:": bool = False"},{name:"include_for_metrics",val:": list = <factory>"},{name:"eval_do_concat_batches",val:": bool = True"},{name:"fp16_backend",val:": str = 'auto'"},{name:"push_to_hub_model_id",val:": typing.Optional[str] = None"},{name:"push_to_hub_organization",val:": typing.Optional[str] = None"},{name:"push_to_hub_token",val:": typing.Optional[str] = None"},{name:"mp_parameters",val:": str = ''"},{name:"auto_find_batch_size",val:": bool = False"},{name:"full_determinism",val:": bool = False"},{name:"torchdynamo",val:": typing.Optional[str] = None"},{name:"ray_scope",val:": typing.Optional[str] = 'last'"},{name:"ddp_timeout",val:": typing.Optional[int] = 1800"},{name:"torch_compile",val:": bool = False"},{name:"torch_compile_backend",val:": typing.Optional[str] = None"},{name:"torch_compile_mode",val:": typing.Optional[str] = None"},{name:"include_tokens_per_second",val:": typing.Optional[bool] = False"},{name:"include_num_input_tokens_seen",val:": typing.Optional[bool] = False"},{name:"neftune_noise_alpha",val:": typing.Optional[float] = None"},{name:"optim_target_modules",val:": typing.Union[NoneType, str, list[str]] = None"},{name:"batch_eval_metrics",val:": bool = False"},{name:"eval_on_start",val:": bool = False"},{name:"use_liger_kernel",val:": typing.Optional[bool] = False"},{name:"eval_use_gather_object",val:": typing.Optional[bool] = False"},{name:"average_tokens_across_devices",val:": typing.Optional[bool] = False"},{name:"sortish_sampler",val:": bool = False"},{name:"predict_with_generate",val:": bool = False"},{name:"generation_max_length",val:": typing.Optional[int] = None"},{name:"generation_num_beams",val:": typing.Optional[int] = None"},{name:"generation_config",val:": typing.Union[str, pathlib.Path, transformers.generation.configuration_utils.GenerationConfig, NoneType] = None"}],parametersDescription:[{anchor:"transformers.Seq2SeqTrainingArguments.output_dir",description:`<strong>output_dir</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;trainer_output&quot;</code>) &#x2014;
The output directory where the model predictions and checkpoints will be written.`,name:"output_dir"},{anchor:"transformers.Seq2SeqTrainingArguments.overwrite_output_dir",description:`<strong>overwrite_output_dir</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, overwrite the content of the output directory. Use this to continue training if <code>output_dir</code>
points to a checkpoint directory.`,name:"overwrite_output_dir"},{anchor:"transformers.Seq2SeqTrainingArguments.do_train",description:`<strong>do_train</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to run training or not. This argument is not directly used by <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s intended to be used
by your training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"do_train"},{anchor:"transformers.Seq2SeqTrainingArguments.do_eval",description:`<strong>do_eval</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to run evaluation on the validation set or not. Will be set to <code>True</code> if <code>eval_strategy</code> is
different from <code>&quot;no&quot;</code>. This argument is not directly used by <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s intended to be used by your
training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"do_eval"},{anchor:"transformers.Seq2SeqTrainingArguments.do_predict",description:`<strong>do_predict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to run predictions on the test set or not. This argument is not directly used by <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s
intended to be used by your training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"do_predict"},{anchor:"transformers.Seq2SeqTrainingArguments.eval_strategy",description:`<strong>eval_strategy</strong> (<code>str</code> or <a href="/docs/transformers/main/ja/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;no&quot;</code>) &#x2014;
The evaluation strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No evaluation is done during training.</li>
<li><code>&quot;steps&quot;</code>: Evaluation is done (and logged) every <code>eval_steps</code>.</li>
<li><code>&quot;epoch&quot;</code>: Evaluation is done at the end of each epoch.</li>
</ul>`,name:"eval_strategy"},{anchor:"transformers.Seq2SeqTrainingArguments.prediction_loss_only",description:`<strong>prediction_loss_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When performing evaluation and generating predictions, only returns the loss.`,name:"prediction_loss_only"},{anchor:"transformers.Seq2SeqTrainingArguments.per_device_train_batch_size",description:`<strong>per_device_train_batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
The batch size per device accelerator core/CPU for training.`,name:"per_device_train_batch_size"},{anchor:"transformers.Seq2SeqTrainingArguments.per_device_eval_batch_size",description:`<strong>per_device_eval_batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
The batch size per device accelerator core/CPU for evaluation.`,name:"per_device_eval_batch_size"},{anchor:"transformers.Seq2SeqTrainingArguments.gradient_accumulation_steps",description:`<strong>gradient_accumulation_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of updates steps to accumulate the gradients for, before performing a backward/update pass.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p>When using gradient accumulation, one step is counted as one step with backward pass. Therefore, logging,
evaluation, save will be conducted every <code>gradient_accumulation_steps * xxx_step</code> training examples.</p>

					</div>`,name:"gradient_accumulation_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.eval_accumulation_steps",description:`<strong>eval_accumulation_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of predictions steps to accumulate the output tensors for, before moving the results to the CPU. If
left unset, the whole predictions are accumulated on the device accelerator before being moved to the CPU (faster but
requires more memory).`,name:"eval_accumulation_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.eval_delay",description:`<strong>eval_delay</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Number of epochs or steps to wait for before the first evaluation can be performed, depending on the
eval_strategy.`,name:"eval_delay"},{anchor:"transformers.Seq2SeqTrainingArguments.torch_empty_cache_steps",description:`<strong>torch_empty_cache_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of steps to wait before calling <code>torch.&lt;device&gt;.empty_cache()</code>. If left unset or set to None, cache will not be emptied.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>This can help avoid CUDA out-of-memory errors by lowering peak VRAM usage at a cost of about <a href="https://github.com/huggingface/transformers/issues/31372" rel="nofollow">10% slower performance</a>.</p>

					</div>`,name:"torch_empty_cache_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.learning_rate",description:`<strong>learning_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 5e-5) &#x2014;
The initial learning rate for <code>AdamW</code> optimizer.`,name:"learning_rate"},{anchor:"transformers.Seq2SeqTrainingArguments.weight_decay",description:`<strong>weight_decay</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The weight decay to apply (if not zero) to all layers except all bias and LayerNorm weights in <code>AdamW</code>
optimizer.`,name:"weight_decay"},{anchor:"transformers.Seq2SeqTrainingArguments.adam_beta1",description:`<strong>adam_beta1</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
The beta1 hyperparameter for the <code>AdamW</code> optimizer.`,name:"adam_beta1"},{anchor:"transformers.Seq2SeqTrainingArguments.adam_beta2",description:`<strong>adam_beta2</strong> (<code>float</code>, <em>optional</em>, defaults to 0.999) &#x2014;
The beta2 hyperparameter for the <code>AdamW</code> optimizer.`,name:"adam_beta2"},{anchor:"transformers.Seq2SeqTrainingArguments.adam_epsilon",description:`<strong>adam_epsilon</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-8) &#x2014;
The epsilon hyperparameter for the <code>AdamW</code> optimizer.`,name:"adam_epsilon"},{anchor:"transformers.Seq2SeqTrainingArguments.max_grad_norm",description:`<strong>max_grad_norm</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
Maximum gradient norm (for gradient clipping).`,name:"max_grad_norm"},{anchor:"transformers.Seq2SeqTrainingArguments.num_train_epochs(float,",description:`<strong>num_train_epochs(<code>float</code>,</strong> <em>optional</em>, defaults to 3.0) &#x2014;
Total number of training epochs to perform (if not an integer, will perform the decimal part percents of
the last epoch before stopping training).`,name:"num_train_epochs(float,"},{anchor:"transformers.Seq2SeqTrainingArguments.max_steps",description:`<strong>max_steps</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
If set to a positive number, the total number of training steps to perform. Overrides <code>num_train_epochs</code>.
For a finite dataset, training is reiterated through the dataset (if all data is exhausted) until
<code>max_steps</code> is reached.`,name:"max_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.lr_scheduler_type",description:`<strong>lr_scheduler_type</strong> (<code>str</code> or <a href="/docs/transformers/main/ja/main_classes/optimizer_schedules#transformers.SchedulerType">SchedulerType</a>, <em>optional</em>, defaults to <code>&quot;linear&quot;</code>) &#x2014;
The scheduler type to use. See the documentation of <a href="/docs/transformers/main/ja/main_classes/optimizer_schedules#transformers.SchedulerType">SchedulerType</a> for all possible values.`,name:"lr_scheduler_type"},{anchor:"transformers.Seq2SeqTrainingArguments.lr_scheduler_kwargs",description:`<strong>lr_scheduler_kwargs</strong> (&#x2018;dict&#x2019;, <em>optional</em>, defaults to {}) &#x2014;
The extra arguments for the lr_scheduler. See the documentation of each scheduler for possible values.`,name:"lr_scheduler_kwargs"},{anchor:"transformers.Seq2SeqTrainingArguments.warmup_ratio",description:`<strong>warmup_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Ratio of total training steps used for a linear warmup from 0 to <code>learning_rate</code>.`,name:"warmup_ratio"},{anchor:"transformers.Seq2SeqTrainingArguments.warmup_steps",description:`<strong>warmup_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of steps used for a linear warmup from 0 to <code>learning_rate</code>. Overrides any effect of <code>warmup_ratio</code>.`,name:"warmup_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.log_level",description:`<strong>log_level</strong> (<code>str</code>, <em>optional</em>, defaults to <code>passive</code>) &#x2014;
Logger log level to use on the main process. Possible choices are the log levels as strings: &#x2018;debug&#x2019;,
&#x2018;info&#x2019;, &#x2018;warning&#x2019;, &#x2018;error&#x2019; and &#x2018;critical&#x2019;, plus a &#x2018;passive&#x2019; level which doesn&#x2019;t set anything and keeps the
current log level for the Transformers library (which will be <code>&quot;warning&quot;</code> by default).`,name:"log_level"},{anchor:"transformers.Seq2SeqTrainingArguments.log_level_replica",description:`<strong>log_level_replica</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;warning&quot;</code>) &#x2014;
Logger log level to use on replicas. Same choices as <code>log_level</code>&#x201D;`,name:"log_level_replica"},{anchor:"transformers.Seq2SeqTrainingArguments.log_on_each_node",description:`<strong>log_on_each_node</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
In multinode distributed training, whether to log using <code>log_level</code> once per node, or only on the main
node.`,name:"log_on_each_node"},{anchor:"transformers.Seq2SeqTrainingArguments.logging_dir",description:`<strong>logging_dir</strong> (<code>str</code>, <em>optional</em>) &#x2014;
<a href="https://www.tensorflow.org/tensorboard" rel="nofollow">TensorBoard</a> log directory. Will default to
*output_dir/runs/<strong>CURRENT_DATETIME_HOSTNAME*</strong>.`,name:"logging_dir"},{anchor:"transformers.Seq2SeqTrainingArguments.logging_strategy",description:`<strong>logging_strategy</strong> (<code>str</code> or <a href="/docs/transformers/main/ja/internal/trainer_utils#transformers.IntervalStrategy">IntervalStrategy</a>, <em>optional</em>, defaults to <code>&quot;steps&quot;</code>) &#x2014;
The logging strategy to adopt during training. Possible values are:</p>
<ul>
<li><code>&quot;no&quot;</code>: No logging is done during training.</li>
<li><code>&quot;epoch&quot;</code>: Logging is done at the end of each epoch.</li>
<li><code>&quot;steps&quot;</code>: Logging is done every <code>logging_steps</code>.</li>
</ul>`,name:"logging_strategy"},{anchor:"transformers.Seq2SeqTrainingArguments.logging_first_step",description:`<strong>logging_first_step</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to log the first <code>global_step</code> or not.`,name:"logging_first_step"},{anchor:"transformers.Seq2SeqTrainingArguments.logging_steps",description:`<strong>logging_steps</strong> (<code>int</code> or <code>float</code>, <em>optional</em>, defaults to 500) &#x2014;
Number of update steps between two logs if <code>logging_strategy=&quot;steps&quot;</code>. Should be an integer or a float in
range <code>[0,1)</code>. If smaller than 1, will be interpreted as ratio of total training steps.`,name:"logging_steps"},{anchor:"transformers.Seq2SeqTrainingArguments.logging_nan_inf_filter",description:`<strong>logging_nan_inf_filter</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to filter <code>nan</code> and <code>inf</code> losses for logging. If set to <code>True</code> the loss of every step that is <code>nan</code>
or <code>inf</code> is filtered and the average loss of the current logging window is taken instead.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p><code>logging_nan_inf_filter</code> only influences the logging of loss values, it does not change the behavior the
gradient is computed or applied to the model.</p>

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

					</div>`,name:"load_best_model_at_end"},{anchor:"transformers.Seq2SeqTrainingArguments.metric_for_best_model",description:`<strong>metric_for_best_model</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Use in conjunction with <code>load_best_model_at_end</code> to specify the metric to use to compare two different
models. Must be the name of a metric returned by the evaluation with or without the prefix <code>&quot;eval_&quot;</code>.</p>
<p>If not specified, this will default to <code>&quot;loss&quot;</code> when either <code>load_best_model_at_end == True</code>
or <code>lr_scheduler_type == SchedulerType.REDUCE_ON_PLATEAU</code> (to use the evaluation loss).</p>
<p>If you set this value, <code>greater_is_better</code> will default to <code>True</code> unless the name ends with &#x201C;loss&#x201D;.
Don&#x2019;t forget to set it to <code>False</code> if your metric is better when lower.`,name:"metric_for_best_model"},{anchor:"transformers.Seq2SeqTrainingArguments.greater_is_better",description:`<strong>greater_is_better</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Use in conjunction with <code>load_best_model_at_end</code> and <code>metric_for_best_model</code> to specify if better models
should have a greater metric or not. Will default to:</p>
<ul>
<li><code>True</code> if <code>metric_for_best_model</code> is set to a value that doesn&#x2019;t end in <code>&quot;loss&quot;</code>.</li>
<li><code>False</code> if <code>metric_for_best_model</code> is not set, or set to a value that ends in <code>&quot;loss&quot;</code>.</li>
</ul>`,name:"greater_is_better"},{anchor:"transformers.Seq2SeqTrainingArguments.ignore_data_skip",description:`<strong>ignore_data_skip</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
When resuming training, whether or not to skip the epochs and batches to get the data loading at the same
stage as in the previous training. If set to <code>True</code>, the training will begin faster (as that skipping step
can take a long time) but will not yield the same results as the interrupted training would have.`,name:"ignore_data_skip"},{anchor:"transformers.Seq2SeqTrainingArguments.fsdp",description:`<strong>fsdp</strong> (<code>bool</code>, <code>str</code> or list of <code>FSDPOption</code>, <em>optional</em>, defaults to <code>&apos;&apos;</code>) &#x2014;
Use PyTorch Distributed Parallel Training (in distributed training only).</p>
<p>A list of options along the following:</p>
<ul>
<li><code>&quot;full_shard&quot;</code>: Shard parameters, gradients and optimizer states.</li>
<li><code>&quot;shard_grad_op&quot;</code>: Shard optimizer states and gradients.</li>
<li><code>&quot;hybrid_shard&quot;</code>: Apply <code>FULL_SHARD</code> within a node, and replicate parameters across nodes.</li>
<li><code>&quot;hybrid_shard_zero2&quot;</code>: Apply <code>SHARD_GRAD_OP</code> within a node, and replicate parameters across nodes.</li>
<li><code>&quot;offload&quot;</code>: Offload parameters and gradients to CPUs (only compatible with <code>&quot;full_shard&quot;</code> and
<code>&quot;shard_grad_op&quot;</code>).</li>
<li><code>&quot;auto_wrap&quot;</code>: Automatically recursively wrap layers with FSDP using <code>default_auto_wrap_policy</code>.</li>
</ul>`,name:"fsdp"},{anchor:"transformers.Seq2SeqTrainingArguments.fsdp_config",description:`<strong>fsdp_config</strong> (<code>str</code> or <code>dict</code>, <em>optional</em>) &#x2014;
Config to be used with fsdp (Pytorch Distributed Parallel Training). The value is either a location of
fsdp json config file (e.g., <code>fsdp_config.json</code>) or an already loaded json file as <code>dict</code>.</p>
<p>A List of config and its options:</p>
<ul>
<li>
<p>min_num_params (<code>int</code>, <em>optional</em>, defaults to <code>0</code>):
FSDP&#x2019;s minimum number of parameters for Default Auto Wrapping. (useful only when <code>fsdp</code> field is
passed).</p>
</li>
<li>
<p>transformer_layer_cls_to_wrap (<code>List[str]</code>, <em>optional</em>):
List of transformer layer class names (case-sensitive) to wrap, e.g, <code>BertLayer</code>, <code>GPTJBlock</code>,
<code>T5Block</code> &#x2026; (useful only when <code>fsdp</code> flag is passed).</p>
</li>
<li>
<p>backward_prefetch (<code>str</code>, <em>optional</em>)
FSDP&#x2019;s backward prefetch mode. Controls when to prefetch next set of parameters (useful only when
<code>fsdp</code> field is passed).</p>
<p>A list of options along the following:</p>
<ul>
<li><code>&quot;backward_pre&quot;</code> : Prefetches the next set of parameters before the current set of parameter&#x2019;s
gradient
computation.</li>
<li><code>&quot;backward_post&quot;</code> : This prefetches the next set of parameters after the current set of
parameter&#x2019;s
gradient computation.</li>
</ul>
</li>
<li>
<p>forward_prefetch (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
FSDP&#x2019;s forward prefetch mode (useful only when <code>fsdp</code> field is passed).
If <code>&quot;True&quot;</code>, then FSDP explicitly prefetches the next upcoming all-gather while executing in the
forward pass.</p>
</li>
<li>
<p>limit_all_gathers (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
FSDP&#x2019;s limit_all_gathers (useful only when <code>fsdp</code> field is passed).
If <code>&quot;True&quot;</code>, FSDP explicitly synchronizes the CPU thread to prevent too many in-flight
all-gathers.</p>
</li>
<li>
<p>use_orig_params (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>)
If <code>&quot;True&quot;</code>, allows non-uniform <code>requires_grad</code> during init, which means support for interspersed
frozen and trainable parameters. Useful in cases such as parameter-efficient fine-tuning. Please
refer this
[blog](<a href="https://dev-discuss.pytorch.org/t/rethinking-pytorch-fully-sharded-data-parallel-fsdp-from-first-principles/1019" rel="nofollow">https://dev-discuss.pytorch.org/t/rethinking-pytorch-fully-sharded-data-parallel-fsdp-from-first-principles/1019</a></p>
</li>
<li>
<p>sync_module_states (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>)
If <code>&quot;True&quot;</code>, each individually wrapped FSDP unit will broadcast module parameters from rank 0 to
ensure they are the same across all ranks after initialization</p>
</li>
<li>
<p>cpu_ram_efficient_loading (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>)
If <code>&quot;True&quot;</code>, only the first process loads the pretrained model checkpoint while all other processes
have empty weights.  When this setting as <code>&quot;True&quot;</code>, <code>sync_module_states</code> also must to be <code>&quot;True&quot;</code>,
otherwise all the processes except the main process would have random weights leading to unexpected
behaviour during training.</p>
</li>
<li>
<p>activation_checkpointing (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
If <code>&quot;True&quot;</code>, activation checkpointing is a technique to reduce memory usage by clearing activations of
certain layers and recomputing them during a backward pass. Effectively, this trades extra
computation time for reduced memory usage.</p>
</li>
<li>
<p>xla (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether to use PyTorch/XLA Fully Sharded Data Parallel Training. This is an experimental feature
and its API may evolve in the future.</p>
</li>
<li>
<p>xla_fsdp_settings (<code>dict</code>, <em>optional</em>)
The value is a dictionary which stores the XLA FSDP wrapping parameters.</p>
<p>For a complete list of options, please see <a href="https://github.com/pytorch/xla/blob/master/torch_xla/distributed/fsdp/xla_fully_sharded_data_parallel.py" rel="nofollow">here</a>.</p>
</li>
<li>
<p>xla_fsdp_grad_ckpt (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Will use gradient checkpointing over each nested XLA FSDP wrapped layer. This setting can only be
used when the xla flag is set to true, and an auto wrapping policy is specified through
fsdp_min_num_params or fsdp_transformer_layer_cls_to_wrap.</p>
</li>
</ul>`,name:"fsdp_config"},{anchor:"transformers.Seq2SeqTrainingArguments.tp_size",description:`<strong>tp_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Use tp_size to enable PyTorch tensor parallelism. Tensor parallelism support is only available to models having <code>base_tp_plan</code>
in their respective config classes.
Set a value greater than 1 to activate TP. The same is used to prepare device mesh internally. Requires accelerate&gt;1.3.0.`,name:"tp_size"},{anchor:"transformers.Seq2SeqTrainingArguments.deepspeed",description:`<strong>deepspeed</strong> (<code>str</code> or <code>dict</code>, <em>optional</em>) &#x2014;
Use <a href="https://github.com/deepspeedai/DeepSpeed" rel="nofollow">Deepspeed</a>. This is an experimental feature and its API may
evolve in the future. The value is either the location of DeepSpeed json config file (e.g.,
<code>ds_config.json</code>) or an already loaded json file as a <code>dict</code>&#x201D;</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
If enabling any Zero-init, make sure that your model is not initialized until
*after* initializing the \`TrainingArguments\`, else it will not be applied.

					</div>`,name:"deepspeed"},{anchor:"transformers.Seq2SeqTrainingArguments.accelerator_config",description:`<strong>accelerator_config</strong> (<code>str</code>, <code>dict</code>, or <code>AcceleratorConfig</code>, <em>optional</em>) &#x2014;
Config to be used with the internal <code>Accelerator</code> implementation. The value is either a location of
accelerator json config file (e.g., <code>accelerator_config.json</code>), an already loaded json file as <code>dict</code>,
or an instance of <code>AcceleratorConfig</code>.</p>
<p>A list of config and its options:</p>
<ul>
<li>split_batches (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether or not the accelerator should split the batches yielded by the dataloaders across the devices. If
<code>True</code> the actual batch size used will be the same on any kind of distributed processes, but it must be a
round multiple of the <code>num_processes</code> you are using. If <code>False</code>, actual batch size used will be the one set
in your script multiplied by the number of processes.</li>
<li>dispatch_batches (<code>bool</code>, <em>optional</em>):
If set to <code>True</code>, the dataloader prepared by the Accelerator is only iterated through on the main process
and then the batches are split and broadcast to each process. Will default to <code>True</code> for <code>DataLoader</code> whose
underlying dataset is an <code>IterableDataset</code>, <code>False</code> otherwise.</li>
<li>even_batches (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>):
If set to <code>True</code>, in cases where the total batch size across all processes does not exactly divide the
dataset, samples at the start of the dataset will be duplicated so the batch can be divided equally among
all workers.</li>
<li>use_seedable_sampler (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>):
Whether or not use a fully seedable random sampler (<code>accelerate.data_loader.SeedableRandomSampler</code>). Ensures
training results are fully reproducible using a different sampling technique. While seed-to-seed results
may differ, on average the differences are negligible when using multiple different seeds to compare. Should
also be ran with <code>~utils.set_seed</code> for the best results.</li>
<li>use_configured_state (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether or not to use a pre-configured <code>AcceleratorState</code> or <code>PartialState</code> defined before calling <code>TrainingArguments</code>.
If <code>True</code>, an <code>Accelerator</code> or <code>PartialState</code> must be initialized. Note that by doing so, this could lead to issues
with hyperparameter tuning.</li>
</ul>`,name:"accelerator_config"},{anchor:"transformers.Seq2SeqTrainingArguments.label_smoothing_factor",description:`<strong>label_smoothing_factor</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The label smoothing factor to use. Zero means no label smoothing, otherwise the underlying onehot-encoded
labels are changed from 0s and 1s to <code>label_smoothing_factor/num_labels</code> and <code>1 - label_smoothing_factor + label_smoothing_factor/num_labels</code> respectively.`,name:"label_smoothing_factor"},{anchor:"transformers.Seq2SeqTrainingArguments.debug",description:`<strong>debug</strong> (<code>str</code> or list of <code>DebugOption</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
Enable one or more debug features. This is an experimental feature.</p>
<p>Possible options are:</p>
<ul>
<li><code>&quot;underflow_overflow&quot;</code>: detects overflow in model&#x2019;s input/outputs and reports the last frames that led to
the event</li>
<li><code>&quot;tpu_metrics_debug&quot;</code>: print debug metrics on TPU</li>
</ul>
<p>The options should be separated by whitespaces.`,name:"debug"},{anchor:"transformers.Seq2SeqTrainingArguments.optim",description:`<strong>optim</strong> (<code>str</code> or <code>training_args.OptimizerNames</code>, <em>optional</em>, defaults to <code>&quot;adamw_torch&quot;</code>) &#x2014;
The optimizer to use, such as &#x201C;adamw_torch&#x201D;, &#x201C;adamw_torch_fused&#x201D;, &#x201C;adamw_apex_fused&#x201D;, &#x201C;adamw_anyprecision&#x201D;,
&#x201C;adafactor&#x201D;. See <code>OptimizerNames</code> in <a href="https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py" rel="nofollow">training_args.py</a>
for a full list of optimizers.`,name:"optim"},{anchor:"transformers.Seq2SeqTrainingArguments.optim_args",description:`<strong>optim_args</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Optional arguments that are supplied to optimizers such as AnyPrecisionAdamW, AdEMAMix, and GaLore.`,name:"optim_args"},{anchor:"transformers.Seq2SeqTrainingArguments.group_by_length",description:`<strong>group_by_length</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to group together samples of roughly the same length in the training dataset (to minimize
padding applied and be more efficient). Only useful if applying dynamic padding.`,name:"group_by_length"},{anchor:"transformers.Seq2SeqTrainingArguments.length_column_name",description:`<strong>length_column_name</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;length&quot;</code>) &#x2014;
Column name for precomputed lengths. If the column exists, grouping by length will use these values rather
than computing them on train startup. Ignored unless <code>group_by_length</code> is <code>True</code> and the dataset is an
instance of <code>Dataset</code>.`,name:"length_column_name"},{anchor:"transformers.Seq2SeqTrainingArguments.report_to",description:`<strong>report_to</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>, defaults to <code>&quot;all&quot;</code>) &#x2014;
The list of integrations to report the results and logs to. Supported platforms are <code>&quot;azure_ml&quot;</code>,
<code>&quot;clearml&quot;</code>, <code>&quot;codecarbon&quot;</code>, <code>&quot;comet_ml&quot;</code>, <code>&quot;dagshub&quot;</code>, <code>&quot;dvclive&quot;</code>, <code>&quot;flyte&quot;</code>, <code>&quot;mlflow&quot;</code>, <code>&quot;neptune&quot;</code>,
<code>&quot;swanlab&quot;</code>, <code>&quot;tensorboard&quot;</code>, and <code>&quot;wandb&quot;</code>. Use <code>&quot;all&quot;</code> to report to all integrations installed, <code>&quot;none&quot;</code>
for no integrations.`,name:"report_to"},{anchor:"transformers.Seq2SeqTrainingArguments.ddp_find_unused_parameters",description:`<strong>ddp_find_unused_parameters</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>find_unused_parameters</code> passed to
<code>DistributedDataParallel</code>. Will default to <code>False</code> if gradient checkpointing is used, <code>True</code> otherwise.`,name:"ddp_find_unused_parameters"},{anchor:"transformers.Seq2SeqTrainingArguments.ddp_bucket_cap_mb",description:`<strong>ddp_bucket_cap_mb</strong> (<code>int</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>bucket_cap_mb</code> passed to <code>DistributedDataParallel</code>.`,name:"ddp_bucket_cap_mb"},{anchor:"transformers.Seq2SeqTrainingArguments.ddp_broadcast_buffers",description:`<strong>ddp_broadcast_buffers</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
When using distributed training, the value of the flag <code>broadcast_buffers</code> passed to
<code>DistributedDataParallel</code>. Will default to <code>False</code> if gradient checkpointing is used, <code>True</code> otherwise.`,name:"ddp_broadcast_buffers"},{anchor:"transformers.Seq2SeqTrainingArguments.dataloader_pin_memory",description:`<strong>dataloader_pin_memory</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether you want to pin memory in data loaders or not. Will default to <code>True</code>.`,name:"dataloader_pin_memory"},{anchor:"transformers.Seq2SeqTrainingArguments.dataloader_persistent_workers",description:`<strong>dataloader_persistent_workers</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, the data loader will not shut down the worker processes after a dataset has been consumed once.
This allows to maintain the workers Dataset instances alive. Can potentially speed up training, but will
increase RAM usage. Will default to <code>False</code>.`,name:"dataloader_persistent_workers"},{anchor:"transformers.Seq2SeqTrainingArguments.dataloader_prefetch_factor",description:`<strong>dataloader_prefetch_factor</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of batches loaded in advance by each worker.
2 means there will be a total of 2 * num_workers batches prefetched across all workers.`,name:"dataloader_prefetch_factor"},{anchor:"transformers.Seq2SeqTrainingArguments.skip_memory_metrics",description:`<strong>skip_memory_metrics</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to skip adding of memory profiler reports to metrics. This is skipped by default because it slows
down the training and evaluation speed.`,name:"skip_memory_metrics"},{anchor:"transformers.Seq2SeqTrainingArguments.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push the model to the Hub every time the model is saved. If this is activated,
<code>output_dir</code> will begin a git directory synced with the repo (determined by <code>hub_model_id</code>) and the content
will be pushed each time a save is triggered (depending on your <code>save_strategy</code>). Calling
<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer.save_model">save_model()</a> will also trigger a push.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p>If <code>output_dir</code> exists, it needs to be a local clone of the repository to which the <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> will be
pushed.</p>

					</div>`,name:"push_to_hub"},{anchor:"transformers.Seq2SeqTrainingArguments.resume_from_checkpoint",description:`<strong>resume_from_checkpoint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The path to a folder with a valid checkpoint for your model. This argument is not directly used by
<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a>, it&#x2019;s intended to be used by your training/evaluation scripts instead. See the <a href="https://github.com/huggingface/transformers/tree/main/examples" rel="nofollow">example
scripts</a> for more details.`,name:"resume_from_checkpoint"},{anchor:"transformers.Seq2SeqTrainingArguments.hub_model_id",description:`<strong>hub_model_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the repository to keep in sync with the local <em>output_dir</em>. It can be a simple model ID in
which case the model will be pushed in your namespace. Otherwise it should be the whole repository name,
for instance <code>&quot;user_name/model&quot;</code>, which allows you to push to an organization you are a member of with
<code>&quot;organization_name/model&quot;</code>. Will default to <code>user_name/output_dir_name</code> with <em>output_dir_name</em> being the
name of <code>output_dir</code>.</p>
<p>Will default to the name of <code>output_dir</code>.`,name:"hub_model_id"},{anchor:"transformers.Seq2SeqTrainingArguments.hub_strategy",description:`<strong>hub_strategy</strong> (<code>str</code> or <code>HubStrategy</code>, <em>optional</em>, defaults to <code>&quot;every_save&quot;</code>) &#x2014;
Defines the scope of what is pushed to the Hub and when. Possible values are:</p>
<ul>
<li><code>&quot;end&quot;</code>: push the model, its configuration, the processing class e.g. tokenizer (if passed along to the <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a>) and a
draft of a model card when the <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer.save_model">save_model()</a> method is called.</li>
<li><code>&quot;every_save&quot;</code>: push the model, its configuration, the processing class e.g. tokenizer (if passed along to the <a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a>) and
a draft of a model card each time there is a model save. The pushes are asynchronous to not block
training, and in case the save are very frequent, a new push is only attempted if the previous one is
finished. A last push is made with the final model at the end of training.</li>
<li><code>&quot;checkpoint&quot;</code>: like <code>&quot;every_save&quot;</code> but the latest checkpoint is also pushed in a subfolder named
last-checkpoint, allowing you to resume training easily with
<code>trainer.train(resume_from_checkpoint=&quot;last-checkpoint&quot;)</code>.</li>
<li><code>&quot;all_checkpoints&quot;</code>: like <code>&quot;checkpoint&quot;</code> but all checkpoints are pushed like they appear in the output
folder (so you will get one checkpoint folder per folder in your final repository)</li>
</ul>`,name:"hub_strategy"},{anchor:"transformers.Seq2SeqTrainingArguments.hub_token",description:`<strong>hub_token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to use to push the model to the Hub. Will default to the token in the cache folder obtained with
<code>huggingface-cli login</code>.`,name:"hub_token"},{anchor:"transformers.Seq2SeqTrainingArguments.hub_private_repo",description:`<strong>hub_private_repo</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to make the repo private. If <code>None</code> (default), the repo will be public unless the organization&#x2019;s default is private. This value is ignored if the repo already exists.`,name:"hub_private_repo"},{anchor:"transformers.Seq2SeqTrainingArguments.hub_always_push",description:`<strong>hub_always_push</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Unless this is <code>True</code>, the <code>Trainer</code> will skip pushing a checkpoint when the previous push is not finished.`,name:"hub_always_push"},{anchor:"transformers.Seq2SeqTrainingArguments.gradient_checkpointing",description:`<strong>gradient_checkpointing</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, use gradient checkpointing to save memory at the expense of slower backward pass.`,name:"gradient_checkpointing"},{anchor:"transformers.Seq2SeqTrainingArguments.gradient_checkpointing_kwargs",description:`<strong>gradient_checkpointing_kwargs</strong> (<code>dict</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Key word arguments to be passed to the <code>gradient_checkpointing_enable</code> method.`,name:"gradient_checkpointing_kwargs"},{anchor:"transformers.Seq2SeqTrainingArguments.include_inputs_for_metrics",description:`<strong>include_inputs_for_metrics</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
This argument is deprecated. Use <code>include_for_metrics</code> instead, e.g, <code>include_for_metrics = [&quot;inputs&quot;]</code>.`,name:"include_inputs_for_metrics"},{anchor:"transformers.Seq2SeqTrainingArguments.include_for_metrics",description:`<strong>include_for_metrics</strong> (<code>List[str]</code>, <em>optional</em>, defaults to <code>[]</code>) &#x2014;
Include additional data in the <code>compute_metrics</code> function if needed for metrics computation.
Possible options to add to <code>include_for_metrics</code> list:</p>
<ul>
<li><code>&quot;inputs&quot;</code>: Input data passed to the model, intended for calculating input dependent metrics.</li>
<li><code>&quot;loss&quot;</code>: Loss values computed during evaluation, intended for calculating loss dependent metrics.</li>
</ul>`,name:"include_for_metrics"},{anchor:"transformers.Seq2SeqTrainingArguments.eval_do_concat_batches",description:`<strong>eval_do_concat_batches</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to recursively concat inputs/losses/labels/predictions across batches. If <code>False</code>,
will instead store them as lists, with each batch kept separate.`,name:"eval_do_concat_batches"},{anchor:"transformers.Seq2SeqTrainingArguments.auto_find_batch_size",description:`<strong>auto_find_batch_size</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to find a batch size that will fit into memory automatically through exponential decay, avoiding
CUDA Out-of-Memory errors. Requires accelerate to be installed (<code>pip install accelerate</code>)`,name:"auto_find_batch_size"},{anchor:"transformers.Seq2SeqTrainingArguments.full_determinism",description:`<strong>full_determinism</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, <a href="/docs/transformers/main/ja/internal/trainer_utils#transformers.enable_full_determinism">enable_full_determinism()</a> is called instead of <a href="/docs/transformers/main/ja/internal/trainer_utils#transformers.set_seed">set_seed()</a> to ensure reproducible results in
distributed training. Important: this will negatively impact the performance, so only use it for debugging.`,name:"full_determinism"},{anchor:"transformers.Seq2SeqTrainingArguments.torchdynamo",description:`<strong>torchdynamo</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If set, the backend compiler for TorchDynamo. Possible choices are <code>&quot;eager&quot;</code>, <code>&quot;aot_eager&quot;</code>, <code>&quot;inductor&quot;</code>,
<code>&quot;nvfuser&quot;</code>, <code>&quot;aot_nvfuser&quot;</code>, <code>&quot;aot_cudagraphs&quot;</code>, <code>&quot;ofi&quot;</code>, <code>&quot;fx2trt&quot;</code>, <code>&quot;onnxrt&quot;</code> and <code>&quot;ipex&quot;</code>.`,name:"torchdynamo"},{anchor:"transformers.Seq2SeqTrainingArguments.ray_scope",description:`<strong>ray_scope</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;last&quot;</code>) &#x2014;
The scope to use when doing hyperparameter search with Ray. By default, <code>&quot;last&quot;</code> will be used. Ray will
then use the last checkpoint of all trials, compare those, and select the best one. However, other options
are also available. See the <a href="https://docs.ray.io/en/latest/tune/api_docs/analysis.html#ray.tune.ExperimentAnalysis.get_best_trial" rel="nofollow">Ray documentation</a> for
more options.`,name:"ray_scope"},{anchor:"transformers.Seq2SeqTrainingArguments.ddp_timeout",description:`<strong>ddp_timeout</strong> (<code>int</code>, <em>optional</em>, defaults to 1800) &#x2014;
The timeout for <code>torch.distributed.init_process_group</code> calls, used to avoid GPU socket timeouts when
performing slow operations in distributed runnings. Please refer the [PyTorch documentation]
(<a href="https://pytorch.org/docs/stable/distributed.html#torch.distributed.init_process_group" rel="nofollow">https://pytorch.org/docs/stable/distributed.html#torch.distributed.init_process_group</a>) for more
information.`,name:"ddp_timeout"},{anchor:"transformers.Seq2SeqTrainingArguments.use_mps_device",description:`<strong>use_mps_device</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
This argument is deprecated.<code>mps</code> device will be used if it is available similar to <code>cuda</code> device.`,name:"use_mps_device"},{anchor:"transformers.Seq2SeqTrainingArguments.torch_compile",description:`<strong>torch_compile</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to compile the model using PyTorch 2.0
<a href="https://pytorch.org/get-started/pytorch-2.0/" rel="nofollow"><code>torch.compile</code></a>.</p>
<p>This will use the best defaults for the <a href="https://pytorch.org/docs/stable/generated/torch.compile.html?highlight=torch+compile#torch.compile" rel="nofollow"><code>torch.compile</code>
API</a>.
You can customize the defaults with the argument <code>torch_compile_backend</code> and <code>torch_compile_mode</code> but we
don&#x2019;t guarantee any of them will work as the support is progressively rolled in in PyTorch.</p>
<p>This flag and the whole compile API is experimental and subject to change in future releases.`,name:"torch_compile"},{anchor:"transformers.Seq2SeqTrainingArguments.torch_compile_backend",description:`<strong>torch_compile_backend</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The backend to use in <code>torch.compile</code>. If set to any value, <code>torch_compile</code> will be set to <code>True</code>.</p>
<p>Refer to the PyTorch doc for possible values and note that they may change across PyTorch versions.</p>
<p>This flag is experimental and subject to change in future releases.`,name:"torch_compile_backend"},{anchor:"transformers.Seq2SeqTrainingArguments.torch_compile_mode",description:`<strong>torch_compile_mode</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The mode to use in <code>torch.compile</code>. If set to any value, <code>torch_compile</code> will be set to <code>True</code>.</p>
<p>Refer to the PyTorch doc for possible values and note that they may change across PyTorch versions.</p>
<p>This flag is experimental and subject to change in future releases.`,name:"torch_compile_mode"},{anchor:"transformers.Seq2SeqTrainingArguments.include_tokens_per_second",description:`<strong>include_tokens_per_second</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to compute the number of tokens per second per device for training speed metrics.</p>
<p>This will iterate over the entire training dataloader once beforehand,</p>
<p>and will slow down the entire process.`,name:"include_tokens_per_second"},{anchor:"transformers.Seq2SeqTrainingArguments.include_num_input_tokens_seen",description:`<strong>include_num_input_tokens_seen</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to track the number of input tokens seen throughout training.</p>
<p>May be slower in distributed training as gather operations must be called.`,name:"include_num_input_tokens_seen"},{anchor:"transformers.Seq2SeqTrainingArguments.neftune_noise_alpha",description:`<strong>neftune_noise_alpha</strong> (<code>Optional[float]</code>) &#x2014;
If not <code>None</code>, this will activate NEFTune noise embeddings. This can drastically improve model performance
for instruction fine-tuning. Check out the <a href="https://arxiv.org/abs/2310.05914" rel="nofollow">original paper</a> and the
<a href="https://github.com/neelsjain/NEFTune" rel="nofollow">original code</a>. Support transformers <code>PreTrainedModel</code> and also
<code>PeftModel</code> from peft. The original paper used values in the range [5.0, 15.0].`,name:"neftune_noise_alpha"},{anchor:"transformers.Seq2SeqTrainingArguments.optim_target_modules",description:`<strong>optim_target_modules</strong> (<code>Union[str, List[str]]</code>, <em>optional</em>) &#x2014;
The target modules to optimize, i.e. the module names that you would like to train.
Currently used for the GaLore algorithm (<a href="https://arxiv.org/abs/2403.03507" rel="nofollow">https://arxiv.org/abs/2403.03507</a>) and APOLLO algorithm (<a href="https://arxiv.org/abs/2412.05270" rel="nofollow">https://arxiv.org/abs/2412.05270</a>).
See GaLore implementation (<a href="https://github.com/jiaweizzhao/GaLore" rel="nofollow">https://github.com/jiaweizzhao/GaLore</a>) and APOLLO implementation (<a href="https://github.com/zhuhanqing/APOLLO" rel="nofollow">https://github.com/zhuhanqing/APOLLO</a>) for more details.
You need to make sure to pass a valid GaLore or APOLLO optimizer, e.g., one of: &#x201C;apollo_adamw&#x201D;, &#x201C;galore_adamw&#x201D;, &#x201C;galore_adamw_8bit&#x201D;, &#x201C;galore_adafactor&#x201D; and make sure that the target modules are <code>nn.Linear</code> modules only.`,name:"optim_target_modules"},{anchor:"transformers.Seq2SeqTrainingArguments.batch_eval_metrics",description:`<strong>batch_eval_metrics</strong> (<code>Optional[bool]</code>, defaults to <code>False</code>) &#x2014;
If set to <code>True</code>, evaluation will call compute_metrics at the end of each batch to accumulate statistics
rather than saving all eval logits in memory. When set to <code>True</code>, you must pass a compute_metrics function
that takes a boolean argument <code>compute_result</code>, which when passed <code>True</code>, will trigger the final global
summary statistics from the batch-level summary statistics you&#x2019;ve accumulated over the evaluation set.`,name:"batch_eval_metrics"},{anchor:"transformers.Seq2SeqTrainingArguments.eval_on_start",description:`<strong>eval_on_start</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to perform a evaluation step (sanity check) before the training to ensure the validation steps works correctly.`,name:"eval_on_start"},{anchor:"transformers.Seq2SeqTrainingArguments.eval_use_gather_object",description:`<strong>eval_use_gather_object</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to run recursively gather object in a nested list/tuple/dictionary of objects from all devices. This should only be enabled if users are not just returning tensors, and this is actively discouraged by PyTorch.`,name:"eval_use_gather_object"},{anchor:"transformers.Seq2SeqTrainingArguments.use_liger_kernel",description:`<strong>use_liger_kernel</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether enable <a href="https://github.com/linkedin/Liger-Kernel" rel="nofollow">Liger</a> Kernel for LLM model training.
It can effectively increase multi-GPU training throughput by ~20% and reduces memory usage by ~60%, works out of the box with
flash attention, PyTorch FSDP, and Microsoft DeepSpeed. Currently, it supports llama, mistral, mixtral and gemma models.`,name:"use_liger_kernel"},{anchor:"transformers.Seq2SeqTrainingArguments.average_tokens_across_devices",description:`<strong>average_tokens_across_devices</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to average tokens across devices. If enabled, will use all_reduce to synchronize
num_tokens_in_batch for precise loss calculation. Reference:
<a href="https://github.com/huggingface/transformers/issues/34242" rel="nofollow">https://github.com/huggingface/transformers/issues/34242</a>`,name:"average_tokens_across_devices"},{anchor:"transformers.Seq2SeqTrainingArguments.predict_with_generate",description:`<strong>predict_with_generate</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use generate to calculate generative metrics (ROUGE, BLEU).`,name:"predict_with_generate"},{anchor:"transformers.Seq2SeqTrainingArguments.generation_max_length",description:`<strong>generation_max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The <code>max_length</code> to use on each evaluation loop when <code>predict_with_generate=True</code>. Will default to the
<code>max_length</code> value of the model configuration.`,name:"generation_max_length"},{anchor:"transformers.Seq2SeqTrainingArguments.generation_num_beams",description:`<strong>generation_num_beams</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The <code>num_beams</code> to use on each evaluation loop when <code>predict_with_generate=True</code>. Will default to the
<code>num_beams</code> value of the model configuration.`,name:"generation_num_beams"},{anchor:"transformers.Seq2SeqTrainingArguments.generation_config",description:`<strong>generation_config</strong> (<code>str</code> or <code>Path</code> or <a href="/docs/transformers/main/ja/main_classes/text_generation#transformers.GenerationConfig">GenerationConfig</a>, <em>optional</em>) &#x2014;
Allows to load a <a href="/docs/transformers/main/ja/main_classes/text_generation#transformers.GenerationConfig">GenerationConfig</a> from the <code>from_pretrained</code> method. This can be either:</p>
<ul>
<li>a string, the <em>model id</em> of a pretrained model configuration hosted inside a model repo on
huggingface.co.</li>
<li>a path to a <em>directory</em> containing a configuration file saved using the
<a href="/docs/transformers/main/ja/main_classes/text_generation#transformers.GenerationConfig.save_pretrained">save_pretrained()</a> method, e.g., <code>./my_model_directory/</code>.</li>
<li>a <a href="/docs/transformers/main/ja/main_classes/text_generation#transformers.GenerationConfig">GenerationConfig</a> object.</li>
</ul>`,name:"generation_config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args_seq2seq.py#L28"}}),Oo=new M({props:{name:"to_dict",anchor:"transformers.Seq2SeqTrainingArguments.to_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/training_args_seq2seq.py#L80"}}),Yo=new L({props:{title:"Checkpoints",local:"checkpoints",headingTag:"h2"}}),nn=new L({props:{title:"Logging",local:"logging",headingTag:"h2"}}),mn=new j({props:{code:"JTVCLi4uJTVEJTBBbG9nZ2VyJTIwJTNEJTIwbG9nZ2luZy5nZXRMb2dnZXIoX19uYW1lX18pJTBBJTBBJTIzJTIwU2V0dXAlMjBsb2dnaW5nJTBBbG9nZ2luZy5iYXNpY0NvbmZpZyglMEElMjAlMjAlMjAlMjBmb3JtYXQlM0QlMjIlMjUoYXNjdGltZSlzJTIwLSUyMCUyNShsZXZlbG5hbWUpcyUyMC0lMjAlMjUobmFtZSlzJTIwLSUyMCUyNShtZXNzYWdlKXMlMjIlMkMlMEElMjAlMjAlMjAlMjBkYXRlZm10JTNEJTIyJTI1bSUyRiUyNWQlMkYlMjVZJTIwJTI1SCUzQSUyNU0lM0ElMjVTJTIyJTJDJTBBJTIwJTIwJTIwJTIwaGFuZGxlcnMlM0QlNUJsb2dnaW5nLlN0cmVhbUhhbmRsZXIoc3lzLnN0ZG91dCklNUQlMkMlMEEpJTBBJTBBJTIzJTIwc2V0JTIwdGhlJTIwbWFpbiUyMGNvZGUlMjBhbmQlMjB0aGUlMjBtb2R1bGVzJTIwaXQlMjB1c2VzJTIwdG8lMjB0aGUlMjBzYW1lJTIwbG9nLWxldmVsJTIwYWNjb3JkaW5nJTIwdG8lMjB0aGUlMjBub2RlJTBBbG9nX2xldmVsJTIwJTNEJTIwdHJhaW5pbmdfYXJncy5nZXRfcHJvY2Vzc19sb2dfbGV2ZWwoKSUwQWxvZ2dlci5zZXRMZXZlbChsb2dfbGV2ZWwpJTBBZGF0YXNldHMudXRpbHMubG9nZ2luZy5zZXRfdmVyYm9zaXR5KGxvZ19sZXZlbCklMEF0cmFuc2Zvcm1lcnMudXRpbHMubG9nZ2luZy5zZXRfdmVyYm9zaXR5KGxvZ19sZXZlbCklMEElMEF0cmFpbmVyJTIwJTNEJTIwVHJhaW5lciguLi4p",highlighted:`[...]
logger = logging.getLogger(__name__)

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

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

trainer = Trainer(...)`,wrap:!1}}),un=new j({props:{code:"bXlfYXBwLnB5JTIwLi4uJTIwLS1sb2dfbGV2ZWwlMjB3YXJuaW5nJTIwLS1sb2dfbGV2ZWxfcmVwbGljYSUyMGVycm9y",highlighted:"my_app.py ... --log_level warning --log_level_replica error",wrap:!1}}),hn=new j({props:{code:"bXlfYXBwLnB5JTIwLi4uJTIwLS1sb2dfbGV2ZWwlMjB3YXJuaW5nJTIwLS1sb2dfbGV2ZWxfcmVwbGljYSUyMGVycm9yJTIwLS1sb2dfb25fZWFjaF9ub2RlJTIwMA==",highlighted:"my_app.py ... --log_level warning --log_level_replica error --log_on_each_node 0",wrap:!1}}),bn=new j({props:{code:"bXlfYXBwLnB5JTIwLi4uJTIwLS1sb2dfbGV2ZWwlMjBlcnJvciUyMC0tbG9nX2xldmVsX3JlcGxpY2ElMjBlcnJvciUyMC0tbG9nX29uX2VhY2hfbm9kZSUyMDA=",highlighted:"my_app.py ... --log_level error --log_level_replica error --log_on_each_node 0",wrap:!1}}),yn=new L({props:{title:"Randomness",local:"randomness",headingTag:"h2"}}),xn=new L({props:{title:"Specific GPUs Selection",local:"specific-gpus-selection",headingTag:"h2"}}),kn=new j({props:{code:"dG9yY2hydW4lMjAtLW5wcm9jX3Blcl9ub2RlJTNEMiUyMCUyMHRyYWluZXItcHJvZ3JhbS5weSUyMC4uLg==",highlighted:"torchrun --nproc_per_node=2  trainer-program.py ...",wrap:!1}}),An=new j({props:{code:"YWNjZWxlcmF0ZSUyMGxhdW5jaCUyMC0tbnVtX3Byb2Nlc3NlcyUyMDIlMjB0cmFpbmVyLXByb2dyYW0ucHklMjAuLi4=",highlighted:"accelerate launch --num_processes 2 trainer-program.py ...",wrap:!1}}),jn=new j({props:{code:"ZGVlcHNwZWVkJTIwLS1udW1fZ3B1cyUyMDIlMjB0cmFpbmVyLXByb2dyYW0ucHklMjAuLi4=",highlighted:"deepspeed --num_gpus 2 trainer-program.py ...",wrap:!1}}),Pn=new j({props:{code:"Q1VEQV9WSVNJQkxFX0RFVklDRVMlM0QwJTJDMiUyMHRvcmNocnVuJTIwdHJhaW5lci1wcm9ncmFtLnB5JTIwLi4u",highlighted:"CUDA_VISIBLE_DEVICES=0,2 torchrun trainer-program.py ...",wrap:!1}}),zn=new j({props:{code:"Q1VEQV9WSVNJQkxFX0RFVklDRVMlM0QyJTJDMCUyMHRvcmNocnVuJTIwdHJhaW5lci1wcm9ncmFtLnB5JTIwLi4u",highlighted:"CUDA_VISIBLE_DEVICES=2,0 torchrun trainer-program.py ...",wrap:!1}}),Hn=new j({props:{code:"Q1VEQV9WSVNJQkxFX0RFVklDRVMlM0QyJTJDMCUyMHB5dGhvbiUyMHRyYWluZXItcHJvZ3JhbS5weSUyMC4uLg==",highlighted:"CUDA_VISIBLE_DEVICES=2,0 python trainer-program.py ...",wrap:!1}}),En=new j({props:{code:"Q1VEQV9WSVNJQkxFX0RFVklDRVMlM0QlMjBweXRob24lMjB0cmFpbmVyLXByb2dyYW0ucHklMjAuLi4=",highlighted:"CUDA_VISIBLE_DEVICES= python trainer-program.py ...",wrap:!1}}),Vn=new j({props:{code:"ZXhwb3J0JTIwQ1VEQV9WSVNJQkxFX0RFVklDRVMlM0QwJTJDMiUwQXRvcmNocnVuJTIwdHJhaW5lci1wcm9ncmFtLnB5JTIwLi4u",highlighted:`<span class="hljs-built_in">export</span> CUDA_VISIBLE_DEVICES=0,2
torchrun trainer-program.py ...`,wrap:!1}}),Yn=new j({props:{code:"ZXhwb3J0JTIwQ1VEQV9ERVZJQ0VfT1JERVIlM0RQQ0lfQlVTX0lE",highlighted:'<span class="hljs-built_in">export</span> CUDA_DEVICE_ORDER=PCI_BUS_ID',wrap:!1}}),Qn=new j({props:{code:"ZXhwb3J0JTIwQ1VEQV9ERVZJQ0VfT1JERVIlM0RGQVNURVNUX0ZJUlNU",highlighted:'<span class="hljs-built_in">export</span> CUDA_DEVICE_ORDER=FASTEST_FIRST',wrap:!1}}),ta=new j({props:{code:"ZXhwb3J0JTIwQ1VEQV9WSVNJQkxFX0RFVklDRVMlM0QxJTJDMA==",highlighted:'<span class="hljs-built_in">export</span> CUDA_VISIBLE_DEVICES=1,0',wrap:!1}}),aa=new L({props:{title:"Trainer Integrations",local:"trainer-integrations",headingTag:"h2"}}),la=new L({props:{title:"CUDA Extension Installation Notes",local:"cuda-extension-installation-notes",headingTag:"h3"}}),pa=new j({props:{code:"cGlwJTIwaW5zdGFsbCUyMGRlZXBzcGVlZA==",highlighted:"pip install deepspeed",wrap:!1}}),ha=new L({props:{title:"Possible problem #1",local:"possible-problem-1",headingTag:"h4"}}),va=new j({props:{code:"d2hpY2glMjBudmNj",highlighted:'<span class="hljs-built_in">which</span> nvcc',wrap:!1}}),Ta=new L({props:{title:"Possible problem #2",local:"possible-problem-2",headingTag:"h4"}}),xa=new j({props:{code:"JTJGdXNyJTJGbG9jYWwlMkZjdWRhLTEwLjIlMEElMkZ1c3IlMkZsb2NhbCUyRmN1ZGEtMTEuMA==",highlighted:`/usr/local/cuda-10.2
/usr/local/cuda-11.0`,wrap:!1}}),ka=new j({props:{code:"ZWNobyUyMCUyNFBBVEglMEFlY2hvJTIwJTI0TERfTElCUkFSWV9QQVRI",highlighted:`<span class="hljs-built_in">echo</span> <span class="hljs-variable">$PATH</span>
<span class="hljs-built_in">echo</span> <span class="hljs-variable">$LD_LIBRARY_PATH</span>`,wrap:!1}}),Ia=new j({props:{code:"ZXhwb3J0JTIwUEFUSCUzRCUyRnVzciUyRmxvY2FsJTJGY3VkYS0xMC4yJTJGYmluJTNBJTI0UEFUSCUwQWV4cG9ydCUyMExEX0xJQlJBUllfUEFUSCUzRCUyRnVzciUyRmxvY2FsJTJGY3VkYS0xMC4yJTJGbGliNjQlM0ElMjRMRF9MSUJSQVJZX1BBVEg=",highlighted:`<span class="hljs-built_in">export</span> PATH=/usr/local/cuda-10.2/bin:<span class="hljs-variable">$PATH</span>
<span class="hljs-built_in">export</span> LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64:<span class="hljs-variable">$LD_LIBRARY_PATH</span>`,wrap:!1}}),Ua=new L({props:{title:"Possible problem #3",local:"possible-problem-3",headingTag:"h4"}}),za=new j({props:{code:"c3VkbyUyMGxuJTIwLXMlMjAlMkZ1c3IlMkZiaW4lMkZnY2MtNyUyMCUyMCUyRnVzciUyRmxvY2FsJTJGY3VkYS0xMC4yJTJGYmluJTJGZ2NjJTBBc3VkbyUyMGxuJTIwLXMlMjAlMkZ1c3IlMkZiaW4lMkZnJTJCJTJCLTclMjAlMjAlMkZ1c3IlMkZsb2NhbCUyRmN1ZGEtMTAuMiUyRmJpbiUyRmclMkIlMkI=",highlighted:`sudo <span class="hljs-built_in">ln</span> -s /usr/bin/gcc-7  /usr/local/cuda-10.2/bin/gcc
sudo <span class="hljs-built_in">ln</span> -s /usr/bin/g++-7  /usr/local/cuda-10.2/bin/g++`,wrap:!1}}),Ha=new L({props:{title:"PyTorch Fully Sharded Data parallel",local:"pytorch-fully-sharded-data-parallel",headingTag:"h3"}}),Ga=new L({props:{title:"PyTorch/XLA Fully Sharded Data parallel",local:"pytorchxla-fully-sharded-data-parallel",headingTag:"h3"}}),tr=new L({props:{title:"Using Trainer for accelerated PyTorch Training on Mac",local:"using-trainer-for-accelerated-pytorch-training-on-mac",headingTag:"h3"}}),yt=new jt({props:{warning:!1,$$slots:{default:[Cv]},$$scope:{ctx:C}}}),ir=new j({props:{code:"ZXhwb3J0JTIwVEFTS19OQU1FJTNEbXJwYyUwQSUwQXB5dGhvbiUyMGV4YW1wbGVzJTJGcHl0b3JjaCUyRnRleHQtY2xhc3NpZmljYXRpb24lMkZydW5fZ2x1ZS5weSUyMCU1QyUwQSUyMCUyMC0tbW9kZWxfbmFtZV9vcl9wYXRoJTIwZ29vZ2xlLWJlcnQlMkZiZXJ0LWJhc2UtY2FzZWQlMjAlNUMlMEElMjAlMjAtLXRhc2tfbmFtZSUyMCUyNFRBU0tfTkFNRSUyMCU1QyUwQSUyMCUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAlMjAtLWRvX2V2YWwlMjAlNUMlMEElMjAlMjAtLW1heF9zZXFfbGVuZ3RoJTIwMTI4JTIwJTVDJTBBJTIwJTIwLS1wZXJfZGV2aWNlX3RyYWluX2JhdGNoX3NpemUlMjAzMiUyMCU1QyUwQSUyMCUyMC0tbGVhcm5pbmdfcmF0ZSUyMDJlLTUlMjAlNUMlMEElMjAlMjAtLW51bV90cmFpbl9lcG9jaHMlMjAzJTIwJTVDJTBBJTIwJTIwLS1vdXRwdXRfZGlyJTIwJTJGdG1wJTJGJTI0VEFTS19OQU1FJTJGJTIwJTVDJTBBJTIwJTIwLS1vdmVyd3JpdGVfb3V0cHV0X2Rpcg==",highlighted:`<span class="hljs-built_in">export</span> TASK_NAME=mrpc

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

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

accelerate launch --num_processes=2 \\
--use_fsdp \\
--mixed_precision=bf16 \\
--fsdp_auto_wrap_policy=TRANSFORMER_BASED_WRAP  \\
--fsdp_transformer_layer_cls_to_wrap=<span class="hljs-string">&quot;BertLayer&quot;</span> \\
--fsdp_sharding_strategy=1 \\
--fsdp_state_dict_type=FULL_STATE_DICT \\
./examples/pytorch/text-classification/run_glue.py
--model_name_or_path google-bert/bert-base-cased \\
--task_name <span class="hljs-variable">$TASK_NAME</span> \\
--do_train \\
--do_eval \\
--max_seq_length 128 \\
--per_device_train_batch_size 16 \\
--learning_rate 5e-5 \\
--num_train_epochs 3 \\
--output_dir /tmp/<span class="hljs-variable">$TASK_NAME</span>/ \\
--overwrite_output_dir`,wrap:!1}}),Mr=new pv({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/ja/main_classes/trainer.md"}}),{c(){m=s("meta"),k=n(),v=s("p"),b=n(),p($.$$.fragment),c=n(),q=s("p"),q.innerHTML=th,ul=n(),Ct=s("p"),Ct.innerHTML=oh,gl=n(),It=s("p"),It.innerHTML=nh,hl=n(),Jt=s("p"),Jt.innerHTML=ah,fl=n(),St=s("ul"),St.innerHTML=rh,_l=n(),p(Ie.$$.fragment),bl=n(),Ut=s("p"),Ut.innerHTML=sh,vl=n(),p(Lt.$$.fragment),yl=n(),Pt=s("p"),Pt.innerHTML=ih,Tl=n(),p(Ft.$$.fragment),wl=n(),y=s("div"),p(Nt.$$.fragment),ym=n(),Lr=s("p"),Lr.textContent=lh,Tm=n(),Pr=s("p"),Pr.textContent=dh,wm=n(),Fr=s("ul"),Fr.innerHTML=ch,xm=n(),Je=s("div"),p(zt.$$.fragment),Mm=n(),Nr=s("p"),Nr.innerHTML=mh,$m=n(),Se=s("div"),p(Dt.$$.fragment),km=n(),zr=s("p"),zr.innerHTML=ph,qm=n(),te=s("div"),p(Wt.$$.fragment),Am=n(),Dr=s("p"),Dr.textContent=uh,jm=n(),Wr=s("p"),Wr.textContent=gh,Cm=n(),Ue=s("div"),p(Ht.$$.fragment),Im=n(),Hr=s("p"),Hr.textContent=hh,Jm=n(),Le=s("div"),p(Rt.$$.fragment),Sm=n(),Rr=s("p"),Rr.innerHTML=fh,Um=n(),oe=s("div"),p(Et.$$.fragment),Lm=n(),Er=s("p"),Er.textContent=_h,Pm=n(),Br=s("p"),Br.innerHTML=bh,Fm=n(),ne=s("div"),p(Bt.$$.fragment),Nm=n(),Vr=s("p"),Vr.textContent=vh,zm=n(),Zr=s("p"),Zr.innerHTML=yh,Dm=n(),Pe=s("div"),p(Vt.$$.fragment),Wm=n(),Xr=s("p"),Xr.textContent=Th,Hm=n(),H=s("div"),p(Zt.$$.fragment),Rm=n(),Gr=s("p"),Gr.textContent=wh,Em=n(),Or=s("p"),Or.innerHTML=xh,Bm=n(),Yr=s("p"),Yr.textContent=Mh,Vm=n(),ae=s("div"),p(Xt.$$.fragment),Zm=n(),Qr=s("p"),Qr.innerHTML=$h,Xm=n(),Kr=s("p"),Kr.textContent=kh,Gm=n(),Fe=s("div"),p(Gt.$$.fragment),Om=n(),es=s("p"),es.innerHTML=qh,Ym=n(),R=s("div"),p(Ot.$$.fragment),Qm=n(),ts=s("p"),ts.textContent=Ah,Km=n(),os=s("p"),os.textContent=jh,ep=n(),ns=s("ol"),ns.innerHTML=Ch,tp=n(),re=s("div"),p(Yt.$$.fragment),op=n(),as=s("p"),as.innerHTML=Ih,np=n(),rs=s("p"),rs.textContent=Jh,ap=n(),Ne=s("div"),p(Qt.$$.fragment),rp=n(),ss=s("p"),ss.textContent=Sh,sp=n(),ze=s("div"),p(Kt.$$.fragment),ip=n(),is=s("p"),is.textContent=Uh,lp=n(),De=s("div"),p(eo.$$.fragment),dp=n(),ls=s("p"),ls.textContent=Lh,cp=n(),We=s("div"),p(to.$$.fragment),mp=n(),ds=s("p"),ds.textContent=Ph,pp=n(),se=s("div"),p(oo.$$.fragment),up=n(),cs=s("p"),cs.innerHTML=Fh,gp=n(),ms=s("p"),ms.textContent=Nh,hp=n(),E=s("div"),p(no.$$.fragment),fp=n(),ps=s("p"),ps.innerHTML=zh,_p=n(),us=s("p"),us.innerHTML=Dh,bp=n(),gs=s("p"),gs.textContent=Wh,vp=n(),ie=s("div"),p(ao.$$.fragment),yp=n(),hs=s("p"),hs.innerHTML=Hh,Tp=n(),p(He.$$.fragment),wp=n(),Re=s("div"),p(ro.$$.fragment),xp=n(),fs=s("p"),fs.innerHTML=Rh,Mp=n(),Ee=s("div"),p(so.$$.fragment),$p=n(),_s=s("p"),_s.textContent=Eh,kp=n(),Be=s("div"),p(io.$$.fragment),qp=n(),bs=s("p"),bs.innerHTML=Bh,Ap=n(),le=s("div"),p(lo.$$.fragment),jp=n(),vs=s("p"),vs.innerHTML=Vh,Cp=n(),ys=s("p"),ys.textContent=Zh,Ip=n(),I=s("div"),p(co.$$.fragment),Jp=n(),Ts=s("p"),Ts.textContent=Xh,Sp=n(),ws=s("p"),ws.textContent=Gh,Up=n(),xs=s("p"),xs.textContent=Oh,Lp=n(),Ms=s("p"),Ms.innerHTML=Yh,Pp=n(),p(Ve.$$.fragment),Fp=n(),$s=s("p"),$s.innerHTML=Qh,Np=n(),ks=s("ul"),ks.innerHTML=Kh,zp=n(),qs=s("p"),qs.textContent=ef,Dp=n(),As=s("p"),As.textContent=tf,Wp=n(),js=s("p"),js.innerHTML=of,Hp=n(),Cs=s("p"),Cs.innerHTML=nf,Rp=n(),Is=s("p"),Is.innerHTML=af,Ep=n(),Js=s("p"),Js.innerHTML=rf,Bp=n(),Ss=s("p"),Ss.innerHTML=sf,Vp=n(),Us=s("p"),Us.textContent=lf,Zp=n(),Ze=s("div"),p(mo.$$.fragment),Xp=n(),Ls=s("p"),Ls.textContent=df,Gp=n(),Xe=s("div"),p(po.$$.fragment),Op=n(),Ps=s("p"),Ps.innerHTML=cf,Yp=n(),Ge=s("div"),p(uo.$$.fragment),Qp=n(),Fs=s("p"),Fs.innerHTML=mf,Kp=n(),de=s("div"),p(go.$$.fragment),eu=n(),Ns=s("p"),Ns.innerHTML=pf,tu=n(),zs=s("p"),zs.innerHTML=uf,ou=n(),F=s("div"),p(ho.$$.fragment),nu=n(),Ds=s("p"),Ds.textContent=gf,au=n(),Ws=s("p"),Ws.innerHTML=hf,ru=n(),p(Oe.$$.fragment),su=n(),Hs=s("p"),Hs.innerHTML=ff,iu=n(),Rs=s("ul"),Rs.innerHTML=_f,lu=n(),ce=s("div"),p(fo.$$.fragment),du=n(),Es=s("p"),Es.innerHTML=bf,cu=n(),Bs=s("p"),Bs.textContent=vf,mu=n(),me=s("div"),p(_o.$$.fragment),pu=n(),Vs=s("p"),Vs.innerHTML=yf,uu=n(),Zs=s("p"),Zs.textContent=Tf,gu=n(),Ye=s("div"),p(bo.$$.fragment),hu=n(),Xs=s("p"),Xs.textContent=wf,fu=n(),Qe=s("div"),p(vo.$$.fragment),_u=n(),Gs=s("p"),Gs.innerHTML=xf,bu=n(),Ke=s("div"),p(yo.$$.fragment),vu=n(),Os=s("p"),Os.innerHTML=Mf,yu=n(),B=s("div"),p(To.$$.fragment),Tu=n(),Ys=s("p"),Ys.innerHTML=$f,wu=n(),Qs=s("p"),Qs.textContent=kf,xu=n(),Ks=s("p"),Ks.innerHTML=qf,Mu=n(),pe=s("div"),p(wo.$$.fragment),$u=n(),ei=s("p"),ei.innerHTML=Af,ku=n(),ti=s("p"),ti.textContent=jf,qu=n(),ue=s("div"),p(xo.$$.fragment),Au=n(),oi=s("p"),oi.textContent=Cf,ju=n(),ni=s("p"),ni.textContent=If,Cu=n(),ge=s("div"),p(Mo.$$.fragment),Iu=n(),ai=s("p"),ai.textContent=Jf,Ju=n(),ri=s("ul"),ri.innerHTML=Sf,Su=n(),et=s("div"),p($o.$$.fragment),Uu=n(),si=s("p"),si.textContent=Uf,Lu=n(),he=s("div"),p(ko.$$.fragment),Pu=n(),ii=s("p"),ii.textContent=Lf,Fu=n(),li=s("p"),li.textContent=Pf,xl=n(),p(qo.$$.fragment),Ml=n(),Q=s("div"),p(Ao.$$.fragment),Nu=n(),V=s("div"),p(jo.$$.fragment),zu=n(),di=s("p"),di.textContent=Ff,Du=n(),ci=s("p"),ci.innerHTML=Nf,Wu=n(),mi=s("p"),mi.textContent=zf,Hu=n(),N=s("div"),p(Co.$$.fragment),Ru=n(),pi=s("p"),pi.textContent=Df,Eu=n(),ui=s("p"),ui.innerHTML=Wf,Bu=n(),p(tt.$$.fragment),Vu=n(),gi=s("p"),gi.innerHTML=Hf,Zu=n(),hi=s("ul"),hi.innerHTML=Rf,$l=n(),p(Io.$$.fragment),kl=n(),A=s("div"),p(Jo.$$.fragment),Xu=n(),fi=s("p"),fi.innerHTML=Ef,Gu=n(),_i=s("p"),_i.innerHTML=Bf,Ou=n(),D=s("div"),p(So.$$.fragment),Yu=n(),bi=s("p"),bi.textContent=Vf,Qu=n(),vi=s("p"),vi.innerHTML=Zf,Ku=n(),yi=s("p"),yi.innerHTML=Xf,eg=n(),Ti=s("p"),Ti.innerHTML=Gf,tg=n(),ot=s("div"),p(Uo.$$.fragment),og=n(),wi=s("p"),wi.textContent=Of,ng=n(),fe=s("div"),p(Lo.$$.fragment),ag=n(),xi=s("p"),xi.textContent=Yf,rg=n(),Mi=s("p"),Mi.innerHTML=Qf,sg=n(),_e=s("div"),p(Po.$$.fragment),ig=n(),$i=s("p"),$i.textContent=Kf,lg=n(),p(nt.$$.fragment),dg=n(),be=s("div"),p(Fo.$$.fragment),cg=n(),ki=s("p"),ki.textContent=e_,mg=n(),p(at.$$.fragment),pg=n(),ve=s("div"),p(No.$$.fragment),ug=n(),qi=s("p"),qi.textContent=t_,gg=n(),p(rt.$$.fragment),hg=n(),ye=s("div"),p(zo.$$.fragment),fg=n(),Ai=s("p"),Ai.textContent=o_,_g=n(),p(st.$$.fragment),bg=n(),Te=s("div"),p(Do.$$.fragment),vg=n(),ji=s("p"),ji.textContent=n_,yg=n(),p(it.$$.fragment),Tg=n(),Z=s("div"),p(Wo.$$.fragment),wg=n(),Ci=s("p"),Ci.textContent=a_,xg=n(),p(lt.$$.fragment),Mg=n(),p(dt.$$.fragment),$g=n(),we=s("div"),p(Ho.$$.fragment),kg=n(),Ii=s("p"),Ii.textContent=r_,qg=n(),p(ct.$$.fragment),Ag=n(),X=s("div"),p(Ro.$$.fragment),jg=n(),Ji=s("p"),Ji.textContent=s_,Cg=n(),p(mt.$$.fragment),Ig=n(),p(pt.$$.fragment),Jg=n(),G=s("div"),p(Eo.$$.fragment),Sg=n(),Si=s("p"),Si.textContent=i_,Ug=n(),p(ut.$$.fragment),Lg=n(),p(gt.$$.fragment),Pg=n(),ht=s("div"),p(Bo.$$.fragment),Fg=n(),Ui=s("p"),Ui.innerHTML=l_,Ng=n(),ft=s("div"),p(Vo.$$.fragment),zg=n(),Li=s("p"),Li.textContent=d_,Dg=n(),_t=s("div"),p(Zo.$$.fragment),Wg=n(),Pi=s("p"),Pi.textContent=c_,ql=n(),p(Xo.$$.fragment),Al=n(),W=s("div"),p(Go.$$.fragment),Hg=n(),Fi=s("p"),Fi.innerHTML=m_,Rg=n(),Ni=s("p"),Ni.innerHTML=p_,Eg=n(),bt=s("div"),p(Oo.$$.fragment),Bg=n(),zi=s("p"),zi.innerHTML=u_,jl=n(),p(Yo.$$.fragment),Cl=n(),Qo=s("p"),Qo.innerHTML=g_,Il=n(),Ko=s("p"),Ko.innerHTML=h_,Jl=n(),en=s("ul"),en.innerHTML=f_,Sl=n(),tn=s("p"),tn.innerHTML=__,Ul=n(),on=s("ul"),on.innerHTML=b_,Ll=n(),p(nn.$$.fragment),Pl=n(),an=s("p"),an.innerHTML=v_,Fl=n(),rn=s("p"),rn.innerHTML=y_,Nl=n(),sn=s("ul"),sn.innerHTML=T_,zl=n(),ln=s("p"),ln.innerHTML=w_,Dl=n(),dn=s("p"),dn.innerHTML=x_,Wl=n(),cn=s("p"),cn.textContent=M_,Hl=n(),p(mn.$$.fragment),Rl=n(),pn=s("p"),pn.textContent=$_,El=n(),p(un.$$.fragment),Bl=n(),gn=s("p"),gn.textContent=k_,Vl=n(),p(hn.$$.fragment),Zl=n(),fn=s("p"),fn.textContent=q_,Xl=n(),_n=s("p"),_n.textContent=A_,Gl=n(),p(bn.$$.fragment),Ol=n(),vn=s("p"),vn.innerHTML=j_,Yl=n(),p(yn.$$.fragment),Ql=n(),Tn=s("p"),Tn.innerHTML=C_,Kl=n(),wn=s("p"),wn.innerHTML=I_,ed=n(),p(xn.$$.fragment),td=n(),Mn=s("p"),Mn.textContent=J_,od=n(),$n=s("p"),$n.innerHTML=S_,nd=n(),p(kn.$$.fragment),ad=n(),qn=s("p"),qn.innerHTML=U_,rd=n(),p(An.$$.fragment),sd=n(),p(jn.$$.fragment),id=n(),Cn=s("p"),Cn.innerHTML=L_,ld=n(),In=s("p"),In.textContent=P_,dd=n(),Jn=s("p"),Jn.textContent=F_,cd=n(),Sn=s("p"),Sn.innerHTML=N_,md=n(),Un=s("p"),Un.innerHTML=z_,pd=n(),Ln=s("p"),Ln.textContent=D_,ud=n(),p(Pn.$$.fragment),gd=n(),Fn=s("p"),Fn.innerHTML=W_,hd=n(),Nn=s("p"),Nn.textContent=H_,fd=n(),p(zn.$$.fragment),_d=n(),Dn=s("p"),Dn.innerHTML=R_,bd=n(),Wn=s("p"),Wn.innerHTML=E_,vd=n(),p(Hn.$$.fragment),yd=n(),Rn=s("p"),Rn.textContent=B_,Td=n(),p(En.$$.fragment),wd=n(),Bn=s("p"),Bn.textContent=V_,xd=n(),p(Vn.$$.fragment),Md=n(),Zn=s("p"),Zn.textContent=Z_,$d=n(),Xn=s("p"),Xn.innerHTML=X_,kd=n(),Gn=s("p"),Gn.innerHTML=G_,qd=n(),On=s("ol"),On.innerHTML=O_,Ad=n(),p(Yn.$$.fragment),jd=n(),vt=s("ol"),vt.innerHTML=Y_,Cd=n(),p(Qn.$$.fragment),Id=n(),Kn=s("p"),Kn.innerHTML=Q_,Jd=n(),ea=s("p"),ea.textContent=K_,Sd=n(),p(ta.$$.fragment),Ud=n(),oa=s("p"),oa.textContent=eb,Ld=n(),na=s("p"),na.innerHTML=tb,Pd=n(),p(aa.$$.fragment),Fd=n(),ra=s("p"),ra.innerHTML=ob,Nd=n(),sa=s("p"),sa.innerHTML=nb,zd=n(),ia=s("p"),ia.innerHTML=ab,Dd=n(),Di=s("a"),Wd=n(),p(la.$$.fragment),Hd=n(),da=s("p"),da.textContent=rb,Rd=n(),ca=s("p"),ca.innerHTML=sb,Ed=n(),ma=s("p"),ma.textContent=ib,Bd=n(),p(pa.$$.fragment),Vd=n(),ua=s("p"),ua.textContent=lb,Zd=n(),ga=s("p"),ga.innerHTML=db,Xd=n(),p(ha.$$.fragment),Gd=n(),fa=s("p"),fa.textContent=cb,Od=n(),_a=s("p"),_a.innerHTML=mb,Yd=n(),ba=s("p"),ba.innerHTML=pb,Qd=n(),p(va.$$.fragment),Kd=n(),ya=s("p"),ya.innerHTML=ub,ec=n(),p(Ta.$$.fragment),tc=n(),wa=s("p"),wa.textContent=gb,oc=n(),p(xa.$$.fragment),nc=n(),Ma=s("p"),Ma.innerHTML=hb,ac=n(),$a=s("p"),$a.textContent=fb,rc=n(),p(ka.$$.fragment),sc=n(),qa=s("p"),qa.textContent=_b,ic=n(),Aa=s("p"),Aa.innerHTML=bb,lc=n(),ja=s("p"),ja.innerHTML=vb,dc=n(),Ca=s("p"),Ca.textContent=yb,cc=n(),p(Ia.$$.fragment),mc=n(),Ja=s("p"),Ja.textContent=Tb,pc=n(),Sa=s("p"),Sa.innerHTML=wb,uc=n(),p(Ua.$$.fragment),gc=n(),La=s("p"),La.innerHTML=xb,hc=n(),Pa=s("p"),Pa.textContent=Mb,fc=n(),Fa=s("p"),Fa.textContent=$b,_c=n(),Na=s("p"),Na.textContent=kb,bc=n(),p(za.$$.fragment),vc=n(),Da=s("p"),Da.innerHTML=qb,yc=n(),Wa=s("p"),Wa.textContent=Ab,Tc=n(),p(Ha.$$.fragment),wc=n(),Ra=s("p"),Ra.innerHTML=jb,xc=n(),Ea=s("p"),Ea.innerHTML=Cb,Mc=n(),Ba=s("p"),Ba.innerHTML=Ib,$c=n(),Va=s("ul"),Va.innerHTML=Jb,kc=n(),Za=s("p"),Za.innerHTML=Sb,qc=n(),Xa=s("ul"),Xa.innerHTML=Ub,Ac=n(),p(Ga.$$.fragment),jc=n(),Oa=s("p"),Oa.innerHTML=Lb,Cc=n(),Ya=s("p"),Ya.innerHTML=Pb,Ic=n(),Qa=s("p"),Qa.innerHTML=Fb,Jc=n(),Ka=s("p"),Ka.innerHTML=Nb,Sc=n(),er=s("ul"),er.innerHTML=zb,Uc=n(),p(tr.$$.fragment),Lc=n(),or=s("p"),or.innerHTML=Db,Pc=n(),p(yt.$$.fragment),Fc=n(),nr=s("p"),nr.innerHTML=Wb,Nc=n(),ar=s("ol"),ar.innerHTML=Hb,zc=n(),rr=s("p"),rr.innerHTML=Rb,Dc=n(),sr=s("p"),sr.innerHTML=Eb,Wc=n(),p(ir.$$.fragment),Hc=n(),lr=s("p"),lr.innerHTML=Bb,Rc=n(),dr=s("ol"),dr.innerHTML=Vb,Ec=n(),cr=s("p"),cr.innerHTML=Zb,Bc=n(),p(mr.$$.fragment),Vc=n(),pr=s("p"),pr.textContent=Xb,Zc=n(),ur=s("ul"),ur.innerHTML=Gb,Xc=n(),gr=s("p"),gr.textContent=Ob,Gc=n(),xe=s("ol"),Wi=s("li"),Wi.innerHTML=Yb,Vg=n(),U=s("li"),Hi=s("p"),Hi.innerHTML=Qb,Zg=n(),p(hr.$$.fragment),Xg=n(),Ri=s("p"),Ri.textContent=Kb,Gg=n(),p(fr.$$.fragment),Og=n(),Ei=s("p"),Ei.textContent=ev,Yg=n(),p(_r.$$.fragment),Qg=n(),Bi=s("p"),Bi.textContent=tv,Kg=n(),p(br.$$.fragment),eh=n(),Vi=s("li"),Vi.innerHTML=ov,Oc=n(),p(vr.$$.fragment),Yc=n(),Tt=s("ol"),Tt.innerHTML=nv,Qc=n(),p(yr.$$.fragment),Kc=n(),Tr=s("p"),Tr.innerHTML=av,em=n(),wr=s("p"),wr.textContent=rv,tm=n(),xr=s("p"),xr.innerHTML=sv,om=n(),p(Mr.$$.fragment),nm=n(),pl=s("p"),this.h()},l(e){const r=mv("svelte-u9bgzb",document.head);m=i(r,"META",{name:!0,content:!0}),r.forEach(o),k=a(e),v=i(e,"P",{}),w(v).forEach(o),b=a(e),u($.$$.fragment,e),c=a(e),q=i(e,"P",{"data-svelte-h":!0}),d(q)!=="svelte-1d62t2r"&&(q.innerHTML=th),ul=a(e),Ct=i(e,"P",{"data-svelte-h":!0}),d(Ct)!=="svelte-ekjv40"&&(Ct.innerHTML=oh),gl=a(e),It=i(e,"P",{"data-svelte-h":!0}),d(It)!=="svelte-16xv1n8"&&(It.innerHTML=nh),hl=a(e),Jt=i(e,"P",{"data-svelte-h":!0}),d(Jt)!=="svelte-1yxcgj"&&(Jt.innerHTML=ah),fl=a(e),St=i(e,"UL",{"data-svelte-h":!0}),d(St)!=="svelte-16yyzkt"&&(St.innerHTML=rh),_l=a(e),u(Ie.$$.fragment,e),bl=a(e),Ut=i(e,"P",{"data-svelte-h":!0}),d(Ut)!=="svelte-13n9c6p"&&(Ut.innerHTML=sh),vl=a(e),u(Lt.$$.fragment,e),yl=a(e),Pt=i(e,"P",{"data-svelte-h":!0}),d(Pt)!=="svelte-61pht6"&&(Pt.innerHTML=ih),Tl=a(e),u(Ft.$$.fragment,e),wl=a(e),y=i(e,"DIV",{class:!0});var T=w(y);u(Nt.$$.fragment,T),ym=a(T),Lr=i(T,"P",{"data-svelte-h":!0}),d(Lr)!=="svelte-xa06uv"&&(Lr.textContent=lh),Tm=a(T),Pr=i(T,"P",{"data-svelte-h":!0}),d(Pr)!=="svelte-1tbd587"&&(Pr.textContent=dh),wm=a(T),Fr=i(T,"UL",{"data-svelte-h":!0}),d(Fr)!=="svelte-ui27ky"&&(Fr.innerHTML=ch),xm=a(T),Je=i(T,"DIV",{class:!0});var $r=w(Je);u(zt.$$.fragment,$r),Mm=a($r),Nr=i($r,"P",{"data-svelte-h":!0}),d(Nr)!=="svelte-160c8ip"&&(Nr.innerHTML=mh),$r.forEach(o),$m=a(T),Se=i(T,"DIV",{class:!0});var kr=w(Se);u(Dt.$$.fragment,kr),km=a(kr),zr=i(kr,"P",{"data-svelte-h":!0}),d(zr)!=="svelte-9kwitf"&&(zr.innerHTML=ph),kr.forEach(o),qm=a(T),te=i(T,"DIV",{class:!0});var ke=w(te);u(Wt.$$.fragment,ke),Am=a(ke),Dr=i(ke,"P",{"data-svelte-h":!0}),d(Dr)!=="svelte-1feheyo"&&(Dr.textContent=uh),jm=a(ke),Wr=i(ke,"P",{"data-svelte-h":!0}),d(Wr)!=="svelte-1be1oij"&&(Wr.textContent=gh),ke.forEach(o),Cm=a(T),Ue=i(T,"DIV",{class:!0});var qr=w(Ue);u(Ht.$$.fragment,qr),Im=a(qr),Hr=i(qr,"P",{"data-svelte-h":!0}),d(Hr)!=="svelte-1agg8ch"&&(Hr.textContent=hh),qr.forEach(o),Jm=a(T),Le=i(T,"DIV",{class:!0});var Ar=w(Le);u(Rt.$$.fragment,Ar),Sm=a(Ar),Rr=i(Ar,"P",{"data-svelte-h":!0}),d(Rr)!=="svelte-1mh859w"&&(Rr.innerHTML=fh),Ar.forEach(o),Um=a(T),oe=i(T,"DIV",{class:!0});var qe=w(oe);u(Et.$$.fragment,qe),Lm=a(qe),Er=i(qe,"P",{"data-svelte-h":!0}),d(Er)!=="svelte-1w438iv"&&(Er.textContent=_h),Pm=a(qe),Br=i(qe,"P",{"data-svelte-h":!0}),d(Br)!=="svelte-nadplw"&&(Br.innerHTML=bh),qe.forEach(o),Fm=a(T),ne=i(T,"DIV",{class:!0});var Ae=w(ne);u(Bt.$$.fragment,Ae),Nm=a(Ae),Vr=i(Ae,"P",{"data-svelte-h":!0}),d(Vr)!=="svelte-wdco14"&&(Vr.textContent=vh),zm=a(Ae),Zr=i(Ae,"P",{"data-svelte-h":!0}),d(Zr)!=="svelte-zasfqr"&&(Zr.innerHTML=yh),Ae.forEach(o),Dm=a(T),Pe=i(T,"DIV",{class:!0});var jr=w(Pe);u(Vt.$$.fragment,jr),Wm=a(jr),Xr=i(jr,"P",{"data-svelte-h":!0}),d(Xr)!=="svelte-qi4mtl"&&(Xr.textContent=Th),jr.forEach(o),Hm=a(T),H=i(T,"DIV",{class:!0});var K=w(H);u(Zt.$$.fragment,K),Rm=a(K),Gr=i(K,"P",{"data-svelte-h":!0}),d(Gr)!=="svelte-1mcvryw"&&(Gr.textContent=wh),Em=a(K),Or=i(K,"P",{"data-svelte-h":!0}),d(Or)!=="svelte-1339kj6"&&(Or.innerHTML=xh),Bm=a(K),Yr=i(K,"P",{"data-svelte-h":!0}),d(Yr)!=="svelte-1h30111"&&(Yr.textContent=Mh),K.forEach(o),Vm=a(T),ae=i(T,"DIV",{class:!0});var je=w(ae);u(Xt.$$.fragment,je),Zm=a(je),Qr=i(je,"P",{"data-svelte-h":!0}),d(Qr)!=="svelte-1v5gmc1"&&(Qr.innerHTML=$h),Xm=a(je),Kr=i(je,"P",{"data-svelte-h":!0}),d(Kr)!=="svelte-1tyo99t"&&(Kr.textContent=kh),je.forEach(o),Gm=a(T),Fe=i(T,"DIV",{class:!0});var Cr=w(Fe);u(Gt.$$.fragment,Cr),Om=a(Cr),es=i(Cr,"P",{"data-svelte-h":!0}),d(es)!=="svelte-1t8hxz0"&&(es.innerHTML=qh),Cr.forEach(o),Ym=a(T),R=i(T,"DIV",{class:!0});var ee=w(R);u(Ot.$$.fragment,ee),Qm=a(ee),ts=i(ee,"P",{"data-svelte-h":!0}),d(ts)!=="svelte-c1jesw"&&(ts.textContent=Ah),Km=a(ee),os=i(ee,"P",{"data-svelte-h":!0}),d(os)!=="svelte-25ysg0"&&(os.textContent=jh),ep=a(ee),ns=i(ee,"OL",{"data-svelte-h":!0}),d(ns)!=="svelte-1jln558"&&(ns.innerHTML=Ch),ee.forEach(o),tp=a(T),re=i(T,"DIV",{class:!0});var Ce=w(re);u(Yt.$$.fragment,Ce),op=a(Ce),as=i(Ce,"P",{"data-svelte-h":!0}),d(as)!=="svelte-xesobz"&&(as.innerHTML=Ih),np=a(Ce),rs=i(Ce,"P",{"data-svelte-h":!0}),d(rs)!=="svelte-1v6sccr"&&(rs.textContent=Jh),Ce.forEach(o),ap=a(T),Ne=i(T,"DIV",{class:!0});var Ir=w(Ne);u(Qt.$$.fragment,Ir),rp=a(Ir),ss=i(Ir,"P",{"data-svelte-h":!0}),d(ss)!=="svelte-fo0w3k"&&(ss.textContent=Sh),Ir.forEach(o),sp=a(T),ze=i(T,"DIV",{class:!0});var Jr=w(ze);u(Kt.$$.fragment,Jr),ip=a(Jr),is=i(Jr,"P",{"data-svelte-h":!0}),d(is)!=="svelte-n48d75"&&(is.textContent=Uh),Jr.forEach(o),lp=a(T),De=i(T,"DIV",{class:!0});var Sr=w(De);u(eo.$$.fragment,Sr),dp=a(Sr),ls=i(Sr,"P",{"data-svelte-h":!0}),d(ls)!=="svelte-1enq7q"&&(ls.textContent=Lh),Sr.forEach(o),cp=a(T),We=i(T,"DIV",{class:!0});var Ur=w(We);u(to.$$.fragment,Ur),mp=a(Ur),ds=i(Ur,"P",{"data-svelte-h":!0}),d(ds)!=="svelte-4yzrvz"&&(ds.textContent=Ph),Ur.forEach(o),pp=a(T),se=i(T,"DIV",{class:!0});var Zi=w(se);u(oo.$$.fragment,Zi),up=a(Zi),cs=i(Zi,"P",{"data-svelte-h":!0}),d(cs)!=="svelte-upvtbd"&&(cs.innerHTML=Fh),gp=a(Zi),ms=i(Zi,"P",{"data-svelte-h":!0}),d(ms)!=="svelte-1v6sccr"&&(ms.textContent=Nh),Zi.forEach(o),hp=a(T),E=i(T,"DIV",{class:!0});var wt=w(E);u(no.$$.fragment,wt),fp=a(wt),ps=i(wt,"P",{"data-svelte-h":!0}),d(ps)!=="svelte-dkae9b"&&(ps.innerHTML=zh),_p=a(wt),us=i(wt,"P",{"data-svelte-h":!0}),d(us)!=="svelte-2uvyde"&&(us.innerHTML=Dh),bp=a(wt),gs=i(wt,"P",{"data-svelte-h":!0}),d(gs)!=="svelte-1v6sccr"&&(gs.textContent=Wh),wt.forEach(o),vp=a(T),ie=i(T,"DIV",{class:!0});var Xi=w(ie);u(ao.$$.fragment,Xi),yp=a(Xi),hs=i(Xi,"P",{"data-svelte-h":!0}),d(hs)!=="svelte-mf62ka"&&(hs.innerHTML=Hh),Tp=a(Xi),u(He.$$.fragment,Xi),Xi.forEach(o),wp=a(T),Re=i(T,"DIV",{class:!0});var rm=w(Re);u(ro.$$.fragment,rm),xp=a(rm),fs=i(rm,"P",{"data-svelte-h":!0}),d(fs)!=="svelte-rjlxwe"&&(fs.innerHTML=Rh),rm.forEach(o),Mp=a(T),Ee=i(T,"DIV",{class:!0});var sm=w(Ee);u(so.$$.fragment,sm),$p=a(sm),_s=i(sm,"P",{"data-svelte-h":!0}),d(_s)!=="svelte-16imdke"&&(_s.textContent=Eh),sm.forEach(o),kp=a(T),Be=i(T,"DIV",{class:!0});var im=w(Be);u(io.$$.fragment,im),qp=a(im),bs=i(im,"P",{"data-svelte-h":!0}),d(bs)!=="svelte-1s7jdq8"&&(bs.innerHTML=Bh),im.forEach(o),Ap=a(T),le=i(T,"DIV",{class:!0});var Gi=w(le);u(lo.$$.fragment,Gi),jp=a(Gi),vs=i(Gi,"P",{"data-svelte-h":!0}),d(vs)!=="svelte-19fk55y"&&(vs.innerHTML=Vh),Cp=a(Gi),ys=i(Gi,"P",{"data-svelte-h":!0}),d(ys)!=="svelte-1tz9xhn"&&(ys.textContent=Zh),Gi.forEach(o),Ip=a(T),I=i(T,"DIV",{class:!0});var S=w(I);u(co.$$.fragment,S),Jp=a(S),Ts=i(S,"P",{"data-svelte-h":!0}),d(Ts)!=="svelte-xk72cw"&&(Ts.textContent=Xh),Sp=a(S),ws=i(S,"P",{"data-svelte-h":!0}),d(ws)!=="svelte-5vrny9"&&(ws.textContent=Gh),Up=a(S),xs=i(S,"P",{"data-svelte-h":!0}),d(xs)!=="svelte-k63f70"&&(xs.textContent=Oh),Lp=a(S),Ms=i(S,"P",{"data-svelte-h":!0}),d(Ms)!=="svelte-y2g1lw"&&(Ms.innerHTML=Yh),Pp=a(S),u(Ve.$$.fragment,S),Fp=a(S),$s=i(S,"P",{"data-svelte-h":!0}),d($s)!=="svelte-ny4g3p"&&($s.innerHTML=Qh),Np=a(S),ks=i(S,"UL",{"data-svelte-h":!0}),d(ks)!=="svelte-9luch7"&&(ks.innerHTML=Kh),zp=a(S),qs=i(S,"P",{"data-svelte-h":!0}),d(qs)!=="svelte-1yv69gs"&&(qs.textContent=ef),Dp=a(S),As=i(S,"P",{"data-svelte-h":!0}),d(As)!=="svelte-1d82c6u"&&(As.textContent=tf),Wp=a(S),js=i(S,"P",{"data-svelte-h":!0}),d(js)!=="svelte-d1rr2j"&&(js.innerHTML=of),Hp=a(S),Cs=i(S,"P",{"data-svelte-h":!0}),d(Cs)!=="svelte-m7v5wt"&&(Cs.innerHTML=nf),Rp=a(S),Is=i(S,"P",{"data-svelte-h":!0}),d(Is)!=="svelte-19ms89f"&&(Is.innerHTML=af),Ep=a(S),Js=i(S,"P",{"data-svelte-h":!0}),d(Js)!=="svelte-1lmh4zl"&&(Js.innerHTML=rf),Bp=a(S),Ss=i(S,"P",{"data-svelte-h":!0}),d(Ss)!=="svelte-1lc0sbr"&&(Ss.innerHTML=sf),Vp=a(S),Us=i(S,"P",{"data-svelte-h":!0}),d(Us)!=="svelte-1ocu6t3"&&(Us.textContent=lf),S.forEach(o),Zp=a(T),Ze=i(T,"DIV",{class:!0});var lm=w(Ze);u(mo.$$.fragment,lm),Xp=a(lm),Ls=i(lm,"P",{"data-svelte-h":!0}),d(Ls)!=="svelte-ctud8x"&&(Ls.textContent=df),lm.forEach(o),Gp=a(T),Xe=i(T,"DIV",{class:!0});var dm=w(Xe);u(po.$$.fragment,dm),Op=a(dm),Ps=i(dm,"P",{"data-svelte-h":!0}),d(Ps)!=="svelte-19inmpu"&&(Ps.innerHTML=cf),dm.forEach(o),Yp=a(T),Ge=i(T,"DIV",{class:!0});var cm=w(Ge);u(uo.$$.fragment,cm),Qp=a(cm),Fs=i(cm,"P",{"data-svelte-h":!0}),d(Fs)!=="svelte-tkw811"&&(Fs.innerHTML=mf),cm.forEach(o),Kp=a(T),de=i(T,"DIV",{class:!0});var Oi=w(de);u(go.$$.fragment,Oi),eu=a(Oi),Ns=i(Oi,"P",{"data-svelte-h":!0}),d(Ns)!=="svelte-15nla44"&&(Ns.innerHTML=pf),tu=a(Oi),zs=i(Oi,"P",{"data-svelte-h":!0}),d(zs)!=="svelte-1ojzwr1"&&(zs.innerHTML=uf),Oi.forEach(o),ou=a(T),F=i(T,"DIV",{class:!0});var O=w(F);u(ho.$$.fragment,O),nu=a(O),Ds=i(O,"P",{"data-svelte-h":!0}),d(Ds)!=="svelte-1b6cpoy"&&(Ds.textContent=gf),au=a(O),Ws=i(O,"P",{"data-svelte-h":!0}),d(Ws)!=="svelte-o30dtk"&&(Ws.innerHTML=hf),ru=a(O),u(Oe.$$.fragment,O),su=a(O),Hs=i(O,"P",{"data-svelte-h":!0}),d(Hs)!=="svelte-1t1ea6f"&&(Hs.innerHTML=ff),iu=a(O),Rs=i(O,"UL",{"data-svelte-h":!0}),d(Rs)!=="svelte-15ctb4a"&&(Rs.innerHTML=_f),O.forEach(o),lu=a(T),ce=i(T,"DIV",{class:!0});var Yi=w(ce);u(fo.$$.fragment,Yi),du=a(Yi),Es=i(Yi,"P",{"data-svelte-h":!0}),d(Es)!=="svelte-1v5gmc1"&&(Es.innerHTML=bf),cu=a(Yi),Bs=i(Yi,"P",{"data-svelte-h":!0}),d(Bs)!=="svelte-1tyo99t"&&(Bs.textContent=vf),Yi.forEach(o),mu=a(T),me=i(T,"DIV",{class:!0});var Qi=w(me);u(_o.$$.fragment,Qi),pu=a(Qi),Vs=i(Qi,"P",{"data-svelte-h":!0}),d(Vs)!=="svelte-1y56pc5"&&(Vs.innerHTML=yf),uu=a(Qi),Zs=i(Qi,"P",{"data-svelte-h":!0}),d(Zs)!=="svelte-qjfexy"&&(Zs.textContent=Tf),Qi.forEach(o),gu=a(T),Ye=i(T,"DIV",{class:!0});var mm=w(Ye);u(bo.$$.fragment,mm),hu=a(mm),Xs=i(mm,"P",{"data-svelte-h":!0}),d(Xs)!=="svelte-o5qc7e"&&(Xs.textContent=wf),mm.forEach(o),fu=a(T),Qe=i(T,"DIV",{class:!0});var pm=w(Qe);u(vo.$$.fragment,pm),_u=a(pm),Gs=i(pm,"P",{"data-svelte-h":!0}),d(Gs)!=="svelte-8tudwd"&&(Gs.innerHTML=xf),pm.forEach(o),bu=a(T),Ke=i(T,"DIV",{class:!0});var um=w(Ke);u(yo.$$.fragment,um),vu=a(um),Os=i(um,"P",{"data-svelte-h":!0}),d(Os)!=="svelte-n6cq1h"&&(Os.innerHTML=Mf),um.forEach(o),yu=a(T),B=i(T,"DIV",{class:!0});var xt=w(B);u(To.$$.fragment,xt),Tu=a(xt),Ys=i(xt,"P",{"data-svelte-h":!0}),d(Ys)!=="svelte-9dohab"&&(Ys.innerHTML=$f),wu=a(xt),Qs=i(xt,"P",{"data-svelte-h":!0}),d(Qs)!=="svelte-5vrny9"&&(Qs.textContent=kf),xu=a(xt),Ks=i(xt,"P",{"data-svelte-h":!0}),d(Ks)!=="svelte-1jouhcv"&&(Ks.innerHTML=qf),xt.forEach(o),Mu=a(T),pe=i(T,"DIV",{class:!0});var Ki=w(pe);u(wo.$$.fragment,Ki),$u=a(Ki),ei=i(Ki,"P",{"data-svelte-h":!0}),d(ei)!=="svelte-r8h4ov"&&(ei.innerHTML=Af),ku=a(Ki),ti=i(Ki,"P",{"data-svelte-h":!0}),d(ti)!=="svelte-1e6bius"&&(ti.textContent=jf),Ki.forEach(o),qu=a(T),ue=i(T,"DIV",{class:!0});var el=w(ue);u(xo.$$.fragment,el),Au=a(el),oi=i(el,"P",{"data-svelte-h":!0}),d(oi)!=="svelte-1nfd8vb"&&(oi.textContent=Cf),ju=a(el),ni=i(el,"P",{"data-svelte-h":!0}),d(ni)!=="svelte-5vrny9"&&(ni.textContent=If),el.forEach(o),Cu=a(T),ge=i(T,"DIV",{class:!0});var tl=w(ge);u(Mo.$$.fragment,tl),Iu=a(tl),ai=i(tl,"P",{"data-svelte-h":!0}),d(ai)!=="svelte-130oxb1"&&(ai.textContent=Jf),Ju=a(tl),ri=i(tl,"UL",{"data-svelte-h":!0}),d(ri)!=="svelte-39b8ej"&&(ri.innerHTML=Sf),tl.forEach(o),Su=a(T),et=i(T,"DIV",{class:!0});var gm=w(et);u($o.$$.fragment,gm),Uu=a(gm),si=i(gm,"P",{"data-svelte-h":!0}),d(si)!=="svelte-1cilnet"&&(si.textContent=Uf),gm.forEach(o),Lu=a(T),he=i(T,"DIV",{class:!0});var ol=w(he);u(ko.$$.fragment,ol),Pu=a(ol),ii=i(ol,"P",{"data-svelte-h":!0}),d(ii)!=="svelte-4qplkw"&&(ii.textContent=Lf),Fu=a(ol),li=i(ol,"P",{"data-svelte-h":!0}),d(li)!=="svelte-qjfexy"&&(li.textContent=Pf),ol.forEach(o),T.forEach(o),xl=a(e),u(qo.$$.fragment,e),Ml=a(e),Q=i(e,"DIV",{class:!0});var nl=w(Q);u(Ao.$$.fragment,nl),Nu=a(nl),V=i(nl,"DIV",{class:!0});var Mt=w(V);u(jo.$$.fragment,Mt),zu=a(Mt),di=i(Mt,"P",{"data-svelte-h":!0}),d(di)!=="svelte-1mcvryw"&&(di.textContent=Ff),Du=a(Mt),ci=i(Mt,"P",{"data-svelte-h":!0}),d(ci)!=="svelte-1339kj6"&&(ci.innerHTML=Nf),Wu=a(Mt),mi=i(Mt,"P",{"data-svelte-h":!0}),d(mi)!=="svelte-1h30111"&&(mi.textContent=zf),Mt.forEach(o),Hu=a(nl),N=i(nl,"DIV",{class:!0});var Y=w(N);u(Co.$$.fragment,Y),Ru=a(Y),pi=i(Y,"P",{"data-svelte-h":!0}),d(pi)!=="svelte-1b6cpoy"&&(pi.textContent=Df),Eu=a(Y),ui=i(Y,"P",{"data-svelte-h":!0}),d(ui)!=="svelte-o30dtk"&&(ui.innerHTML=Wf),Bu=a(Y),u(tt.$$.fragment,Y),Vu=a(Y),gi=i(Y,"P",{"data-svelte-h":!0}),d(gi)!=="svelte-1t1ea6f"&&(gi.innerHTML=Hf),Zu=a(Y),hi=i(Y,"UL",{"data-svelte-h":!0}),d(hi)!=="svelte-15ctb4a"&&(hi.innerHTML=Rf),Y.forEach(o),nl.forEach(o),$l=a(e),u(Io.$$.fragment,e),kl=a(e),A=i(e,"DIV",{class:!0});var J=w(A);u(Jo.$$.fragment,J),Xu=a(J),fi=i(J,"P",{"data-svelte-h":!0}),d(fi)!=="svelte-avfxjl"&&(fi.innerHTML=Ef),Gu=a(J),_i=i(J,"P",{"data-svelte-h":!0}),d(_i)!=="svelte-reujti"&&(_i.innerHTML=Bf),Ou=a(J),D=i(J,"DIV",{class:!0});var Me=w(D);u(So.$$.fragment,Me),Yu=a(Me),bi=i(Me,"P",{"data-svelte-h":!0}),d(bi)!=="svelte-hj8f41"&&(bi.textContent=Vf),Qu=a(Me),vi=i(Me,"P",{"data-svelte-h":!0}),d(vi)!=="svelte-1iq1lj0"&&(vi.innerHTML=Zf),Ku=a(Me),yi=i(Me,"P",{"data-svelte-h":!0}),d(yi)!=="svelte-18bal86"&&(yi.innerHTML=Xf),eg=a(Me),Ti=i(Me,"P",{"data-svelte-h":!0}),d(Ti)!=="svelte-oacj0p"&&(Ti.innerHTML=Gf),Me.forEach(o),tg=a(J),ot=i(J,"DIV",{class:!0});var hm=w(ot);u(Uo.$$.fragment,hm),og=a(hm),wi=i(hm,"P",{"data-svelte-h":!0}),d(wi)!=="svelte-9pbc1"&&(wi.textContent=Of),hm.forEach(o),ng=a(J),fe=i(J,"DIV",{class:!0});var al=w(fe);u(Lo.$$.fragment,al),ag=a(al),xi=i(al,"P",{"data-svelte-h":!0}),d(xi)!=="svelte-13fy4lg"&&(xi.textContent=Yf),rg=a(al),Mi=i(al,"P",{"data-svelte-h":!0}),d(Mi)!=="svelte-1aa165w"&&(Mi.innerHTML=Qf),al.forEach(o),sg=a(J),_e=i(J,"DIV",{class:!0});var rl=w(_e);u(Po.$$.fragment,rl),ig=a(rl),$i=i(rl,"P",{"data-svelte-h":!0}),d($i)!=="svelte-12p68tr"&&($i.textContent=Kf),lg=a(rl),u(nt.$$.fragment,rl),rl.forEach(o),dg=a(J),be=i(J,"DIV",{class:!0});var sl=w(be);u(Fo.$$.fragment,sl),cg=a(sl),ki=i(sl,"P",{"data-svelte-h":!0}),d(ki)!=="svelte-9ywrxl"&&(ki.textContent=e_),mg=a(sl),u(at.$$.fragment,sl),sl.forEach(o),pg=a(J),ve=i(J,"DIV",{class:!0});var il=w(ve);u(No.$$.fragment,il),ug=a(il),qi=i(il,"P",{"data-svelte-h":!0}),d(qi)!=="svelte-1lwqsi8"&&(qi.textContent=t_),gg=a(il),u(rt.$$.fragment,il),il.forEach(o),hg=a(J),ye=i(J,"DIV",{class:!0});var ll=w(ye);u(zo.$$.fragment,ll),fg=a(ll),Ai=i(ll,"P",{"data-svelte-h":!0}),d(Ai)!=="svelte-mc54aq"&&(Ai.textContent=o_),_g=a(ll),u(st.$$.fragment,ll),ll.forEach(o),bg=a(J),Te=i(J,"DIV",{class:!0});var dl=w(Te);u(Do.$$.fragment,dl),vg=a(dl),ji=i(dl,"P",{"data-svelte-h":!0}),d(ji)!=="svelte-18hco78"&&(ji.textContent=n_),yg=a(dl),u(it.$$.fragment,dl),dl.forEach(o),Tg=a(J),Z=i(J,"DIV",{class:!0});var $t=w(Z);u(Wo.$$.fragment,$t),wg=a($t),Ci=i($t,"P",{"data-svelte-h":!0}),d(Ci)!=="svelte-y1tcex"&&(Ci.textContent=a_),xg=a($t),u(lt.$$.fragment,$t),Mg=a($t),u(dt.$$.fragment,$t),$t.forEach(o),$g=a(J),we=i(J,"DIV",{class:!0});var cl=w(we);u(Ho.$$.fragment,cl),kg=a(cl),Ii=i(cl,"P",{"data-svelte-h":!0}),d(Ii)!=="svelte-1duj623"&&(Ii.textContent=r_),qg=a(cl),u(ct.$$.fragment,cl),cl.forEach(o),Ag=a(J),X=i(J,"DIV",{class:!0});var kt=w(X);u(Ro.$$.fragment,kt),jg=a(kt),Ji=i(kt,"P",{"data-svelte-h":!0}),d(Ji)!=="svelte-lhuo6p"&&(Ji.textContent=s_),Cg=a(kt),u(mt.$$.fragment,kt),Ig=a(kt),u(pt.$$.fragment,kt),kt.forEach(o),Jg=a(J),G=i(J,"DIV",{class:!0});var qt=w(G);u(Eo.$$.fragment,qt),Sg=a(qt),Si=i(qt,"P",{"data-svelte-h":!0}),d(Si)!=="svelte-1h65v06"&&(Si.textContent=i_),Ug=a(qt),u(ut.$$.fragment,qt),Lg=a(qt),u(gt.$$.fragment,qt),qt.forEach(o),Pg=a(J),ht=i(J,"DIV",{class:!0});var fm=w(ht);u(Bo.$$.fragment,fm),Fg=a(fm),Ui=i(fm,"P",{"data-svelte-h":!0}),d(Ui)!=="svelte-1ciob6u"&&(Ui.innerHTML=l_),fm.forEach(o),Ng=a(J),ft=i(J,"DIV",{class:!0});var _m=w(ft);u(Vo.$$.fragment,_m),zg=a(_m),Li=i(_m,"P",{"data-svelte-h":!0}),d(Li)!=="svelte-5ayq1f"&&(Li.textContent=d_),_m.forEach(o),Dg=a(J),_t=i(J,"DIV",{class:!0});var bm=w(_t);u(Zo.$$.fragment,bm),Wg=a(bm),Pi=i(bm,"P",{"data-svelte-h":!0}),d(Pi)!=="svelte-lg45ly"&&(Pi.textContent=c_),bm.forEach(o),J.forEach(o),ql=a(e),u(Xo.$$.fragment,e),Al=a(e),W=i(e,"DIV",{class:!0});var At=w(W);u(Go.$$.fragment,At),Hg=a(At),Fi=i(At,"P",{"data-svelte-h":!0}),d(Fi)!=="svelte-avfxjl"&&(Fi.innerHTML=m_),Rg=a(At),Ni=i(At,"P",{"data-svelte-h":!0}),d(Ni)!=="svelte-reujti"&&(Ni.innerHTML=p_),Eg=a(At),bt=i(At,"DIV",{class:!0});var vm=w(bt);u(Oo.$$.fragment,vm),Bg=a(vm),zi=i(vm,"P",{"data-svelte-h":!0}),d(zi)!=="svelte-yrflrv"&&(zi.innerHTML=u_),vm.forEach(o),At.forEach(o),jl=a(e),u(Yo.$$.fragment,e),Cl=a(e),Qo=i(e,"P",{"data-svelte-h":!0}),d(Qo)!=="svelte-153b74n"&&(Qo.innerHTML=g_),Il=a(e),Ko=i(e,"P",{"data-svelte-h":!0}),d(Ko)!=="svelte-oaqib5"&&(Ko.innerHTML=h_),Jl=a(e),en=i(e,"UL",{"data-svelte-h":!0}),d(en)!=="svelte-916bei"&&(en.innerHTML=f_),Sl=a(e),tn=i(e,"P",{"data-svelte-h":!0}),d(tn)!=="svelte-1wqo1wa"&&(tn.innerHTML=__),Ul=a(e),on=i(e,"UL",{"data-svelte-h":!0}),d(on)!=="svelte-10b42xx"&&(on.innerHTML=b_),Ll=a(e),u(nn.$$.fragment,e),Pl=a(e),an=i(e,"P",{"data-svelte-h":!0}),d(an)!=="svelte-1k0yyu8"&&(an.innerHTML=v_),Fl=a(e),rn=i(e,"P",{"data-svelte-h":!0}),d(rn)!=="svelte-3280i"&&(rn.innerHTML=y_),Nl=a(e),sn=i(e,"UL",{"data-svelte-h":!0}),d(sn)!=="svelte-1oc2993"&&(sn.innerHTML=T_),zl=a(e),ln=i(e,"P",{"data-svelte-h":!0}),d(ln)!=="svelte-16ajg4c"&&(ln.innerHTML=w_),Dl=a(e),dn=i(e,"P",{"data-svelte-h":!0}),d(dn)!=="svelte-1b2ug2r"&&(dn.innerHTML=x_),Wl=a(e),cn=i(e,"P",{"data-svelte-h":!0}),d(cn)!=="svelte-b1cyl1"&&(cn.textContent=M_),Hl=a(e),u(mn.$$.fragment,e),Rl=a(e),pn=i(e,"P",{"data-svelte-h":!0}),d(pn)!=="svelte-158ul19"&&(pn.textContent=$_),El=a(e),u(un.$$.fragment,e),Bl=a(e),gn=i(e,"P",{"data-svelte-h":!0}),d(gn)!=="svelte-39j1pw"&&(gn.textContent=k_),Vl=a(e),u(hn.$$.fragment,e),Zl=a(e),fn=i(e,"P",{"data-svelte-h":!0}),d(fn)!=="svelte-10ob9cd"&&(fn.textContent=q_),Xl=a(e),_n=i(e,"P",{"data-svelte-h":!0}),d(_n)!=="svelte-17oadqh"&&(_n.textContent=A_),Gl=a(e),u(bn.$$.fragment,e),Ol=a(e),vn=i(e,"P",{"data-svelte-h":!0}),d(vn)!=="svelte-p5a0cn"&&(vn.innerHTML=j_),Yl=a(e),u(yn.$$.fragment,e),Ql=a(e),Tn=i(e,"P",{"data-svelte-h":!0}),d(Tn)!=="svelte-fwp0fy"&&(Tn.innerHTML=C_),Kl=a(e),wn=i(e,"P",{"data-svelte-h":!0}),d(wn)!=="svelte-9a5jkf"&&(wn.innerHTML=I_),ed=a(e),u(xn.$$.fragment,e),td=a(e),Mn=i(e,"P",{"data-svelte-h":!0}),d(Mn)!=="svelte-1t3prdi"&&(Mn.textContent=J_),od=a(e),$n=i(e,"P",{"data-svelte-h":!0}),d($n)!=="svelte-1g9lqne"&&($n.innerHTML=S_),nd=a(e),u(kn.$$.fragment,e),ad=a(e),qn=i(e,"P",{"data-svelte-h":!0}),d(qn)!=="svelte-um9yps"&&(qn.innerHTML=U_),rd=a(e),u(An.$$.fragment,e),sd=a(e),u(jn.$$.fragment,e),id=a(e),Cn=i(e,"P",{"data-svelte-h":!0}),d(Cn)!=="svelte-r16s7e"&&(Cn.innerHTML=L_),ld=a(e),In=i(e,"P",{"data-svelte-h":!0}),d(In)!=="svelte-1pscmms"&&(In.textContent=P_),dd=a(e),Jn=i(e,"P",{"data-svelte-h":!0}),d(Jn)!=="svelte-x2zsim"&&(Jn.textContent=F_),cd=a(e),Sn=i(e,"P",{"data-svelte-h":!0}),d(Sn)!=="svelte-1w89bwu"&&(Sn.innerHTML=N_),md=a(e),Un=i(e,"P",{"data-svelte-h":!0}),d(Un)!=="svelte-bedgig"&&(Un.innerHTML=z_),pd=a(e),Ln=i(e,"P",{"data-svelte-h":!0}),d(Ln)!=="svelte-q6f5iy"&&(Ln.textContent=D_),ud=a(e),u(Pn.$$.fragment,e),gd=a(e),Fn=i(e,"P",{"data-svelte-h":!0}),d(Fn)!=="svelte-1n99pvz"&&(Fn.innerHTML=W_),hd=a(e),Nn=i(e,"P",{"data-svelte-h":!0}),d(Nn)!=="svelte-1du7k8i"&&(Nn.textContent=H_),fd=a(e),u(zn.$$.fragment,e),_d=a(e),Dn=i(e,"P",{"data-svelte-h":!0}),d(Dn)!=="svelte-12s0023"&&(Dn.innerHTML=R_),bd=a(e),Wn=i(e,"P",{"data-svelte-h":!0}),d(Wn)!=="svelte-1j1qci1"&&(Wn.innerHTML=E_),vd=a(e),u(Hn.$$.fragment,e),yd=a(e),Rn=i(e,"P",{"data-svelte-h":!0}),d(Rn)!=="svelte-1y5pus4"&&(Rn.textContent=B_),Td=a(e),u(En.$$.fragment,e),wd=a(e),Bn=i(e,"P",{"data-svelte-h":!0}),d(Bn)!=="svelte-qkjpro"&&(Bn.textContent=V_),xd=a(e),u(Vn.$$.fragment,e),Md=a(e),Zn=i(e,"P",{"data-svelte-h":!0}),d(Zn)!=="svelte-i9jvqe"&&(Zn.textContent=Z_),$d=a(e),Xn=i(e,"P",{"data-svelte-h":!0}),d(Xn)!=="svelte-sdywfx"&&(Xn.innerHTML=X_),kd=a(e),Gn=i(e,"P",{"data-svelte-h":!0}),d(Gn)!=="svelte-u9jroz"&&(Gn.innerHTML=G_),qd=a(e),On=i(e,"OL",{"data-svelte-h":!0}),d(On)!=="svelte-16yy4mu"&&(On.innerHTML=O_),Ad=a(e),u(Yn.$$.fragment,e),jd=a(e),vt=i(e,"OL",{start:!0,"data-svelte-h":!0}),d(vt)!=="svelte-1ofccde"&&(vt.innerHTML=Y_),Cd=a(e),u(Qn.$$.fragment,e),Id=a(e),Kn=i(e,"P",{"data-svelte-h":!0}),d(Kn)!=="svelte-p7aheh"&&(Kn.innerHTML=Q_),Jd=a(e),ea=i(e,"P",{"data-svelte-h":!0}),d(ea)!=="svelte-5d27sm"&&(ea.textContent=K_),Sd=a(e),u(ta.$$.fragment,e),Ud=a(e),oa=i(e,"P",{"data-svelte-h":!0}),d(oa)!=="svelte-1ntxvwj"&&(oa.textContent=eb),Ld=a(e),na=i(e,"P",{"data-svelte-h":!0}),d(na)!=="svelte-1plx2ga"&&(na.innerHTML=tb),Pd=a(e),u(aa.$$.fragment,e),Fd=a(e),ra=i(e,"P",{"data-svelte-h":!0}),d(ra)!=="svelte-1wm4foo"&&(ra.innerHTML=ob),Nd=a(e),sa=i(e,"P",{"data-svelte-h":!0}),d(sa)!=="svelte-1bx76g1"&&(sa.innerHTML=nb),zd=a(e),ia=i(e,"P",{"data-svelte-h":!0}),d(ia)!=="svelte-v0ylqq"&&(ia.innerHTML=ab),Dd=a(e),Di=i(e,"A",{id:!0}),w(Di).forEach(o),Wd=a(e),u(la.$$.fragment,e),Hd=a(e),da=i(e,"P",{"data-svelte-h":!0}),d(da)!=="svelte-hfwhfb"&&(da.textContent=rb),Rd=a(e),ca=i(e,"P",{"data-svelte-h":!0}),d(ca)!=="svelte-uqhb8l"&&(ca.innerHTML=sb),Ed=a(e),ma=i(e,"P",{"data-svelte-h":!0}),d(ma)!=="svelte-1mzwnwz"&&(ma.textContent=ib),Bd=a(e),u(pa.$$.fragment,e),Vd=a(e),ua=i(e,"P",{"data-svelte-h":!0}),d(ua)!=="svelte-1jfi0g2"&&(ua.textContent=lb),Zd=a(e),ga=i(e,"P",{"data-svelte-h":!0}),d(ga)!=="svelte-pmbo8s"&&(ga.innerHTML=db),Xd=a(e),u(ha.$$.fragment,e),Gd=a(e),fa=i(e,"P",{"data-svelte-h":!0}),d(fa)!=="svelte-1l75krc"&&(fa.textContent=cb),Od=a(e),_a=i(e,"P",{"data-svelte-h":!0}),d(_a)!=="svelte-j2athw"&&(_a.innerHTML=mb),Yd=a(e),ba=i(e,"P",{"data-svelte-h":!0}),d(ba)!=="svelte-bjuui7"&&(ba.innerHTML=pb),Qd=a(e),u(va.$$.fragment,e),Kd=a(e),ya=i(e,"P",{"data-svelte-h":!0}),d(ya)!=="svelte-lqof29"&&(ya.innerHTML=ub),ec=a(e),u(Ta.$$.fragment,e),tc=a(e),wa=i(e,"P",{"data-svelte-h":!0}),d(wa)!=="svelte-1ilnvy8"&&(wa.textContent=gb),oc=a(e),u(xa.$$.fragment,e),nc=a(e),Ma=i(e,"P",{"data-svelte-h":!0}),d(Ma)!=="svelte-149kmv4"&&(Ma.innerHTML=hb),ac=a(e),$a=i(e,"P",{"data-svelte-h":!0}),d($a)!=="svelte-1xw0mza"&&($a.textContent=fb),rc=a(e),u(ka.$$.fragment,e),sc=a(e),qa=i(e,"P",{"data-svelte-h":!0}),d(qa)!=="svelte-pzu29d"&&(qa.textContent=_b),ic=a(e),Aa=i(e,"P",{"data-svelte-h":!0}),d(Aa)!=="svelte-1m452o3"&&(Aa.innerHTML=bb),lc=a(e),ja=i(e,"P",{"data-svelte-h":!0}),d(ja)!=="svelte-1l6ec03"&&(ja.innerHTML=vb),dc=a(e),Ca=i(e,"P",{"data-svelte-h":!0}),d(Ca)!=="svelte-kncnhn"&&(Ca.textContent=yb),cc=a(e),u(Ia.$$.fragment,e),mc=a(e),Ja=i(e,"P",{"data-svelte-h":!0}),d(Ja)!=="svelte-1v382du"&&(Ja.textContent=Tb),pc=a(e),Sa=i(e,"P",{"data-svelte-h":!0}),d(Sa)!=="svelte-l7u2i5"&&(Sa.innerHTML=wb),uc=a(e),u(Ua.$$.fragment,e),gc=a(e),La=i(e,"P",{"data-svelte-h":!0}),d(La)!=="svelte-zhec86"&&(La.innerHTML=xb),hc=a(e),Pa=i(e,"P",{"data-svelte-h":!0}),d(Pa)!=="svelte-1uevych"&&(Pa.textContent=Mb),fc=a(e),Fa=i(e,"P",{"data-svelte-h":!0}),d(Fa)!=="svelte-8ojk81"&&(Fa.textContent=$b),_c=a(e),Na=i(e,"P",{"data-svelte-h":!0}),d(Na)!=="svelte-xc9mqa"&&(Na.textContent=kb),bc=a(e),u(za.$$.fragment,e),vc=a(e),Da=i(e,"P",{"data-svelte-h":!0}),d(Da)!=="svelte-3v21r6"&&(Da.innerHTML=qb),yc=a(e),Wa=i(e,"P",{"data-svelte-h":!0}),d(Wa)!=="svelte-1xxfc0k"&&(Wa.textContent=Ab),Tc=a(e),u(Ha.$$.fragment,e),wc=a(e),Ra=i(e,"P",{"data-svelte-h":!0}),d(Ra)!=="svelte-1nr5ht4"&&(Ra.innerHTML=jb),xc=a(e),Ea=i(e,"P",{"data-svelte-h":!0}),d(Ea)!=="svelte-8irvk8"&&(Ea.innerHTML=Cb),Mc=a(e),Ba=i(e,"P",{"data-svelte-h":!0}),d(Ba)!=="svelte-1utwfd"&&(Ba.innerHTML=Ib),$c=a(e),Va=i(e,"UL",{"data-svelte-h":!0}),d(Va)!=="svelte-mvddf9"&&(Va.innerHTML=Jb),kc=a(e),Za=i(e,"P",{"data-svelte-h":!0}),d(Za)!=="svelte-1pkkwp2"&&(Za.innerHTML=Sb),qc=a(e),Xa=i(e,"UL",{"data-svelte-h":!0}),d(Xa)!=="svelte-qac4ha"&&(Xa.innerHTML=Ub),Ac=a(e),u(Ga.$$.fragment,e),jc=a(e),Oa=i(e,"P",{"data-svelte-h":!0}),d(Oa)!=="svelte-suy5cd"&&(Oa.innerHTML=Lb),Cc=a(e),Ya=i(e,"P",{"data-svelte-h":!0}),d(Ya)!=="svelte-1v8munl"&&(Ya.innerHTML=Pb),Ic=a(e),Qa=i(e,"P",{"data-svelte-h":!0}),d(Qa)!=="svelte-1utwfd"&&(Qa.innerHTML=Fb),Jc=a(e),Ka=i(e,"P",{"data-svelte-h":!0}),d(Ka)!=="svelte-m6vzvd"&&(Ka.innerHTML=Nb),Sc=a(e),er=i(e,"UL",{"data-svelte-h":!0}),d(er)!=="svelte-g2qgyp"&&(er.innerHTML=zb),Uc=a(e),u(tr.$$.fragment,e),Lc=a(e),or=i(e,"P",{"data-svelte-h":!0}),d(or)!=="svelte-sywrc2"&&(or.innerHTML=Db),Pc=a(e),u(yt.$$.fragment,e),Fc=a(e),nr=i(e,"P",{"data-svelte-h":!0}),d(nr)!=="svelte-1g8h0y8"&&(nr.innerHTML=Wb),Nc=a(e),ar=i(e,"OL",{"data-svelte-h":!0}),d(ar)!=="svelte-ywc5bg"&&(ar.innerHTML=Hb),zc=a(e),rr=i(e,"P",{"data-svelte-h":!0}),d(rr)!=="svelte-5c7loz"&&(rr.innerHTML=Rb),Dc=a(e),sr=i(e,"P",{"data-svelte-h":!0}),d(sr)!=="svelte-9t0yzq"&&(sr.innerHTML=Eb),Wc=a(e),u(ir.$$.fragment,e),Hc=a(e),lr=i(e,"P",{"data-svelte-h":!0}),d(lr)!=="svelte-1l4ri0y"&&(lr.innerHTML=Bb),Rc=a(e),dr=i(e,"OL",{"data-svelte-h":!0}),d(dr)!=="svelte-4nvgol"&&(dr.innerHTML=Vb),Ec=a(e),cr=i(e,"P",{"data-svelte-h":!0}),d(cr)!=="svelte-av4hth"&&(cr.innerHTML=Zb),Bc=a(e),u(mr.$$.fragment,e),Vc=a(e),pr=i(e,"P",{"data-svelte-h":!0}),d(pr)!=="svelte-1y53bvn"&&(pr.textContent=Xb),Zc=a(e),ur=i(e,"UL",{"data-svelte-h":!0}),d(ur)!=="svelte-wla250"&&(ur.innerHTML=Gb),Xc=a(e),gr=i(e,"P",{"data-svelte-h":!0}),d(gr)!=="svelte-fl7riu"&&(gr.textContent=Ob),Gc=a(e),xe=i(e,"OL",{});var ml=w(xe);Wi=i(ml,"LI",{"data-svelte-h":!0}),d(Wi)!=="svelte-8f6lnl"&&(Wi.innerHTML=Yb),Vg=a(ml),U=i(ml,"LI",{});var z=w(U);Hi=i(z,"P",{"data-svelte-h":!0}),d(Hi)!=="svelte-2hzsoi"&&(Hi.innerHTML=Qb),Zg=a(z),u(hr.$$.fragment,z),Xg=a(z),Ri=i(z,"P",{"data-svelte-h":!0}),d(Ri)!=="svelte-1j5721n"&&(Ri.textContent=Kb),Gg=a(z),u(fr.$$.fragment,z),Og=a(z),Ei=i(z,"P",{"data-svelte-h":!0}),d(Ei)!=="svelte-13ygjw6"&&(Ei.textContent=ev),Yg=a(z),u(_r.$$.fragment,z),Qg=a(z),Bi=i(z,"P",{"data-svelte-h":!0}),d(Bi)!=="svelte-e9i9xb"&&(Bi.textContent=tv),Kg=a(z),u(br.$$.fragment,z),z.forEach(o),eh=a(ml),Vi=i(ml,"LI",{"data-svelte-h":!0}),d(Vi)!=="svelte-z4cdgz"&&(Vi.innerHTML=ov),ml.forEach(o),Oc=a(e),u(vr.$$.fragment,e),Yc=a(e),Tt=i(e,"OL",{start:!0,"data-svelte-h":!0}),d(Tt)!=="svelte-64naim"&&(Tt.innerHTML=nv),Qc=a(e),u(yr.$$.fragment,e),Kc=a(e),Tr=i(e,"P",{"data-svelte-h":!0}),d(Tr)!=="svelte-1efr8k9"&&(Tr.innerHTML=av),em=a(e),wr=i(e,"P",{"data-svelte-h":!0}),d(wr)!=="svelte-zyvuq3"&&(wr.textContent=rv),tm=a(e),xr=i(e,"P",{"data-svelte-h":!0}),d(xr)!=="svelte-f4ziqx"&&(xr.innerHTML=sv),om=a(e),u(Mr.$$.fragment,e),nm=a(e),pl=i(e,"P",{}),w(pl).forEach(o),this.h()},h(){x(m,"name","hf:doc:metadata"),x(m,"content",Jv),x(Je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(De,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(_t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(bt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(vt,"start","2"),x(Di,"id","zero-install-notes"),x(Tt,"start","4")},m(e,r){t(document.head,m),l(e,k,r),l(e,v,r),l(e,b,r),g($,e,r),l(e,c,r),l(e,q,r),l(e,ul,r),l(e,Ct,r),l(e,gl,r),l(e,It,r),l(e,hl,r),l(e,Jt,r),l(e,fl,r),l(e,St,r),l(e,_l,r),g(Ie,e,r),l(e,bl,r),l(e,Ut,r),l(e,vl,r),g(Lt,e,r),l(e,yl,r),l(e,Pt,r),l(e,Tl,r),g(Ft,e,r),l(e,wl,r),l(e,y,r),g(Nt,y,null),t(y,ym),t(y,Lr),t(y,Tm),t(y,Pr),t(y,wm),t(y,Fr),t(y,xm),t(y,Je),g(zt,Je,null),t(Je,Mm),t(Je,Nr),t(y,$m),t(y,Se),g(Dt,Se,null),t(Se,km),t(Se,zr),t(y,qm),t(y,te),g(Wt,te,null),t(te,Am),t(te,Dr),t(te,jm),t(te,Wr),t(y,Cm),t(y,Ue),g(Ht,Ue,null),t(Ue,Im),t(Ue,Hr),t(y,Jm),t(y,Le),g(Rt,Le,null),t(Le,Sm),t(Le,Rr),t(y,Um),t(y,oe),g(Et,oe,null),t(oe,Lm),t(oe,Er),t(oe,Pm),t(oe,Br),t(y,Fm),t(y,ne),g(Bt,ne,null),t(ne,Nm),t(ne,Vr),t(ne,zm),t(ne,Zr),t(y,Dm),t(y,Pe),g(Vt,Pe,null),t(Pe,Wm),t(Pe,Xr),t(y,Hm),t(y,H),g(Zt,H,null),t(H,Rm),t(H,Gr),t(H,Em),t(H,Or),t(H,Bm),t(H,Yr),t(y,Vm),t(y,ae),g(Xt,ae,null),t(ae,Zm),t(ae,Qr),t(ae,Xm),t(ae,Kr),t(y,Gm),t(y,Fe),g(Gt,Fe,null),t(Fe,Om),t(Fe,es),t(y,Ym),t(y,R),g(Ot,R,null),t(R,Qm),t(R,ts),t(R,Km),t(R,os),t(R,ep),t(R,ns),t(y,tp),t(y,re),g(Yt,re,null),t(re,op),t(re,as),t(re,np),t(re,rs),t(y,ap),t(y,Ne),g(Qt,Ne,null),t(Ne,rp),t(Ne,ss),t(y,sp),t(y,ze),g(Kt,ze,null),t(ze,ip),t(ze,is),t(y,lp),t(y,De),g(eo,De,null),t(De,dp),t(De,ls),t(y,cp),t(y,We),g(to,We,null),t(We,mp),t(We,ds),t(y,pp),t(y,se),g(oo,se,null),t(se,up),t(se,cs),t(se,gp),t(se,ms),t(y,hp),t(y,E),g(no,E,null),t(E,fp),t(E,ps),t(E,_p),t(E,us),t(E,bp),t(E,gs),t(y,vp),t(y,ie),g(ao,ie,null),t(ie,yp),t(ie,hs),t(ie,Tp),g(He,ie,null),t(y,wp),t(y,Re),g(ro,Re,null),t(Re,xp),t(Re,fs),t(y,Mp),t(y,Ee),g(so,Ee,null),t(Ee,$p),t(Ee,_s),t(y,kp),t(y,Be),g(io,Be,null),t(Be,qp),t(Be,bs),t(y,Ap),t(y,le),g(lo,le,null),t(le,jp),t(le,vs),t(le,Cp),t(le,ys),t(y,Ip),t(y,I),g(co,I,null),t(I,Jp),t(I,Ts),t(I,Sp),t(I,ws),t(I,Up),t(I,xs),t(I,Lp),t(I,Ms),t(I,Pp),g(Ve,I,null),t(I,Fp),t(I,$s),t(I,Np),t(I,ks),t(I,zp),t(I,qs),t(I,Dp),t(I,As),t(I,Wp),t(I,js),t(I,Hp),t(I,Cs),t(I,Rp),t(I,Is),t(I,Ep),t(I,Js),t(I,Bp),t(I,Ss),t(I,Vp),t(I,Us),t(y,Zp),t(y,Ze),g(mo,Ze,null),t(Ze,Xp),t(Ze,Ls),t(y,Gp),t(y,Xe),g(po,Xe,null),t(Xe,Op),t(Xe,Ps),t(y,Yp),t(y,Ge),g(uo,Ge,null),t(Ge,Qp),t(Ge,Fs),t(y,Kp),t(y,de),g(go,de,null),t(de,eu),t(de,Ns),t(de,tu),t(de,zs),t(y,ou),t(y,F),g(ho,F,null),t(F,nu),t(F,Ds),t(F,au),t(F,Ws),t(F,ru),g(Oe,F,null),t(F,su),t(F,Hs),t(F,iu),t(F,Rs),t(y,lu),t(y,ce),g(fo,ce,null),t(ce,du),t(ce,Es),t(ce,cu),t(ce,Bs),t(y,mu),t(y,me),g(_o,me,null),t(me,pu),t(me,Vs),t(me,uu),t(me,Zs),t(y,gu),t(y,Ye),g(bo,Ye,null),t(Ye,hu),t(Ye,Xs),t(y,fu),t(y,Qe),g(vo,Qe,null),t(Qe,_u),t(Qe,Gs),t(y,bu),t(y,Ke),g(yo,Ke,null),t(Ke,vu),t(Ke,Os),t(y,yu),t(y,B),g(To,B,null),t(B,Tu),t(B,Ys),t(B,wu),t(B,Qs),t(B,xu),t(B,Ks),t(y,Mu),t(y,pe),g(wo,pe,null),t(pe,$u),t(pe,ei),t(pe,ku),t(pe,ti),t(y,qu),t(y,ue),g(xo,ue,null),t(ue,Au),t(ue,oi),t(ue,ju),t(ue,ni),t(y,Cu),t(y,ge),g(Mo,ge,null),t(ge,Iu),t(ge,ai),t(ge,Ju),t(ge,ri),t(y,Su),t(y,et),g($o,et,null),t(et,Uu),t(et,si),t(y,Lu),t(y,he),g(ko,he,null),t(he,Pu),t(he,ii),t(he,Fu),t(he,li),l(e,xl,r),g(qo,e,r),l(e,Ml,r),l(e,Q,r),g(Ao,Q,null),t(Q,Nu),t(Q,V),g(jo,V,null),t(V,zu),t(V,di),t(V,Du),t(V,ci),t(V,Wu),t(V,mi),t(Q,Hu),t(Q,N),g(Co,N,null),t(N,Ru),t(N,pi),t(N,Eu),t(N,ui),t(N,Bu),g(tt,N,null),t(N,Vu),t(N,gi),t(N,Zu),t(N,hi),l(e,$l,r),g(Io,e,r),l(e,kl,r),l(e,A,r),g(Jo,A,null),t(A,Xu),t(A,fi),t(A,Gu),t(A,_i),t(A,Ou),t(A,D),g(So,D,null),t(D,Yu),t(D,bi),t(D,Qu),t(D,vi),t(D,Ku),t(D,yi),t(D,eg),t(D,Ti),t(A,tg),t(A,ot),g(Uo,ot,null),t(ot,og),t(ot,wi),t(A,ng),t(A,fe),g(Lo,fe,null),t(fe,ag),t(fe,xi),t(fe,rg),t(fe,Mi),t(A,sg),t(A,_e),g(Po,_e,null),t(_e,ig),t(_e,$i),t(_e,lg),g(nt,_e,null),t(A,dg),t(A,be),g(Fo,be,null),t(be,cg),t(be,ki),t(be,mg),g(at,be,null),t(A,pg),t(A,ve),g(No,ve,null),t(ve,ug),t(ve,qi),t(ve,gg),g(rt,ve,null),t(A,hg),t(A,ye),g(zo,ye,null),t(ye,fg),t(ye,Ai),t(ye,_g),g(st,ye,null),t(A,bg),t(A,Te),g(Do,Te,null),t(Te,vg),t(Te,ji),t(Te,yg),g(it,Te,null),t(A,Tg),t(A,Z),g(Wo,Z,null),t(Z,wg),t(Z,Ci),t(Z,xg),g(lt,Z,null),t(Z,Mg),g(dt,Z,null),t(A,$g),t(A,we),g(Ho,we,null),t(we,kg),t(we,Ii),t(we,qg),g(ct,we,null),t(A,Ag),t(A,X),g(Ro,X,null),t(X,jg),t(X,Ji),t(X,Cg),g(mt,X,null),t(X,Ig),g(pt,X,null),t(A,Jg),t(A,G),g(Eo,G,null),t(G,Sg),t(G,Si),t(G,Ug),g(ut,G,null),t(G,Lg),g(gt,G,null),t(A,Pg),t(A,ht),g(Bo,ht,null),t(ht,Fg),t(ht,Ui),t(A,Ng),t(A,ft),g(Vo,ft,null),t(ft,zg),t(ft,Li),t(A,Dg),t(A,_t),g(Zo,_t,null),t(_t,Wg),t(_t,Pi),l(e,ql,r),g(Xo,e,r),l(e,Al,r),l(e,W,r),g(Go,W,null),t(W,Hg),t(W,Fi),t(W,Rg),t(W,Ni),t(W,Eg),t(W,bt),g(Oo,bt,null),t(bt,Bg),t(bt,zi),l(e,jl,r),g(Yo,e,r),l(e,Cl,r),l(e,Qo,r),l(e,Il,r),l(e,Ko,r),l(e,Jl,r),l(e,en,r),l(e,Sl,r),l(e,tn,r),l(e,Ul,r),l(e,on,r),l(e,Ll,r),g(nn,e,r),l(e,Pl,r),l(e,an,r),l(e,Fl,r),l(e,rn,r),l(e,Nl,r),l(e,sn,r),l(e,zl,r),l(e,ln,r),l(e,Dl,r),l(e,dn,r),l(e,Wl,r),l(e,cn,r),l(e,Hl,r),g(mn,e,r),l(e,Rl,r),l(e,pn,r),l(e,El,r),g(un,e,r),l(e,Bl,r),l(e,gn,r),l(e,Vl,r),g(hn,e,r),l(e,Zl,r),l(e,fn,r),l(e,Xl,r),l(e,_n,r),l(e,Gl,r),g(bn,e,r),l(e,Ol,r),l(e,vn,r),l(e,Yl,r),g(yn,e,r),l(e,Ql,r),l(e,Tn,r),l(e,Kl,r),l(e,wn,r),l(e,ed,r),g(xn,e,r),l(e,td,r),l(e,Mn,r),l(e,od,r),l(e,$n,r),l(e,nd,r),g(kn,e,r),l(e,ad,r),l(e,qn,r),l(e,rd,r),g(An,e,r),l(e,sd,r),g(jn,e,r),l(e,id,r),l(e,Cn,r),l(e,ld,r),l(e,In,r),l(e,dd,r),l(e,Jn,r),l(e,cd,r),l(e,Sn,r),l(e,md,r),l(e,Un,r),l(e,pd,r),l(e,Ln,r),l(e,ud,r),g(Pn,e,r),l(e,gd,r),l(e,Fn,r),l(e,hd,r),l(e,Nn,r),l(e,fd,r),g(zn,e,r),l(e,_d,r),l(e,Dn,r),l(e,bd,r),l(e,Wn,r),l(e,vd,r),g(Hn,e,r),l(e,yd,r),l(e,Rn,r),l(e,Td,r),g(En,e,r),l(e,wd,r),l(e,Bn,r),l(e,xd,r),g(Vn,e,r),l(e,Md,r),l(e,Zn,r),l(e,$d,r),l(e,Xn,r),l(e,kd,r),l(e,Gn,r),l(e,qd,r),l(e,On,r),l(e,Ad,r),g(Yn,e,r),l(e,jd,r),l(e,vt,r),l(e,Cd,r),g(Qn,e,r),l(e,Id,r),l(e,Kn,r),l(e,Jd,r),l(e,ea,r),l(e,Sd,r),g(ta,e,r),l(e,Ud,r),l(e,oa,r),l(e,Ld,r),l(e,na,r),l(e,Pd,r),g(aa,e,r),l(e,Fd,r),l(e,ra,r),l(e,Nd,r),l(e,sa,r),l(e,zd,r),l(e,ia,r),l(e,Dd,r),l(e,Di,r),l(e,Wd,r),g(la,e,r),l(e,Hd,r),l(e,da,r),l(e,Rd,r),l(e,ca,r),l(e,Ed,r),l(e,ma,r),l(e,Bd,r),g(pa,e,r),l(e,Vd,r),l(e,ua,r),l(e,Zd,r),l(e,ga,r),l(e,Xd,r),g(ha,e,r),l(e,Gd,r),l(e,fa,r),l(e,Od,r),l(e,_a,r),l(e,Yd,r),l(e,ba,r),l(e,Qd,r),g(va,e,r),l(e,Kd,r),l(e,ya,r),l(e,ec,r),g(Ta,e,r),l(e,tc,r),l(e,wa,r),l(e,oc,r),g(xa,e,r),l(e,nc,r),l(e,Ma,r),l(e,ac,r),l(e,$a,r),l(e,rc,r),g(ka,e,r),l(e,sc,r),l(e,qa,r),l(e,ic,r),l(e,Aa,r),l(e,lc,r),l(e,ja,r),l(e,dc,r),l(e,Ca,r),l(e,cc,r),g(Ia,e,r),l(e,mc,r),l(e,Ja,r),l(e,pc,r),l(e,Sa,r),l(e,uc,r),g(Ua,e,r),l(e,gc,r),l(e,La,r),l(e,hc,r),l(e,Pa,r),l(e,fc,r),l(e,Fa,r),l(e,_c,r),l(e,Na,r),l(e,bc,r),g(za,e,r),l(e,vc,r),l(e,Da,r),l(e,yc,r),l(e,Wa,r),l(e,Tc,r),g(Ha,e,r),l(e,wc,r),l(e,Ra,r),l(e,xc,r),l(e,Ea,r),l(e,Mc,r),l(e,Ba,r),l(e,$c,r),l(e,Va,r),l(e,kc,r),l(e,Za,r),l(e,qc,r),l(e,Xa,r),l(e,Ac,r),g(Ga,e,r),l(e,jc,r),l(e,Oa,r),l(e,Cc,r),l(e,Ya,r),l(e,Ic,r),l(e,Qa,r),l(e,Jc,r),l(e,Ka,r),l(e,Sc,r),l(e,er,r),l(e,Uc,r),g(tr,e,r),l(e,Lc,r),l(e,or,r),l(e,Pc,r),g(yt,e,r),l(e,Fc,r),l(e,nr,r),l(e,Nc,r),l(e,ar,r),l(e,zc,r),l(e,rr,r),l(e,Dc,r),l(e,sr,r),l(e,Wc,r),g(ir,e,r),l(e,Hc,r),l(e,lr,r),l(e,Rc,r),l(e,dr,r),l(e,Ec,r),l(e,cr,r),l(e,Bc,r),g(mr,e,r),l(e,Vc,r),l(e,pr,r),l(e,Zc,r),l(e,ur,r),l(e,Xc,r),l(e,gr,r),l(e,Gc,r),l(e,xe,r),t(xe,Wi),t(xe,Vg),t(xe,U),t(U,Hi),t(U,Zg),g(hr,U,null),t(U,Xg),t(U,Ri),t(U,Gg),g(fr,U,null),t(U,Og),t(U,Ei),t(U,Yg),g(_r,U,null),t(U,Qg),t(U,Bi),t(U,Kg),g(br,U,null),t(xe,eh),t(xe,Vi),l(e,Oc,r),g(vr,e,r),l(e,Yc,r),l(e,Tt,r),l(e,Qc,r),g(yr,e,r),l(e,Kc,r),l(e,Tr,r),l(e,em,r),l(e,wr,r),l(e,tm,r),l(e,xr,r),l(e,om,r),g(Mr,e,r),l(e,nm,r),l(e,pl,r),am=!0},p(e,[r]){const T={};r&2&&(T.$$scope={dirty:r,ctx:e}),Ie.$set(T);const $r={};r&2&&($r.$$scope={dirty:r,ctx:e}),He.$set($r);const kr={};r&2&&(kr.$$scope={dirty:r,ctx:e}),Ve.$set(kr);const ke={};r&2&&(ke.$$scope={dirty:r,ctx:e}),Oe.$set(ke);const qr={};r&2&&(qr.$$scope={dirty:r,ctx:e}),tt.$set(qr);const Ar={};r&2&&(Ar.$$scope={dirty:r,ctx:e}),nt.$set(Ar);const qe={};r&2&&(qe.$$scope={dirty:r,ctx:e}),at.$set(qe);const Ae={};r&2&&(Ae.$$scope={dirty:r,ctx:e}),rt.$set(Ae);const jr={};r&2&&(jr.$$scope={dirty:r,ctx:e}),st.$set(jr);const K={};r&2&&(K.$$scope={dirty:r,ctx:e}),it.$set(K);const je={};r&2&&(je.$$scope={dirty:r,ctx:e}),lt.$set(je);const Cr={};r&2&&(Cr.$$scope={dirty:r,ctx:e}),dt.$set(Cr);const ee={};r&2&&(ee.$$scope={dirty:r,ctx:e}),ct.$set(ee);const Ce={};r&2&&(Ce.$$scope={dirty:r,ctx:e}),mt.$set(Ce);const Ir={};r&2&&(Ir.$$scope={dirty:r,ctx:e}),pt.$set(Ir);const Jr={};r&2&&(Jr.$$scope={dirty:r,ctx:e}),ut.$set(Jr);const Sr={};r&2&&(Sr.$$scope={dirty:r,ctx:e}),gt.$set(Sr);const Ur={};r&2&&(Ur.$$scope={dirty:r,ctx:e}),yt.$set(Ur)},i(e){am||(h($.$$.fragment,e),h(Ie.$$.fragment,e),h(Lt.$$.fragment,e),h(Ft.$$.fragment,e),h(Nt.$$.fragment,e),h(zt.$$.fragment,e),h(Dt.$$.fragment,e),h(Wt.$$.fragment,e),h(Ht.$$.fragment,e),h(Rt.$$.fragment,e),h(Et.$$.fragment,e),h(Bt.$$.fragment,e),h(Vt.$$.fragment,e),h(Zt.$$.fragment,e),h(Xt.$$.fragment,e),h(Gt.$$.fragment,e),h(Ot.$$.fragment,e),h(Yt.$$.fragment,e),h(Qt.$$.fragment,e),h(Kt.$$.fragment,e),h(eo.$$.fragment,e),h(to.$$.fragment,e),h(oo.$$.fragment,e),h(no.$$.fragment,e),h(ao.$$.fragment,e),h(He.$$.fragment,e),h(ro.$$.fragment,e),h(so.$$.fragment,e),h(io.$$.fragment,e),h(lo.$$.fragment,e),h(co.$$.fragment,e),h(Ve.$$.fragment,e),h(mo.$$.fragment,e),h(po.$$.fragment,e),h(uo.$$.fragment,e),h(go.$$.fragment,e),h(ho.$$.fragment,e),h(Oe.$$.fragment,e),h(fo.$$.fragment,e),h(_o.$$.fragment,e),h(bo.$$.fragment,e),h(vo.$$.fragment,e),h(yo.$$.fragment,e),h(To.$$.fragment,e),h(wo.$$.fragment,e),h(xo.$$.fragment,e),h(Mo.$$.fragment,e),h($o.$$.fragment,e),h(ko.$$.fragment,e),h(qo.$$.fragment,e),h(Ao.$$.fragment,e),h(jo.$$.fragment,e),h(Co.$$.fragment,e),h(tt.$$.fragment,e),h(Io.$$.fragment,e),h(Jo.$$.fragment,e),h(So.$$.fragment,e),h(Uo.$$.fragment,e),h(Lo.$$.fragment,e),h(Po.$$.fragment,e),h(nt.$$.fragment,e),h(Fo.$$.fragment,e),h(at.$$.fragment,e),h(No.$$.fragment,e),h(rt.$$.fragment,e),h(zo.$$.fragment,e),h(st.$$.fragment,e),h(Do.$$.fragment,e),h(it.$$.fragment,e),h(Wo.$$.fragment,e),h(lt.$$.fragment,e),h(dt.$$.fragment,e),h(Ho.$$.fragment,e),h(ct.$$.fragment,e),h(Ro.$$.fragment,e),h(mt.$$.fragment,e),h(pt.$$.fragment,e),h(Eo.$$.fragment,e),h(ut.$$.fragment,e),h(gt.$$.fragment,e),h(Bo.$$.fragment,e),h(Vo.$$.fragment,e),h(Zo.$$.fragment,e),h(Xo.$$.fragment,e),h(Go.$$.fragment,e),h(Oo.$$.fragment,e),h(Yo.$$.fragment,e),h(nn.$$.fragment,e),h(mn.$$.fragment,e),h(un.$$.fragment,e),h(hn.$$.fragment,e),h(bn.$$.fragment,e),h(yn.$$.fragment,e),h(xn.$$.fragment,e),h(kn.$$.fragment,e),h(An.$$.fragment,e),h(jn.$$.fragment,e),h(Pn.$$.fragment,e),h(zn.$$.fragment,e),h(Hn.$$.fragment,e),h(En.$$.fragment,e),h(Vn.$$.fragment,e),h(Yn.$$.fragment,e),h(Qn.$$.fragment,e),h(ta.$$.fragment,e),h(aa.$$.fragment,e),h(la.$$.fragment,e),h(pa.$$.fragment,e),h(ha.$$.fragment,e),h(va.$$.fragment,e),h(Ta.$$.fragment,e),h(xa.$$.fragment,e),h(ka.$$.fragment,e),h(Ia.$$.fragment,e),h(Ua.$$.fragment,e),h(za.$$.fragment,e),h(Ha.$$.fragment,e),h(Ga.$$.fragment,e),h(tr.$$.fragment,e),h(yt.$$.fragment,e),h(ir.$$.fragment,e),h(mr.$$.fragment,e),h(hr.$$.fragment,e),h(fr.$$.fragment,e),h(_r.$$.fragment,e),h(br.$$.fragment,e),h(vr.$$.fragment,e),h(yr.$$.fragment,e),h(Mr.$$.fragment,e),am=!0)},o(e){f($.$$.fragment,e),f(Ie.$$.fragment,e),f(Lt.$$.fragment,e),f(Ft.$$.fragment,e),f(Nt.$$.fragment,e),f(zt.$$.fragment,e),f(Dt.$$.fragment,e),f(Wt.$$.fragment,e),f(Ht.$$.fragment,e),f(Rt.$$.fragment,e),f(Et.$$.fragment,e),f(Bt.$$.fragment,e),f(Vt.$$.fragment,e),f(Zt.$$.fragment,e),f(Xt.$$.fragment,e),f(Gt.$$.fragment,e),f(Ot.$$.fragment,e),f(Yt.$$.fragment,e),f(Qt.$$.fragment,e),f(Kt.$$.fragment,e),f(eo.$$.fragment,e),f(to.$$.fragment,e),f(oo.$$.fragment,e),f(no.$$.fragment,e),f(ao.$$.fragment,e),f(He.$$.fragment,e),f(ro.$$.fragment,e),f(so.$$.fragment,e),f(io.$$.fragment,e),f(lo.$$.fragment,e),f(co.$$.fragment,e),f(Ve.$$.fragment,e),f(mo.$$.fragment,e),f(po.$$.fragment,e),f(uo.$$.fragment,e),f(go.$$.fragment,e),f(ho.$$.fragment,e),f(Oe.$$.fragment,e),f(fo.$$.fragment,e),f(_o.$$.fragment,e),f(bo.$$.fragment,e),f(vo.$$.fragment,e),f(yo.$$.fragment,e),f(To.$$.fragment,e),f(wo.$$.fragment,e),f(xo.$$.fragment,e),f(Mo.$$.fragment,e),f($o.$$.fragment,e),f(ko.$$.fragment,e),f(qo.$$.fragment,e),f(Ao.$$.fragment,e),f(jo.$$.fragment,e),f(Co.$$.fragment,e),f(tt.$$.fragment,e),f(Io.$$.fragment,e),f(Jo.$$.fragment,e),f(So.$$.fragment,e),f(Uo.$$.fragment,e),f(Lo.$$.fragment,e),f(Po.$$.fragment,e),f(nt.$$.fragment,e),f(Fo.$$.fragment,e),f(at.$$.fragment,e),f(No.$$.fragment,e),f(rt.$$.fragment,e),f(zo.$$.fragment,e),f(st.$$.fragment,e),f(Do.$$.fragment,e),f(it.$$.fragment,e),f(Wo.$$.fragment,e),f(lt.$$.fragment,e),f(dt.$$.fragment,e),f(Ho.$$.fragment,e),f(ct.$$.fragment,e),f(Ro.$$.fragment,e),f(mt.$$.fragment,e),f(pt.$$.fragment,e),f(Eo.$$.fragment,e),f(ut.$$.fragment,e),f(gt.$$.fragment,e),f(Bo.$$.fragment,e),f(Vo.$$.fragment,e),f(Zo.$$.fragment,e),f(Xo.$$.fragment,e),f(Go.$$.fragment,e),f(Oo.$$.fragment,e),f(Yo.$$.fragment,e),f(nn.$$.fragment,e),f(mn.$$.fragment,e),f(un.$$.fragment,e),f(hn.$$.fragment,e),f(bn.$$.fragment,e),f(yn.$$.fragment,e),f(xn.$$.fragment,e),f(kn.$$.fragment,e),f(An.$$.fragment,e),f(jn.$$.fragment,e),f(Pn.$$.fragment,e),f(zn.$$.fragment,e),f(Hn.$$.fragment,e),f(En.$$.fragment,e),f(Vn.$$.fragment,e),f(Yn.$$.fragment,e),f(Qn.$$.fragment,e),f(ta.$$.fragment,e),f(aa.$$.fragment,e),f(la.$$.fragment,e),f(pa.$$.fragment,e),f(ha.$$.fragment,e),f(va.$$.fragment,e),f(Ta.$$.fragment,e),f(xa.$$.fragment,e),f(ka.$$.fragment,e),f(Ia.$$.fragment,e),f(Ua.$$.fragment,e),f(za.$$.fragment,e),f(Ha.$$.fragment,e),f(Ga.$$.fragment,e),f(tr.$$.fragment,e),f(yt.$$.fragment,e),f(ir.$$.fragment,e),f(mr.$$.fragment,e),f(hr.$$.fragment,e),f(fr.$$.fragment,e),f(_r.$$.fragment,e),f(br.$$.fragment,e),f(vr.$$.fragment,e),f(yr.$$.fragment,e),f(Mr.$$.fragment,e),am=!1},d(e){e&&(o(k),o(v),o(b),o(c),o(q),o(ul),o(Ct),o(gl),o(It),o(hl),o(Jt),o(fl),o(St),o(_l),o(bl),o(Ut),o(vl),o(yl),o(Pt),o(Tl),o(wl),o(y),o(xl),o(Ml),o(Q),o($l),o(kl),o(A),o(ql),o(Al),o(W),o(jl),o(Cl),o(Qo),o(Il),o(Ko),o(Jl),o(en),o(Sl),o(tn),o(Ul),o(on),o(Ll),o(Pl),o(an),o(Fl),o(rn),o(Nl),o(sn),o(zl),o(ln),o(Dl),o(dn),o(Wl),o(cn),o(Hl),o(Rl),o(pn),o(El),o(Bl),o(gn),o(Vl),o(Zl),o(fn),o(Xl),o(_n),o(Gl),o(Ol),o(vn),o(Yl),o(Ql),o(Tn),o(Kl),o(wn),o(ed),o(td),o(Mn),o(od),o($n),o(nd),o(ad),o(qn),o(rd),o(sd),o(id),o(Cn),o(ld),o(In),o(dd),o(Jn),o(cd),o(Sn),o(md),o(Un),o(pd),o(Ln),o(ud),o(gd),o(Fn),o(hd),o(Nn),o(fd),o(_d),o(Dn),o(bd),o(Wn),o(vd),o(yd),o(Rn),o(Td),o(wd),o(Bn),o(xd),o(Md),o(Zn),o($d),o(Xn),o(kd),o(Gn),o(qd),o(On),o(Ad),o(jd),o(vt),o(Cd),o(Id),o(Kn),o(Jd),o(ea),o(Sd),o(Ud),o(oa),o(Ld),o(na),o(Pd),o(Fd),o(ra),o(Nd),o(sa),o(zd),o(ia),o(Dd),o(Di),o(Wd),o(Hd),o(da),o(Rd),o(ca),o(Ed),o(ma),o(Bd),o(Vd),o(ua),o(Zd),o(ga),o(Xd),o(Gd),o(fa),o(Od),o(_a),o(Yd),o(ba),o(Qd),o(Kd),o(ya),o(ec),o(tc),o(wa),o(oc),o(nc),o(Ma),o(ac),o($a),o(rc),o(sc),o(qa),o(ic),o(Aa),o(lc),o(ja),o(dc),o(Ca),o(cc),o(mc),o(Ja),o(pc),o(Sa),o(uc),o(gc),o(La),o(hc),o(Pa),o(fc),o(Fa),o(_c),o(Na),o(bc),o(vc),o(Da),o(yc),o(Wa),o(Tc),o(wc),o(Ra),o(xc),o(Ea),o(Mc),o(Ba),o($c),o(Va),o(kc),o(Za),o(qc),o(Xa),o(Ac),o(jc),o(Oa),o(Cc),o(Ya),o(Ic),o(Qa),o(Jc),o(Ka),o(Sc),o(er),o(Uc),o(Lc),o(or),o(Pc),o(Fc),o(nr),o(Nc),o(ar),o(zc),o(rr),o(Dc),o(sr),o(Wc),o(Hc),o(lr),o(Rc),o(dr),o(Ec),o(cr),o(Bc),o(Vc),o(pr),o(Zc),o(ur),o(Xc),o(gr),o(Gc),o(xe),o(Oc),o(Yc),o(Tt),o(Qc),o(Kc),o(Tr),o(em),o(wr),o(tm),o(xr),o(om),o(nm),o(pl)),o(m),_($,e),_(Ie,e),_(Lt,e),_(Ft,e),_(Nt),_(zt),_(Dt),_(Wt),_(Ht),_(Rt),_(Et),_(Bt),_(Vt),_(Zt),_(Xt),_(Gt),_(Ot),_(Yt),_(Qt),_(Kt),_(eo),_(to),_(oo),_(no),_(ao),_(He),_(ro),_(so),_(io),_(lo),_(co),_(Ve),_(mo),_(po),_(uo),_(go),_(ho),_(Oe),_(fo),_(_o),_(bo),_(vo),_(yo),_(To),_(wo),_(xo),_(Mo),_($o),_(ko),_(qo,e),_(Ao),_(jo),_(Co),_(tt),_(Io,e),_(Jo),_(So),_(Uo),_(Lo),_(Po),_(nt),_(Fo),_(at),_(No),_(rt),_(zo),_(st),_(Do),_(it),_(Wo),_(lt),_(dt),_(Ho),_(ct),_(Ro),_(mt),_(pt),_(Eo),_(ut),_(gt),_(Bo),_(Vo),_(Zo),_(Xo,e),_(Go),_(Oo),_(Yo,e),_(nn,e),_(mn,e),_(un,e),_(hn,e),_(bn,e),_(yn,e),_(xn,e),_(kn,e),_(An,e),_(jn,e),_(Pn,e),_(zn,e),_(Hn,e),_(En,e),_(Vn,e),_(Yn,e),_(Qn,e),_(ta,e),_(aa,e),_(la,e),_(pa,e),_(ha,e),_(va,e),_(Ta,e),_(xa,e),_(ka,e),_(Ia,e),_(Ua,e),_(za,e),_(Ha,e),_(Ga,e),_(tr,e),_(yt,e),_(ir,e),_(mr,e),_(hr),_(fr),_(_r),_(br),_(vr,e),_(yr,e),_(Mr,e)}}}const Jv='{"title":"Trainer","local":"trainer","sections":[{"title":"Trainer","local":"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},{"title":"Checkpoints","local":"checkpoints","sections":[],"depth":2},{"title":"Logging","local":"logging","sections":[],"depth":2},{"title":"Randomness","local":"randomness","sections":[],"depth":2},{"title":"Specific GPUs Selection","local":"specific-gpus-selection","sections":[],"depth":2},{"title":"Trainer Integrations","local":"trainer-integrations","sections":[{"title":"CUDA Extension Installation Notes","local":"cuda-extension-installation-notes","sections":[{"title":"Possible problem #1","local":"possible-problem-1","sections":[],"depth":4},{"title":"Possible problem #2","local":"possible-problem-2","sections":[],"depth":4},{"title":"Possible problem #3","local":"possible-problem-3","sections":[],"depth":4}],"depth":3},{"title":"PyTorch Fully Sharded Data parallel","local":"pytorch-fully-sharded-data-parallel","sections":[],"depth":3},{"title":"PyTorch/XLA Fully Sharded Data parallel","local":"pytorchxla-fully-sharded-data-parallel","sections":[],"depth":3},{"title":"Using Trainer for accelerated PyTorch Training on Mac","local":"using-trainer-for-accelerated-pytorch-training-on-mac","sections":[],"depth":3}],"depth":2},{"title":"Using Accelerate Launcher with Trainer","local":"using-accelerate-launcher-with-trainer","sections":[],"depth":2}],"depth":1}';function Sv(C){return lv(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Wv extends dv{constructor(m){super(),cv(this,m,Sv,Iv,iv,{})}}export{Wv as component};
