import{s as Vs,c as Ys,u as Os,g as Xs,d as Zs,o as Qs,n as qa}from"../chunks/scheduler.9bc65507.js";import{S as Gs,i as Rs,r as g,u as f,v as h,d,t as p,w as u,g as o,m as Ss,s as r,h as s,j as _,n as Ws,f as n,c as a,k as $,a as i,y as t,o as Ks,A as el,x as c}from"../chunks/index.24549926.js";import{T as qs}from"../chunks/Tip.2b78d0ae.js";import{D as C}from"../chunks/Docstring.faf778e5.js";import{C as Ra}from"../chunks/CodeBlock.6ca813ee.js";import{E as Bs}from"../chunks/ExampleCodeBlock.e4699344.js";import{H as Vr}from"../chunks/Heading.cc20227a.js";function tl(I){let m,x,b,k,y;const v=I[1].default,M=Ys(v,I,I[2],null);return{c(){m=o("p"),x=Ss("Deprecated in "),b=Ss(I[0]),k=r(),M&&M.c(),this.h()},l(L){m=s(L,"P",{class:!0});var E=_(m);x=Ws(E,"Deprecated in "),b=Ws(E,I[0]),E.forEach(n),k=a(L),M&&M.l(L),this.h()},h(){$(m,"class","font-medium")},m(L,E){i(L,m,E),t(m,x),t(m,b),i(L,k,E),M&&M.m(L,E),y=!0},p(L,E){(!y||E&1)&&Ks(b,L[0]),M&&M.p&&(!y||E&4)&&Os(M,v,L,L[2],y?Zs(v,L[2],E,null):Xs(L[2]),null)},i(L){y||(d(M,L),y=!0)},o(L){p(M,L),y=!1},d(L){L&&(n(m),n(k)),M&&M.d(L)}}}function rl(I){let m,x;return m=new qs({props:{warning:!0,$$slots:{default:[tl]},$$scope:{ctx:I}}}),{c(){g(m.$$.fragment)},l(b){f(m.$$.fragment,b)},m(b,k){h(m,b,k),x=!0},p(b,[k]){const y={};k&5&&(y.$$scope={dirty:k,ctx:b}),m.$set(y)},i(b){x||(d(m.$$.fragment,b),x=!0)},o(b){p(m.$$.fragment,b),x=!1},d(b){u(m,b)}}}function al(I,m,x){let{$$slots:b={},$$scope:k}=m,{version:y}=m;return I.$$set=v=>{"version"in v&&x(0,y=v.version),"$$scope"in v&&x(2,k=v.$$scope)},[y,b,k]}class nl extends Gs{constructor(m){super(),Rs(this,m,al,rl,Vs,{version:0})}}function ol(I){let m,x="Setting <code>WANDB_LOG_MODEL</code> as <code>bool</code> will be deprecated in version 5 of 🤗 Transformers.";return{c(){m=o("p"),m.innerHTML=x},l(b){m=s(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 sl(I){let m,x="Example:",b,k,y;return k=new Ra({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=o("p"),m.textContent=x,b=r(),g(k.$$.fragment)},l(v){m=s(v,"P",{"data-svelte-h":!0}),c(m)!=="svelte-11lpom8"&&(m.textContent=x),b=a(v),f(k.$$.fragment,v)},m(v,M){i(v,m,M),i(v,b,M),h(k,v,M),y=!0},p:qa,i(v){y||(d(k.$$.fragment,v),y=!0)},o(v){p(k.$$.fragment,v),y=!1},d(v){v&&(n(m),n(b)),u(k,v)}}}function ll(I){let m,x="Example:",b,k,y;return k=new Ra({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=o("p"),m.textContent=x,b=r(),g(k.$$.fragment)},l(v){m=s(v,"P",{"data-svelte-h":!0}),c(m)!=="svelte-11lpom8"&&(m.textContent=x),b=a(v),f(k.$$.fragment,v)},m(v,M){i(v,m,M),i(v,b,M),h(k,v,M),y=!0},p:qa,i(v){y||(d(k.$$.fragment,v),y=!0)},o(v){p(k.$$.fragment,v),y=!1},d(v){v&&(n(m),n(b)),u(k,v)}}}function il(I){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=o("p"),m.innerHTML=x},l(b){m=s(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(I){let m,x,b,k,y,v,M,L="Callbacks可以用来自定义PyTorch [Trainer]中训练循环行为的对象（此功能尚未在TensorFlow中实现），该对象可以检查训练循环状态（用于进度报告、在TensorBoard或其他ML平台上记录日志等），并做出决策（例如提前停止）。",E,Ie,Mo='Callbacks是“只读”的代码片段，除了它们返回的[TrainerControl]对象外，它们不能更改训练循环中的任何内容。对于需要更改训练循环的自定义，您应该继承[Trainer]并重载您需要的方法（有关示例，请参见<a href="trainer">trainer</a>）。',Gr,Ee,xo="默认情况下，<code>TrainingArguments.report_to</code> 设置为”all”，然后[Trainer]将使用以下callbacks。",Rr,He,Lo='<li><a href="/docs/transformers/main/zh/main_classes/callback#transformers.DefaultFlowCallback">DefaultFlowCallback</a>，它处理默认的日志记录、保存和评估行为</li> <li><a href="/docs/transformers/main/zh/main_classes/callback#transformers.PrinterCallback">PrinterCallback</a> 或 <a href="/docs/transformers/main/zh/main_classes/callback#transformers.ProgressCallback">ProgressCallback</a>，用于显示进度和打印日志（如果通过<code>TrainingArguments</code>停用tqdm，则使用第一个函数；否则使用第二个）。</li> <li><a href="/docs/transformers/main/zh/main_classes/callback#transformers.integrations.TensorBoardCallback">TensorBoardCallback</a>，如果TensorBoard可访问（通过PyTorch版本 &gt;= 1.4 或者 tensorboardX）。</li> <li><a href="/docs/transformers/main/zh/main_classes/callback#transformers.integrations.WandbCallback">WandbCallback</a>，如果安装了<a href="https://www.wandb.com/" rel="nofollow">wandb</a>。</li> <li><a href="/docs/transformers/main/zh/main_classes/callback#transformers.integrations.CometCallback">CometCallback</a>，如果安装了<a href="https://www.comet.ml/site/" rel="nofollow">comet_ml</a>。</li> <li><a href="/docs/transformers/main/zh/main_classes/callback#transformers.integrations.MLflowCallback">MLflowCallback</a>，如果安装了<a href="https://www.mlflow.org/" rel="nofollow">mlflow</a>。</li> <li><a href="/docs/transformers/main/zh/main_classes/callback#transformers.integrations.NeptuneCallback">NeptuneCallback</a>，如果安装了<a href="https://neptune.ai/" rel="nofollow">neptune</a>。</li> <li><a href="/docs/transformers/main/zh/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/main/zh/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/main/zh/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/main/zh/main_classes/callback#transformers.integrations.DagsHubCallback">DagsHubCallback</a>，如果安装了<a href="https://dagshub.com/" rel="nofollow">dagshub</a>。</li> <li><a href="/docs/transformers/main/zh/main_classes/callback#transformers.integrations.FlyteCallback">FlyteCallback</a>，如果安装了<a href="https://flyte.org/" rel="nofollow">flyte</a>。</li> <li><a href="/docs/transformers/main/zh/main_classes/callback#transformers.integrations.DVCLiveCallback">DVCLiveCallback</a>，如果安装了<a href="https://dvc.org/doc/dvclive" rel="nofollow">dvclive</a>。</li>',qr,je,Io="如果安装了一个软件包，但您不希望使用相关的集成，您可以将 <code>TrainingArguments.report_to</code> 更改为仅包含您想要使用的集成的列表（例如 <code>[&quot;azure_ml&quot;, &quot;wandb&quot;]</code>）。",Yr,Je,Eo='实现callbacks的主要类是<a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>。它获取用于实例化<code>Trainer</code>的<code>TrainingArguments</code>，可以通过<a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerState">TrainerState</a>访问该Trainer的内部状态，并可以通过<a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerControl">TrainerControl</a>对训练循环执行一些操作。',Or,De,Xr,Ue,Ho='这里是库里可用<a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>的列表：',Zr,P,Ne,Ya,Ht,jo='A <a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://www.comet.ml/site/" rel="nofollow">Comet ML</a>.',Oa,j,ze,Xa,jt,Jo="Setup the optional Comet.ml integration.",Za,Jt,Do="Environment:",Qa,Dt,Uo=`<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,No=`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,Ae,en,Nt,zo='A <a href="/docs/transformers/main/zh/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,zt,Ao='A bare <a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that just prints the logs.',ea,Q,Pe,rn,At,Fo='A <a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that displays the progress of training or evaluation.',ta,S,Se,an,Ft,Po='A <a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that handles early stopping.',nn,Pt,So=`This callback depends on <code>TrainingArguments</code> argument <em>load_best_model_at_end</em> functionality to set best_metric
in <a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerState">TrainerState</a>. Note that if the <code>TrainingArguments</code> argument <em>save_steps</em> differs from <em>eval_steps</em>, the
early stopping will not occur until the next save step.`,ra,K,We,on,St,Wo='A <a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://www.tensorflow.org/tensorboard" rel="nofollow">TensorBoard</a>.',aa,W,Be,sn,Wt,Bo='A <a href="/docs/transformers/main/zh/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,Ve,cn,Bt,Vo="Setup the optional Weights &amp; Biases (<em>wandb</em>) integration.",mn,Vt,Go=`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,Gt,Ro="Environment:",pn,B,Ge,Rt,qo=`<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.`,gn,ne,fn,qt,Yo=`<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,Yt,Oo=`<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,Ot,Xo=`<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,V,Re,bn,Xt,Zo=`A <a href="/docs/transformers/main/zh/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,z,qe,_n,Zt,Qo="Setup the optional MLflow integration.",Tn,Qt,Ko="Environment:",$n,Kt,es=`<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
<code>TrainingArguments</code>’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_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>`,oa,ee,Ye,Cn,er,ts='A <a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://pypi.org/project/azureml-sdk/" rel="nofollow">AzureML</a>.',sa,te,Oe,kn,tr,rs='A <a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that tracks the CO2 emission of training.',la,G,Xe,wn,rr,as='TrainerCallback that sends the logs to <a href="https://app.neptune.ai" rel="nofollow">Neptune</a>.',yn,ar,ns=`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,Mn,nr,os='A <a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://clear.ml/" rel="nofollow">ClearML</a>.',xn,or,ss="Environment:",Ln,sr,ls=`<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,R,Qe,In,lr,is='A <a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that logs to <a href="https://dagshub.com/" rel="nofollow">DagsHub</a>. Extends <code>MLflowCallback</code>',En,A,Ke,Hn,ir,cs="Setup the DagsHub’s Logging integration.",jn,cr,ms="Environment:",Jn,mr,ds=`<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,ps=`A <a href="/docs/transformers/main/zh/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,oe,da,U,tt,Nn,pr,gs='A <a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://www.dvc.org/doc/dvclive" rel="nofollow">DVCLive</a>.',zn,gr,fs=`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>.`,An,F,rt,Fn,fr,hs=`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,us="Environment:",Sn,ur,bs=`<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 <code>Trainer</code>. 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
<code>TrainingArguments</code>’s <code>output_dir</code> is logged at each checkpoint.</li>`,pa,at,ga,T,nt,Wn,br,vs=`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,_s=`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.`,Vn,_r,Ts=`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/main/zh/main_classes/callback#transformers.PrinterCallback">PrinterCallback</a>.`,Gn,se,Rn,le,ot,qn,Tr,$s="Event called at the beginning of an epoch.",Yn,ie,st,On,$r,Cs="Event called at the end of an epoch.",Xn,ce,lt,Zn,Cr,ks="Event called after an evaluation phase.",Qn,me,it,Kn,kr,ws="Event called at the end of the initialization of the <code>Trainer</code>.",eo,de,ct,to,wr,ys="Event called after logging the last logs.",ro,pe,mt,ao,yr,Ms="Event called after a successful prediction.",no,ge,dt,oo,Mr,xs="Event called after a prediction step.",so,fe,pt,lo,xr,Ls="Event called after a checkpoint save.",io,he,gt,co,Lr,Is=`Event called at the beginning of a training step. If using gradient accumulation, one training step might take
several inputs.`,mo,ue,ft,po,Ir,Es=`Event called at the end of a training step. If using gradient accumulation, one training step might take
several inputs.`,go,be,ht,fo,Er,Hs="Event called at the end of an substep during gradient accumulation.",ho,ve,ut,uo,Hr,js="Event called at the beginning of training.",bo,_e,bt,vo,jr,Js="Event called at the end of training.",fa,vt,Ds="以下是如何使用PyTorch注册自定义callback的示例：",ha,_t,Us="<code>Trainer</code>:",ua,Tt,ba,$t,Ns="注册callback的另一种方式是调用 <code>trainer.add_callback()</code>，如下所示：",va,Ct,_a,kt,Ta,H,wt,_o,Jr,zs=`A class containing the <code>Trainer</code> inner state that will be saved along the model and optimizer when checkpointing
and passed to the <a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>.`,To,Te,$o,$e,yt,Co,Dr,As="Create an instance from the content of <code>json_path</code>.",ko,Ce,Mt,wo,Ur,Fs="Save the content of this instance in JSON format inside <code>json_path</code>.",$a,xt,Ca,re,Lt,yo,Nr,Ps=`A class that handles the <code>Trainer</code> control flow. This class is used by the <a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> to activate some
switches in the training loop.`,ka,Br,wa;return y=new Vr({props:{title:"Callbacks",local:"callbacks",headingTag:"h1"}}),De=new Vr({props:{title:"可用的Callbacks",local:"transformers.integrations.CometCallback",headingTag:"h2"}}),Ne=new C({props:{name:"class transformers.integrations.CometCallback",anchor:"transformers.integrations.CometCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/integrations/integration_utils.py#L835"}}),ze=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/main/src/transformers/integrations/integration_utils.py#L846"}}),Ae=new C({props:{name:"class transformers.DefaultFlowCallback",anchor:"transformers.DefaultFlowCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_callback.py#L428"}}),Fe=new C({props:{name:"class transformers.PrinterCallback",anchor:"transformers.PrinterCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_callback.py#L528"}}),Pe=new C({props:{name:"class transformers.ProgressCallback",anchor:"transformers.ProgressCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_callback.py#L478"}}),Se=new C({props:{name:"class transformers.EarlyStoppingCallback",anchor:"transformers.EarlyStoppingCallback",parameters:[{name:"early_stopping_patience",val:": int = 1"},{name:"early_stopping_threshold",val:": typing.Optional[float] = 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/main/src/transformers/trainer_callback.py#L539"}}),We=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/main/src/transformers/integrations/integration_utils.py#L581"}}),Be=new C({props:{name:"class transformers.integrations.WandbCallback",anchor:"transformers.integrations.WandbCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/integrations/integration_utils.py#L667"}}),Ve=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/main/src/transformers/integrations/integration_utils.py#L692"}}),ne=new nl({props:{version:"5.0",$$slots:{default:[ol]},$$scope:{ctx:I}}}),Re=new C({props:{name:"class transformers.integrations.MLflowCallback",anchor:"transformers.integrations.MLflowCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/integrations/integration_utils.py#L935"}}),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/main/src/transformers/integrations/integration_utils.py#L954"}}),Ye=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/main/src/transformers/integrations/integration_utils.py#L912"}}),Oe=new C({props:{name:"class transformers.integrations.CodeCarbonCallback",anchor:"transformers.integrations.CodeCarbonCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/integrations/integration_utils.py#L1401"}}),Xe=new C({props:{name:"class transformers.integrations.NeptuneCallback",anchor:"transformers.integrations.NeptuneCallback",parameters:[{name:"api_token",val:": typing.Optional[str] = None"},{name:"project",val:": typing.Optional[str] = None"},{name:"name",val:": typing.Optional[str] = None"},{name:"base_namespace",val:": str = 'finetuning'"},{name:"run",val:" = None"},{name:"log_parameters",val:": bool = True"},{name:"log_checkpoints",val:": typing.Optional[str] = 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/main/src/transformers/integrations/integration_utils.py#L1130"}}),Ze=new C({props:{name:"class transformers.integrations.ClearMLCallback",anchor:"transformers.integrations.ClearMLCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/integrations/integration_utils.py#L1430"}}),Qe=new C({props:{name:"class transformers.integrations.DagsHubCallback",anchor:"transformers.integrations.DagsHubCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/integrations/integration_utils.py#L1070"}}),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/main/src/transformers/integrations/integration_utils.py#L1084"}}),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/main/src/transformers/integrations/integration_utils.py#L1551"}}),oe=new Bs({props:{anchor:"transformers.integrations.FlyteCallback.example",$$slots:{default:[sl]},$$scope:{ctx:I}}}),tt=new C({props:{name:"class transformers.integrations.DVCLiveCallback",anchor:"transformers.integrations.DVCLiveCallback",parameters:[{name:"live",val:": typing.Optional[typing.Any] = None"},{name:"log_model",val:": typing.Union[typing.Literal['all'], bool, NoneType] = 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 <code>Trainer</code>. 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
<code>TrainingArguments</code>&#x2019;s <code>output_dir</code> is logged at each checkpoint.`,name:"log_model"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/integrations/integration_utils.py#L1614"}}),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/main/src/transformers/integrations/integration_utils.py#L1650"}}),at=new Vr({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> (<code>TrainingArguments</code>) &#x2014;
The training arguments used to instantiate the <code>Trainer</code>.`,name:"args"},{anchor:"transformers.TrainerCallback.state",description:`<strong>state</strong> (<a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerState">TrainerState</a>) &#x2014;
The current state of the <code>Trainer</code>.`,name:"state"},{anchor:"transformers.TrainerCallback.control",description:`<strong>control</strong> (<a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerControl">TrainerControl</a>) &#x2014;
The object that is returned to the <code>Trainer</code> and can be used to make some decisions.`,name:"control"},{anchor:"transformers.TrainerCallback.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/zh/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/main/zh/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 training.`,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/main/src/transformers/trainer_callback.py#L171"}}),se=new Bs({props:{anchor:"transformers.TrainerCallback.example",$$slots:{default:[ll]},$$scope:{ctx:I}}}),ot=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/main/src/transformers/trainer_callback.py#L240"}}),st=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/main/src/transformers/trainer_callback.py#L246"}}),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/main/src/transformers/trainer_callback.py#L272"}}),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/main/src/transformers/trainer_callback.py#L222"}}),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/main/src/transformers/trainer_callback.py#L290"}}),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/main/src/transformers/trainer_callback.py#L278"}}),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/main/src/transformers/trainer_callback.py#L296"}}),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/main/src/transformers/trainer_callback.py#L284"}}),gt=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/main/src/transformers/trainer_callback.py#L252"}}),ft=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/main/src/transformers/trainer_callback.py#L265"}}),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/main/src/transformers/trainer_callback.py#L259"}}),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/main/src/transformers/trainer_callback.py#L228"}}),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/main/src/transformers/trainer_callback.py#L234"}}),Tt=new Ra({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}}),Ct=new Ra({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}}),kt=new Vr({props:{title:"TrainerState",local:"transformers.TrainerState",headingTag:"h2"}}),wt=new C({props:{name:"class transformers.TrainerState",anchor:"transformers.TrainerState",parameters:[{name:"epoch",val:": typing.Optional[float] = 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:"num_train_epochs",val:": int = 0"},{name:"num_input_tokens_seen",val:": int = 0"},{name:"total_flos",val:": float = 0"},{name:"log_history",val:": typing.List[typing.Dict[str, float]] = None"},{name:"best_metric",val:": typing.Optional[float] = None"},{name:"best_model_checkpoint",val:": typing.Optional[str] = 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:": typing.Dict[str, typing.Union[str, float, int, bool]] = 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.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"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_callback.py#L35"}}),Te=new qs({props:{$$slots:{default:[il]},$$scope:{ctx:I}}}),yt=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/main/src/transformers/trainer_callback.py#L113"}}),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/main/src/transformers/trainer_callback.py#L107"}}),xt=new Vr({props:{title:"TrainerControl",local:"transformers.TrainerControl",headingTag:"h2"}}),Lt=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/main/src/transformers/trainer_callback.py#L122"}}),{c(){m=o("meta"),x=r(),b=o("p"),k=r(),g(y.$$.fragment),v=r(),M=o("p"),M.textContent=L,E=r(),Ie=o("p"),Ie.innerHTML=Mo,Gr=r(),Ee=o("p"),Ee.innerHTML=xo,Rr=r(),He=o("ul"),He.innerHTML=Lo,qr=r(),je=o("p"),je.innerHTML=Io,Yr=r(),Je=o("p"),Je.innerHTML=Eo,Or=r(),g(De.$$.fragment),Xr=r(),Ue=o("p"),Ue.innerHTML=Ho,Zr=r(),P=o("div"),g(Ne.$$.fragment),Ya=r(),Ht=o("p"),Ht.innerHTML=jo,Oa=r(),j=o("div"),g(ze.$$.fragment),Xa=r(),jt=o("p"),jt.textContent=Jo,Za=r(),Jt=o("p"),Jt.textContent=Do,Qa=r(),Dt=o("ul"),Dt.innerHTML=Uo,Ka=r(),Ut=o("p"),Ut.innerHTML=No,Qr=r(),X=o("div"),g(Ae.$$.fragment),en=r(),Nt=o("p"),Nt.innerHTML=zo,Kr=r(),Z=o("div"),g(Fe.$$.fragment),tn=r(),zt=o("p"),zt.innerHTML=Ao,ea=r(),Q=o("div"),g(Pe.$$.fragment),rn=r(),At=o("p"),At.innerHTML=Fo,ta=r(),S=o("div"),g(Se.$$.fragment),an=r(),Ft=o("p"),Ft.innerHTML=Po,nn=r(),Pt=o("p"),Pt.innerHTML=So,ra=r(),K=o("div"),g(We.$$.fragment),on=r(),St=o("p"),St.innerHTML=Wo,aa=r(),W=o("div"),g(Be.$$.fragment),sn=r(),Wt=o("p"),Wt.innerHTML=Bo,ln=r(),J=o("div"),g(Ve.$$.fragment),cn=r(),Bt=o("p"),Bt.innerHTML=Vo,mn=r(),Vt=o("p"),Vt.innerHTML=Go,dn=r(),Gt=o("p"),Gt.textContent=Ro,pn=r(),B=o("ul"),Ge=o("li"),Rt=o("p"),Rt.innerHTML=qo,gn=r(),g(ne.$$.fragment),fn=r(),qt=o("li"),qt.innerHTML=Yo,hn=r(),Yt=o("li"),Yt.innerHTML=Oo,un=r(),Ot=o("li"),Ot.innerHTML=Xo,na=r(),V=o("div"),g(Re.$$.fragment),bn=r(),Xt=o("p"),Xt.innerHTML=Zo,vn=r(),z=o("div"),g(qe.$$.fragment),_n=r(),Zt=o("p"),Zt.textContent=Qo,Tn=r(),Qt=o("p"),Qt.textContent=Ko,$n=r(),Kt=o("ul"),Kt.innerHTML=es,oa=r(),ee=o("div"),g(Ye.$$.fragment),Cn=r(),er=o("p"),er.innerHTML=ts,sa=r(),te=o("div"),g(Oe.$$.fragment),kn=r(),tr=o("p"),tr.innerHTML=rs,la=r(),G=o("div"),g(Xe.$$.fragment),wn=r(),rr=o("p"),rr.innerHTML=as,yn=r(),ar=o("p"),ar.innerHTML=ns,ia=r(),D=o("div"),g(Ze.$$.fragment),Mn=r(),nr=o("p"),nr.innerHTML=os,xn=r(),or=o("p"),or.textContent=ss,Ln=r(),sr=o("ul"),sr.innerHTML=ls,ca=r(),R=o("div"),g(Qe.$$.fragment),In=r(),lr=o("p"),lr.innerHTML=is,En=r(),A=o("div"),g(Ke.$$.fragment),Hn=r(),ir=o("p"),ir.textContent=cs,jn=r(),cr=o("p"),cr.textContent=ms,Jn=r(),mr=o("ul"),mr.innerHTML=ds,ma=r(),q=o("div"),g(et.$$.fragment),Dn=r(),dr=o("p"),dr.innerHTML=ps,Un=r(),g(oe.$$.fragment),da=r(),U=o("div"),g(tt.$$.fragment),Nn=r(),pr=o("p"),pr.innerHTML=gs,zn=r(),gr=o("p"),gr.innerHTML=fs,An=r(),F=o("div"),g(rt.$$.fragment),Fn=r(),fr=o("p"),fr.innerHTML=hs,Pn=r(),hr=o("p"),hr.textContent=us,Sn=r(),ur=o("ul"),ur.innerHTML=bs,pa=r(),g(at.$$.fragment),ga=r(),T=o("div"),g(nt.$$.fragment),Wn=r(),br=o("p"),br.textContent=vs,Bn=r(),vr=o("p"),vr.innerHTML=_s,Vn=r(),_r=o("p"),_r.innerHTML=Ts,Gn=r(),g(se.$$.fragment),Rn=r(),le=o("div"),g(ot.$$.fragment),qn=r(),Tr=o("p"),Tr.textContent=$s,Yn=r(),ie=o("div"),g(st.$$.fragment),On=r(),$r=o("p"),$r.textContent=Cs,Xn=r(),ce=o("div"),g(lt.$$.fragment),Zn=r(),Cr=o("p"),Cr.textContent=ks,Qn=r(),me=o("div"),g(it.$$.fragment),Kn=r(),kr=o("p"),kr.innerHTML=ws,eo=r(),de=o("div"),g(ct.$$.fragment),to=r(),wr=o("p"),wr.textContent=ys,ro=r(),pe=o("div"),g(mt.$$.fragment),ao=r(),yr=o("p"),yr.textContent=Ms,no=r(),ge=o("div"),g(dt.$$.fragment),oo=r(),Mr=o("p"),Mr.textContent=xs,so=r(),fe=o("div"),g(pt.$$.fragment),lo=r(),xr=o("p"),xr.textContent=Ls,io=r(),he=o("div"),g(gt.$$.fragment),co=r(),Lr=o("p"),Lr.textContent=Is,mo=r(),ue=o("div"),g(ft.$$.fragment),po=r(),Ir=o("p"),Ir.textContent=Es,go=r(),be=o("div"),g(ht.$$.fragment),fo=r(),Er=o("p"),Er.textContent=Hs,ho=r(),ve=o("div"),g(ut.$$.fragment),uo=r(),Hr=o("p"),Hr.textContent=js,bo=r(),_e=o("div"),g(bt.$$.fragment),vo=r(),jr=o("p"),jr.textContent=Js,fa=r(),vt=o("p"),vt.textContent=Ds,ha=r(),_t=o("p"),_t.innerHTML=Us,ua=r(),g(Tt.$$.fragment),ba=r(),$t=o("p"),$t.innerHTML=Ns,va=r(),g(Ct.$$.fragment),_a=r(),g(kt.$$.fragment),Ta=r(),H=o("div"),g(wt.$$.fragment),_o=r(),Jr=o("p"),Jr.innerHTML=zs,To=r(),g(Te.$$.fragment),$o=r(),$e=o("div"),g(yt.$$.fragment),Co=r(),Dr=o("p"),Dr.innerHTML=As,ko=r(),Ce=o("div"),g(Mt.$$.fragment),wo=r(),Ur=o("p"),Ur.innerHTML=Fs,$a=r(),g(xt.$$.fragment),Ca=r(),re=o("div"),g(Lt.$$.fragment),yo=r(),Nr=o("p"),Nr.innerHTML=Ps,ka=r(),Br=o("p"),this.h()},l(e){const l=el("svelte-u9bgzb",document.head);m=s(l,"META",{name:!0,content:!0}),l.forEach(n),x=a(e),b=s(e,"P",{}),_(b).forEach(n),k=a(e),f(y.$$.fragment,e),v=a(e),M=s(e,"P",{"data-svelte-h":!0}),c(M)!=="svelte-ixc7mw"&&(M.textContent=L),E=a(e),Ie=s(e,"P",{"data-svelte-h":!0}),c(Ie)!=="svelte-1o90q5b"&&(Ie.innerHTML=Mo),Gr=a(e),Ee=s(e,"P",{"data-svelte-h":!0}),c(Ee)!=="svelte-w2h063"&&(Ee.innerHTML=xo),Rr=a(e),He=s(e,"UL",{"data-svelte-h":!0}),c(He)!=="svelte-3zyy36"&&(He.innerHTML=Lo),qr=a(e),je=s(e,"P",{"data-svelte-h":!0}),c(je)!=="svelte-cfm0j7"&&(je.innerHTML=Io),Yr=a(e),Je=s(e,"P",{"data-svelte-h":!0}),c(Je)!=="svelte-16d2yxx"&&(Je.innerHTML=Eo),Or=a(e),f(De.$$.fragment,e),Xr=a(e),Ue=s(e,"P",{"data-svelte-h":!0}),c(Ue)!=="svelte-1qkta70"&&(Ue.innerHTML=Ho),Zr=a(e),P=s(e,"DIV",{class:!0});var ae=_(P);f(Ne.$$.fragment,ae),Ya=a(ae),Ht=s(ae,"P",{"data-svelte-h":!0}),c(Ht)!=="svelte-hx3bnd"&&(Ht.innerHTML=jo),Oa=a(ae),j=s(ae,"DIV",{class:!0});var N=_(j);f(ze.$$.fragment,N),Xa=a(N),jt=s(N,"P",{"data-svelte-h":!0}),c(jt)!=="svelte-1bfkm9x"&&(jt.textContent=Jo),Za=a(N),Jt=s(N,"P",{"data-svelte-h":!0}),c(Jt)!=="svelte-1fkshtn"&&(Jt.textContent=Do),Qa=a(N),Dt=s(N,"UL",{"data-svelte-h":!0}),c(Dt)!=="svelte-12drq5x"&&(Dt.innerHTML=Uo),Ka=a(N),Ut=s(N,"P",{"data-svelte-h":!0}),c(Ut)!=="svelte-1faq0a7"&&(Ut.innerHTML=No),N.forEach(n),ae.forEach(n),Qr=a(e),X=s(e,"DIV",{class:!0});var It=_(X);f(Ae.$$.fragment,It),en=a(It),Nt=s(It,"P",{"data-svelte-h":!0}),c(Nt)!=="svelte-gp0ssq"&&(Nt.innerHTML=zo),It.forEach(n),Kr=a(e),Z=s(e,"DIV",{class:!0});var Et=_(Z);f(Fe.$$.fragment,Et),tn=a(Et),zt=s(Et,"P",{"data-svelte-h":!0}),c(zt)!=="svelte-uq878j"&&(zt.innerHTML=Ao),Et.forEach(n),ea=a(e),Q=s(e,"DIV",{class:!0});var ya=_(Q);f(Pe.$$.fragment,ya),rn=a(ya),At=s(ya,"P",{"data-svelte-h":!0}),c(At)!=="svelte-1f4frtw"&&(At.innerHTML=Fo),ya.forEach(n),ta=a(e),S=s(e,"DIV",{class:!0});var zr=_(S);f(Se.$$.fragment,zr),an=a(zr),Ft=s(zr,"P",{"data-svelte-h":!0}),c(Ft)!=="svelte-bqp5vv"&&(Ft.innerHTML=Po),nn=a(zr),Pt=s(zr,"P",{"data-svelte-h":!0}),c(Pt)!=="svelte-13ureob"&&(Pt.innerHTML=So),zr.forEach(n),ra=a(e),K=s(e,"DIV",{class:!0});var Ma=_(K);f(We.$$.fragment,Ma),on=a(Ma),St=s(Ma,"P",{"data-svelte-h":!0}),c(St)!=="svelte-wkcw14"&&(St.innerHTML=Wo),Ma.forEach(n),aa=a(e),W=s(e,"DIV",{class:!0});var Ar=_(W);f(Be.$$.fragment,Ar),sn=a(Ar),Wt=s(Ar,"P",{"data-svelte-h":!0}),c(Wt)!=="svelte-vfsdjb"&&(Wt.innerHTML=Bo),ln=a(Ar),J=s(Ar,"DIV",{class:!0});var Y=_(J);f(Ve.$$.fragment,Y),cn=a(Y),Bt=s(Y,"P",{"data-svelte-h":!0}),c(Bt)!=="svelte-op70zs"&&(Bt.innerHTML=Vo),mn=a(Y),Vt=s(Y,"P",{"data-svelte-h":!0}),c(Vt)!=="svelte-m2rt7w"&&(Vt.innerHTML=Go),dn=a(Y),Gt=s(Y,"P",{"data-svelte-h":!0}),c(Gt)!=="svelte-1fkshtn"&&(Gt.textContent=Ro),pn=a(Y),B=s(Y,"UL",{});var ke=_(B);Ge=s(ke,"LI",{});var xa=_(Ge);Rt=s(xa,"P",{"data-svelte-h":!0}),c(Rt)!=="svelte-py3r3s"&&(Rt.innerHTML=qo),gn=a(xa),f(ne.$$.fragment,xa),xa.forEach(n),fn=a(ke),qt=s(ke,"LI",{"data-svelte-h":!0}),c(qt)!=="svelte-dx3m30"&&(qt.innerHTML=Yo),hn=a(ke),Yt=s(ke,"LI",{"data-svelte-h":!0}),c(Yt)!=="svelte-n1uh6c"&&(Yt.innerHTML=Oo),un=a(ke),Ot=s(ke,"LI",{"data-svelte-h":!0}),c(Ot)!=="svelte-ybo66z"&&(Ot.innerHTML=Xo),ke.forEach(n),Y.forEach(n),Ar.forEach(n),na=a(e),V=s(e,"DIV",{class:!0});var Fr=_(V);f(Re.$$.fragment,Fr),bn=a(Fr),Xt=s(Fr,"P",{"data-svelte-h":!0}),c(Xt)!=="svelte-1g77vdj"&&(Xt.innerHTML=Zo),vn=a(Fr),z=s(Fr,"DIV",{class:!0});var we=_(z);f(qe.$$.fragment,we),_n=a(we),Zt=s(we,"P",{"data-svelte-h":!0}),c(Zt)!=="svelte-nmg16f"&&(Zt.textContent=Qo),Tn=a(we),Qt=s(we,"P",{"data-svelte-h":!0}),c(Qt)!=="svelte-1fkshtn"&&(Qt.textContent=Ko),$n=a(we),Kt=s(we,"UL",{"data-svelte-h":!0}),c(Kt)!=="svelte-5mgl1j"&&(Kt.innerHTML=es),we.forEach(n),Fr.forEach(n),oa=a(e),ee=s(e,"DIV",{class:!0});var La=_(ee);f(Ye.$$.fragment,La),Cn=a(La),er=s(La,"P",{"data-svelte-h":!0}),c(er)!=="svelte-8m42bk"&&(er.innerHTML=ts),La.forEach(n),sa=a(e),te=s(e,"DIV",{class:!0});var Ia=_(te);f(Oe.$$.fragment,Ia),kn=a(Ia),tr=s(Ia,"P",{"data-svelte-h":!0}),c(tr)!=="svelte-xfsfl8"&&(tr.innerHTML=rs),Ia.forEach(n),la=a(e),G=s(e,"DIV",{class:!0});var Pr=_(G);f(Xe.$$.fragment,Pr),wn=a(Pr),rr=s(Pr,"P",{"data-svelte-h":!0}),c(rr)!=="svelte-4ag9j6"&&(rr.innerHTML=as),yn=a(Pr),ar=s(Pr,"P",{"data-svelte-h":!0}),c(ar)!=="svelte-1mhjcx0"&&(ar.innerHTML=ns),Pr.forEach(n),ia=a(e),D=s(e,"DIV",{class:!0});var ye=_(D);f(Ze.$$.fragment,ye),Mn=a(ye),nr=s(ye,"P",{"data-svelte-h":!0}),c(nr)!=="svelte-1pjr4jm"&&(nr.innerHTML=os),xn=a(ye),or=s(ye,"P",{"data-svelte-h":!0}),c(or)!=="svelte-1fkshtn"&&(or.textContent=ss),Ln=a(ye),sr=s(ye,"UL",{"data-svelte-h":!0}),c(sr)!=="svelte-15svthu"&&(sr.innerHTML=ls),ye.forEach(n),ca=a(e),R=s(e,"DIV",{class:!0});var Sr=_(R);f(Qe.$$.fragment,Sr),In=a(Sr),lr=s(Sr,"P",{"data-svelte-h":!0}),c(lr)!=="svelte-1guxmsr"&&(lr.innerHTML=is),En=a(Sr),A=s(Sr,"DIV",{class:!0});var Me=_(A);f(Ke.$$.fragment,Me),Hn=a(Me),ir=s(Me,"P",{"data-svelte-h":!0}),c(ir)!=="svelte-1wbmj3"&&(ir.textContent=cs),jn=a(Me),cr=s(Me,"P",{"data-svelte-h":!0}),c(cr)!=="svelte-1fkshtn"&&(cr.textContent=ms),Jn=a(Me),mr=s(Me,"UL",{"data-svelte-h":!0}),c(mr)!=="svelte-dna85o"&&(mr.innerHTML=ds),Me.forEach(n),Sr.forEach(n),ma=a(e),q=s(e,"DIV",{class:!0});var Wr=_(q);f(et.$$.fragment,Wr),Dn=a(Wr),dr=s(Wr,"P",{"data-svelte-h":!0}),c(dr)!=="svelte-1ee0i6s"&&(dr.innerHTML=ps),Un=a(Wr),f(oe.$$.fragment,Wr),Wr.forEach(n),da=a(e),U=s(e,"DIV",{class:!0});var xe=_(U);f(tt.$$.fragment,xe),Nn=a(xe),pr=s(xe,"P",{"data-svelte-h":!0}),c(pr)!=="svelte-1nahj0d"&&(pr.innerHTML=gs),zn=a(xe),gr=s(xe,"P",{"data-svelte-h":!0}),c(gr)!=="svelte-eu3kj7"&&(gr.innerHTML=fs),An=a(xe),F=s(xe,"DIV",{class:!0});var Le=_(F);f(rt.$$.fragment,Le),Fn=a(Le),fr=s(Le,"P",{"data-svelte-h":!0}),c(fr)!=="svelte-jjkenj"&&(fr.innerHTML=hs),Pn=a(Le),hr=s(Le,"P",{"data-svelte-h":!0}),c(hr)!=="svelte-1fkshtn"&&(hr.textContent=us),Sn=a(Le),ur=s(Le,"UL",{"data-svelte-h":!0}),c(ur)!=="svelte-crnavn"&&(ur.innerHTML=bs),Le.forEach(n),xe.forEach(n),pa=a(e),f(at.$$.fragment,e),ga=a(e),T=s(e,"DIV",{class:!0});var w=_(T);f(nt.$$.fragment,w),Wn=a(w),br=s(w,"P",{"data-svelte-h":!0}),c(br)!=="svelte-14xg00o"&&(br.textContent=vs),Bn=a(w),vr=s(w,"P",{"data-svelte-h":!0}),c(vr)!=="svelte-1xprdvt"&&(vr.innerHTML=_s),Vn=a(w),_r=s(w,"P",{"data-svelte-h":!0}),c(_r)!=="svelte-wuj1xo"&&(_r.innerHTML=Ts),Gn=a(w),f(se.$$.fragment,w),Rn=a(w),le=s(w,"DIV",{class:!0});var Ea=_(le);f(ot.$$.fragment,Ea),qn=a(Ea),Tr=s(Ea,"P",{"data-svelte-h":!0}),c(Tr)!=="svelte-106889p"&&(Tr.textContent=$s),Ea.forEach(n),Yn=a(w),ie=s(w,"DIV",{class:!0});var Ha=_(ie);f(st.$$.fragment,Ha),On=a(Ha),$r=s(Ha,"P",{"data-svelte-h":!0}),c($r)!=="svelte-oshcpj"&&($r.textContent=Cs),Ha.forEach(n),Xn=a(w),ce=s(w,"DIV",{class:!0});var ja=_(ce);f(lt.$$.fragment,ja),Zn=a(ja),Cr=s(ja,"P",{"data-svelte-h":!0}),c(Cr)!=="svelte-1o0xh73"&&(Cr.textContent=ks),ja.forEach(n),Qn=a(w),me=s(w,"DIV",{class:!0});var Ja=_(me);f(it.$$.fragment,Ja),Kn=a(Ja),kr=s(Ja,"P",{"data-svelte-h":!0}),c(kr)!=="svelte-hzqkde"&&(kr.innerHTML=ws),Ja.forEach(n),eo=a(w),de=s(w,"DIV",{class:!0});var Da=_(de);f(ct.$$.fragment,Da),to=a(Da),wr=s(Da,"P",{"data-svelte-h":!0}),c(wr)!=="svelte-10eiwg0"&&(wr.textContent=ys),Da.forEach(n),ro=a(w),pe=s(w,"DIV",{class:!0});var Ua=_(pe);f(mt.$$.fragment,Ua),ao=a(Ua),yr=s(Ua,"P",{"data-svelte-h":!0}),c(yr)!=="svelte-1df7x4n"&&(yr.textContent=Ms),Ua.forEach(n),no=a(w),ge=s(w,"DIV",{class:!0});var Na=_(ge);f(dt.$$.fragment,Na),oo=a(Na),Mr=s(Na,"P",{"data-svelte-h":!0}),c(Mr)!=="svelte-18swygp"&&(Mr.textContent=xs),Na.forEach(n),so=a(w),fe=s(w,"DIV",{class:!0});var za=_(fe);f(pt.$$.fragment,za),lo=a(za),xr=s(za,"P",{"data-svelte-h":!0}),c(xr)!=="svelte-19xp05v"&&(xr.textContent=Ls),za.forEach(n),io=a(w),he=s(w,"DIV",{class:!0});var Aa=_(he);f(gt.$$.fragment,Aa),co=a(Aa),Lr=s(Aa,"P",{"data-svelte-h":!0}),c(Lr)!=="svelte-7af61p"&&(Lr.textContent=Is),Aa.forEach(n),mo=a(w),ue=s(w,"DIV",{class:!0});var Fa=_(ue);f(ft.$$.fragment,Fa),po=a(Fa),Ir=s(Fa,"P",{"data-svelte-h":!0}),c(Ir)!=="svelte-8cdxjr"&&(Ir.textContent=Es),Fa.forEach(n),go=a(w),be=s(w,"DIV",{class:!0});var Pa=_(be);f(ht.$$.fragment,Pa),fo=a(Pa),Er=s(Pa,"P",{"data-svelte-h":!0}),c(Er)!=="svelte-sluvs0"&&(Er.textContent=Hs),Pa.forEach(n),ho=a(w),ve=s(w,"DIV",{class:!0});var Sa=_(ve);f(ut.$$.fragment,Sa),uo=a(Sa),Hr=s(Sa,"P",{"data-svelte-h":!0}),c(Hr)!=="svelte-6bvy6d"&&(Hr.textContent=js),Sa.forEach(n),bo=a(w),_e=s(w,"DIV",{class:!0});var Wa=_(_e);f(bt.$$.fragment,Wa),vo=a(Wa),jr=s(Wa,"P",{"data-svelte-h":!0}),c(jr)!=="svelte-zzwxsv"&&(jr.textContent=Js),Wa.forEach(n),w.forEach(n),fa=a(e),vt=s(e,"P",{"data-svelte-h":!0}),c(vt)!=="svelte-87dqmt"&&(vt.textContent=Ds),ha=a(e),_t=s(e,"P",{"data-svelte-h":!0}),c(_t)!=="svelte-17720zy"&&(_t.innerHTML=Us),ua=a(e),f(Tt.$$.fragment,e),ba=a(e),$t=s(e,"P",{"data-svelte-h":!0}),c($t)!=="svelte-u9gp17"&&($t.innerHTML=Ns),va=a(e),f(Ct.$$.fragment,e),_a=a(e),f(kt.$$.fragment,e),Ta=a(e),H=s(e,"DIV",{class:!0});var O=_(H);f(wt.$$.fragment,O),_o=a(O),Jr=s(O,"P",{"data-svelte-h":!0}),c(Jr)!=="svelte-1ecfz3"&&(Jr.innerHTML=zs),To=a(O),f(Te.$$.fragment,O),$o=a(O),$e=s(O,"DIV",{class:!0});var Ba=_($e);f(yt.$$.fragment,Ba),Co=a(Ba),Dr=s(Ba,"P",{"data-svelte-h":!0}),c(Dr)!=="svelte-hbs6ga"&&(Dr.innerHTML=As),Ba.forEach(n),ko=a(O),Ce=s(O,"DIV",{class:!0});var Va=_(Ce);f(Mt.$$.fragment,Va),wo=a(Va),Ur=s(Va,"P",{"data-svelte-h":!0}),c(Ur)!=="svelte-dkslae"&&(Ur.innerHTML=Fs),Va.forEach(n),O.forEach(n),$a=a(e),f(xt.$$.fragment,e),Ca=a(e),re=s(e,"DIV",{class:!0});var Ga=_(re);f(Lt.$$.fragment,Ga),yo=a(Ga),Nr=s(Ga,"P",{"data-svelte-h":!0}),c(Nr)!=="svelte-1o6cnzn"&&(Nr.innerHTML=Ps),Ga.forEach(n),ka=a(e),Br=s(e,"P",{}),_(Br).forEach(n),this.h()},h(){$(m,"name","hf:doc:metadata"),$(m,"content",ml),$(j,"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"),$(S,"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"),$(W,"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"),$(V,"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"),$(G,"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"),$(A,"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"),$(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"),$(ge,"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"),$(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"),$(H,"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(y,e,l),i(e,v,l),i(e,M,l),i(e,E,l),i(e,Ie,l),i(e,Gr,l),i(e,Ee,l),i(e,Rr,l),i(e,He,l),i(e,qr,l),i(e,je,l),i(e,Yr,l),i(e,Je,l),i(e,Or,l),h(De,e,l),i(e,Xr,l),i(e,Ue,l),i(e,Zr,l),i(e,P,l),h(Ne,P,null),t(P,Ya),t(P,Ht),t(P,Oa),t(P,j),h(ze,j,null),t(j,Xa),t(j,jt),t(j,Za),t(j,Jt),t(j,Qa),t(j,Dt),t(j,Ka),t(j,Ut),i(e,Qr,l),i(e,X,l),h(Ae,X,null),t(X,en),t(X,Nt),i(e,Kr,l),i(e,Z,l),h(Fe,Z,null),t(Z,tn),t(Z,zt),i(e,ea,l),i(e,Q,l),h(Pe,Q,null),t(Q,rn),t(Q,At),i(e,ta,l),i(e,S,l),h(Se,S,null),t(S,an),t(S,Ft),t(S,nn),t(S,Pt),i(e,ra,l),i(e,K,l),h(We,K,null),t(K,on),t(K,St),i(e,aa,l),i(e,W,l),h(Be,W,null),t(W,sn),t(W,Wt),t(W,ln),t(W,J),h(Ve,J,null),t(J,cn),t(J,Bt),t(J,mn),t(J,Vt),t(J,dn),t(J,Gt),t(J,pn),t(J,B),t(B,Ge),t(Ge,Rt),t(Ge,gn),h(ne,Ge,null),t(B,fn),t(B,qt),t(B,hn),t(B,Yt),t(B,un),t(B,Ot),i(e,na,l),i(e,V,l),h(Re,V,null),t(V,bn),t(V,Xt),t(V,vn),t(V,z),h(qe,z,null),t(z,_n),t(z,Zt),t(z,Tn),t(z,Qt),t(z,$n),t(z,Kt),i(e,oa,l),i(e,ee,l),h(Ye,ee,null),t(ee,Cn),t(ee,er),i(e,sa,l),i(e,te,l),h(Oe,te,null),t(te,kn),t(te,tr),i(e,la,l),i(e,G,l),h(Xe,G,null),t(G,wn),t(G,rr),t(G,yn),t(G,ar),i(e,ia,l),i(e,D,l),h(Ze,D,null),t(D,Mn),t(D,nr),t(D,xn),t(D,or),t(D,Ln),t(D,sr),i(e,ca,l),i(e,R,l),h(Qe,R,null),t(R,In),t(R,lr),t(R,En),t(R,A),h(Ke,A,null),t(A,Hn),t(A,ir),t(A,jn),t(A,cr),t(A,Jn),t(A,mr),i(e,ma,l),i(e,q,l),h(et,q,null),t(q,Dn),t(q,dr),t(q,Un),h(oe,q,null),i(e,da,l),i(e,U,l),h(tt,U,null),t(U,Nn),t(U,pr),t(U,zn),t(U,gr),t(U,An),t(U,F),h(rt,F,null),t(F,Fn),t(F,fr),t(F,Pn),t(F,hr),t(F,Sn),t(F,ur),i(e,pa,l),h(at,e,l),i(e,ga,l),i(e,T,l),h(nt,T,null),t(T,Wn),t(T,br),t(T,Bn),t(T,vr),t(T,Vn),t(T,_r),t(T,Gn),h(se,T,null),t(T,Rn),t(T,le),h(ot,le,null),t(le,qn),t(le,Tr),t(T,Yn),t(T,ie),h(st,ie,null),t(ie,On),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,eo),t(T,de),h(ct,de,null),t(de,to),t(de,wr),t(T,ro),t(T,pe),h(mt,pe,null),t(pe,ao),t(pe,yr),t(T,no),t(T,ge),h(dt,ge,null),t(ge,oo),t(ge,Mr),t(T,so),t(T,fe),h(pt,fe,null),t(fe,lo),t(fe,xr),t(T,io),t(T,he),h(gt,he,null),t(he,co),t(he,Lr),t(T,mo),t(T,ue),h(ft,ue,null),t(ue,po),t(ue,Ir),t(T,go),t(T,be),h(ht,be,null),t(be,fo),t(be,Er),t(T,ho),t(T,ve),h(ut,ve,null),t(ve,uo),t(ve,Hr),t(T,bo),t(T,_e),h(bt,_e,null),t(_e,vo),t(_e,jr),i(e,fa,l),i(e,vt,l),i(e,ha,l),i(e,_t,l),i(e,ua,l),h(Tt,e,l),i(e,ba,l),i(e,$t,l),i(e,va,l),h(Ct,e,l),i(e,_a,l),h(kt,e,l),i(e,Ta,l),i(e,H,l),h(wt,H,null),t(H,_o),t(H,Jr),t(H,To),h(Te,H,null),t(H,$o),t(H,$e),h(yt,$e,null),t($e,Co),t($e,Dr),t(H,ko),t(H,Ce),h(Mt,Ce,null),t(Ce,wo),t(Ce,Ur),i(e,$a,l),h(xt,e,l),i(e,Ca,l),i(e,re,l),h(Lt,re,null),t(re,yo),t(re,Nr),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 N={};l&2&&(N.$$scope={dirty:l,ctx:e}),oe.$set(N);const It={};l&2&&(It.$$scope={dirty:l,ctx:e}),se.$set(It);const Et={};l&2&&(Et.$$scope={dirty:l,ctx:e}),Te.$set(Et)},i(e){wa||(d(y.$$.fragment,e),d(De.$$.fragment,e),d(Ne.$$.fragment,e),d(ze.$$.fragment,e),d(Ae.$$.fragment,e),d(Fe.$$.fragment,e),d(Pe.$$.fragment,e),d(Se.$$.fragment,e),d(We.$$.fragment,e),d(Be.$$.fragment,e),d(Ve.$$.fragment,e),d(ne.$$.fragment,e),d(Re.$$.fragment,e),d(qe.$$.fragment,e),d(Ye.$$.fragment,e),d(Oe.$$.fragment,e),d(Xe.$$.fragment,e),d(Ze.$$.fragment,e),d(Qe.$$.fragment,e),d(Ke.$$.fragment,e),d(et.$$.fragment,e),d(oe.$$.fragment,e),d(tt.$$.fragment,e),d(rt.$$.fragment,e),d(at.$$.fragment,e),d(nt.$$.fragment,e),d(se.$$.fragment,e),d(ot.$$.fragment,e),d(st.$$.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(gt.$$.fragment,e),d(ft.$$.fragment,e),d(ht.$$.fragment,e),d(ut.$$.fragment,e),d(bt.$$.fragment,e),d(Tt.$$.fragment,e),d(Ct.$$.fragment,e),d(kt.$$.fragment,e),d(wt.$$.fragment,e),d(Te.$$.fragment,e),d(yt.$$.fragment,e),d(Mt.$$.fragment,e),d(xt.$$.fragment,e),d(Lt.$$.fragment,e),wa=!0)},o(e){p(y.$$.fragment,e),p(De.$$.fragment,e),p(Ne.$$.fragment,e),p(ze.$$.fragment,e),p(Ae.$$.fragment,e),p(Fe.$$.fragment,e),p(Pe.$$.fragment,e),p(Se.$$.fragment,e),p(We.$$.fragment,e),p(Be.$$.fragment,e),p(Ve.$$.fragment,e),p(ne.$$.fragment,e),p(Re.$$.fragment,e),p(qe.$$.fragment,e),p(Ye.$$.fragment,e),p(Oe.$$.fragment,e),p(Xe.$$.fragment,e),p(Ze.$$.fragment,e),p(Qe.$$.fragment,e),p(Ke.$$.fragment,e),p(et.$$.fragment,e),p(oe.$$.fragment,e),p(tt.$$.fragment,e),p(rt.$$.fragment,e),p(at.$$.fragment,e),p(nt.$$.fragment,e),p(se.$$.fragment,e),p(ot.$$.fragment,e),p(st.$$.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(gt.$$.fragment,e),p(ft.$$.fragment,e),p(ht.$$.fragment,e),p(ut.$$.fragment,e),p(bt.$$.fragment,e),p(Tt.$$.fragment,e),p(Ct.$$.fragment,e),p(kt.$$.fragment,e),p(wt.$$.fragment,e),p(Te.$$.fragment,e),p(yt.$$.fragment,e),p(Mt.$$.fragment,e),p(xt.$$.fragment,e),p(Lt.$$.fragment,e),wa=!1},d(e){e&&(n(x),n(b),n(k),n(v),n(M),n(E),n(Ie),n(Gr),n(Ee),n(Rr),n(He),n(qr),n(je),n(Yr),n(Je),n(Or),n(Xr),n(Ue),n(Zr),n(P),n(Qr),n(X),n(Kr),n(Z),n(ea),n(Q),n(ta),n(S),n(ra),n(K),n(aa),n(W),n(na),n(V),n(oa),n(ee),n(sa),n(te),n(la),n(G),n(ia),n(D),n(ca),n(R),n(ma),n(q),n(da),n(U),n(pa),n(ga),n(T),n(fa),n(vt),n(ha),n(_t),n(ua),n(ba),n($t),n(va),n(_a),n(Ta),n(H),n($a),n(Ca),n(re),n(ka),n(Br)),n(m),u(y,e),u(De,e),u(Ne),u(ze),u(Ae),u(Fe),u(Pe),u(Se),u(We),u(Be),u(Ve),u(ne),u(Re),u(qe),u(Ye),u(Oe),u(Xe),u(Ze),u(Qe),u(Ke),u(et),u(oe),u(tt),u(rt),u(at,e),u(nt),u(se),u(ot),u(st),u(lt),u(it),u(ct),u(mt),u(dt),u(pt),u(gt),u(ft),u(ht),u(ut),u(bt),u(Tt,e),u(Ct,e),u(kt,e),u(wt),u(Te),u(yt),u(Mt),u(xt,e),u(Lt)}}}const ml='{"title":"Callbacks","local":"callbacks","sections":[{"title":"可用的Callbacks","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(I){return Qs(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class _l extends Gs{constructor(m){super(),Rs(this,m,dl,cl,Vs,{})}}export{_l as component};
