import{s as rl,c as sl,u as ll,g as il,d as cl,o as ml,n as Qa}from"../chunks/scheduler.9991993c.js";import{S as al,i as nl,r as f,u as g,v as h,d,t as p,w as u,g as o,m as Qs,s as r,h as s,j as v,n as Ks,f as n,c as a,k as C,a as i,y as t,o as dl,A as pl,x as c}from"../chunks/index.7fc9a5e7.js";import{T as ol}from"../chunks/Tip.9de92fc6.js";import{D as $}from"../chunks/Docstring.0d7e3ebb.js";import{C as Za}from"../chunks/CodeBlock.e11cba92.js";import{E as el}from"../chunks/ExampleCodeBlock.46b9776a.js";import{H as tl,E as fl}from"../chunks/EditOnGithub.84ab7f0e.js";function gl(I){let m,M,b,w,x;const _=I[1].default,y=sl(_,I,I[2],null);return{c(){m=o("p"),M=Qs("Deprecated in "),b=Qs(I[0]),w=r(),y&&y.c(),this.h()},l(L){m=s(L,"P",{class:!0});var E=v(m);M=Ks(E,"Deprecated in "),b=Ks(E,I[0]),E.forEach(n),w=a(L),y&&y.l(L),this.h()},h(){C(m,"class","font-medium")},m(L,E){i(L,m,E),t(m,M),t(m,b),i(L,w,E),y&&y.m(L,E),x=!0},p(L,E){(!x||E&1)&&dl(b,L[0]),y&&y.p&&(!x||E&4)&&ll(y,_,L,L[2],x?cl(_,L[2],E,null):il(L[2]),null)},i(L){x||(d(y,L),x=!0)},o(L){p(y,L),x=!1},d(L){L&&(n(m),n(w)),y&&y.d(L)}}}function hl(I){let m,M;return m=new ol({props:{warning:!0,$$slots:{default:[gl]},$$scope:{ctx:I}}}),{c(){f(m.$$.fragment)},l(b){g(m.$$.fragment,b)},m(b,w){h(m,b,w),M=!0},p(b,[w]){const x={};w&5&&(x.$$scope={dirty:w,ctx:b}),m.$set(x)},i(b){M||(d(m.$$.fragment,b),M=!0)},o(b){p(m.$$.fragment,b),M=!1},d(b){u(m,b)}}}function ul(I,m,M){let{$$slots:b={},$$scope:w}=m,{version:x}=m;return I.$$set=_=>{"version"in _&&M(0,x=_.version),"$$scope"in _&&M(2,w=_.$$scope)},[x,b,w]}class bl extends al{constructor(m){super(),nl(this,m,ul,hl,rl,{version:0})}}function vl(I){let m,M="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=M},l(b){m=s(b,"P",{"data-svelte-h":!0}),c(m)!=="svelte-fxlq1n"&&(m.innerHTML=M)},m(b,w){i(b,m,w)},p:Qa,d(b){b&&n(m)}}}function _l(I){let m,M="Example:",b,w,x;return w=new Za({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=M,b=r(),f(w.$$.fragment)},l(_){m=s(_,"P",{"data-svelte-h":!0}),c(m)!=="svelte-11lpom8"&&(m.textContent=M),b=a(_),g(w.$$.fragment,_)},m(_,y){i(_,m,y),i(_,b,y),h(w,_,y),x=!0},p:Qa,i(_){x||(d(w.$$.fragment,_),x=!0)},o(_){p(w.$$.fragment,_),x=!1},d(_){_&&(n(m),n(b)),u(w,_)}}}function Tl(I){let m,M="Example:",b,w,x;return w=new Za({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=M,b=r(),f(w.$$.fragment)},l(_){m=s(_,"P",{"data-svelte-h":!0}),c(m)!=="svelte-11lpom8"&&(m.textContent=M),b=a(_),g(w.$$.fragment,_)},m(_,y){i(_,m,y),i(_,b,y),h(w,_,y),x=!0},p:Qa,i(_){x||(d(w.$$.fragment,_),x=!0)},o(_){p(w.$$.fragment,_),x=!1},d(_){_&&(n(m),n(b)),u(w,_)}}}function Cl(I){let m,M=`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=M},l(b){m=s(b,"P",{"data-svelte-h":!0}),c(m)!=="svelte-rhwh6p"&&(m.innerHTML=M)},m(b,w){i(b,m,w)},p:Qa,d(b){b&&n(m)}}}function $l(I){let m,M,b,w,x,_,y,L="Callbacks可以用来自定义PyTorch [Trainer]中训练循环行为的对象（此功能尚未在TensorFlow中实现），该对象可以检查训练循环状态（用于进度报告、在TensorBoard或其他ML平台上记录日志等），并做出决策（例如提前停止）。",E,Ee,Jo='Callbacks是“只读”的代码片段，除了它们返回的[TrainerControl]对象外，它们不能更改训练循环中的任何内容。对于需要更改训练循环的自定义，您应该继承[Trainer]并重载您需要的方法（有关示例，请参见<a href="trainer">trainer</a>）。',Or,He,Do="默认情况下，<code>TrainingArguments.report_to</code> 设置为”all”，然后[Trainer]将使用以下callbacks。",Yr,je,zo='<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>',Xr,Je,Uo="如果安装了一个软件包，但您不希望使用相关的集成，您可以将 <code>TrainingArguments.report_to</code> 更改为仅包含您想要使用的集成的列表（例如 <code>[&quot;azure_ml&quot;, &quot;wandb&quot;]</code>）。",Zr,De,No='实现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>对训练循环执行一些操作。',Qr,ze,Kr,Ue,Ao='这里是库里可用<a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>的列表：',ea,F,Ne,Ka,Dt,Po='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>.',en,j,Ae,tn,zt,Fo="Setup the optional Comet.ml integration.",rn,Ut,So="Environment:",an,Nt,Wo=`<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>`,nn,At,Bo=`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>.`,ta,X,Pe,on,Pt,Ro='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.',ra,Z,Fe,sn,Ft,Vo='A bare <a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that just prints the logs.',aa,Q,Se,ln,St,Go='A <a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that displays the progress of training or evaluation.',na,S,We,cn,Wt,qo='A <a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that handles early stopping.',mn,Bt,Oo=`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.`,oa,K,Be,dn,Rt,Yo='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>.',sa,W,Re,pn,Vt,Xo='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>.',fn,J,Ve,gn,Gt,Zo="Setup the optional Weights &amp; Biases (<em>wandb</em>) integration.",hn,qt,Qo=`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:`,un,Ot,Ko="Environment:",bn,B,Ge,Yt,es=`<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.`,vn,ne,_n,Xt,ts=`<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>`,Tn,Zt,rs=`<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>`,Cn,Qt,as=`<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>`,la,R,qe,$n,Kt,ns=`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>.`,kn,N,Oe,wn,er,os="Setup the optional MLflow integration.",xn,tr,ss="Environment:",yn,rr,ls=`<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_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>`,ia,ee,Ye,Mn,ar,is='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>.',ca,te,Xe,Ln,nr,cs='A <a href="/docs/transformers/main/zh/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that tracks the CO2 emission of training.',ma,V,Ze,In,or,ms='TrainerCallback that sends the logs to <a href="https://app.neptune.ai" rel="nofollow">Neptune</a>.',En,sr,ds=`For instructions and examples, see the <a href="https://docs.neptune.ai/integrations/transformers" rel="nofollow">Transformers integration
guide</a> in the Neptune documentation.`,da,D,Qe,Hn,lr,ps='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>.',jn,ir,fs="Environment:",Jn,cr,gs=`<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>`,pa,G,Ke,Dn,mr,hs='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>',zn,A,et,Un,dr,us="Setup the DagsHub’s Logging integration.",Nn,pr,bs="Environment:",An,fr,vs=`<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>`,fa,q,tt,Pn,gr,_s=`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.`,Fn,oe,ga,z,rt,Sn,hr,Ts='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>.',Wn,ur,Cs=`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>.`,Bn,P,at,Rn,br,$s=`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>.`,Vn,vr,ks="Environment:",Gn,_r,ws=`<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>`,ha,nt,xs="## TrainerCallback[[transformers.TrainerCallback]]",ua,T,ot,qn,Tr,ys=`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:`,On,Cr,Ms=`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.`,Yn,$r,Ls=`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>.`,Xn,se,Zn,le,st,Qn,kr,Is="Event called at the beginning of an epoch.",Kn,ie,lt,eo,wr,Es="Event called at the end of an epoch.",to,ce,it,ro,xr,Hs="Event called after an evaluation phase.",ao,me,ct,no,yr,js="Event called at the end of the initialization of the <code>Trainer</code>.",oo,de,mt,so,Mr,Js="Event called after logging the last logs.",lo,pe,dt,io,Lr,Ds="Event called after the optimizer step but before gradients are zeroed out. Useful for monitoring gradients.",co,fe,pt,mo,Ir,zs="Event called after a successful prediction.",po,ge,ft,fo,Er,Us="Event called after a prediction step.",go,he,gt,ho,Hr,Ns="Event called after a checkpoint save.",uo,ue,ht,bo,jr,As=`Event called at the beginning of a training step. If using gradient accumulation, one training step might take
several inputs.`,vo,be,ut,_o,Jr,Ps=`Event called at the end of a training step. If using gradient accumulation, one training step might take
several inputs.`,To,ve,bt,Co,Dr,Fs="Event called at the end of an substep during gradient accumulation.",$o,_e,vt,ko,zr,Ss="Event called at the beginning of training.",wo,Te,_t,xo,Ur,Ws="Event called at the end of training.",ba,Tt,Bs="以下是如何使用PyTorch注册自定义callback的示例：",va,Ct,Rs="<code>Trainer</code>:",_a,$t,Ta,kt,Vs="注册callback的另一种方式是调用 <code>trainer.add_callback()</code>，如下所示：",Ca,wt,$a,xt,Gs="## TrainerState[[transformers.TrainerState]]",ka,H,yt,yo,Nr,qs=`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>.`,Mo,Ce,Lo,$e,Mt,Io,Ar,Os="Create an instance from the content of <code>json_path</code>.",Eo,ke,Lt,Ho,Pr,Ys="Save the content of this instance in JSON format inside <code>json_path</code>.",wa,It,Xs="## TrainerControl[[transformers.TrainerControl]]",xa,re,Et,jo,Fr,Zs=`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.`,ya,Ht,Ma,qr,La;return x=new tl({props:{title:"Callbacks",local:"callbacks",headingTag:"h1"}}),ze=new tl({props:{title:"可用的Callbacks",local:"transformers.integrations.CometCallback",headingTag:"h2"}}),Ne=new $({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#L937"}}),Ae=new $({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#L948"}}),Pe=new $({props:{name:"class transformers.DefaultFlowCallback",anchor:"transformers.DefaultFlowCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_callback.py#L526"}}),Fe=new $({props:{name:"class transformers.PrinterCallback",anchor:"transformers.PrinterCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_callback.py#L634"}}),Se=new $({props:{name:"class transformers.ProgressCallback",anchor:"transformers.ProgressCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_callback.py#L579"}}),We=new $({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/main/src/transformers/trainer_callback.py#L645"}}),Be=new $({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#L591"}}),Re=new $({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#L693"}}),Ve=new $({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#L718"}}),ne=new bl({props:{version:"5.0",$$slots:{default:[vl]},$$scope:{ctx:I}}}),qe=new $({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#L1037"}}),Oe=new $({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#L1056"}}),Ye=new $({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#L1014"}}),Xe=new $({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#L1538"}}),Ze=new $({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/main/src/transformers/integrations/integration_utils.py#L1265"}}),Qe=new $({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#L1572"}}),Ke=new $({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#L1205"}}),et=new $({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#L1219"}}),tt=new $({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#L1825"}}),oe=new el({props:{anchor:"transformers.integrations.FlyteCallback.example",$$slots:{default:[_l]},$$scope:{ctx:I}}}),rt=new $({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 <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#L1888"}}),at=new $({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#L1929"}}),ot=new $({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 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/main/src/transformers/trainer_callback.py#L260"}}),se=new el({props:{anchor:"transformers.TrainerCallback.example",$$slots:{default:[Tl]},$$scope:{ctx:I}}}),st=new $({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#L329"}}),lt=new $({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#L335"}}),it=new $({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#L367"}}),ct=new $({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#L311"}}),mt=new $({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#L385"}}),dt=new $({props:{name:"on_optimizer_step",anchor:"transformers.TrainerCallback.on_optimizer_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#L348"}}),pt=new $({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#L373"}}),ft=new $({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#L391"}}),gt=new $({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#L379"}}),ht=new $({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#L341"}}),ut=new $({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#L360"}}),bt=new $({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#L354"}}),vt=new $({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#L317"}}),_t=new $({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#L323"}}),$t=new Za({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}}),wt=new Za({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}}),yt=new $({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/main/src/transformers/trainer_callback.py#L36"}}),Ce=new ol({props:{$$slots:{default:[Cl]},$$scope:{ctx:I}}}),Mt=new $({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#L146"}}),Lt=new $({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#L140"}}),Et=new $({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#L198"}}),Ht=new fl({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/zh/main_classes/callback.md"}}),{c(){m=o("meta"),M=r(),b=o("p"),w=r(),f(x.$$.fragment),_=r(),y=o("p"),y.textContent=L,E=r(),Ee=o("p"),Ee.innerHTML=Jo,Or=r(),He=o("p"),He.innerHTML=Do,Yr=r(),je=o("ul"),je.innerHTML=zo,Xr=r(),Je=o("p"),Je.innerHTML=Uo,Zr=r(),De=o("p"),De.innerHTML=No,Qr=r(),f(ze.$$.fragment),Kr=r(),Ue=o("p"),Ue.innerHTML=Ao,ea=r(),F=o("div"),f(Ne.$$.fragment),Ka=r(),Dt=o("p"),Dt.innerHTML=Po,en=r(),j=o("div"),f(Ae.$$.fragment),tn=r(),zt=o("p"),zt.textContent=Fo,rn=r(),Ut=o("p"),Ut.textContent=So,an=r(),Nt=o("ul"),Nt.innerHTML=Wo,nn=r(),At=o("p"),At.innerHTML=Bo,ta=r(),X=o("div"),f(Pe.$$.fragment),on=r(),Pt=o("p"),Pt.innerHTML=Ro,ra=r(),Z=o("div"),f(Fe.$$.fragment),sn=r(),Ft=o("p"),Ft.innerHTML=Vo,aa=r(),Q=o("div"),f(Se.$$.fragment),ln=r(),St=o("p"),St.innerHTML=Go,na=r(),S=o("div"),f(We.$$.fragment),cn=r(),Wt=o("p"),Wt.innerHTML=qo,mn=r(),Bt=o("p"),Bt.innerHTML=Oo,oa=r(),K=o("div"),f(Be.$$.fragment),dn=r(),Rt=o("p"),Rt.innerHTML=Yo,sa=r(),W=o("div"),f(Re.$$.fragment),pn=r(),Vt=o("p"),Vt.innerHTML=Xo,fn=r(),J=o("div"),f(Ve.$$.fragment),gn=r(),Gt=o("p"),Gt.innerHTML=Zo,hn=r(),qt=o("p"),qt.innerHTML=Qo,un=r(),Ot=o("p"),Ot.textContent=Ko,bn=r(),B=o("ul"),Ge=o("li"),Yt=o("p"),Yt.innerHTML=es,vn=r(),f(ne.$$.fragment),_n=r(),Xt=o("li"),Xt.innerHTML=ts,Tn=r(),Zt=o("li"),Zt.innerHTML=rs,Cn=r(),Qt=o("li"),Qt.innerHTML=as,la=r(),R=o("div"),f(qe.$$.fragment),$n=r(),Kt=o("p"),Kt.innerHTML=ns,kn=r(),N=o("div"),f(Oe.$$.fragment),wn=r(),er=o("p"),er.textContent=os,xn=r(),tr=o("p"),tr.textContent=ss,yn=r(),rr=o("ul"),rr.innerHTML=ls,ia=r(),ee=o("div"),f(Ye.$$.fragment),Mn=r(),ar=o("p"),ar.innerHTML=is,ca=r(),te=o("div"),f(Xe.$$.fragment),Ln=r(),nr=o("p"),nr.innerHTML=cs,ma=r(),V=o("div"),f(Ze.$$.fragment),In=r(),or=o("p"),or.innerHTML=ms,En=r(),sr=o("p"),sr.innerHTML=ds,da=r(),D=o("div"),f(Qe.$$.fragment),Hn=r(),lr=o("p"),lr.innerHTML=ps,jn=r(),ir=o("p"),ir.textContent=fs,Jn=r(),cr=o("ul"),cr.innerHTML=gs,pa=r(),G=o("div"),f(Ke.$$.fragment),Dn=r(),mr=o("p"),mr.innerHTML=hs,zn=r(),A=o("div"),f(et.$$.fragment),Un=r(),dr=o("p"),dr.textContent=us,Nn=r(),pr=o("p"),pr.textContent=bs,An=r(),fr=o("ul"),fr.innerHTML=vs,fa=r(),q=o("div"),f(tt.$$.fragment),Pn=r(),gr=o("p"),gr.innerHTML=_s,Fn=r(),f(oe.$$.fragment),ga=r(),z=o("div"),f(rt.$$.fragment),Sn=r(),hr=o("p"),hr.innerHTML=Ts,Wn=r(),ur=o("p"),ur.innerHTML=Cs,Bn=r(),P=o("div"),f(at.$$.fragment),Rn=r(),br=o("p"),br.innerHTML=$s,Vn=r(),vr=o("p"),vr.textContent=ks,Gn=r(),_r=o("ul"),_r.innerHTML=ws,ha=r(),nt=o("p"),nt.textContent=xs,ua=r(),T=o("div"),f(ot.$$.fragment),qn=r(),Tr=o("p"),Tr.textContent=ys,On=r(),Cr=o("p"),Cr.innerHTML=Ms,Yn=r(),$r=o("p"),$r.innerHTML=Ls,Xn=r(),f(se.$$.fragment),Zn=r(),le=o("div"),f(st.$$.fragment),Qn=r(),kr=o("p"),kr.textContent=Is,Kn=r(),ie=o("div"),f(lt.$$.fragment),eo=r(),wr=o("p"),wr.textContent=Es,to=r(),ce=o("div"),f(it.$$.fragment),ro=r(),xr=o("p"),xr.textContent=Hs,ao=r(),me=o("div"),f(ct.$$.fragment),no=r(),yr=o("p"),yr.innerHTML=js,oo=r(),de=o("div"),f(mt.$$.fragment),so=r(),Mr=o("p"),Mr.textContent=Js,lo=r(),pe=o("div"),f(dt.$$.fragment),io=r(),Lr=o("p"),Lr.textContent=Ds,co=r(),fe=o("div"),f(pt.$$.fragment),mo=r(),Ir=o("p"),Ir.textContent=zs,po=r(),ge=o("div"),f(ft.$$.fragment),fo=r(),Er=o("p"),Er.textContent=Us,go=r(),he=o("div"),f(gt.$$.fragment),ho=r(),Hr=o("p"),Hr.textContent=Ns,uo=r(),ue=o("div"),f(ht.$$.fragment),bo=r(),jr=o("p"),jr.textContent=As,vo=r(),be=o("div"),f(ut.$$.fragment),_o=r(),Jr=o("p"),Jr.textContent=Ps,To=r(),ve=o("div"),f(bt.$$.fragment),Co=r(),Dr=o("p"),Dr.textContent=Fs,$o=r(),_e=o("div"),f(vt.$$.fragment),ko=r(),zr=o("p"),zr.textContent=Ss,wo=r(),Te=o("div"),f(_t.$$.fragment),xo=r(),Ur=o("p"),Ur.textContent=Ws,ba=r(),Tt=o("p"),Tt.textContent=Bs,va=r(),Ct=o("p"),Ct.innerHTML=Rs,_a=r(),f($t.$$.fragment),Ta=r(),kt=o("p"),kt.innerHTML=Vs,Ca=r(),f(wt.$$.fragment),$a=r(),xt=o("p"),xt.textContent=Gs,ka=r(),H=o("div"),f(yt.$$.fragment),yo=r(),Nr=o("p"),Nr.innerHTML=qs,Mo=r(),f(Ce.$$.fragment),Lo=r(),$e=o("div"),f(Mt.$$.fragment),Io=r(),Ar=o("p"),Ar.innerHTML=Os,Eo=r(),ke=o("div"),f(Lt.$$.fragment),Ho=r(),Pr=o("p"),Pr.innerHTML=Ys,wa=r(),It=o("p"),It.textContent=Xs,xa=r(),re=o("div"),f(Et.$$.fragment),jo=r(),Fr=o("p"),Fr.innerHTML=Zs,ya=r(),f(Ht.$$.fragment),Ma=r(),qr=o("p"),this.h()},l(e){const l=pl("svelte-u9bgzb",document.head);m=s(l,"META",{name:!0,content:!0}),l.forEach(n),M=a(e),b=s(e,"P",{}),v(b).forEach(n),w=a(e),g(x.$$.fragment,e),_=a(e),y=s(e,"P",{"data-svelte-h":!0}),c(y)!=="svelte-ixc7mw"&&(y.textContent=L),E=a(e),Ee=s(e,"P",{"data-svelte-h":!0}),c(Ee)!=="svelte-1o90q5b"&&(Ee.innerHTML=Jo),Or=a(e),He=s(e,"P",{"data-svelte-h":!0}),c(He)!=="svelte-w2h063"&&(He.innerHTML=Do),Yr=a(e),je=s(e,"UL",{"data-svelte-h":!0}),c(je)!=="svelte-3zyy36"&&(je.innerHTML=zo),Xr=a(e),Je=s(e,"P",{"data-svelte-h":!0}),c(Je)!=="svelte-cfm0j7"&&(Je.innerHTML=Uo),Zr=a(e),De=s(e,"P",{"data-svelte-h":!0}),c(De)!=="svelte-16d2yxx"&&(De.innerHTML=No),Qr=a(e),g(ze.$$.fragment,e),Kr=a(e),Ue=s(e,"P",{"data-svelte-h":!0}),c(Ue)!=="svelte-1qkta70"&&(Ue.innerHTML=Ao),ea=a(e),F=s(e,"DIV",{class:!0});var ae=v(F);g(Ne.$$.fragment,ae),Ka=a(ae),Dt=s(ae,"P",{"data-svelte-h":!0}),c(Dt)!=="svelte-hx3bnd"&&(Dt.innerHTML=Po),en=a(ae),j=s(ae,"DIV",{class:!0});var U=v(j);g(Ae.$$.fragment,U),tn=a(U),zt=s(U,"P",{"data-svelte-h":!0}),c(zt)!=="svelte-1bfkm9x"&&(zt.textContent=Fo),rn=a(U),Ut=s(U,"P",{"data-svelte-h":!0}),c(Ut)!=="svelte-1fkshtn"&&(Ut.textContent=So),an=a(U),Nt=s(U,"UL",{"data-svelte-h":!0}),c(Nt)!=="svelte-12drq5x"&&(Nt.innerHTML=Wo),nn=a(U),At=s(U,"P",{"data-svelte-h":!0}),c(At)!=="svelte-1faq0a7"&&(At.innerHTML=Bo),U.forEach(n),ae.forEach(n),ta=a(e),X=s(e,"DIV",{class:!0});var jt=v(X);g(Pe.$$.fragment,jt),on=a(jt),Pt=s(jt,"P",{"data-svelte-h":!0}),c(Pt)!=="svelte-gp0ssq"&&(Pt.innerHTML=Ro),jt.forEach(n),ra=a(e),Z=s(e,"DIV",{class:!0});var Jt=v(Z);g(Fe.$$.fragment,Jt),sn=a(Jt),Ft=s(Jt,"P",{"data-svelte-h":!0}),c(Ft)!=="svelte-uq878j"&&(Ft.innerHTML=Vo),Jt.forEach(n),aa=a(e),Q=s(e,"DIV",{class:!0});var Ia=v(Q);g(Se.$$.fragment,Ia),ln=a(Ia),St=s(Ia,"P",{"data-svelte-h":!0}),c(St)!=="svelte-1f4frtw"&&(St.innerHTML=Go),Ia.forEach(n),na=a(e),S=s(e,"DIV",{class:!0});var Sr=v(S);g(We.$$.fragment,Sr),cn=a(Sr),Wt=s(Sr,"P",{"data-svelte-h":!0}),c(Wt)!=="svelte-1q076ul"&&(Wt.innerHTML=qo),mn=a(Sr),Bt=s(Sr,"P",{"data-svelte-h":!0}),c(Bt)!=="svelte-xsl9yl"&&(Bt.innerHTML=Oo),Sr.forEach(n),oa=a(e),K=s(e,"DIV",{class:!0});var Ea=v(K);g(Be.$$.fragment,Ea),dn=a(Ea),Rt=s(Ea,"P",{"data-svelte-h":!0}),c(Rt)!=="svelte-1druwpm"&&(Rt.innerHTML=Yo),Ea.forEach(n),sa=a(e),W=s(e,"DIV",{class:!0});var Wr=v(W);g(Re.$$.fragment,Wr),pn=a(Wr),Vt=s(Wr,"P",{"data-svelte-h":!0}),c(Vt)!=="svelte-31gd2x"&&(Vt.innerHTML=Xo),fn=a(Wr),J=s(Wr,"DIV",{class:!0});var O=v(J);g(Ve.$$.fragment,O),gn=a(O),Gt=s(O,"P",{"data-svelte-h":!0}),c(Gt)!=="svelte-op70zs"&&(Gt.innerHTML=Zo),hn=a(O),qt=s(O,"P",{"data-svelte-h":!0}),c(qt)!=="svelte-m2rt7w"&&(qt.innerHTML=Qo),un=a(O),Ot=s(O,"P",{"data-svelte-h":!0}),c(Ot)!=="svelte-1fkshtn"&&(Ot.textContent=Ko),bn=a(O),B=s(O,"UL",{});var we=v(B);Ge=s(we,"LI",{});var Ha=v(Ge);Yt=s(Ha,"P",{"data-svelte-h":!0}),c(Yt)!=="svelte-py3r3s"&&(Yt.innerHTML=es),vn=a(Ha),g(ne.$$.fragment,Ha),Ha.forEach(n),_n=a(we),Xt=s(we,"LI",{"data-svelte-h":!0}),c(Xt)!=="svelte-dx3m30"&&(Xt.innerHTML=ts),Tn=a(we),Zt=s(we,"LI",{"data-svelte-h":!0}),c(Zt)!=="svelte-n1uh6c"&&(Zt.innerHTML=rs),Cn=a(we),Qt=s(we,"LI",{"data-svelte-h":!0}),c(Qt)!=="svelte-ybo66z"&&(Qt.innerHTML=as),we.forEach(n),O.forEach(n),Wr.forEach(n),la=a(e),R=s(e,"DIV",{class:!0});var Br=v(R);g(qe.$$.fragment,Br),$n=a(Br),Kt=s(Br,"P",{"data-svelte-h":!0}),c(Kt)!=="svelte-n7ixu1"&&(Kt.innerHTML=ns),kn=a(Br),N=s(Br,"DIV",{class:!0});var xe=v(N);g(Oe.$$.fragment,xe),wn=a(xe),er=s(xe,"P",{"data-svelte-h":!0}),c(er)!=="svelte-nmg16f"&&(er.textContent=os),xn=a(xe),tr=s(xe,"P",{"data-svelte-h":!0}),c(tr)!=="svelte-1fkshtn"&&(tr.textContent=ss),yn=a(xe),rr=s(xe,"UL",{"data-svelte-h":!0}),c(rr)!=="svelte-o83nc7"&&(rr.innerHTML=ls),xe.forEach(n),Br.forEach(n),ia=a(e),ee=s(e,"DIV",{class:!0});var ja=v(ee);g(Ye.$$.fragment,ja),Mn=a(ja),ar=s(ja,"P",{"data-svelte-h":!0}),c(ar)!=="svelte-12x8wo2"&&(ar.innerHTML=is),ja.forEach(n),ca=a(e),te=s(e,"DIV",{class:!0});var Ja=v(te);g(Xe.$$.fragment,Ja),Ln=a(Ja),nr=s(Ja,"P",{"data-svelte-h":!0}),c(nr)!=="svelte-42cfla"&&(nr.innerHTML=cs),Ja.forEach(n),ma=a(e),V=s(e,"DIV",{class:!0});var Rr=v(V);g(Ze.$$.fragment,Rr),In=a(Rr),or=s(Rr,"P",{"data-svelte-h":!0}),c(or)!=="svelte-4ag9j6"&&(or.innerHTML=ms),En=a(Rr),sr=s(Rr,"P",{"data-svelte-h":!0}),c(sr)!=="svelte-1mhjcx0"&&(sr.innerHTML=ds),Rr.forEach(n),da=a(e),D=s(e,"DIV",{class:!0});var ye=v(D);g(Qe.$$.fragment,ye),Hn=a(ye),lr=s(ye,"P",{"data-svelte-h":!0}),c(lr)!=="svelte-1n4tkck"&&(lr.innerHTML=ps),jn=a(ye),ir=s(ye,"P",{"data-svelte-h":!0}),c(ir)!=="svelte-1fkshtn"&&(ir.textContent=fs),Jn=a(ye),cr=s(ye,"UL",{"data-svelte-h":!0}),c(cr)!=="svelte-15svthu"&&(cr.innerHTML=gs),ye.forEach(n),pa=a(e),G=s(e,"DIV",{class:!0});var Vr=v(G);g(Ke.$$.fragment,Vr),Dn=a(Vr),mr=s(Vr,"P",{"data-svelte-h":!0}),c(mr)!=="svelte-1e7qmj1"&&(mr.innerHTML=hs),zn=a(Vr),A=s(Vr,"DIV",{class:!0});var Me=v(A);g(et.$$.fragment,Me),Un=a(Me),dr=s(Me,"P",{"data-svelte-h":!0}),c(dr)!=="svelte-1wbmj3"&&(dr.textContent=us),Nn=a(Me),pr=s(Me,"P",{"data-svelte-h":!0}),c(pr)!=="svelte-1fkshtn"&&(pr.textContent=bs),An=a(Me),fr=s(Me,"UL",{"data-svelte-h":!0}),c(fr)!=="svelte-dna85o"&&(fr.innerHTML=vs),Me.forEach(n),Vr.forEach(n),fa=a(e),q=s(e,"DIV",{class:!0});var Gr=v(q);g(tt.$$.fragment,Gr),Pn=a(Gr),gr=s(Gr,"P",{"data-svelte-h":!0}),c(gr)!=="svelte-55h6x2"&&(gr.innerHTML=_s),Fn=a(Gr),g(oe.$$.fragment,Gr),Gr.forEach(n),ga=a(e),z=s(e,"DIV",{class:!0});var Le=v(z);g(rt.$$.fragment,Le),Sn=a(Le),hr=s(Le,"P",{"data-svelte-h":!0}),c(hr)!=="svelte-l9ai2f"&&(hr.innerHTML=Ts),Wn=a(Le),ur=s(Le,"P",{"data-svelte-h":!0}),c(ur)!=="svelte-eu3kj7"&&(ur.innerHTML=Cs),Bn=a(Le),P=s(Le,"DIV",{class:!0});var Ie=v(P);g(at.$$.fragment,Ie),Rn=a(Ie),br=s(Ie,"P",{"data-svelte-h":!0}),c(br)!=="svelte-jjkenj"&&(br.innerHTML=$s),Vn=a(Ie),vr=s(Ie,"P",{"data-svelte-h":!0}),c(vr)!=="svelte-1fkshtn"&&(vr.textContent=ks),Gn=a(Ie),_r=s(Ie,"UL",{"data-svelte-h":!0}),c(_r)!=="svelte-crnavn"&&(_r.innerHTML=ws),Ie.forEach(n),Le.forEach(n),ha=a(e),nt=s(e,"P",{"data-svelte-h":!0}),c(nt)!=="svelte-4e1hmk"&&(nt.textContent=xs),ua=a(e),T=s(e,"DIV",{class:!0});var k=v(T);g(ot.$$.fragment,k),qn=a(k),Tr=s(k,"P",{"data-svelte-h":!0}),c(Tr)!=="svelte-14xg00o"&&(Tr.textContent=ys),On=a(k),Cr=s(k,"P",{"data-svelte-h":!0}),c(Cr)!=="svelte-1xprdvt"&&(Cr.innerHTML=Ms),Yn=a(k),$r=s(k,"P",{"data-svelte-h":!0}),c($r)!=="svelte-pbk3nm"&&($r.innerHTML=Ls),Xn=a(k),g(se.$$.fragment,k),Zn=a(k),le=s(k,"DIV",{class:!0});var Da=v(le);g(st.$$.fragment,Da),Qn=a(Da),kr=s(Da,"P",{"data-svelte-h":!0}),c(kr)!=="svelte-106889p"&&(kr.textContent=Is),Da.forEach(n),Kn=a(k),ie=s(k,"DIV",{class:!0});var za=v(ie);g(lt.$$.fragment,za),eo=a(za),wr=s(za,"P",{"data-svelte-h":!0}),c(wr)!=="svelte-oshcpj"&&(wr.textContent=Es),za.forEach(n),to=a(k),ce=s(k,"DIV",{class:!0});var Ua=v(ce);g(it.$$.fragment,Ua),ro=a(Ua),xr=s(Ua,"P",{"data-svelte-h":!0}),c(xr)!=="svelte-1o0xh73"&&(xr.textContent=Hs),Ua.forEach(n),ao=a(k),me=s(k,"DIV",{class:!0});var Na=v(me);g(ct.$$.fragment,Na),no=a(Na),yr=s(Na,"P",{"data-svelte-h":!0}),c(yr)!=="svelte-hzqkde"&&(yr.innerHTML=js),Na.forEach(n),oo=a(k),de=s(k,"DIV",{class:!0});var Aa=v(de);g(mt.$$.fragment,Aa),so=a(Aa),Mr=s(Aa,"P",{"data-svelte-h":!0}),c(Mr)!=="svelte-10eiwg0"&&(Mr.textContent=Js),Aa.forEach(n),lo=a(k),pe=s(k,"DIV",{class:!0});var Pa=v(pe);g(dt.$$.fragment,Pa),io=a(Pa),Lr=s(Pa,"P",{"data-svelte-h":!0}),c(Lr)!=="svelte-1mpbj2z"&&(Lr.textContent=Ds),Pa.forEach(n),co=a(k),fe=s(k,"DIV",{class:!0});var Fa=v(fe);g(pt.$$.fragment,Fa),mo=a(Fa),Ir=s(Fa,"P",{"data-svelte-h":!0}),c(Ir)!=="svelte-1df7x4n"&&(Ir.textContent=zs),Fa.forEach(n),po=a(k),ge=s(k,"DIV",{class:!0});var Sa=v(ge);g(ft.$$.fragment,Sa),fo=a(Sa),Er=s(Sa,"P",{"data-svelte-h":!0}),c(Er)!=="svelte-18swygp"&&(Er.textContent=Us),Sa.forEach(n),go=a(k),he=s(k,"DIV",{class:!0});var Wa=v(he);g(gt.$$.fragment,Wa),ho=a(Wa),Hr=s(Wa,"P",{"data-svelte-h":!0}),c(Hr)!=="svelte-19xp05v"&&(Hr.textContent=Ns),Wa.forEach(n),uo=a(k),ue=s(k,"DIV",{class:!0});var Ba=v(ue);g(ht.$$.fragment,Ba),bo=a(Ba),jr=s(Ba,"P",{"data-svelte-h":!0}),c(jr)!=="svelte-7af61p"&&(jr.textContent=As),Ba.forEach(n),vo=a(k),be=s(k,"DIV",{class:!0});var Ra=v(be);g(ut.$$.fragment,Ra),_o=a(Ra),Jr=s(Ra,"P",{"data-svelte-h":!0}),c(Jr)!=="svelte-8cdxjr"&&(Jr.textContent=Ps),Ra.forEach(n),To=a(k),ve=s(k,"DIV",{class:!0});var Va=v(ve);g(bt.$$.fragment,Va),Co=a(Va),Dr=s(Va,"P",{"data-svelte-h":!0}),c(Dr)!=="svelte-sluvs0"&&(Dr.textContent=Fs),Va.forEach(n),$o=a(k),_e=s(k,"DIV",{class:!0});var Ga=v(_e);g(vt.$$.fragment,Ga),ko=a(Ga),zr=s(Ga,"P",{"data-svelte-h":!0}),c(zr)!=="svelte-6bvy6d"&&(zr.textContent=Ss),Ga.forEach(n),wo=a(k),Te=s(k,"DIV",{class:!0});var qa=v(Te);g(_t.$$.fragment,qa),xo=a(qa),Ur=s(qa,"P",{"data-svelte-h":!0}),c(Ur)!=="svelte-zzwxsv"&&(Ur.textContent=Ws),qa.forEach(n),k.forEach(n),ba=a(e),Tt=s(e,"P",{"data-svelte-h":!0}),c(Tt)!=="svelte-87dqmt"&&(Tt.textContent=Bs),va=a(e),Ct=s(e,"P",{"data-svelte-h":!0}),c(Ct)!=="svelte-17720zy"&&(Ct.innerHTML=Rs),_a=a(e),g($t.$$.fragment,e),Ta=a(e),kt=s(e,"P",{"data-svelte-h":!0}),c(kt)!=="svelte-u9gp17"&&(kt.innerHTML=Vs),Ca=a(e),g(wt.$$.fragment,e),$a=a(e),xt=s(e,"P",{"data-svelte-h":!0}),c(xt)!=="svelte-140fjes"&&(xt.textContent=Gs),ka=a(e),H=s(e,"DIV",{class:!0});var Y=v(H);g(yt.$$.fragment,Y),yo=a(Y),Nr=s(Y,"P",{"data-svelte-h":!0}),c(Nr)!=="svelte-w7jqtx"&&(Nr.innerHTML=qs),Mo=a(Y),g(Ce.$$.fragment,Y),Lo=a(Y),$e=s(Y,"DIV",{class:!0});var Oa=v($e);g(Mt.$$.fragment,Oa),Io=a(Oa),Ar=s(Oa,"P",{"data-svelte-h":!0}),c(Ar)!=="svelte-hbs6ga"&&(Ar.innerHTML=Os),Oa.forEach(n),Eo=a(Y),ke=s(Y,"DIV",{class:!0});var Ya=v(ke);g(Lt.$$.fragment,Ya),Ho=a(Ya),Pr=s(Ya,"P",{"data-svelte-h":!0}),c(Pr)!=="svelte-dkslae"&&(Pr.innerHTML=Ys),Ya.forEach(n),Y.forEach(n),wa=a(e),It=s(e,"P",{"data-svelte-h":!0}),c(It)!=="svelte-1cmiei4"&&(It.textContent=Xs),xa=a(e),re=s(e,"DIV",{class:!0});var Xa=v(re);g(Et.$$.fragment,Xa),jo=a(Xa),Fr=s(Xa,"P",{"data-svelte-h":!0}),c(Fr)!=="svelte-1o6cnzn"&&(Fr.innerHTML=Zs),Xa.forEach(n),ya=a(e),g(Ht.$$.fragment,e),Ma=a(e),qr=s(e,"P",{}),v(qr).forEach(n),this.h()},h(){C(m,"name","hf:doc:metadata"),C(m,"content",kl),C(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(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,M,l),i(e,b,l),i(e,w,l),h(x,e,l),i(e,_,l),i(e,y,l),i(e,E,l),i(e,Ee,l),i(e,Or,l),i(e,He,l),i(e,Yr,l),i(e,je,l),i(e,Xr,l),i(e,Je,l),i(e,Zr,l),i(e,De,l),i(e,Qr,l),h(ze,e,l),i(e,Kr,l),i(e,Ue,l),i(e,ea,l),i(e,F,l),h(Ne,F,null),t(F,Ka),t(F,Dt),t(F,en),t(F,j),h(Ae,j,null),t(j,tn),t(j,zt),t(j,rn),t(j,Ut),t(j,an),t(j,Nt),t(j,nn),t(j,At),i(e,ta,l),i(e,X,l),h(Pe,X,null),t(X,on),t(X,Pt),i(e,ra,l),i(e,Z,l),h(Fe,Z,null),t(Z,sn),t(Z,Ft),i(e,aa,l),i(e,Q,l),h(Se,Q,null),t(Q,ln),t(Q,St),i(e,na,l),i(e,S,l),h(We,S,null),t(S,cn),t(S,Wt),t(S,mn),t(S,Bt),i(e,oa,l),i(e,K,l),h(Be,K,null),t(K,dn),t(K,Rt),i(e,sa,l),i(e,W,l),h(Re,W,null),t(W,pn),t(W,Vt),t(W,fn),t(W,J),h(Ve,J,null),t(J,gn),t(J,Gt),t(J,hn),t(J,qt),t(J,un),t(J,Ot),t(J,bn),t(J,B),t(B,Ge),t(Ge,Yt),t(Ge,vn),h(ne,Ge,null),t(B,_n),t(B,Xt),t(B,Tn),t(B,Zt),t(B,Cn),t(B,Qt),i(e,la,l),i(e,R,l),h(qe,R,null),t(R,$n),t(R,Kt),t(R,kn),t(R,N),h(Oe,N,null),t(N,wn),t(N,er),t(N,xn),t(N,tr),t(N,yn),t(N,rr),i(e,ia,l),i(e,ee,l),h(Ye,ee,null),t(ee,Mn),t(ee,ar),i(e,ca,l),i(e,te,l),h(Xe,te,null),t(te,Ln),t(te,nr),i(e,ma,l),i(e,V,l),h(Ze,V,null),t(V,In),t(V,or),t(V,En),t(V,sr),i(e,da,l),i(e,D,l),h(Qe,D,null),t(D,Hn),t(D,lr),t(D,jn),t(D,ir),t(D,Jn),t(D,cr),i(e,pa,l),i(e,G,l),h(Ke,G,null),t(G,Dn),t(G,mr),t(G,zn),t(G,A),h(et,A,null),t(A,Un),t(A,dr),t(A,Nn),t(A,pr),t(A,An),t(A,fr),i(e,fa,l),i(e,q,l),h(tt,q,null),t(q,Pn),t(q,gr),t(q,Fn),h(oe,q,null),i(e,ga,l),i(e,z,l),h(rt,z,null),t(z,Sn),t(z,hr),t(z,Wn),t(z,ur),t(z,Bn),t(z,P),h(at,P,null),t(P,Rn),t(P,br),t(P,Vn),t(P,vr),t(P,Gn),t(P,_r),i(e,ha,l),i(e,nt,l),i(e,ua,l),i(e,T,l),h(ot,T,null),t(T,qn),t(T,Tr),t(T,On),t(T,Cr),t(T,Yn),t(T,$r),t(T,Xn),h(se,T,null),t(T,Zn),t(T,le),h(st,le,null),t(le,Qn),t(le,kr),t(T,Kn),t(T,ie),h(lt,ie,null),t(ie,eo),t(ie,wr),t(T,to),t(T,ce),h(it,ce,null),t(ce,ro),t(ce,xr),t(T,ao),t(T,me),h(ct,me,null),t(me,no),t(me,yr),t(T,oo),t(T,de),h(mt,de,null),t(de,so),t(de,Mr),t(T,lo),t(T,pe),h(dt,pe,null),t(pe,io),t(pe,Lr),t(T,co),t(T,fe),h(pt,fe,null),t(fe,mo),t(fe,Ir),t(T,po),t(T,ge),h(ft,ge,null),t(ge,fo),t(ge,Er),t(T,go),t(T,he),h(gt,he,null),t(he,ho),t(he,Hr),t(T,uo),t(T,ue),h(ht,ue,null),t(ue,bo),t(ue,jr),t(T,vo),t(T,be),h(ut,be,null),t(be,_o),t(be,Jr),t(T,To),t(T,ve),h(bt,ve,null),t(ve,Co),t(ve,Dr),t(T,$o),t(T,_e),h(vt,_e,null),t(_e,ko),t(_e,zr),t(T,wo),t(T,Te),h(_t,Te,null),t(Te,xo),t(Te,Ur),i(e,ba,l),i(e,Tt,l),i(e,va,l),i(e,Ct,l),i(e,_a,l),h($t,e,l),i(e,Ta,l),i(e,kt,l),i(e,Ca,l),h(wt,e,l),i(e,$a,l),i(e,xt,l),i(e,ka,l),i(e,H,l),h(yt,H,null),t(H,yo),t(H,Nr),t(H,Mo),h(Ce,H,null),t(H,Lo),t(H,$e),h(Mt,$e,null),t($e,Io),t($e,Ar),t(H,Eo),t(H,ke),h(Lt,ke,null),t(ke,Ho),t(ke,Pr),i(e,wa,l),i(e,It,l),i(e,xa,l),i(e,re,l),h(Et,re,null),t(re,jo),t(re,Fr),i(e,ya,l),h(Ht,e,l),i(e,Ma,l),i(e,qr,l),La=!0},p(e,[l]){const ae={};l&2&&(ae.$$scope={dirty:l,ctx:e}),ne.$set(ae);const U={};l&2&&(U.$$scope={dirty:l,ctx:e}),oe.$set(U);const jt={};l&2&&(jt.$$scope={dirty:l,ctx:e}),se.$set(jt);const Jt={};l&2&&(Jt.$$scope={dirty:l,ctx:e}),Ce.$set(Jt)},i(e){La||(d(x.$$.fragment,e),d(ze.$$.fragment,e),d(Ne.$$.fragment,e),d(Ae.$$.fragment,e),d(Pe.$$.fragment,e),d(Fe.$$.fragment,e),d(Se.$$.fragment,e),d(We.$$.fragment,e),d(Be.$$.fragment,e),d(Re.$$.fragment,e),d(Ve.$$.fragment,e),d(ne.$$.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(tt.$$.fragment,e),d(oe.$$.fragment,e),d(rt.$$.fragment,e),d(at.$$.fragment,e),d(ot.$$.fragment,e),d(se.$$.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(ft.$$.fragment,e),d(gt.$$.fragment,e),d(ht.$$.fragment,e),d(ut.$$.fragment,e),d(bt.$$.fragment,e),d(vt.$$.fragment,e),d(_t.$$.fragment,e),d($t.$$.fragment,e),d(wt.$$.fragment,e),d(yt.$$.fragment,e),d(Ce.$$.fragment,e),d(Mt.$$.fragment,e),d(Lt.$$.fragment,e),d(Et.$$.fragment,e),d(Ht.$$.fragment,e),La=!0)},o(e){p(x.$$.fragment,e),p(ze.$$.fragment,e),p(Ne.$$.fragment,e),p(Ae.$$.fragment,e),p(Pe.$$.fragment,e),p(Fe.$$.fragment,e),p(Se.$$.fragment,e),p(We.$$.fragment,e),p(Be.$$.fragment,e),p(Re.$$.fragment,e),p(Ve.$$.fragment,e),p(ne.$$.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(tt.$$.fragment,e),p(oe.$$.fragment,e),p(rt.$$.fragment,e),p(at.$$.fragment,e),p(ot.$$.fragment,e),p(se.$$.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(ft.$$.fragment,e),p(gt.$$.fragment,e),p(ht.$$.fragment,e),p(ut.$$.fragment,e),p(bt.$$.fragment,e),p(vt.$$.fragment,e),p(_t.$$.fragment,e),p($t.$$.fragment,e),p(wt.$$.fragment,e),p(yt.$$.fragment,e),p(Ce.$$.fragment,e),p(Mt.$$.fragment,e),p(Lt.$$.fragment,e),p(Et.$$.fragment,e),p(Ht.$$.fragment,e),La=!1},d(e){e&&(n(M),n(b),n(w),n(_),n(y),n(E),n(Ee),n(Or),n(He),n(Yr),n(je),n(Xr),n(Je),n(Zr),n(De),n(Qr),n(Kr),n(Ue),n(ea),n(F),n(ta),n(X),n(ra),n(Z),n(aa),n(Q),n(na),n(S),n(oa),n(K),n(sa),n(W),n(la),n(R),n(ia),n(ee),n(ca),n(te),n(ma),n(V),n(da),n(D),n(pa),n(G),n(fa),n(q),n(ga),n(z),n(ha),n(nt),n(ua),n(T),n(ba),n(Tt),n(va),n(Ct),n(_a),n(Ta),n(kt),n(Ca),n($a),n(xt),n(ka),n(H),n(wa),n(It),n(xa),n(re),n(ya),n(Ma),n(qr)),n(m),u(x,e),u(ze,e),u(Ne),u(Ae),u(Pe),u(Fe),u(Se),u(We),u(Be),u(Re),u(Ve),u(ne),u(qe),u(Oe),u(Ye),u(Xe),u(Ze),u(Qe),u(Ke),u(et),u(tt),u(oe),u(rt),u(at),u(ot),u(se),u(st),u(lt),u(it),u(ct),u(mt),u(dt),u(pt),u(ft),u(gt),u(ht),u(ut),u(bt),u(vt),u(_t),u($t,e),u(wt,e),u(yt),u(Ce),u(Mt),u(Lt),u(Et),u(Ht,e)}}}const kl='{"title":"Callbacks","local":"callbacks","sections":[{"title":"可用的Callbacks","local":"transformers.integrations.CometCallback","sections":[],"depth":2}],"depth":1}';function wl(I){return ml(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class jl extends al{constructor(m){super(),nl(this,m,wl,$l,rl,{})}}export{jl as component};
