import{s as Bo,c as qo,u as Oo,g as Yo,d as Xo,o as Zo,n as qa}from"../chunks/scheduler.9bc65507.js";import{S as Ro,i as Vo,r as f,u as g,v as h,d,t as p,w as u,g as s,m as Po,s as r,h as o,j as _,n as Wo,f as n,c as a,k as $,a as i,y as t,o as Qo,A as Ko,x as c}from"../chunks/index.707bf1b6.js";import{T as Go}from"../chunks/Tip.c2ecdbf4.js";import{D as C}from"../chunks/Docstring.570ddb64.js";import{C as Ga}from"../chunks/CodeBlock.54a9f38d.js";import{E as zo}from"../chunks/ExampleCodeBlock.bc2be6bc.js";import{H as Rr,E as el}from"../chunks/EditOnGithub.922df6ba.js";function tl(j){let m,x,b,k,M;const v=j[1].default,y=qo(v,j,j[2],null);return{c(){m=s("p"),x=Po("Deprecated in "),b=Po(j[0]),k=r(),y&&y.c(),this.h()},l(L){m=o(L,"P",{class:!0});var I=_(m);x=Wo(I,"Deprecated in "),b=Wo(I,j[0]),I.forEach(n),k=a(L),y&&y.l(L),this.h()},h(){$(m,"class","font-medium")},m(L,I){i(L,m,I),t(m,x),t(m,b),i(L,k,I),y&&y.m(L,I),M=!0},p(L,I){(!M||I&1)&&Qo(b,L[0]),y&&y.p&&(!M||I&4)&&Oo(y,v,L,L[2],M?Xo(v,L[2],I,null):Yo(L[2]),null)},i(L){M||(d(y,L),M=!0)},o(L){p(y,L),M=!1},d(L){L&&(n(m),n(k)),y&&y.d(L)}}}function rl(j){let m,x;return m=new Go({props:{warning:!0,$$slots:{default:[tl]},$$scope:{ctx:j}}}),{c(){f(m.$$.fragment)},l(b){g(m.$$.fragment,b)},m(b,k){h(m,b,k),x=!0},p(b,[k]){const M={};k&5&&(M.$$scope={dirty:k,ctx:b}),m.$set(M)},i(b){x||(d(m.$$.fragment,b),x=!0)},o(b){p(m.$$.fragment,b),x=!1},d(b){u(m,b)}}}function al(j,m,x){let{$$slots:b={},$$scope:k}=m,{version:M}=m;return j.$$set=v=>{"version"in v&&x(0,M=v.version),"$$scope"in v&&x(2,k=v.$$scope)},[M,b,k]}class nl extends Ro{constructor(m){super(),Vo(this,m,al,rl,Bo,{version:0})}}function sl(j){let m,x="Setting <code>WANDB_LOG_MODEL</code> as <code>bool</code> will be deprecated in version 5 of 🤗 Transformers.";return{c(){m=s("p"),m.innerHTML=x},l(b){m=o(b,"P",{"data-svelte-h":!0}),c(m)!=="svelte-fxlq1n"&&(m.innerHTML=x)},m(b,k){i(b,m,k)},p:qa,d(b){b&&n(m)}}}function ol(j){let m,x="Example:",b,k,M;return k=new Ga({props:{code:"JTIzJTIwTm90ZSUzQSUyMFRoaXMlMjBleGFtcGxlJTIwc2tpcHMlMjBvdmVyJTIwc29tZSUyMHNldHVwJTIwc3RlcHMlMjBmb3IlMjBicmV2aXR5LiUwQWZyb20lMjBmbHl0ZWtpdCUyMGltcG9ydCUyMGN1cnJlbnRfY29udGV4dCUyQyUyMHRhc2slMEElMEElMEElNDB0YXNrJTBBZGVmJTIwdHJhaW5faGZfdHJhbnNmb3JtZXIoKSUzQSUwQSUyMCUyMCUyMCUyMGNwJTIwJTNEJTIwY3VycmVudF9jb250ZXh0KCkuY2hlY2twb2ludCUwQSUyMCUyMCUyMCUyMHRyYWluZXIlMjAlM0QlMjBUcmFpbmVyKC4uLiUyQyUyMGNhbGxiYWNrcyUzRCU1QkZseXRlQ2FsbGJhY2soKSU1RCklMEElMjAlMjAlMjAlMjBvdXRwdXQlMjAlM0QlMjB0cmFpbmVyLnRyYWluKHJlc3VtZV9mcm9tX2NoZWNrcG9pbnQlM0RjcC5yZXN0b3JlKCkp",highlighted:`<span class="hljs-comment"># Note: This example skips over some setup steps for brevity.</span>
<span class="hljs-keyword">from</span> flytekit <span class="hljs-keyword">import</span> current_context, task


<span class="hljs-meta">@task</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">train_hf_transformer</span>():
    cp = current_context().checkpoint
    trainer = Trainer(..., callbacks=[FlyteCallback()])
    output = trainer.train(resume_from_checkpoint=cp.restore())`,wrap:!1}}),{c(){m=s("p"),m.textContent=x,b=r(),f(k.$$.fragment)},l(v){m=o(v,"P",{"data-svelte-h":!0}),c(m)!=="svelte-11lpom8"&&(m.textContent=x),b=a(v),g(k.$$.fragment,v)},m(v,y){i(v,m,y),i(v,b,y),h(k,v,y),M=!0},p:qa,i(v){M||(d(k.$$.fragment,v),M=!0)},o(v){p(k.$$.fragment,v),M=!1},d(v){v&&(n(m),n(b)),u(k,v)}}}function ll(j){let m,x="Example:",b,k,M;return k=new Ga({props:{code:"Y2xhc3MlMjBQcmludGVyQ2FsbGJhY2soVHJhaW5lckNhbGxiYWNrKSUzQSUwQSUyMCUyMCUyMCUyMGRlZiUyMG9uX2xvZyhzZWxmJTJDJTIwYXJncyUyQyUyMHN0YXRlJTJDJTIwY29udHJvbCUyQyUyMGxvZ3MlM0ROb25lJTJDJTIwKiprd2FyZ3MpJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwXyUyMCUzRCUyMGxvZ3MucG9wKCUyMnRvdGFsX2Zsb3MlMjIlMkMlMjBOb25lKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGlmJTIwc3RhdGUuaXNfbG9jYWxfcHJvY2Vzc196ZXJvJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcHJpbnQobG9ncyk=",highlighted:`<span class="hljs-keyword">class</span> <span class="hljs-title class_">PrinterCallback</span>(<span class="hljs-title class_ inherited__">TrainerCallback</span>):
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">on_log</span>(<span class="hljs-params">self, args, state, control, logs=<span class="hljs-literal">None</span>, **kwargs</span>):
        _ = logs.pop(<span class="hljs-string">&quot;total_flos&quot;</span>, <span class="hljs-literal">None</span>)
        <span class="hljs-keyword">if</span> state.is_local_process_zero:
            <span class="hljs-built_in">print</span>(logs)`,wrap:!1}}),{c(){m=s("p"),m.textContent=x,b=r(),f(k.$$.fragment)},l(v){m=o(v,"P",{"data-svelte-h":!0}),c(m)!=="svelte-11lpom8"&&(m.textContent=x),b=a(v),g(k.$$.fragment,v)},m(v,y){i(v,m,y),i(v,b,y),h(k,v,y),M=!0},p:qa,i(v){M||(d(k.$$.fragment,v),M=!0)},o(v){p(k.$$.fragment,v),M=!1},d(v){v&&(n(m),n(b)),u(k,v)}}}function il(j){let m,x=`In all this class, one step is to be understood as one update step. When using gradient accumulation, one update
step may require several forward and backward passes: if you use <code>gradient_accumulation_steps=n</code>, then one update
step requires going through <em>n</em> batches.`;return{c(){m=s("p"),m.innerHTML=x},l(b){m=o(b,"P",{"data-svelte-h":!0}),c(m)!=="svelte-rhwh6p"&&(m.innerHTML=x)},m(b,k){i(b,m,k)},p:qa,d(b){b&&n(m)}}}function cl(j){let m,x,b,k,M,v,y,L=`コールバックは、PyTorch のトレーニング ループの動作をカスタマイズできるオブジェクトです。
トレーニング ループを検査できる <a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.Trainer">Trainer</a> (この機能は TensorFlow にはまだ実装されていません)
状態を確認し (進捗レポート、TensorBoard または他の ML プラットフォームへのログ記録など)、決定を下します (初期段階など)。
停止中）。`,I,je,Ms=`コールバックは、返される <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerControl">TrainerControl</a> オブジェクトを除けば、「読み取り専用」のコード部分です。
トレーニング ループ内では何も変更できません。トレーニング ループの変更が必要なカスタマイズの場合は、次のことを行う必要があります。
<a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.Trainer">Trainer</a> をサブクラス化し、必要なメソッドをオーバーライドします (例については、<a href="trainer">trainer</a> を参照してください)。`,Vr,Ie,ys='デフォルトでは、<code>TrainingArguments.report_to</code> は <code>&quot;all&quot;</code> に設定されているため、<a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.Trainer">Trainer</a> は次のコールバックを使用します。',Gr,Ee,xs=`<li><a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.DefaultFlowCallback">DefaultFlowCallback</a> は、ログ記録、保存、評価のデフォルトの動作を処理します。</li> <li><a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.PrinterCallback">PrinterCallback</a> または <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.ProgressCallback">ProgressCallback</a> で進行状況を表示し、
ログ (最初のログは、<a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> を通じて tqdm を非アクティブ化する場合に使用され、そうでない場合に使用されます)
2番目です)。</li> <li><a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.integrations.TensorBoardCallback">TensorBoardCallback</a> (PyTorch &gt;= 1.4 を介して) tensorboard にアクセスできる場合
またはテンソルボードX）。</li> <li><a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.integrations.WandbCallback">WandbCallback</a> <a href="https://www.wandb.com/" rel="nofollow">wandb</a> がインストールされている場合。</li> <li><a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.integrations.CometCallback">CometCallback</a> <a href="https://www.comet.ml/site/" rel="nofollow">comet_ml</a> がインストールされている場合。</li> <li><a href="https://www.mlflow.org/" rel="nofollow">mlflow</a> がインストールされている場合は <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.integrations.MLflowCallback">MLflowCallback</a>。</li> <li><a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.integrations.NeptuneCallback">NeptuneCallback</a> <a href="https://neptune.ai/" rel="nofollow">neptune</a> がインストールされている場合。</li> <li><a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.integrations.AzureMLCallback">AzureMLCallback</a> <a href="https://pypi.org/project/azureml-sdk/" rel="nofollow">azureml-sdk</a> の場合
インストールされています。</li> <li><a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.integrations.CodeCarbonCallback">CodeCarbonCallback</a> <a href="https://pypi.org/project/codecarbon/" rel="nofollow">codecarbon</a> の場合
インストールされています。</li> <li><a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.integrations.ClearMLCallback">ClearMLCallback</a> <a href="https://github.com/allegroai/clearml" rel="nofollow">clearml</a> がインストールされている場合。</li> <li><a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.integrations.DagsHubCallback">DagsHubCallback</a> <a href="https://dagshub.com/" rel="nofollow">dagshub</a> がインストールされている場合。</li> <li><a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.integrations.FlyteCallback">FlyteCallback</a> <a href="https://flyte.org/" rel="nofollow">flyte</a> がインストールされている場合。</li> <li><a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.integrations.DVCLiveCallback">DVCLiveCallback</a> <a href="https://www.dvc.org/doc/dvclive" rel="nofollow">dvclive</a> がインストールされている場合。</li>`,qr,He,Ls="パッケージがインストールされているが、付随する統合を使用したくない場合は、<code>TrainingArguments.report_to</code> を、使用したい統合のみのリストに変更できます (例: <code>[&quot;azure_ml&quot;, &quot;wandb&quot;]</code>) 。",Or,Je,js=`コールバックを実装するメインクラスは <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> です。それは、
<a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> は <a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.Trainer">Trainer</a> をインスタンス化するために使用され、それにアクセスできます。
<a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerState">TrainerState</a> を介してトレーナーの内部状態を取得し、トレーニング ループ上でいくつかのアクションを実行できます。
<a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerControl">TrainerControl</a>。`,Yr,De,Xr,Ue,Is='ライブラリで利用可能な <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> のリストは次のとおりです。',Zr,P,Ae,Oa,Et,Es='A <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://www.comet.ml/site/" rel="nofollow">Comet ML</a>.',Ya,H,Ne,Xa,Ht,Hs="Setup the optional Comet.ml integration.",Za,Jt,Js="Environment:",Qa,Dt,Ds=`<li><strong>COMET_MODE</strong> (<code>str</code>, <em>optional</em>, defaults to <code>ONLINE</code>):
Whether to create an online, offline experiment or disable Comet logging. Can be <code>OFFLINE</code>, <code>ONLINE</code>, or
<code>DISABLED</code>.</li> <li><strong>COMET_PROJECT_NAME</strong> (<code>str</code>, <em>optional</em>):
Comet project name for experiments.</li> <li><strong>COMET_OFFLINE_DIRECTORY</strong> (<code>str</code>, <em>optional</em>):
Folder to use for saving offline experiments when <code>COMET_MODE</code> is <code>OFFLINE</code>.</li> <li><strong>COMET_LOG_ASSETS</strong> (<code>str</code>, <em>optional</em>, defaults to <code>TRUE</code>):
Whether or not to log training assets (tf event logs, checkpoints, etc), to Comet. Can be <code>TRUE</code>, or
<code>FALSE</code>.</li>`,Ka,Ut,Us=`For a number of configurable items in the environment, see
<a href="https://www.comet.ml/docs/python-sdk/advanced/#comet-configuration-variables" rel="nofollow">here</a>.`,Qr,X,Se,en,At,As='A <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that handles the default flow of the training loop for logs, evaluation and checkpoints.',Kr,Z,Fe,tn,Nt,Ns='A bare <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that just prints the logs.',ea,Q,Pe,rn,St,Ss='A <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that displays the progress of training or evaluation.',ta,W,We,an,Ft,Fs='A <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that handles early stopping.',nn,Pt,Ps=`This callback depends on <a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> argument <em>load_best_model_at_end</em> functionality to set best_metric
in <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerState">TrainerState</a>. Note that if the <a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> argument <em>save_steps</em> differs from <em>eval_steps</em>, the
early stopping will not occur until the next save step.`,ra,K,ze,sn,Wt,Ws='A <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://www.tensorflow.org/tensorboard" rel="nofollow">TensorBoard</a>.',aa,z,Be,on,zt,zs='A <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that logs metrics, media, model checkpoints to <a href="https://www.wandb.com/" rel="nofollow">Weight and Biases</a>.',ln,J,Re,cn,Bt,Bs="Setup the optional Weights &amp; Biases (<em>wandb</em>) integration.",mn,Rt,Rs=`One can subclass and override this method to customize the setup if needed. Find more information
<a href="https://docs.wandb.ai/guides/integrations/huggingface" rel="nofollow">here</a>. You can also override the following environment
variables:`,dn,Vt,Vs="Environment:",pn,B,Ve,Gt,Gs=`<strong>WANDB_LOG_MODEL</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;false&quot;</code>):
Whether to log model and checkpoints during training. Can be <code>&quot;end&quot;</code>, <code>&quot;checkpoint&quot;</code> or <code>&quot;false&quot;</code>. If set
to <code>&quot;end&quot;</code>, the model will be uploaded at the end of training. If set to <code>&quot;checkpoint&quot;</code>, the checkpoint
will be uploaded every <code>args.save_steps</code> . If set to <code>&quot;false&quot;</code>, the model will not be uploaded. Use along
with <code>load_best_model_at_end()</code> to upload best model.`,fn,ne,gn,qt,qs=`<p><strong>WANDB_WATCH</strong> (<code>str</code>, <em>optional</em> defaults to <code>&quot;false&quot;</code>):
Can be <code>&quot;gradients&quot;</code>, <code>&quot;all&quot;</code>, <code>&quot;parameters&quot;</code>, or <code>&quot;false&quot;</code>. Set to <code>&quot;all&quot;</code> to log gradients and
parameters.</p>`,hn,Ot,Os=`<p><strong>WANDB_PROJECT</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;huggingface&quot;</code>):
Set this to a custom string to store results in a different project.</p>`,un,Yt,Ys=`<p><strong>WANDB_DISABLED</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether to disable wandb entirely. Set <code>WANDB_DISABLED=true</code> to disable.</p>`,na,R,Ge,bn,Xt,Xs=`A <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://www.mlflow.org/" rel="nofollow">MLflow</a>. Can be disabled by setting
environment variable <code>DISABLE_MLFLOW_INTEGRATION = TRUE</code>.`,vn,N,qe,_n,Zt,Zs="Setup the optional MLflow integration.",Tn,Qt,Qs="Environment:",$n,Kt,Ks=`<li><strong>HF_MLFLOW_LOG_ARTIFACTS</strong> (<code>str</code>, <em>optional</em>):
Whether to use MLflow <code>.log_artifact()</code> facility to log artifacts. This only makes sense if logging to a
remote server, e.g. s3 or GCS. If set to <code>True</code> or <em>1</em>, will copy each saved checkpoint on each save in
<a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>’s <code>output_dir</code> to the local or remote artifact storage. Using it without a remote
storage will just copy the files to your artifact location.</li> <li><strong>MLFLOW_TRACKING_URI</strong> (<code>str</code>, <em>optional</em>):
Whether to store runs at a specific path or remote server. Unset by default, which skips setting the
tracking URI entirely.</li> <li><strong>MLFLOW_EXPERIMENT_NAME</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>):
Whether to use an MLflow experiment_name under which to launch the run. Default to <code>None</code> which will point
to the <code>Default</code> experiment in MLflow. Otherwise, it is a case sensitive name of the experiment to be
activated. If an experiment with this name does not exist, a new experiment with this name is created.</li> <li><strong>MLFLOW_TAGS</strong> (<code>str</code>, <em>optional</em>):
A string dump of a dictionary of key/value pair to be added to the MLflow run as tags. Example:
<code>os.environ[&#39;MLFLOW_TAGS&#39;]=&#39;{&quot;release.candidate&quot;: &quot;RC1&quot;, &quot;release.version&quot;: &quot;2.2.0&quot;}&#39;</code>.</li> <li><strong>MLFLOW_NESTED_RUN</strong> (<code>str</code>, <em>optional</em>):
Whether to use MLflow nested runs. If set to <code>True</code> or <em>1</em>, will create a nested run inside the current
run.</li> <li><strong>MLFLOW_RUN_ID</strong> (<code>str</code>, <em>optional</em>):
Allow to reattach to an existing run which can be usefull when resuming training from a checkpoint. When
<code>MLFLOW_RUN_ID</code> environment variable is set, <code>start_run</code> attempts to resume a run with the specified run ID
and other parameters are ignored.</li> <li><strong>MLFLOW_FLATTEN_PARAMS</strong> (<code>str</code>, <em>optional</em>, defaults to <code>False</code>):
Whether to flatten the parameters dictionary before logging.</li>`,sa,ee,Oe,Cn,er,eo='A <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://pypi.org/project/azureml-sdk/" rel="nofollow">AzureML</a>.',oa,te,Ye,kn,tr,to='A <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that tracks the CO2 emission of training.',la,V,Xe,wn,rr,ro='TrainerCallback that sends the logs to <a href="https://app.neptune.ai" rel="nofollow">Neptune</a>.',Mn,ar,ao=`For instructions and examples, see the <a href="https://docs.neptune.ai/integrations/transformers" rel="nofollow">Transformers integration
guide</a> in the Neptune documentation.`,ia,D,Ze,yn,nr,no='A <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://clear.ml/" rel="nofollow">ClearML</a>.',xn,sr,so="Environment:",Ln,or,oo=`<li><strong>CLEARML_PROJECT</strong> (<code>str</code>, <em>optional</em>, defaults to <code>HuggingFace Transformers</code>):
ClearML project name.</li> <li><strong>CLEARML_TASK</strong> (<code>str</code>, <em>optional</em>, defaults to <code>Trainer</code>):
ClearML task name.</li> <li><strong>CLEARML_LOG_MODEL</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether to log models as artifacts during training.</li>`,ca,G,Qe,jn,lr,lo='A <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that logs to <a href="https://dagshub.com/" rel="nofollow">DagsHub</a>. Extends <code>MLflowCallback</code>',In,S,Ke,En,ir,io="Setup the DagsHub’s Logging integration.",Hn,cr,co="Environment:",Jn,mr,mo=`<li><strong>HF_DAGSHUB_LOG_ARTIFACTS</strong> (<code>str</code>, <em>optional</em>):
Whether to save the data and model artifacts for the experiment. Default to <code>False</code>.</li>`,ma,q,et,Dn,dr,po=`A <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://flyte.org/" rel="nofollow">Flyte</a>.
NOTE: This callback only works within a Flyte task.`,Un,se,da,U,tt,An,pr,fo='A <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://www.dvc.org/doc/dvclive" rel="nofollow">DVCLive</a>.',Nn,fr,go=`Use the environment variables below in <code>setup</code> to configure the integration. To customize this callback beyond
those environment variables, see <a href="https://dvc.org/doc/dvclive/ml-frameworks/huggingface" rel="nofollow">here</a>.`,Sn,F,rt,Fn,gr,ho=`Setup the optional DVCLive integration. To customize this callback beyond the environment variables below, see
<a href="https://dvc.org/doc/dvclive/ml-frameworks/huggingface" rel="nofollow">here</a>.`,Pn,hr,uo="Environment:",Wn,ur,bo=`<li><strong>HF_DVCLIVE_LOG_MODEL</strong> (<code>str</code>, <em>optional</em>):
Whether to use <code>dvclive.Live.log_artifact()</code> to log checkpoints created by <a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.Trainer">Trainer</a>. If set to <code>True</code> or
<em>1</em>, the final checkpoint is logged at the end of training. If set to <code>all</code>, the entire
<a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>’s <code>output_dir</code> is logged at each checkpoint.</li>`,pa,at,fa,T,nt,zn,br,vo=`A class for objects that will inspect the state of the training loop at some events and take some decisions. At
each of those events the following arguments are available:`,Bn,vr,_o=`The <code>control</code> object is the only one that can be changed by the callback, in which case the event that changes it
should return the modified version.`,Rn,_r,To=`The argument <code>args</code>, <code>state</code> and <code>control</code> are positionals for all events, all the others are grouped in <code>kwargs</code>.
You can unpack the ones you need in the signature of the event using them. As an example, see the code of the
simple <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.PrinterCallback">PrinterCallback</a>.`,Vn,oe,Gn,le,st,qn,Tr,$o="Event called at the beginning of an epoch.",On,ie,ot,Yn,$r,Co="Event called at the end of an epoch.",Xn,ce,lt,Zn,Cr,ko="Event called after an evaluation phase.",Qn,me,it,Kn,kr,wo='Event called at the end of the initialization of the <a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.Trainer">Trainer</a>.',es,de,ct,ts,wr,Mo="Event called after logging the last logs.",rs,pe,mt,as,Mr,yo="Event called after a successful prediction.",ns,fe,dt,ss,yr,xo="Event called after a prediction step.",os,ge,pt,ls,xr,Lo="Event called after a checkpoint save.",is,he,ft,cs,Lr,jo=`Event called at the beginning of a training step. If using gradient accumulation, one training step might take
several inputs.`,ms,ue,gt,ds,jr,Io=`Event called at the end of a training step. If using gradient accumulation, one training step might take
several inputs.`,ps,be,ht,fs,Ir,Eo="Event called at the end of an substep during gradient accumulation.",gs,ve,ut,hs,Er,Ho="Event called at the beginning of training.",us,_e,bt,bs,Hr,Jo="Event called at the end of training.",ga,vt,Do='以下は、カスタム コールバックを PyTorch <a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.Trainer">Trainer</a> に登録する方法の例です。',ha,_t,ua,Tt,Uo="コールバックを登録する別の方法は、次のように <code>trainer.add_callback()</code> を呼び出すことです。",ba,$t,va,Ct,_a,E,kt,vs,Jr,Ao=`A class containing the <a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.Trainer">Trainer</a> inner state that will be saved along the model and optimizer when checkpointing
and passed to the <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>.`,_s,Te,Ts,$e,wt,$s,Dr,No="Create an instance from the content of <code>json_path</code>.",Cs,Ce,Mt,ks,Ur,So="Save the content of this instance in JSON format inside <code>json_path</code>.",Ta,yt,$a,re,xt,ws,Ar,Fo=`A class that handles the <a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.Trainer">Trainer</a> control flow. This class is used by the <a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> to activate some
switches in the training loop.`,Ca,Lt,ka,Br,wa;return M=new Rr({props:{title:"コールバック数",local:"コールバック数",headingTag:"h1"}}),De=new Rr({props:{title:"利用可能なコールバック",local:"transformers.integrations.CometCallback",headingTag:"h2"}}),Ae=new C({props:{name:"class transformers.integrations.CometCallback",anchor:"transformers.integrations.CometCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L851"}}),Ne=new C({props:{name:"setup",anchor:"transformers.integrations.CometCallback.setup",parameters:[{name:"args",val:""},{name:"state",val:""},{name:"model",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L862"}}),Se=new C({props:{name:"class transformers.DefaultFlowCallback",anchor:"transformers.DefaultFlowCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L516"}}),Fe=new C({props:{name:"class transformers.PrinterCallback",anchor:"transformers.PrinterCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L621"}}),Pe=new C({props:{name:"class transformers.ProgressCallback",anchor:"transformers.ProgressCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L566"}}),We=new C({props:{name:"class transformers.EarlyStoppingCallback",anchor:"transformers.EarlyStoppingCallback",parameters:[{name:"early_stopping_patience",val:": int = 1"},{name:"early_stopping_threshold",val:": Optional = 0.0"}],parametersDescription:[{anchor:"transformers.EarlyStoppingCallback.early_stopping_patience",description:`<strong>early_stopping_patience</strong> (<code>int</code>) &#x2014;
Use with <code>metric_for_best_model</code> to stop training when the specified metric worsens for
<code>early_stopping_patience</code> evaluation calls.`,name:"early_stopping_patience"},{anchor:"transformers.EarlyStoppingCallback.early_stopping_threshold(float,",description:`<strong>early_stopping_threshold(<code>float</code>,</strong> <em>optional</em>) &#x2014;
Use with TrainingArguments <code>metric_for_best_model</code> and <code>early_stopping_patience</code> to denote how much the
specified metric must improve to satisfy early stopping conditions. \``,name:"early_stopping_threshold(float,"}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L632"}}),ze=new C({props:{name:"class transformers.integrations.TensorBoardCallback",anchor:"transformers.integrations.TensorBoardCallback",parameters:[{name:"tb_writer",val:" = None"}],parametersDescription:[{anchor:"transformers.integrations.TensorBoardCallback.tb_writer",description:`<strong>tb_writer</strong> (<code>SummaryWriter</code>, <em>optional</em>) &#x2014;
The writer to use. Will instantiate one if not set.`,name:"tb_writer"}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L580"}}),Be=new C({props:{name:"class transformers.integrations.WandbCallback",anchor:"transformers.integrations.WandbCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L666"}}),Re=new C({props:{name:"setup",anchor:"transformers.integrations.WandbCallback.setup",parameters:[{name:"args",val:""},{name:"state",val:""},{name:"model",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L691"}}),ne=new nl({props:{version:"5.0",$$slots:{default:[sl]},$$scope:{ctx:j}}}),Ge=new C({props:{name:"class transformers.integrations.MLflowCallback",anchor:"transformers.integrations.MLflowCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L951"}}),qe=new C({props:{name:"setup",anchor:"transformers.integrations.MLflowCallback.setup",parameters:[{name:"args",val:""},{name:"state",val:""},{name:"model",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L970"}}),Oe=new C({props:{name:"class transformers.integrations.AzureMLCallback",anchor:"transformers.integrations.AzureMLCallback",parameters:[{name:"azureml_run",val:" = None"}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L928"}}),Ye=new C({props:{name:"class transformers.integrations.CodeCarbonCallback",anchor:"transformers.integrations.CodeCarbonCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L1452"}}),Xe=new C({props:{name:"class transformers.integrations.NeptuneCallback",anchor:"transformers.integrations.NeptuneCallback",parameters:[{name:"api_token",val:": Optional = None"},{name:"project",val:": Optional = None"},{name:"name",val:": Optional = None"},{name:"base_namespace",val:": str = 'finetuning'"},{name:"run",val:" = None"},{name:"log_parameters",val:": bool = True"},{name:"log_checkpoints",val:": Optional = None"},{name:"**neptune_run_kwargs",val:""}],parametersDescription:[{anchor:"transformers.integrations.NeptuneCallback.api_token",description:`<strong>api_token</strong> (<code>str</code>, <em>optional</em>) &#x2014; Neptune API token obtained upon registration.
You can leave this argument out if you have saved your token to the <code>NEPTUNE_API_TOKEN</code> environment
variable (strongly recommended). See full setup instructions in the
<a href="https://docs.neptune.ai/setup/installation" rel="nofollow">docs</a>.`,name:"api_token"},{anchor:"transformers.integrations.NeptuneCallback.project",description:`<strong>project</strong> (<code>str</code>, <em>optional</em>) &#x2014; Name of an existing Neptune project, in the form &#x201C;workspace-name/project-name&#x201D;.
You can find and copy the name in Neptune from the project settings -&gt; Properties. If None (default), the
value of the <code>NEPTUNE_PROJECT</code> environment variable is used.`,name:"project"},{anchor:"transformers.integrations.NeptuneCallback.name",description:"<strong>name</strong> (<code>str</code>, <em>optional</em>) &#x2014; Custom name for the run.",name:"name"},{anchor:"transformers.integrations.NeptuneCallback.base_namespace",description:`<strong>base_namespace</strong> (<code>str</code>, optional, defaults to &#x201C;finetuning&#x201D;) &#x2014; In the Neptune run, the root namespace
that will contain all of the metadata logged by the callback.`,name:"base_namespace"},{anchor:"transformers.integrations.NeptuneCallback.log_parameters",description:`<strong>log_parameters</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
If True, logs all Trainer arguments and model parameters provided by the Trainer.`,name:"log_parameters"},{anchor:"transformers.integrations.NeptuneCallback.log_checkpoints",description:`<strong>log_checkpoints</strong> (<code>str</code>, <em>optional</em>) &#x2014; If &#x201C;same&#x201D;, uploads checkpoints whenever they are saved by the Trainer.
If &#x201C;last&#x201D;, uploads only the most recently saved checkpoint. If &#x201C;best&#x201D;, uploads the best checkpoint (among
the ones saved by the Trainer). If <code>None</code>, does not upload checkpoints.`,name:"log_checkpoints"},{anchor:"transformers.integrations.NeptuneCallback.run",description:`<strong>run</strong> (<code>Run</code>, <em>optional</em>) &#x2014; Pass a Neptune run object if you want to continue logging to an existing run.
Read more about resuming runs in the <a href="https://docs.neptune.ai/logging/to_existing_object" rel="nofollow">docs</a>.`,name:"run"},{anchor:"transformers.integrations.NeptuneCallback.*neptune_run_kwargs",description:`*<strong>*neptune_run_kwargs</strong> (<em>optional</em>) &#x2014;
Additional keyword arguments to be passed directly to the
<a href="https://docs.neptune.ai/api/neptune#init_run" rel="nofollow"><code>neptune.init_run()</code></a> function when a new run is created.`,name:"*neptune_run_kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L1179"}}),Ze=new C({props:{name:"class transformers.integrations.ClearMLCallback",anchor:"transformers.integrations.ClearMLCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L1486"}}),Qe=new C({props:{name:"class transformers.integrations.DagsHubCallback",anchor:"transformers.integrations.DagsHubCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L1119"}}),Ke=new C({props:{name:"setup",anchor:"transformers.integrations.DagsHubCallback.setup",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L1133"}}),et=new C({props:{name:"class transformers.integrations.FlyteCallback",anchor:"transformers.integrations.FlyteCallback",parameters:[{name:"save_log_history",val:": bool = True"},{name:"sync_checkpoints",val:": bool = True"}],parametersDescription:[{anchor:"transformers.integrations.FlyteCallback.save_log_history",description:`<strong>save_log_history</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
When set to True, the training logs are saved as a Flyte Deck.`,name:"save_log_history"},{anchor:"transformers.integrations.FlyteCallback.sync_checkpoints",description:`<strong>sync_checkpoints</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
When set to True, checkpoints are synced with Flyte and can be used to resume training in the case of an
interruption.`,name:"sync_checkpoints"}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L1739"}}),se=new zo({props:{anchor:"transformers.integrations.FlyteCallback.example",$$slots:{default:[ol]},$$scope:{ctx:j}}}),tt=new C({props:{name:"class transformers.integrations.DVCLiveCallback",anchor:"transformers.integrations.DVCLiveCallback",parameters:[{name:"live",val:": Optional = None"},{name:"log_model",val:": Union = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.integrations.DVCLiveCallback.live",description:`<strong>live</strong> (<code>dvclive.Live</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Optional Live instance. If None, a new instance will be created using **kwargs.`,name:"live"},{anchor:"transformers.integrations.DVCLiveCallback.log_model",description:`<strong>log_model</strong> (Union[Literal[&#x201C;all&#x201D;], bool], <em>optional</em>, defaults to <code>None</code>) &#x2014;
Whether to use <code>dvclive.Live.log_artifact()</code> to log checkpoints created by <a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.Trainer">Trainer</a>. If set to <code>True</code>,
the final checkpoint is logged at the end of training. If set to <code>&quot;all&quot;</code>, the entire
<a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>&#x2019;s <code>output_dir</code> is logged at each checkpoint.`,name:"log_model"}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L1802"}}),rt=new C({props:{name:"setup",anchor:"transformers.integrations.DVCLiveCallback.setup",parameters:[{name:"args",val:""},{name:"state",val:""},{name:"model",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L1843"}}),at=new Rr({props:{title:"TrainerCallback",local:"transformers.TrainerCallback",headingTag:"h2"}}),nt=new C({props:{name:"class transformers.TrainerCallback",anchor:"transformers.TrainerCallback",parameters:[],parametersDescription:[{anchor:"transformers.TrainerCallback.args",description:`<strong>args</strong> (<a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>) &#x2014;
The training arguments used to instantiate the <a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.Trainer">Trainer</a>.`,name:"args"},{anchor:"transformers.TrainerCallback.state",description:`<strong>state</strong> (<a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerState">TrainerState</a>) &#x2014;
The current state of the <a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.Trainer">Trainer</a>.`,name:"state"},{anchor:"transformers.TrainerCallback.control",description:`<strong>control</strong> (<a href="/docs/transformers/v4.41.2/ja/main_classes/callback#transformers.TrainerControl">TrainerControl</a>) &#x2014;
The object that is returned to the <a href="/docs/transformers/v4.41.2/ja/main_classes/trainer#transformers.Trainer">Trainer</a> and can be used to make some decisions.`,name:"control"},{anchor:"transformers.TrainerCallback.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.41.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <code>torch.nn.Module</code>) &#x2014;
The model being trained.`,name:"model"},{anchor:"transformers.TrainerCallback.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.41.2/ja/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer used for encoding the data.`,name:"tokenizer"},{anchor:"transformers.TrainerCallback.optimizer",description:`<strong>optimizer</strong> (<code>torch.optim.Optimizer</code>) &#x2014;
The optimizer used for the training steps.`,name:"optimizer"},{anchor:"transformers.TrainerCallback.lr_scheduler",description:`<strong>lr_scheduler</strong> (<code>torch.optim.lr_scheduler.LambdaLR</code>) &#x2014;
The scheduler used for setting the learning rate.`,name:"lr_scheduler"},{anchor:"transformers.TrainerCallback.train_dataloader",description:`<strong>train_dataloader</strong> (<code>torch.utils.data.DataLoader</code>, <em>optional</em>) &#x2014;
The current dataloader used for training.`,name:"train_dataloader"},{anchor:"transformers.TrainerCallback.eval_dataloader",description:`<strong>eval_dataloader</strong> (<code>torch.utils.data.DataLoader</code>, <em>optional</em>) &#x2014;
The current dataloader used for evaluation.`,name:"eval_dataloader"},{anchor:"transformers.TrainerCallback.metrics",description:`<strong>metrics</strong> (<code>Dict[str, float]</code>) &#x2014;
The metrics computed by the last evaluation phase.</p>
<p>Those are only accessible in the event <code>on_evaluate</code>.`,name:"metrics"},{anchor:"transformers.TrainerCallback.logs",description:`<strong>logs</strong>  (<code>Dict[str, float]</code>) &#x2014;
The values to log.</p>
<p>Those are only accessible in the event <code>on_log</code>.`,name:"logs"}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L259"}}),oe=new zo({props:{anchor:"transformers.TrainerCallback.example",$$slots:{default:[ll]},$$scope:{ctx:j}}}),st=new C({props:{name:"on_epoch_begin",anchor:"transformers.TrainerCallback.on_epoch_begin",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L328"}}),ot=new C({props:{name:"on_epoch_end",anchor:"transformers.TrainerCallback.on_epoch_end",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L334"}}),lt=new C({props:{name:"on_evaluate",anchor:"transformers.TrainerCallback.on_evaluate",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L360"}}),it=new C({props:{name:"on_init_end",anchor:"transformers.TrainerCallback.on_init_end",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L310"}}),ct=new C({props:{name:"on_log",anchor:"transformers.TrainerCallback.on_log",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L378"}}),mt=new C({props:{name:"on_predict",anchor:"transformers.TrainerCallback.on_predict",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"metrics",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L366"}}),dt=new C({props:{name:"on_prediction_step",anchor:"transformers.TrainerCallback.on_prediction_step",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L384"}}),pt=new C({props:{name:"on_save",anchor:"transformers.TrainerCallback.on_save",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L372"}}),ft=new C({props:{name:"on_step_begin",anchor:"transformers.TrainerCallback.on_step_begin",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L340"}}),gt=new C({props:{name:"on_step_end",anchor:"transformers.TrainerCallback.on_step_end",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L353"}}),ht=new C({props:{name:"on_substep_end",anchor:"transformers.TrainerCallback.on_substep_end",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L347"}}),ut=new C({props:{name:"on_train_begin",anchor:"transformers.TrainerCallback.on_train_begin",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L316"}}),bt=new C({props:{name:"on_train_end",anchor:"transformers.TrainerCallback.on_train_end",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L322"}}),_t=new Ga({props:{code:"Y2xhc3MlMjBNeUNhbGxiYWNrKFRyYWluZXJDYWxsYmFjayklM0ElMEElMjAlMjAlMjAlMjAlMjJBJTIwY2FsbGJhY2slMjB0aGF0JTIwcHJpbnRzJTIwYSUyMG1lc3NhZ2UlMjBhdCUyMHRoZSUyMGJlZ2lubmluZyUyMG9mJTIwdHJhaW5pbmclMjIlMEElMEElMjAlMjAlMjAlMjBkZWYlMjBvbl90cmFpbl9iZWdpbihzZWxmJTJDJTIwYXJncyUyQyUyMHN0YXRlJTJDJTIwY29udHJvbCUyQyUyMCoqa3dhcmdzKSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHByaW50KCUyMlN0YXJ0aW5nJTIwdHJhaW5pbmclMjIpJTBBJTBBJTBBdHJhaW5lciUyMCUzRCUyMFRyYWluZXIoJTBBJTIwJTIwJTIwJTIwbW9kZWwlMkMlMEElMjAlMjAlMjAlMjBhcmdzJTJDJTBBJTIwJTIwJTIwJTIwdHJhaW5fZGF0YXNldCUzRHRyYWluX2RhdGFzZXQlMkMlMEElMjAlMjAlMjAlMjBldmFsX2RhdGFzZXQlM0RldmFsX2RhdGFzZXQlMkMlMEElMjAlMjAlMjAlMjBjYWxsYmFja3MlM0QlNUJNeUNhbGxiYWNrJTVEJTJDJTIwJTIwJTIzJTIwV2UlMjBjYW4lMjBlaXRoZXIlMjBwYXNzJTIwdGhlJTIwY2FsbGJhY2slMjBjbGFzcyUyMHRoaXMlMjB3YXklMjBvciUyMGFuJTIwaW5zdGFuY2UlMjBvZiUyMGl0JTIwKE15Q2FsbGJhY2soKSklMEEp",highlighted:`<span class="hljs-keyword">class</span> <span class="hljs-title class_">MyCallback</span>(<span class="hljs-title class_ inherited__">TrainerCallback</span>):
    <span class="hljs-string">&quot;A callback that prints a message at the beginning of training&quot;</span>

    <span class="hljs-keyword">def</span> <span class="hljs-title function_">on_train_begin</span>(<span class="hljs-params">self, args, state, control, **kwargs</span>):
        <span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;Starting training&quot;</span>)


trainer = Trainer(
    model,
    args,
    train_dataset=train_dataset,
    eval_dataset=eval_dataset,
    callbacks=[MyCallback],  <span class="hljs-comment"># We can either pass the callback class this way or an instance of it (MyCallback())</span>
)`,wrap:!1}}),$t=new Ga({props:{code:"dHJhaW5lciUyMCUzRCUyMFRyYWluZXIoLi4uKSUwQXRyYWluZXIuYWRkX2NhbGxiYWNrKE15Q2FsbGJhY2spJTBBJTIzJTIwQWx0ZXJuYXRpdmVseSUyQyUyMHdlJTIwY2FuJTIwcGFzcyUyMGFuJTIwaW5zdGFuY2UlMjBvZiUyMHRoZSUyMGNhbGxiYWNrJTIwY2xhc3MlMEF0cmFpbmVyLmFkZF9jYWxsYmFjayhNeUNhbGxiYWNrKCkp",highlighted:`trainer = Trainer(...)
trainer.add_callback(MyCallback)
<span class="hljs-comment"># Alternatively, we can pass an instance of the callback class</span>
trainer.add_callback(MyCallback())`,wrap:!1}}),Ct=new Rr({props:{title:"TrainerState",local:"transformers.TrainerState",headingTag:"h2"}}),kt=new C({props:{name:"class transformers.TrainerState",anchor:"transformers.TrainerState",parameters:[{name:"epoch",val:": Optional = None"},{name:"global_step",val:": int = 0"},{name:"max_steps",val:": int = 0"},{name:"logging_steps",val:": int = 500"},{name:"eval_steps",val:": int = 500"},{name:"save_steps",val:": int = 500"},{name:"train_batch_size",val:": int = None"},{name:"num_train_epochs",val:": int = 0"},{name:"num_input_tokens_seen",val:": int = 0"},{name:"total_flos",val:": float = 0"},{name:"log_history",val:": List = None"},{name:"best_metric",val:": Optional = None"},{name:"best_model_checkpoint",val:": Optional = None"},{name:"is_local_process_zero",val:": bool = True"},{name:"is_world_process_zero",val:": bool = True"},{name:"is_hyper_param_search",val:": bool = False"},{name:"trial_name",val:": str = None"},{name:"trial_params",val:": Dict = None"},{name:"stateful_callbacks",val:": List = None"}],parametersDescription:[{anchor:"transformers.TrainerState.epoch",description:`<strong>epoch</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Only set during training, will represent the epoch the training is at (the decimal part being the
percentage of the current epoch completed).`,name:"epoch"},{anchor:"transformers.TrainerState.global_step",description:`<strong>global_step</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
During training, represents the number of update steps completed.`,name:"global_step"},{anchor:"transformers.TrainerState.max_steps",description:`<strong>max_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
The number of update steps to do during the current training.`,name:"max_steps"},{anchor:"transformers.TrainerState.logging_steps",description:`<strong>logging_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 500) &#x2014;
Log every X updates steps`,name:"logging_steps"},{anchor:"transformers.TrainerState.eval_steps",description:`<strong>eval_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Run an evaluation every X steps.`,name:"eval_steps"},{anchor:"transformers.TrainerState.save_steps",description:`<strong>save_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 500) &#x2014;
Save checkpoint every X updates steps.`,name:"save_steps"},{anchor:"transformers.TrainerState.train_batch_size",description:`<strong>train_batch_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The batch size for the training dataloader. Only needed when
<code>auto_find_batch_size</code> has been used.`,name:"train_batch_size"},{anchor:"transformers.TrainerState.num_input_tokens_seen",description:`<strong>num_input_tokens_seen</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
The number of tokens seen during training (number of input tokens, not the number of prediction tokens).`,name:"num_input_tokens_seen"},{anchor:"transformers.TrainerState.total_flos",description:`<strong>total_flos</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The total number of floating operations done by the model since the beginning of training (stored as floats
to avoid overflow).`,name:"total_flos"},{anchor:"transformers.TrainerState.log_history",description:`<strong>log_history</strong> (<code>List[Dict[str, float]]</code>, <em>optional</em>) &#x2014;
The list of logs done since the beginning of training.`,name:"log_history"},{anchor:"transformers.TrainerState.best_metric",description:`<strong>best_metric</strong> (<code>float</code>, <em>optional</em>) &#x2014;
When tracking the best model, the value of the best metric encountered so far.`,name:"best_metric"},{anchor:"transformers.TrainerState.best_model_checkpoint",description:`<strong>best_model_checkpoint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
When tracking the best model, the value of the name of the checkpoint for the best model encountered so
far.`,name:"best_model_checkpoint"},{anchor:"transformers.TrainerState.is_local_process_zero",description:`<strong>is_local_process_zero</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not this process is the local (e.g., on one machine if training in a distributed fashion on
several machines) main process.`,name:"is_local_process_zero"},{anchor:"transformers.TrainerState.is_world_process_zero",description:`<strong>is_world_process_zero</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
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).`,name:"is_world_process_zero"},{anchor:"transformers.TrainerState.is_hyper_param_search",description:`<strong>is_hyper_param_search</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether we are in the process of a hyper parameter search using Trainer.hyperparameter_search. This will
impact the way data will be logged in TensorBoard.`,name:"is_hyper_param_search"},{anchor:"transformers.TrainerState.stateful_callbacks",description:`<strong>stateful_callbacks</strong> (<code>List[StatefulTrainerCallback]</code>, <em>optional</em>) &#x2014;
Callbacks attached to the <code>Trainer</code> that should have their states be saved or restored.
Relevent callbacks should implement a <code>state</code> and <code>from_state</code> function.`,name:"stateful_callbacks"}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L35"}}),Te=new Go({props:{$$slots:{default:[il]},$$scope:{ctx:j}}}),wt=new C({props:{name:"load_from_json",anchor:"transformers.TrainerState.load_from_json",parameters:[{name:"json_path",val:": str"}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L145"}}),Mt=new C({props:{name:"save_to_json",anchor:"transformers.TrainerState.save_to_json",parameters:[{name:"json_path",val:": str"}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L139"}}),yt=new Rr({props:{title:"TrainerControl",local:"transformers.TrainerControl",headingTag:"h2"}}),xt=new C({props:{name:"class transformers.TrainerControl",anchor:"transformers.TrainerControl",parameters:[{name:"should_training_stop",val:": bool = False"},{name:"should_epoch_stop",val:": bool = False"},{name:"should_save",val:": bool = False"},{name:"should_evaluate",val:": bool = False"},{name:"should_log",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TrainerControl.should_training_stop",description:`<strong>should_training_stop</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the training should be interrupted.</p>
<p>If <code>True</code>, this variable will not be set back to <code>False</code>. The training will just stop.`,name:"should_training_stop"},{anchor:"transformers.TrainerControl.should_epoch_stop",description:`<strong>should_epoch_stop</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the current epoch should be interrupted.</p>
<p>If <code>True</code>, this variable will be set back to <code>False</code> at the beginning of the next epoch.`,name:"should_epoch_stop"},{anchor:"transformers.TrainerControl.should_save",description:`<strong>should_save</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the model should be saved at this step.</p>
<p>If <code>True</code>, this variable will be set back to <code>False</code> at the beginning of the next step.`,name:"should_save"},{anchor:"transformers.TrainerControl.should_evaluate",description:`<strong>should_evaluate</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the model should be evaluated at this step.</p>
<p>If <code>True</code>, this variable will be set back to <code>False</code> at the beginning of the next step.`,name:"should_evaluate"},{anchor:"transformers.TrainerControl.should_log",description:`<strong>should_log</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the logs should be reported at this step.</p>
<p>If <code>True</code>, this variable will be set back to <code>False</code> at the beginning of the next step.`,name:"should_log"}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L197"}}),Lt=new el({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/ja/main_classes/callback.md"}}),{c(){m=s("meta"),x=r(),b=s("p"),k=r(),f(M.$$.fragment),v=r(),y=s("p"),y.innerHTML=L,I=r(),je=s("p"),je.innerHTML=Ms,Vr=r(),Ie=s("p"),Ie.innerHTML=ys,Gr=r(),Ee=s("ul"),Ee.innerHTML=xs,qr=r(),He=s("p"),He.innerHTML=Ls,Or=r(),Je=s("p"),Je.innerHTML=js,Yr=r(),f(De.$$.fragment),Xr=r(),Ue=s("p"),Ue.innerHTML=Is,Zr=r(),P=s("div"),f(Ae.$$.fragment),Oa=r(),Et=s("p"),Et.innerHTML=Es,Ya=r(),H=s("div"),f(Ne.$$.fragment),Xa=r(),Ht=s("p"),Ht.textContent=Hs,Za=r(),Jt=s("p"),Jt.textContent=Js,Qa=r(),Dt=s("ul"),Dt.innerHTML=Ds,Ka=r(),Ut=s("p"),Ut.innerHTML=Us,Qr=r(),X=s("div"),f(Se.$$.fragment),en=r(),At=s("p"),At.innerHTML=As,Kr=r(),Z=s("div"),f(Fe.$$.fragment),tn=r(),Nt=s("p"),Nt.innerHTML=Ns,ea=r(),Q=s("div"),f(Pe.$$.fragment),rn=r(),St=s("p"),St.innerHTML=Ss,ta=r(),W=s("div"),f(We.$$.fragment),an=r(),Ft=s("p"),Ft.innerHTML=Fs,nn=r(),Pt=s("p"),Pt.innerHTML=Ps,ra=r(),K=s("div"),f(ze.$$.fragment),sn=r(),Wt=s("p"),Wt.innerHTML=Ws,aa=r(),z=s("div"),f(Be.$$.fragment),on=r(),zt=s("p"),zt.innerHTML=zs,ln=r(),J=s("div"),f(Re.$$.fragment),cn=r(),Bt=s("p"),Bt.innerHTML=Bs,mn=r(),Rt=s("p"),Rt.innerHTML=Rs,dn=r(),Vt=s("p"),Vt.textContent=Vs,pn=r(),B=s("ul"),Ve=s("li"),Gt=s("p"),Gt.innerHTML=Gs,fn=r(),f(ne.$$.fragment),gn=r(),qt=s("li"),qt.innerHTML=qs,hn=r(),Ot=s("li"),Ot.innerHTML=Os,un=r(),Yt=s("li"),Yt.innerHTML=Ys,na=r(),R=s("div"),f(Ge.$$.fragment),bn=r(),Xt=s("p"),Xt.innerHTML=Xs,vn=r(),N=s("div"),f(qe.$$.fragment),_n=r(),Zt=s("p"),Zt.textContent=Zs,Tn=r(),Qt=s("p"),Qt.textContent=Qs,$n=r(),Kt=s("ul"),Kt.innerHTML=Ks,sa=r(),ee=s("div"),f(Oe.$$.fragment),Cn=r(),er=s("p"),er.innerHTML=eo,oa=r(),te=s("div"),f(Ye.$$.fragment),kn=r(),tr=s("p"),tr.innerHTML=to,la=r(),V=s("div"),f(Xe.$$.fragment),wn=r(),rr=s("p"),rr.innerHTML=ro,Mn=r(),ar=s("p"),ar.innerHTML=ao,ia=r(),D=s("div"),f(Ze.$$.fragment),yn=r(),nr=s("p"),nr.innerHTML=no,xn=r(),sr=s("p"),sr.textContent=so,Ln=r(),or=s("ul"),or.innerHTML=oo,ca=r(),G=s("div"),f(Qe.$$.fragment),jn=r(),lr=s("p"),lr.innerHTML=lo,In=r(),S=s("div"),f(Ke.$$.fragment),En=r(),ir=s("p"),ir.textContent=io,Hn=r(),cr=s("p"),cr.textContent=co,Jn=r(),mr=s("ul"),mr.innerHTML=mo,ma=r(),q=s("div"),f(et.$$.fragment),Dn=r(),dr=s("p"),dr.innerHTML=po,Un=r(),f(se.$$.fragment),da=r(),U=s("div"),f(tt.$$.fragment),An=r(),pr=s("p"),pr.innerHTML=fo,Nn=r(),fr=s("p"),fr.innerHTML=go,Sn=r(),F=s("div"),f(rt.$$.fragment),Fn=r(),gr=s("p"),gr.innerHTML=ho,Pn=r(),hr=s("p"),hr.textContent=uo,Wn=r(),ur=s("ul"),ur.innerHTML=bo,pa=r(),f(at.$$.fragment),fa=r(),T=s("div"),f(nt.$$.fragment),zn=r(),br=s("p"),br.textContent=vo,Bn=r(),vr=s("p"),vr.innerHTML=_o,Rn=r(),_r=s("p"),_r.innerHTML=To,Vn=r(),f(oe.$$.fragment),Gn=r(),le=s("div"),f(st.$$.fragment),qn=r(),Tr=s("p"),Tr.textContent=$o,On=r(),ie=s("div"),f(ot.$$.fragment),Yn=r(),$r=s("p"),$r.textContent=Co,Xn=r(),ce=s("div"),f(lt.$$.fragment),Zn=r(),Cr=s("p"),Cr.textContent=ko,Qn=r(),me=s("div"),f(it.$$.fragment),Kn=r(),kr=s("p"),kr.innerHTML=wo,es=r(),de=s("div"),f(ct.$$.fragment),ts=r(),wr=s("p"),wr.textContent=Mo,rs=r(),pe=s("div"),f(mt.$$.fragment),as=r(),Mr=s("p"),Mr.textContent=yo,ns=r(),fe=s("div"),f(dt.$$.fragment),ss=r(),yr=s("p"),yr.textContent=xo,os=r(),ge=s("div"),f(pt.$$.fragment),ls=r(),xr=s("p"),xr.textContent=Lo,is=r(),he=s("div"),f(ft.$$.fragment),cs=r(),Lr=s("p"),Lr.textContent=jo,ms=r(),ue=s("div"),f(gt.$$.fragment),ds=r(),jr=s("p"),jr.textContent=Io,ps=r(),be=s("div"),f(ht.$$.fragment),fs=r(),Ir=s("p"),Ir.textContent=Eo,gs=r(),ve=s("div"),f(ut.$$.fragment),hs=r(),Er=s("p"),Er.textContent=Ho,us=r(),_e=s("div"),f(bt.$$.fragment),bs=r(),Hr=s("p"),Hr.textContent=Jo,ga=r(),vt=s("p"),vt.innerHTML=Do,ha=r(),f(_t.$$.fragment),ua=r(),Tt=s("p"),Tt.innerHTML=Uo,ba=r(),f($t.$$.fragment),va=r(),f(Ct.$$.fragment),_a=r(),E=s("div"),f(kt.$$.fragment),vs=r(),Jr=s("p"),Jr.innerHTML=Ao,_s=r(),f(Te.$$.fragment),Ts=r(),$e=s("div"),f(wt.$$.fragment),$s=r(),Dr=s("p"),Dr.innerHTML=No,Cs=r(),Ce=s("div"),f(Mt.$$.fragment),ks=r(),Ur=s("p"),Ur.innerHTML=So,Ta=r(),f(yt.$$.fragment),$a=r(),re=s("div"),f(xt.$$.fragment),ws=r(),Ar=s("p"),Ar.innerHTML=Fo,Ca=r(),f(Lt.$$.fragment),ka=r(),Br=s("p"),this.h()},l(e){const l=Ko("svelte-u9bgzb",document.head);m=o(l,"META",{name:!0,content:!0}),l.forEach(n),x=a(e),b=o(e,"P",{}),_(b).forEach(n),k=a(e),g(M.$$.fragment,e),v=a(e),y=o(e,"P",{"data-svelte-h":!0}),c(y)!=="svelte-pfns1o"&&(y.innerHTML=L),I=a(e),je=o(e,"P",{"data-svelte-h":!0}),c(je)!=="svelte-4tasld"&&(je.innerHTML=Ms),Vr=a(e),Ie=o(e,"P",{"data-svelte-h":!0}),c(Ie)!=="svelte-ynmz4p"&&(Ie.innerHTML=ys),Gr=a(e),Ee=o(e,"UL",{"data-svelte-h":!0}),c(Ee)!=="svelte-hwardy"&&(Ee.innerHTML=xs),qr=a(e),He=o(e,"P",{"data-svelte-h":!0}),c(He)!=="svelte-1b834xs"&&(He.innerHTML=Ls),Or=a(e),Je=o(e,"P",{"data-svelte-h":!0}),c(Je)!=="svelte-lttbpv"&&(Je.innerHTML=js),Yr=a(e),g(De.$$.fragment,e),Xr=a(e),Ue=o(e,"P",{"data-svelte-h":!0}),c(Ue)!=="svelte-1j1enqf"&&(Ue.innerHTML=Is),Zr=a(e),P=o(e,"DIV",{class:!0});var ae=_(P);g(Ae.$$.fragment,ae),Oa=a(ae),Et=o(ae,"P",{"data-svelte-h":!0}),c(Et)!=="svelte-18kerdg"&&(Et.innerHTML=Es),Ya=a(ae),H=o(ae,"DIV",{class:!0});var A=_(H);g(Ne.$$.fragment,A),Xa=a(A),Ht=o(A,"P",{"data-svelte-h":!0}),c(Ht)!=="svelte-1bfkm9x"&&(Ht.textContent=Hs),Za=a(A),Jt=o(A,"P",{"data-svelte-h":!0}),c(Jt)!=="svelte-1fkshtn"&&(Jt.textContent=Js),Qa=a(A),Dt=o(A,"UL",{"data-svelte-h":!0}),c(Dt)!=="svelte-12drq5x"&&(Dt.innerHTML=Ds),Ka=a(A),Ut=o(A,"P",{"data-svelte-h":!0}),c(Ut)!=="svelte-1faq0a7"&&(Ut.innerHTML=Us),A.forEach(n),ae.forEach(n),Qr=a(e),X=o(e,"DIV",{class:!0});var jt=_(X);g(Se.$$.fragment,jt),en=a(jt),At=o(jt,"P",{"data-svelte-h":!0}),c(At)!=="svelte-mcjjop"&&(At.innerHTML=As),jt.forEach(n),Kr=a(e),Z=o(e,"DIV",{class:!0});var It=_(Z);g(Fe.$$.fragment,It),tn=a(It),Nt=o(It,"P",{"data-svelte-h":!0}),c(Nt)!=="svelte-1xsthk"&&(Nt.innerHTML=Ns),It.forEach(n),ea=a(e),Q=o(e,"DIV",{class:!0});var Ma=_(Q);g(Pe.$$.fragment,Ma),rn=a(Ma),St=o(Ma,"P",{"data-svelte-h":!0}),c(St)!=="svelte-cgbkhn"&&(St.innerHTML=Ss),Ma.forEach(n),ta=a(e),W=o(e,"DIV",{class:!0});var Nr=_(W);g(We.$$.fragment,Nr),an=a(Nr),Ft=o(Nr,"P",{"data-svelte-h":!0}),c(Ft)!=="svelte-7fxjo6"&&(Ft.innerHTML=Fs),nn=a(Nr),Pt=o(Nr,"P",{"data-svelte-h":!0}),c(Pt)!=="svelte-3k6yrc"&&(Pt.innerHTML=Ps),Nr.forEach(n),ra=a(e),K=o(e,"DIV",{class:!0});var ya=_(K);g(ze.$$.fragment,ya),sn=a(ya),Wt=o(ya,"P",{"data-svelte-h":!0}),c(Wt)!=="svelte-1vn69r3"&&(Wt.innerHTML=Ws),ya.forEach(n),aa=a(e),z=o(e,"DIV",{class:!0});var Sr=_(z);g(Be.$$.fragment,Sr),on=a(Sr),zt=o(Sr,"P",{"data-svelte-h":!0}),c(zt)!=="svelte-1bboqeq"&&(zt.innerHTML=zs),ln=a(Sr),J=o(Sr,"DIV",{class:!0});var O=_(J);g(Re.$$.fragment,O),cn=a(O),Bt=o(O,"P",{"data-svelte-h":!0}),c(Bt)!=="svelte-op70zs"&&(Bt.innerHTML=Bs),mn=a(O),Rt=o(O,"P",{"data-svelte-h":!0}),c(Rt)!=="svelte-m2rt7w"&&(Rt.innerHTML=Rs),dn=a(O),Vt=o(O,"P",{"data-svelte-h":!0}),c(Vt)!=="svelte-1fkshtn"&&(Vt.textContent=Vs),pn=a(O),B=o(O,"UL",{});var ke=_(B);Ve=o(ke,"LI",{});var xa=_(Ve);Gt=o(xa,"P",{"data-svelte-h":!0}),c(Gt)!=="svelte-py3r3s"&&(Gt.innerHTML=Gs),fn=a(xa),g(ne.$$.fragment,xa),xa.forEach(n),gn=a(ke),qt=o(ke,"LI",{"data-svelte-h":!0}),c(qt)!=="svelte-dx3m30"&&(qt.innerHTML=qs),hn=a(ke),Ot=o(ke,"LI",{"data-svelte-h":!0}),c(Ot)!=="svelte-n1uh6c"&&(Ot.innerHTML=Os),un=a(ke),Yt=o(ke,"LI",{"data-svelte-h":!0}),c(Yt)!=="svelte-ybo66z"&&(Yt.innerHTML=Ys),ke.forEach(n),O.forEach(n),Sr.forEach(n),na=a(e),R=o(e,"DIV",{class:!0});var Fr=_(R);g(Ge.$$.fragment,Fr),bn=a(Fr),Xt=o(Fr,"P",{"data-svelte-h":!0}),c(Xt)!=="svelte-iz6of6"&&(Xt.innerHTML=Xs),vn=a(Fr),N=o(Fr,"DIV",{class:!0});var we=_(N);g(qe.$$.fragment,we),_n=a(we),Zt=o(we,"P",{"data-svelte-h":!0}),c(Zt)!=="svelte-nmg16f"&&(Zt.textContent=Zs),Tn=a(we),Qt=o(we,"P",{"data-svelte-h":!0}),c(Qt)!=="svelte-1fkshtn"&&(Qt.textContent=Qs),$n=a(we),Kt=o(we,"UL",{"data-svelte-h":!0}),c(Kt)!=="svelte-gzbqc2"&&(Kt.innerHTML=Ks),we.forEach(n),Fr.forEach(n),sa=a(e),ee=o(e,"DIV",{class:!0});var La=_(ee);g(Oe.$$.fragment,La),Cn=a(La),er=o(La,"P",{"data-svelte-h":!0}),c(er)!=="svelte-e1g09z"&&(er.innerHTML=eo),La.forEach(n),oa=a(e),te=o(e,"DIV",{class:!0});var ja=_(te);g(Ye.$$.fragment,ja),kn=a(ja),tr=o(ja,"P",{"data-svelte-h":!0}),c(tr)!=="svelte-12ikfw3"&&(tr.innerHTML=to),ja.forEach(n),la=a(e),V=o(e,"DIV",{class:!0});var Pr=_(V);g(Xe.$$.fragment,Pr),wn=a(Pr),rr=o(Pr,"P",{"data-svelte-h":!0}),c(rr)!=="svelte-4ag9j6"&&(rr.innerHTML=ro),Mn=a(Pr),ar=o(Pr,"P",{"data-svelte-h":!0}),c(ar)!=="svelte-1mhjcx0"&&(ar.innerHTML=ao),Pr.forEach(n),ia=a(e),D=o(e,"DIV",{class:!0});var Me=_(D);g(Ze.$$.fragment,Me),yn=a(Me),nr=o(Me,"P",{"data-svelte-h":!0}),c(nr)!=="svelte-2u35yp"&&(nr.innerHTML=no),xn=a(Me),sr=o(Me,"P",{"data-svelte-h":!0}),c(sr)!=="svelte-1fkshtn"&&(sr.textContent=so),Ln=a(Me),or=o(Me,"UL",{"data-svelte-h":!0}),c(or)!=="svelte-15svthu"&&(or.innerHTML=oo),Me.forEach(n),ca=a(e),G=o(e,"DIV",{class:!0});var Wr=_(G);g(Qe.$$.fragment,Wr),jn=a(Wr),lr=o(Wr,"P",{"data-svelte-h":!0}),c(lr)!=="svelte-t3q2d2"&&(lr.innerHTML=lo),In=a(Wr),S=o(Wr,"DIV",{class:!0});var ye=_(S);g(Ke.$$.fragment,ye),En=a(ye),ir=o(ye,"P",{"data-svelte-h":!0}),c(ir)!=="svelte-1wbmj3"&&(ir.textContent=io),Hn=a(ye),cr=o(ye,"P",{"data-svelte-h":!0}),c(cr)!=="svelte-1fkshtn"&&(cr.textContent=co),Jn=a(ye),mr=o(ye,"UL",{"data-svelte-h":!0}),c(mr)!=="svelte-dna85o"&&(mr.innerHTML=mo),ye.forEach(n),Wr.forEach(n),ma=a(e),q=o(e,"DIV",{class:!0});var zr=_(q);g(et.$$.fragment,zr),Dn=a(zr),dr=o(zr,"P",{"data-svelte-h":!0}),c(dr)!=="svelte-169zw7f"&&(dr.innerHTML=po),Un=a(zr),g(se.$$.fragment,zr),zr.forEach(n),da=a(e),U=o(e,"DIV",{class:!0});var xe=_(U);g(tt.$$.fragment,xe),An=a(xe),pr=o(xe,"P",{"data-svelte-h":!0}),c(pr)!=="svelte-1qbqdl4"&&(pr.innerHTML=fo),Nn=a(xe),fr=o(xe,"P",{"data-svelte-h":!0}),c(fr)!=="svelte-eu3kj7"&&(fr.innerHTML=go),Sn=a(xe),F=o(xe,"DIV",{class:!0});var Le=_(F);g(rt.$$.fragment,Le),Fn=a(Le),gr=o(Le,"P",{"data-svelte-h":!0}),c(gr)!=="svelte-jjkenj"&&(gr.innerHTML=ho),Pn=a(Le),hr=o(Le,"P",{"data-svelte-h":!0}),c(hr)!=="svelte-1fkshtn"&&(hr.textContent=uo),Wn=a(Le),ur=o(Le,"UL",{"data-svelte-h":!0}),c(ur)!=="svelte-1nmtv74"&&(ur.innerHTML=bo),Le.forEach(n),xe.forEach(n),pa=a(e),g(at.$$.fragment,e),fa=a(e),T=o(e,"DIV",{class:!0});var w=_(T);g(nt.$$.fragment,w),zn=a(w),br=o(w,"P",{"data-svelte-h":!0}),c(br)!=="svelte-14xg00o"&&(br.textContent=vo),Bn=a(w),vr=o(w,"P",{"data-svelte-h":!0}),c(vr)!=="svelte-1xprdvt"&&(vr.innerHTML=_o),Rn=a(w),_r=o(w,"P",{"data-svelte-h":!0}),c(_r)!=="svelte-1asr2y3"&&(_r.innerHTML=To),Vn=a(w),g(oe.$$.fragment,w),Gn=a(w),le=o(w,"DIV",{class:!0});var Ia=_(le);g(st.$$.fragment,Ia),qn=a(Ia),Tr=o(Ia,"P",{"data-svelte-h":!0}),c(Tr)!=="svelte-106889p"&&(Tr.textContent=$o),Ia.forEach(n),On=a(w),ie=o(w,"DIV",{class:!0});var Ea=_(ie);g(ot.$$.fragment,Ea),Yn=a(Ea),$r=o(Ea,"P",{"data-svelte-h":!0}),c($r)!=="svelte-oshcpj"&&($r.textContent=Co),Ea.forEach(n),Xn=a(w),ce=o(w,"DIV",{class:!0});var Ha=_(ce);g(lt.$$.fragment,Ha),Zn=a(Ha),Cr=o(Ha,"P",{"data-svelte-h":!0}),c(Cr)!=="svelte-1o0xh73"&&(Cr.textContent=ko),Ha.forEach(n),Qn=a(w),me=o(w,"DIV",{class:!0});var Ja=_(me);g(it.$$.fragment,Ja),Kn=a(Ja),kr=o(Ja,"P",{"data-svelte-h":!0}),c(kr)!=="svelte-17du5gc"&&(kr.innerHTML=wo),Ja.forEach(n),es=a(w),de=o(w,"DIV",{class:!0});var Da=_(de);g(ct.$$.fragment,Da),ts=a(Da),wr=o(Da,"P",{"data-svelte-h":!0}),c(wr)!=="svelte-10eiwg0"&&(wr.textContent=Mo),Da.forEach(n),rs=a(w),pe=o(w,"DIV",{class:!0});var Ua=_(pe);g(mt.$$.fragment,Ua),as=a(Ua),Mr=o(Ua,"P",{"data-svelte-h":!0}),c(Mr)!=="svelte-1df7x4n"&&(Mr.textContent=yo),Ua.forEach(n),ns=a(w),fe=o(w,"DIV",{class:!0});var Aa=_(fe);g(dt.$$.fragment,Aa),ss=a(Aa),yr=o(Aa,"P",{"data-svelte-h":!0}),c(yr)!=="svelte-18swygp"&&(yr.textContent=xo),Aa.forEach(n),os=a(w),ge=o(w,"DIV",{class:!0});var Na=_(ge);g(pt.$$.fragment,Na),ls=a(Na),xr=o(Na,"P",{"data-svelte-h":!0}),c(xr)!=="svelte-19xp05v"&&(xr.textContent=Lo),Na.forEach(n),is=a(w),he=o(w,"DIV",{class:!0});var Sa=_(he);g(ft.$$.fragment,Sa),cs=a(Sa),Lr=o(Sa,"P",{"data-svelte-h":!0}),c(Lr)!=="svelte-7af61p"&&(Lr.textContent=jo),Sa.forEach(n),ms=a(w),ue=o(w,"DIV",{class:!0});var Fa=_(ue);g(gt.$$.fragment,Fa),ds=a(Fa),jr=o(Fa,"P",{"data-svelte-h":!0}),c(jr)!=="svelte-8cdxjr"&&(jr.textContent=Io),Fa.forEach(n),ps=a(w),be=o(w,"DIV",{class:!0});var Pa=_(be);g(ht.$$.fragment,Pa),fs=a(Pa),Ir=o(Pa,"P",{"data-svelte-h":!0}),c(Ir)!=="svelte-sluvs0"&&(Ir.textContent=Eo),Pa.forEach(n),gs=a(w),ve=o(w,"DIV",{class:!0});var Wa=_(ve);g(ut.$$.fragment,Wa),hs=a(Wa),Er=o(Wa,"P",{"data-svelte-h":!0}),c(Er)!=="svelte-6bvy6d"&&(Er.textContent=Ho),Wa.forEach(n),us=a(w),_e=o(w,"DIV",{class:!0});var za=_(_e);g(bt.$$.fragment,za),bs=a(za),Hr=o(za,"P",{"data-svelte-h":!0}),c(Hr)!=="svelte-zzwxsv"&&(Hr.textContent=Jo),za.forEach(n),w.forEach(n),ga=a(e),vt=o(e,"P",{"data-svelte-h":!0}),c(vt)!=="svelte-1i9j42d"&&(vt.innerHTML=Do),ha=a(e),g(_t.$$.fragment,e),ua=a(e),Tt=o(e,"P",{"data-svelte-h":!0}),c(Tt)!=="svelte-183oh1l"&&(Tt.innerHTML=Uo),ba=a(e),g($t.$$.fragment,e),va=a(e),g(Ct.$$.fragment,e),_a=a(e),E=o(e,"DIV",{class:!0});var Y=_(E);g(kt.$$.fragment,Y),vs=a(Y),Jr=o(Y,"P",{"data-svelte-h":!0}),c(Jr)!=="svelte-17u8n5e"&&(Jr.innerHTML=Ao),_s=a(Y),g(Te.$$.fragment,Y),Ts=a(Y),$e=o(Y,"DIV",{class:!0});var Ba=_($e);g(wt.$$.fragment,Ba),$s=a(Ba),Dr=o(Ba,"P",{"data-svelte-h":!0}),c(Dr)!=="svelte-hbs6ga"&&(Dr.innerHTML=No),Ba.forEach(n),Cs=a(Y),Ce=o(Y,"DIV",{class:!0});var Ra=_(Ce);g(Mt.$$.fragment,Ra),ks=a(Ra),Ur=o(Ra,"P",{"data-svelte-h":!0}),c(Ur)!=="svelte-dkslae"&&(Ur.innerHTML=So),Ra.forEach(n),Y.forEach(n),Ta=a(e),g(yt.$$.fragment,e),$a=a(e),re=o(e,"DIV",{class:!0});var Va=_(re);g(xt.$$.fragment,Va),ws=a(Va),Ar=o(Va,"P",{"data-svelte-h":!0}),c(Ar)!=="svelte-1muv13e"&&(Ar.innerHTML=Fo),Va.forEach(n),Ca=a(e),g(Lt.$$.fragment,e),ka=a(e),Br=o(e,"P",{}),_(Br).forEach(n),this.h()},h(){$(m,"name","hf:doc:metadata"),$(m,"content",ml),$(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,l){t(document.head,m),i(e,x,l),i(e,b,l),i(e,k,l),h(M,e,l),i(e,v,l),i(e,y,l),i(e,I,l),i(e,je,l),i(e,Vr,l),i(e,Ie,l),i(e,Gr,l),i(e,Ee,l),i(e,qr,l),i(e,He,l),i(e,Or,l),i(e,Je,l),i(e,Yr,l),h(De,e,l),i(e,Xr,l),i(e,Ue,l),i(e,Zr,l),i(e,P,l),h(Ae,P,null),t(P,Oa),t(P,Et),t(P,Ya),t(P,H),h(Ne,H,null),t(H,Xa),t(H,Ht),t(H,Za),t(H,Jt),t(H,Qa),t(H,Dt),t(H,Ka),t(H,Ut),i(e,Qr,l),i(e,X,l),h(Se,X,null),t(X,en),t(X,At),i(e,Kr,l),i(e,Z,l),h(Fe,Z,null),t(Z,tn),t(Z,Nt),i(e,ea,l),i(e,Q,l),h(Pe,Q,null),t(Q,rn),t(Q,St),i(e,ta,l),i(e,W,l),h(We,W,null),t(W,an),t(W,Ft),t(W,nn),t(W,Pt),i(e,ra,l),i(e,K,l),h(ze,K,null),t(K,sn),t(K,Wt),i(e,aa,l),i(e,z,l),h(Be,z,null),t(z,on),t(z,zt),t(z,ln),t(z,J),h(Re,J,null),t(J,cn),t(J,Bt),t(J,mn),t(J,Rt),t(J,dn),t(J,Vt),t(J,pn),t(J,B),t(B,Ve),t(Ve,Gt),t(Ve,fn),h(ne,Ve,null),t(B,gn),t(B,qt),t(B,hn),t(B,Ot),t(B,un),t(B,Yt),i(e,na,l),i(e,R,l),h(Ge,R,null),t(R,bn),t(R,Xt),t(R,vn),t(R,N),h(qe,N,null),t(N,_n),t(N,Zt),t(N,Tn),t(N,Qt),t(N,$n),t(N,Kt),i(e,sa,l),i(e,ee,l),h(Oe,ee,null),t(ee,Cn),t(ee,er),i(e,oa,l),i(e,te,l),h(Ye,te,null),t(te,kn),t(te,tr),i(e,la,l),i(e,V,l),h(Xe,V,null),t(V,wn),t(V,rr),t(V,Mn),t(V,ar),i(e,ia,l),i(e,D,l),h(Ze,D,null),t(D,yn),t(D,nr),t(D,xn),t(D,sr),t(D,Ln),t(D,or),i(e,ca,l),i(e,G,l),h(Qe,G,null),t(G,jn),t(G,lr),t(G,In),t(G,S),h(Ke,S,null),t(S,En),t(S,ir),t(S,Hn),t(S,cr),t(S,Jn),t(S,mr),i(e,ma,l),i(e,q,l),h(et,q,null),t(q,Dn),t(q,dr),t(q,Un),h(se,q,null),i(e,da,l),i(e,U,l),h(tt,U,null),t(U,An),t(U,pr),t(U,Nn),t(U,fr),t(U,Sn),t(U,F),h(rt,F,null),t(F,Fn),t(F,gr),t(F,Pn),t(F,hr),t(F,Wn),t(F,ur),i(e,pa,l),h(at,e,l),i(e,fa,l),i(e,T,l),h(nt,T,null),t(T,zn),t(T,br),t(T,Bn),t(T,vr),t(T,Rn),t(T,_r),t(T,Vn),h(oe,T,null),t(T,Gn),t(T,le),h(st,le,null),t(le,qn),t(le,Tr),t(T,On),t(T,ie),h(ot,ie,null),t(ie,Yn),t(ie,$r),t(T,Xn),t(T,ce),h(lt,ce,null),t(ce,Zn),t(ce,Cr),t(T,Qn),t(T,me),h(it,me,null),t(me,Kn),t(me,kr),t(T,es),t(T,de),h(ct,de,null),t(de,ts),t(de,wr),t(T,rs),t(T,pe),h(mt,pe,null),t(pe,as),t(pe,Mr),t(T,ns),t(T,fe),h(dt,fe,null),t(fe,ss),t(fe,yr),t(T,os),t(T,ge),h(pt,ge,null),t(ge,ls),t(ge,xr),t(T,is),t(T,he),h(ft,he,null),t(he,cs),t(he,Lr),t(T,ms),t(T,ue),h(gt,ue,null),t(ue,ds),t(ue,jr),t(T,ps),t(T,be),h(ht,be,null),t(be,fs),t(be,Ir),t(T,gs),t(T,ve),h(ut,ve,null),t(ve,hs),t(ve,Er),t(T,us),t(T,_e),h(bt,_e,null),t(_e,bs),t(_e,Hr),i(e,ga,l),i(e,vt,l),i(e,ha,l),h(_t,e,l),i(e,ua,l),i(e,Tt,l),i(e,ba,l),h($t,e,l),i(e,va,l),h(Ct,e,l),i(e,_a,l),i(e,E,l),h(kt,E,null),t(E,vs),t(E,Jr),t(E,_s),h(Te,E,null),t(E,Ts),t(E,$e),h(wt,$e,null),t($e,$s),t($e,Dr),t(E,Cs),t(E,Ce),h(Mt,Ce,null),t(Ce,ks),t(Ce,Ur),i(e,Ta,l),h(yt,e,l),i(e,$a,l),i(e,re,l),h(xt,re,null),t(re,ws),t(re,Ar),i(e,Ca,l),h(Lt,e,l),i(e,ka,l),i(e,Br,l),wa=!0},p(e,[l]){const ae={};l&2&&(ae.$$scope={dirty:l,ctx:e}),ne.$set(ae);const A={};l&2&&(A.$$scope={dirty:l,ctx:e}),se.$set(A);const jt={};l&2&&(jt.$$scope={dirty:l,ctx:e}),oe.$set(jt);const It={};l&2&&(It.$$scope={dirty:l,ctx:e}),Te.$set(It)},i(e){wa||(d(M.$$.fragment,e),d(De.$$.fragment,e),d(Ae.$$.fragment,e),d(Ne.$$.fragment,e),d(Se.$$.fragment,e),d(Fe.$$.fragment,e),d(Pe.$$.fragment,e),d(We.$$.fragment,e),d(ze.$$.fragment,e),d(Be.$$.fragment,e),d(Re.$$.fragment,e),d(ne.$$.fragment,e),d(Ge.$$.fragment,e),d(qe.$$.fragment,e),d(Oe.$$.fragment,e),d(Ye.$$.fragment,e),d(Xe.$$.fragment,e),d(Ze.$$.fragment,e),d(Qe.$$.fragment,e),d(Ke.$$.fragment,e),d(et.$$.fragment,e),d(se.$$.fragment,e),d(tt.$$.fragment,e),d(rt.$$.fragment,e),d(at.$$.fragment,e),d(nt.$$.fragment,e),d(oe.$$.fragment,e),d(st.$$.fragment,e),d(ot.$$.fragment,e),d(lt.$$.fragment,e),d(it.$$.fragment,e),d(ct.$$.fragment,e),d(mt.$$.fragment,e),d(dt.$$.fragment,e),d(pt.$$.fragment,e),d(ft.$$.fragment,e),d(gt.$$.fragment,e),d(ht.$$.fragment,e),d(ut.$$.fragment,e),d(bt.$$.fragment,e),d(_t.$$.fragment,e),d($t.$$.fragment,e),d(Ct.$$.fragment,e),d(kt.$$.fragment,e),d(Te.$$.fragment,e),d(wt.$$.fragment,e),d(Mt.$$.fragment,e),d(yt.$$.fragment,e),d(xt.$$.fragment,e),d(Lt.$$.fragment,e),wa=!0)},o(e){p(M.$$.fragment,e),p(De.$$.fragment,e),p(Ae.$$.fragment,e),p(Ne.$$.fragment,e),p(Se.$$.fragment,e),p(Fe.$$.fragment,e),p(Pe.$$.fragment,e),p(We.$$.fragment,e),p(ze.$$.fragment,e),p(Be.$$.fragment,e),p(Re.$$.fragment,e),p(ne.$$.fragment,e),p(Ge.$$.fragment,e),p(qe.$$.fragment,e),p(Oe.$$.fragment,e),p(Ye.$$.fragment,e),p(Xe.$$.fragment,e),p(Ze.$$.fragment,e),p(Qe.$$.fragment,e),p(Ke.$$.fragment,e),p(et.$$.fragment,e),p(se.$$.fragment,e),p(tt.$$.fragment,e),p(rt.$$.fragment,e),p(at.$$.fragment,e),p(nt.$$.fragment,e),p(oe.$$.fragment,e),p(st.$$.fragment,e),p(ot.$$.fragment,e),p(lt.$$.fragment,e),p(it.$$.fragment,e),p(ct.$$.fragment,e),p(mt.$$.fragment,e),p(dt.$$.fragment,e),p(pt.$$.fragment,e),p(ft.$$.fragment,e),p(gt.$$.fragment,e),p(ht.$$.fragment,e),p(ut.$$.fragment,e),p(bt.$$.fragment,e),p(_t.$$.fragment,e),p($t.$$.fragment,e),p(Ct.$$.fragment,e),p(kt.$$.fragment,e),p(Te.$$.fragment,e),p(wt.$$.fragment,e),p(Mt.$$.fragment,e),p(yt.$$.fragment,e),p(xt.$$.fragment,e),p(Lt.$$.fragment,e),wa=!1},d(e){e&&(n(x),n(b),n(k),n(v),n(y),n(I),n(je),n(Vr),n(Ie),n(Gr),n(Ee),n(qr),n(He),n(Or),n(Je),n(Yr),n(Xr),n(Ue),n(Zr),n(P),n(Qr),n(X),n(Kr),n(Z),n(ea),n(Q),n(ta),n(W),n(ra),n(K),n(aa),n(z),n(na),n(R),n(sa),n(ee),n(oa),n(te),n(la),n(V),n(ia),n(D),n(ca),n(G),n(ma),n(q),n(da),n(U),n(pa),n(fa),n(T),n(ga),n(vt),n(ha),n(ua),n(Tt),n(ba),n(va),n(_a),n(E),n(Ta),n($a),n(re),n(Ca),n(ka),n(Br)),n(m),u(M,e),u(De,e),u(Ae),u(Ne),u(Se),u(Fe),u(Pe),u(We),u(ze),u(Be),u(Re),u(ne),u(Ge),u(qe),u(Oe),u(Ye),u(Xe),u(Ze),u(Qe),u(Ke),u(et),u(se),u(tt),u(rt),u(at,e),u(nt),u(oe),u(st),u(ot),u(lt),u(it),u(ct),u(mt),u(dt),u(pt),u(ft),u(gt),u(ht),u(ut),u(bt),u(_t,e),u($t,e),u(Ct,e),u(kt),u(Te),u(wt),u(Mt),u(yt,e),u(xt),u(Lt,e)}}}const ml='{"title":"コールバック数","local":"コールバック数","sections":[{"title":"利用可能なコールバック","local":"transformers.integrations.CometCallback","sections":[],"depth":2},{"title":"TrainerCallback","local":"transformers.TrainerCallback","sections":[],"depth":2},{"title":"TrainerState","local":"transformers.TrainerState","sections":[],"depth":2},{"title":"TrainerControl","local":"transformers.TrainerControl","sections":[],"depth":2}],"depth":1}';function dl(j){return Zo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class _l extends Ro{constructor(m){super(),Vo(this,m,dl,cl,Bo,{})}}export{_l as component};
