import{s as Bl,c as Vl,u as Gl,g as Yl,d as Xl,o as Zl,n as kn}from"../chunks/scheduler.01eeda35.js";import{S as Rl,i as ql,r as g,u as f,v as h,d,t as p,w as u,g as n,m as Wl,s as r,h as s,j as b,n as Fl,f as o,c as a,k as v,a as c,y as t,o as Ql,A as Kl,x as i}from"../chunks/index.6dd51b66.js";import{T as Ol}from"../chunks/Tip.de9bae2b.js";import{D as $}from"../chunks/Docstring.cb556860.js";import{C as Cn}from"../chunks/CodeBlock.19ec9b8c.js";import{E as zl}from"../chunks/ExampleCodeBlock.69db56ad.js";import{H as fa,E as ei}from"../chunks/index.58fe8f9d.js";function ti(I){let m,M,_,w,y;const C=I[1].default,x=Vl(C,I,I[2],null);return{c(){m=n("p"),M=Wl("Deprecated in "),_=Wl(I[0]),w=r(),x&&x.c(),this.h()},l(L){m=s(L,"P",{class:!0});var H=b(m);M=Fl(H,"Deprecated in "),_=Fl(H,I[0]),H.forEach(o),w=a(L),x&&x.l(L),this.h()},h(){v(m,"class","font-medium")},m(L,H){c(L,m,H),t(m,M),t(m,_),c(L,w,H),x&&x.m(L,H),y=!0},p(L,H){(!y||H&1)&&Ql(_,L[0]),x&&x.p&&(!y||H&4)&&Gl(x,C,L,L[2],y?Xl(C,L[2],H,null):Yl(L[2]),null)},i(L){y||(d(x,L),y=!0)},o(L){p(x,L),y=!1},d(L){L&&(o(m),o(w)),x&&x.d(L)}}}function ri(I){let m,M;return m=new Ol({props:{warning:!0,$$slots:{default:[ti]},$$scope:{ctx:I}}}),{c(){g(m.$$.fragment)},l(_){f(m.$$.fragment,_)},m(_,w){h(m,_,w),M=!0},p(_,[w]){const y={};w&5&&(y.$$scope={dirty:w,ctx:_}),m.$set(y)},i(_){M||(d(m.$$.fragment,_),M=!0)},o(_){p(m.$$.fragment,_),M=!1},d(_){u(m,_)}}}function ai(I,m,M){let{$$slots:_={},$$scope:w}=m,{version:y}=m;return I.$$set=C=>{"version"in C&&M(0,y=C.version),"$$scope"in C&&M(2,w=C.$$scope)},[y,_,w]}class ni extends Rl{constructor(m){super(),ql(this,m,ai,ri,Bl,{version:0})}}function si(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=n("p"),m.innerHTML=M},l(_){m=s(_,"P",{"data-svelte-h":!0}),i(m)!=="svelte-fxlq1n"&&(m.innerHTML=M)},m(_,w){c(_,m,w)},p:kn,d(_){_&&o(m)}}}function oi(I){let m,M="Example:",_,w,y;return w=new Cn({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=n("p"),m.textContent=M,_=r(),g(w.$$.fragment)},l(C){m=s(C,"P",{"data-svelte-h":!0}),i(m)!=="svelte-11lpom8"&&(m.textContent=M),_=a(C),f(w.$$.fragment,C)},m(C,x){c(C,m,x),c(C,_,x),h(w,C,x),y=!0},p:kn,i(C){y||(d(w.$$.fragment,C),y=!0)},o(C){p(w.$$.fragment,C),y=!1},d(C){C&&(o(m),o(_)),u(w,C)}}}function li(I){let m,M="Example:",_,w,y;return w=new Cn({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=n("p"),m.textContent=M,_=r(),g(w.$$.fragment)},l(C){m=s(C,"P",{"data-svelte-h":!0}),i(m)!=="svelte-11lpom8"&&(m.textContent=M),_=a(C),f(w.$$.fragment,C)},m(C,x){c(C,m,x),c(C,_,x),h(w,C,x),y=!0},p:kn,i(C){y||(d(w.$$.fragment,C),y=!0)},o(C){p(w.$$.fragment,C),y=!1},d(C){C&&(o(m),o(_)),u(w,C)}}}function ii(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=n("p"),m.innerHTML=M},l(_){m=s(_,"P",{"data-svelte-h":!0}),i(m)!=="svelte-rhwh6p"&&(m.innerHTML=M)},m(_,w){c(_,m,w)},p:kn,d(_){_&&o(m)}}}function ci(I){let m,M,_,w,y,C,x,L=`Callbacks are objects that can customize the behavior of the training loop in the PyTorch
<a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a> (this feature is not yet implemented in TensorFlow) that can inspect the training loop
state (for progress reporting, logging on TensorBoard or other ML platforms…) and take decisions (like early
stopping).`,H,De,uo=`Callbacks are “read only” pieces of code, apart from the <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerControl">TrainerControl</a> object they return, they
cannot change anything in the training loop. For customizations that require changes in the training loop, you should
subclass <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a> and override the methods you need (see <a href="trainer">trainer</a> for examples).`,ha,Ue,bo='By default, <code>TrainingArguments.report_to</code> is set to <code>&quot;all&quot;</code>, so a <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a> will use the following callbacks.',ua,Je,vo=`<li><a href="/docs/transformers/main/en/main_classes/callback#transformers.DefaultFlowCallback">DefaultFlowCallback</a> which handles the default behavior for logging, saving and evaluation.</li> <li><a href="/docs/transformers/main/en/main_classes/callback#transformers.PrinterCallback">PrinterCallback</a> or <a href="/docs/transformers/main/en/main_classes/callback#transformers.ProgressCallback">ProgressCallback</a> to display progress and print the
logs (the first one is used if you deactivate tqdm through the <a href="/docs/transformers/main/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>, otherwise
it’s the second one).</li> <li><a href="/docs/transformers/main/en/main_classes/callback#transformers.integrations.TensorBoardCallback">TensorBoardCallback</a> if tensorboard is accessible (either through PyTorch &gt;= 1.4
or tensorboardX).</li> <li><a href="/docs/transformers/main/en/main_classes/callback#transformers.integrations.WandbCallback">WandbCallback</a> if <a href="https://www.wandb.com/" rel="nofollow">wandb</a> is installed.</li> <li><a href="/docs/transformers/main/en/main_classes/callback#transformers.integrations.CometCallback">CometCallback</a> if <a href="https://www.comet.com/site/" rel="nofollow">comet_ml</a> is installed.</li> <li><a href="/docs/transformers/main/en/main_classes/callback#transformers.integrations.MLflowCallback">MLflowCallback</a> if <a href="https://www.mlflow.org/" rel="nofollow">mlflow</a> is installed.</li> <li><a href="/docs/transformers/main/en/main_classes/callback#transformers.integrations.NeptuneCallback">NeptuneCallback</a> if <a href="https://neptune.ai/" rel="nofollow">neptune</a> is installed.</li> <li><a href="/docs/transformers/main/en/main_classes/callback#transformers.integrations.AzureMLCallback">AzureMLCallback</a> if <a href="https://pypi.org/project/azureml-sdk/" rel="nofollow">azureml-sdk</a> is
installed.</li> <li><a href="/docs/transformers/main/en/main_classes/callback#transformers.integrations.CodeCarbonCallback">CodeCarbonCallback</a> if <a href="https://pypi.org/project/codecarbon/" rel="nofollow">codecarbon</a> is
installed.</li> <li><a href="/docs/transformers/main/en/main_classes/callback#transformers.integrations.ClearMLCallback">ClearMLCallback</a> if <a href="https://github.com/allegroai/clearml" rel="nofollow">clearml</a> is installed.</li> <li><a href="/docs/transformers/main/en/main_classes/callback#transformers.integrations.DagsHubCallback">DagsHubCallback</a> if <a href="https://dagshub.com/" rel="nofollow">dagshub</a> is installed.</li> <li><a href="/docs/transformers/main/en/main_classes/callback#transformers.integrations.FlyteCallback">FlyteCallback</a> if <a href="https://flyte.org/" rel="nofollow">flyte</a> is installed.</li> <li><a href="/docs/transformers/main/en/main_classes/callback#transformers.integrations.DVCLiveCallback">DVCLiveCallback</a> if <a href="https://dvc.org/doc/dvclive" rel="nofollow">dvclive</a> is installed.</li> <li><a href="/docs/transformers/main/en/main_classes/callback#transformers.integrations.SwanLabCallback">SwanLabCallback</a> if <a href="http://swanlab.cn/" rel="nofollow">swanlab</a> is installed.</li>`,ba,Pe,_o="If a package is installed but you don’t wish to use the accompanying integration, you can change <code>TrainingArguments.report_to</code> to a list of just those integrations you want to use (e.g. <code>[&quot;azure_ml&quot;, &quot;wandb&quot;]</code>).",va,We,To=`The main class that implements callbacks is <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>. It gets the
<a href="/docs/transformers/main/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> used to instantiate the <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a>, can access that
Trainer’s internal state via <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerState">TrainerState</a>, and can take some actions on the training loop via
<a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerControl">TrainerControl</a>.`,_a,Fe,Ta,ze,$o='Here is the list of the available <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> in the library:',$a,B,Be,wn,Rt,Co='A <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://www.comet.com/site/" rel="nofollow">Comet ML</a>.',yn,j,Re,xn,qt,ko="Setup the optional Comet integration.",Mn,Ot,wo="Environment:",Ln,Vt,yo=`<li><strong>COMET_MODE</strong> (<code>str</code>, <em>optional</em>, default to <code>get_or_create</code>):
Control whether to create and log to a new Comet experiment or append to an existing experiment.
It accepts the following values:<ul><li><code>get_or_create</code>: Decides automatically depending if
<code>COMET_EXPERIMENT_KEY</code> is set and whether an Experiment
with that key already exists or not.</li> <li><code>create</code>: Always create a new Comet Experiment.</li> <li><code>get</code>: Always try to append to an Existing Comet Experiment.
Requires <code>COMET_EXPERIMENT_KEY</code> to be set.</li> <li><code>ONLINE</code>: <strong>deprecated</strong>, used to create an online
Experiment. Use <code>COMET_START_ONLINE=1</code> instead.</li> <li><code>OFFLINE</code>: <strong>deprecated</strong>, used to created an offline
Experiment. Use <code>COMET_START_ONLINE=0</code> instead.</li> <li><code>DISABLED</code>: <strong>deprecated</strong>, used to disable Comet logging.
Use the <code>--report_to</code> flag to control the integrations used
for logging result instead.</li></ul></li> <li><strong>COMET_PROJECT_NAME</strong> (<code>str</code>, <em>optional</em>):
Comet project name for experiments.</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>`,In,Gt,xo=`For a number of configurable items in the environment, see
<a href="https://www.comet.com/docs/v2/guides/experiment-management/configure-sdk/#explore-comet-configuration-options" rel="nofollow">here</a>.`,Ca,K,qe,En,Yt,Mo='A <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that handles the default flow of the training loop for logs, evaluation and checkpoints.',ka,ee,Oe,Hn,Xt,Lo='A bare <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that just prints the logs.',wa,te,Ve,An,Zt,Io=`A <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that displays the progress of training or evaluation.
You can modify <code>max_str_len</code> to control how long strings are truncated when logging.`,ya,R,Ge,jn,Qt,Eo='A <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that handles early stopping.',Sn,Kt,Ho=`This callback depends on <a href="/docs/transformers/main/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> argument <em>load_best_model_at_end</em> functionality to set best_metric
in <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerState">TrainerState</a>. Note that if the <a href="/docs/transformers/main/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> argument <em>save_steps</em> differs from <em>eval_steps</em>, the
early stopping will not occur until the next save step.`,xa,re,Ye,Nn,er,Ao='A <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://www.tensorflow.org/tensorboard" rel="nofollow">TensorBoard</a>.',Ma,q,Xe,Dn,tr,jo='A <a href="/docs/transformers/main/en/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>.',Un,S,Ze,Jn,rr,So="Setup the optional Weights &amp; Biases (<em>wandb</em>) integration.",Pn,ar,No=`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:`,Wn,nr,Do="Environment:",Fn,O,Qe,sr,Uo=`<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.`,zn,le,Bn,or,Jo=`<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>`,Rn,lr,Po=`<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>`,qn,ir,Wo=`<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,V,Ke,On,cr,Fo=`A <a href="/docs/transformers/main/en/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,P,et,Gn,mr,zo="Setup the optional MLflow integration.",Yn,dr,Bo="Environment:",Xn,pr,Ro=`<li><strong>HF_MLFLOW_LOG_ARTIFACTS</strong> (<code>str</code>, <em>optional</em>):
Whether to use MLflow <code>.log_artifact()</code> facility to log artifacts. This only makes sense if logging to a
remote server, e.g. s3 or GCS. If set to <code>True</code> or <em>1</em>, will copy each saved checkpoint on each save in
<a href="/docs/transformers/main/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>’s <code>output_dir</code> to the local or remote artifact storage. Using it without a remote
storage will just copy the files to your artifact location.</li> <li><strong>MLFLOW_TRACKING_URI</strong> (<code>str</code>, <em>optional</em>):
Whether to store runs at a specific path or remote server. Unset by default, which skips setting the
tracking URI entirely.</li> <li><strong>MLFLOW_EXPERIMENT_NAME</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>):
Whether to use an MLflow experiment_name under which to launch the run. Default to <code>None</code> which will point
to the <code>Default</code> experiment in MLflow. Otherwise, it is a case sensitive name of the experiment to be
activated. If an experiment with this name does not exist, a new experiment with this name is created.</li> <li><strong>MLFLOW_TAGS</strong> (<code>str</code>, <em>optional</em>):
A string dump of a dictionary of key/value pair to be added to the MLflow run as tags. Example:
<code>os.environ[&#39;MLFLOW_TAGS&#39;]=&#39;{&quot;release.candidate&quot;: &quot;RC1&quot;, &quot;release.version&quot;: &quot;2.2.0&quot;}&#39;</code>.</li> <li><strong>MLFLOW_NESTED_RUN</strong> (<code>str</code>, <em>optional</em>):
Whether to use MLflow nested runs. If set to <code>True</code> or <em>1</em>, will create a nested run inside the current
run.</li> <li><strong>MLFLOW_RUN_ID</strong> (<code>str</code>, <em>optional</em>):
Allow to reattach to an existing run which can be useful 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> <li><strong>MLFLOW_MAX_LOG_PARAMS</strong> (<code>int</code>, <em>optional</em>):
Set the maximum number of parameters to log in the run.</li>`,Ia,ae,tt,Zn,gr,qo='A <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://pypi.org/project/azureml-sdk/" rel="nofollow">AzureML</a>.',Ea,ne,rt,Qn,fr,Oo='A <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that tracks the CO2 emission of training.',Ha,G,at,Kn,hr,Vo='TrainerCallback that sends the logs to <a href="https://app.neptune.ai" rel="nofollow">Neptune</a>.',es,ur,Go=`For instructions and examples, see the <a href="https://docs.neptune.ai/integrations/transformers" rel="nofollow">Transformers integration
guide</a> in the Neptune documentation.`,Aa,D,nt,ts,br,Yo='A <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://clear.ml/" rel="nofollow">ClearML</a>.',rs,vr,Xo="Environment:",as,_r,Zo=`<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>`,ja,Y,st,ns,Tr,Qo='A <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that logs to <a href="https://dagshub.com/" rel="nofollow">DagsHub</a>. Extends <code>MLflowCallback</code>',ss,W,ot,os,$r,Ko="Setup the DagsHub’s Logging integration.",ls,Cr,el="Environment:",is,kr,tl=`<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>`,Sa,X,lt,cs,wr,rl=`A <a href="/docs/transformers/main/en/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.`,ms,ie,Na,U,it,ds,yr,al='A <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://www.dvc.org/doc/dvclive" rel="nofollow">DVCLive</a>.',ps,xr,nl=`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>.`,gs,F,ct,fs,Mr,sl=`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>.`,hs,Lr,ol="Environment:",us,Ir,ll=`<li><strong>HF_DVCLIVE_LOG_MODEL</strong> (<code>str</code>, <em>optional</em>):
Whether to use <code>dvclive.Live.log_artifact()</code> to log checkpoints created by <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a>. If set to <code>True</code> or
<em>1</em>, the final checkpoint is logged at the end of training. If set to <code>all</code>, the entire
<a href="/docs/transformers/main/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>’s <code>output_dir</code> is logged at each checkpoint.</li>`,Da,Z,mt,bs,Er,il='A <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that logs metrics, media, model checkpoints to <a href="https://swanlab.cn/" rel="nofollow">SwanLab</a>.',vs,A,dt,_s,Hr,cl="Setup the optional SwanLab (<em>swanlab</em>) integration.",Ts,Ar,ml=`One can subclass and override this method to customize the setup if needed. Find more information
<a href="https://docs.swanlab.cn/guide_cloud/integration/integration-huggingface-transformers.html" rel="nofollow">here</a>.`,$s,jr,dl=`You can also override the following environment variables. Find more information about environment
variables <a href="https://docs.swanlab.cn/en/api/environment-variable.html#environment-variables" rel="nofollow">here</a>`,Cs,Sr,pl="Environment:",ks,Nr,gl=`<li><p><strong>SWANLAB_API_KEY</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>):
Cloud API Key. During login, this environment variable is checked first. If it doesn’t exist, the system
checks if the user is already logged in. If not, the login process is initiated.</p> <ul><li>If a string is passed to the login interface, this environment variable is ignored.</li> <li>If the user is already logged in, this environment variable takes precedence over locally stored
login information.</li></ul></li> <li><p><strong>SWANLAB_PROJECT</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>):
Set this to a custom string to store results in a different project. If not specified, the name of the current
running directory is used.</p></li> <li><p><strong>SWANLAB_LOG_DIR</strong> (<code>str</code>, <em>optional</em>, defaults to <code>swanlog</code>):
This environment variable specifies the storage path for log files when running in local mode.
By default, logs are saved in a folder named swanlog under the working directory.</p></li> <li><p><strong>SWANLAB_MODE</strong> (<code>Literal[&quot;local&quot;, &quot;cloud&quot;, &quot;disabled&quot;]</code>, <em>optional</em>, defaults to <code>cloud</code>):
SwanLab’s parsing mode, which involves callbacks registered by the operator. Currently, there are three modes:
local, cloud, and disabled. Note: Case-sensitive. Find more information
<a href="https://docs.swanlab.cn/en/api/py-init.html#swanlab-init" rel="nofollow">here</a></p></li> <li><p><strong>SWANLAB_LOG_MODEL</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>):
SwanLab does not currently support the save mode functionality.This feature will be available in a future
release</p></li> <li><p><strong>SWANLAB_WEB_HOST</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>):
Web address for the SwanLab cloud environment for private version (its free)</p></li> <li><p><strong>SWANLAB_API_HOST</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>):
API address for the SwanLab cloud environment for private version (its free)</p></li>`,Ua,pt,Ja,T,gt,ws,Dr,fl=`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:`,ys,Ur,hl=`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.`,xs,Jr,ul=`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/en/main_classes/callback#transformers.PrinterCallback">PrinterCallback</a>.`,Ms,ce,Ls,me,ft,Is,Pr,bl="Event called at the beginning of an epoch.",Es,de,ht,Hs,Wr,vl="Event called at the end of an epoch.",As,pe,ut,js,Fr,_l="Event called after an evaluation phase.",Ss,ge,bt,Ns,zr,Tl='Event called at the end of the initialization of the <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a>.',Ds,fe,vt,Us,Br,$l="Event called after logging the last logs.",Js,he,_t,Ps,Rr,Cl="Event called after the optimizer step but before gradients are zeroed out. Useful for monitoring gradients.",Ws,ue,Tt,Fs,qr,kl="Event called before the optimizer step but after gradient clipping. Useful for monitoring gradients.",zs,be,$t,Bs,Or,wl="Event called after a successful prediction.",Rs,ve,Ct,qs,Vr,yl="Event called after a prediction step.",Os,_e,kt,Vs,Gr,xl="Event called after a checkpoint save.",Gs,Te,wt,Ys,Yr,Ml=`Event called at the beginning of a training step. If using gradient accumulation, one training step might take
several inputs.`,Xs,$e,yt,Zs,Xr,Ll=`Event called at the end of a training step. If using gradient accumulation, one training step might take
several inputs.`,Qs,Ce,xt,Ks,Zr,Il="Event called at the end of an substep during gradient accumulation.",eo,ke,Mt,to,Qr,El="Event called at the beginning of training.",ro,we,Lt,ao,Kr,Hl="Event called at the end of training.",Pa,It,Al='Here is an example of how to register a custom callback with the PyTorch <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a>:',Wa,Et,Fa,Ht,jl="Another way to register a callback is to call <code>trainer.add_callback()</code> as follows:",za,At,Ba,jt,Ra,E,St,no,ea,Sl=`A class containing the <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a> inner state that will be saved along the model and optimizer when checkpointing
and passed to the <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>.`,so,ye,oo,xe,Nt,lo,ta,Nl=`Calculates and stores the absolute value for logging,
eval, and save steps based on if it was a proportion
or not.`,io,Me,Dt,co,ra,Dl="Stores the initial training references needed in <code>self</code>",mo,Le,Ut,po,aa,Ul="Create an instance from the content of <code>json_path</code>.",go,Ie,Jt,fo,na,Jl="Save the content of this instance in JSON format inside <code>json_path</code>.",qa,Pt,Oa,se,Wt,ho,sa,Pl=`A class that handles the <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a> control flow. This class is used by the <a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> to activate some
switches in the training loop.`,Va,Ft,Ga,ga,Ya;return y=new fa({props:{title:"Callbacks",local:"callbacks",headingTag:"h1"}}),Fe=new fa({props:{title:"Available Callbacks",local:"transformers.integrations.CometCallback",headingTag:"h2"}}),Be=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#L1025"}}),Re=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#L1039"}}),qe=new $({props:{name:"class transformers.DefaultFlowCallback",anchor:"transformers.DefaultFlowCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_callback.py#L574"}}),Oe=new $({props:{name:"class transformers.PrinterCallback",anchor:"transformers.PrinterCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_callback.py#L701"}}),Ve=new $({props:{name:"class transformers.ProgressCallback",anchor:"transformers.ProgressCallback",parameters:[{name:"max_str_len",val:": int = 100"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_callback.py#L627"}}),Ge=new $({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#L712"}}),Ye=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#L646"}}),Xe=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#L779"}}),Ze=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#L795"}}),le=new ni({props:{version:"5.0",$$slots:{default:[si]},$$scope:{ctx:I}}}),Ke=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#L1192"}}),et=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#L1211"}}),tt=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#L1169"}}),rt=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#L1703"}}),at=new $({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>, <em>optional</em>, 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#L1430"}}),nt=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#L1737"}}),st=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#L1370"}}),ot=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#L1384"}}),lt=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#L1990"}}),ie=new zl({props:{anchor:"transformers.integrations.FlyteCallback.example",$$slots:{default:[oi]},$$scope:{ctx:I}}}),it=new $({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 <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a>. If set to <code>True</code>,
the final checkpoint is logged at the end of training. If set to <code>&quot;all&quot;</code>, the entire
<a href="/docs/transformers/main/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>&#x2019;s <code>output_dir</code> is logged at each checkpoint.`,name:"log_model"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/integrations/integration_utils.py#L2053"}}),ct=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#L2094"}}),mt=new $({props:{name:"class transformers.integrations.SwanLabCallback",anchor:"transformers.integrations.SwanLabCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/integrations/integration_utils.py#L2158"}}),dt=new $({props:{name:"setup",anchor:"transformers.integrations.SwanLabCallback.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#L2172"}}),pt=new fa({props:{title:"TrainerCallback",local:"transformers.TrainerCallback",headingTag:"h2"}}),gt=new $({props:{name:"class transformers.TrainerCallback",anchor:"transformers.TrainerCallback",parameters:[],parametersDescription:[{anchor:"transformers.TrainerCallback.args",description:`<strong>args</strong> (<a href="/docs/transformers/main/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>) &#x2014;
The training arguments used to instantiate the <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a>.`,name:"args"},{anchor:"transformers.TrainerCallback.state",description:`<strong>state</strong> (<a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerState">TrainerState</a>) &#x2014;
The current state of the <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a>.`,name:"state"},{anchor:"transformers.TrainerCallback.control",description:`<strong>control</strong> (<a href="/docs/transformers/main/en/main_classes/callback#transformers.TrainerControl">TrainerControl</a>) &#x2014;
The object that is returned to the <a href="/docs/transformers/main/en/main_classes/trainer#transformers.Trainer">Trainer</a> and can be used to make some decisions.`,name:"control"},{anchor:"transformers.TrainerCallback.model",description:`<strong>model</strong> (<a href="/docs/transformers/main/en/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/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer used for encoding the data. This is deprecated in favour of <code>processing_class</code>.`,name:"tokenizer"},{anchor:"transformers.TrainerCallback.processing_class",description:`<strong>processing_class</strong> ([<code>PreTrainedTokenizer</code> or <code>BaseImageProcessor</code> or <code>ProcessorMixin</code> or <code>FeatureExtractionMixin</code>]) &#x2014;
The processing class used for encoding the data. Can be a tokenizer, a processor, an image processor or a feature extractor.`,name:"processing_class"},{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#L297"}}),ce=new zl({props:{anchor:"transformers.TrainerCallback.example",$$slots:{default:[li]},$$scope:{ctx:I}}}),ft=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#L368"}}),ht=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#L374"}}),ut=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#L412"}}),bt=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#L350"}}),vt=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#L430"}}),_t=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#L393"}}),Tt=new $({props:{name:"on_pre_optimizer_step",anchor:"transformers.TrainerCallback.on_pre_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#L387"}}),$t=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#L418"}}),Ct=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#L436"}}),kt=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#L424"}}),wt=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#L380"}}),yt=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#L405"}}),xt=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#L399"}}),Mt=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#L356"}}),Lt=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#L362"}}),Et=new Cn({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}}),At=new Cn({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}}),jt=new fa({props:{title:"TrainerState",local:"transformers.TrainerState",headingTag:"h2"}}),St=new $({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:"train_batch_size",val:": typing.Optional[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:": typing.Optional[float] = None"},{name:"best_global_step",val:": typing.Optional[int] = 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:": typing.Optional[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;
When tracking the inputs tokens, 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_global_step",description:`<strong>best_global_step</strong> (<code>int</code>, <em>optional</em>) &#x2014;
When tracking the best model, the step at which the best metric was encountered.
Used for setting <code>best_model_checkpoint</code>.`,name:"best_global_step"},{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.
Relevant 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#L35"}}),ye=new Ol({props:{$$slots:{default:[ii]},$$scope:{ctx:I}}}),Nt=new $({props:{name:"compute_steps",anchor:"transformers.TrainerState.compute_steps",parameters:[{name:"args",val:""},{name:"max_steps",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_callback.py#L157"}}),Dt=new $({props:{name:"init_training_references",anchor:"transformers.TrainerState.init_training_references",parameters:[{name:"trainer",val:""},{name:"max_steps",val:""},{name:"num_train_epochs",val:""},{name:"trial",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_callback.py#L170"}}),Ut=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#L150"}}),Jt=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#L144"}}),Pt=new fa({props:{title:"TrainerControl",local:"transformers.TrainerControl",headingTag:"h2"}}),Wt=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#L235"}}),Ft=new ei({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/main_classes/callback.md"}}),{c(){m=n("meta"),M=r(),_=n("p"),w=r(),g(y.$$.fragment),C=r(),x=n("p"),x.innerHTML=L,H=r(),De=n("p"),De.innerHTML=uo,ha=r(),Ue=n("p"),Ue.innerHTML=bo,ua=r(),Je=n("ul"),Je.innerHTML=vo,ba=r(),Pe=n("p"),Pe.innerHTML=_o,va=r(),We=n("p"),We.innerHTML=To,_a=r(),g(Fe.$$.fragment),Ta=r(),ze=n("p"),ze.innerHTML=$o,$a=r(),B=n("div"),g(Be.$$.fragment),wn=r(),Rt=n("p"),Rt.innerHTML=Co,yn=r(),j=n("div"),g(Re.$$.fragment),xn=r(),qt=n("p"),qt.textContent=ko,Mn=r(),Ot=n("p"),Ot.textContent=wo,Ln=r(),Vt=n("ul"),Vt.innerHTML=yo,In=r(),Gt=n("p"),Gt.innerHTML=xo,Ca=r(),K=n("div"),g(qe.$$.fragment),En=r(),Yt=n("p"),Yt.innerHTML=Mo,ka=r(),ee=n("div"),g(Oe.$$.fragment),Hn=r(),Xt=n("p"),Xt.innerHTML=Lo,wa=r(),te=n("div"),g(Ve.$$.fragment),An=r(),Zt=n("p"),Zt.innerHTML=Io,ya=r(),R=n("div"),g(Ge.$$.fragment),jn=r(),Qt=n("p"),Qt.innerHTML=Eo,Sn=r(),Kt=n("p"),Kt.innerHTML=Ho,xa=r(),re=n("div"),g(Ye.$$.fragment),Nn=r(),er=n("p"),er.innerHTML=Ao,Ma=r(),q=n("div"),g(Xe.$$.fragment),Dn=r(),tr=n("p"),tr.innerHTML=jo,Un=r(),S=n("div"),g(Ze.$$.fragment),Jn=r(),rr=n("p"),rr.innerHTML=So,Pn=r(),ar=n("p"),ar.innerHTML=No,Wn=r(),nr=n("p"),nr.textContent=Do,Fn=r(),O=n("ul"),Qe=n("li"),sr=n("p"),sr.innerHTML=Uo,zn=r(),g(le.$$.fragment),Bn=r(),or=n("li"),or.innerHTML=Jo,Rn=r(),lr=n("li"),lr.innerHTML=Po,qn=r(),ir=n("li"),ir.innerHTML=Wo,La=r(),V=n("div"),g(Ke.$$.fragment),On=r(),cr=n("p"),cr.innerHTML=Fo,Vn=r(),P=n("div"),g(et.$$.fragment),Gn=r(),mr=n("p"),mr.textContent=zo,Yn=r(),dr=n("p"),dr.textContent=Bo,Xn=r(),pr=n("ul"),pr.innerHTML=Ro,Ia=r(),ae=n("div"),g(tt.$$.fragment),Zn=r(),gr=n("p"),gr.innerHTML=qo,Ea=r(),ne=n("div"),g(rt.$$.fragment),Qn=r(),fr=n("p"),fr.innerHTML=Oo,Ha=r(),G=n("div"),g(at.$$.fragment),Kn=r(),hr=n("p"),hr.innerHTML=Vo,es=r(),ur=n("p"),ur.innerHTML=Go,Aa=r(),D=n("div"),g(nt.$$.fragment),ts=r(),br=n("p"),br.innerHTML=Yo,rs=r(),vr=n("p"),vr.textContent=Xo,as=r(),_r=n("ul"),_r.innerHTML=Zo,ja=r(),Y=n("div"),g(st.$$.fragment),ns=r(),Tr=n("p"),Tr.innerHTML=Qo,ss=r(),W=n("div"),g(ot.$$.fragment),os=r(),$r=n("p"),$r.textContent=Ko,ls=r(),Cr=n("p"),Cr.textContent=el,is=r(),kr=n("ul"),kr.innerHTML=tl,Sa=r(),X=n("div"),g(lt.$$.fragment),cs=r(),wr=n("p"),wr.innerHTML=rl,ms=r(),g(ie.$$.fragment),Na=r(),U=n("div"),g(it.$$.fragment),ds=r(),yr=n("p"),yr.innerHTML=al,ps=r(),xr=n("p"),xr.innerHTML=nl,gs=r(),F=n("div"),g(ct.$$.fragment),fs=r(),Mr=n("p"),Mr.innerHTML=sl,hs=r(),Lr=n("p"),Lr.textContent=ol,us=r(),Ir=n("ul"),Ir.innerHTML=ll,Da=r(),Z=n("div"),g(mt.$$.fragment),bs=r(),Er=n("p"),Er.innerHTML=il,vs=r(),A=n("div"),g(dt.$$.fragment),_s=r(),Hr=n("p"),Hr.innerHTML=cl,Ts=r(),Ar=n("p"),Ar.innerHTML=ml,$s=r(),jr=n("p"),jr.innerHTML=dl,Cs=r(),Sr=n("p"),Sr.textContent=pl,ks=r(),Nr=n("ul"),Nr.innerHTML=gl,Ua=r(),g(pt.$$.fragment),Ja=r(),T=n("div"),g(gt.$$.fragment),ws=r(),Dr=n("p"),Dr.textContent=fl,ys=r(),Ur=n("p"),Ur.innerHTML=hl,xs=r(),Jr=n("p"),Jr.innerHTML=ul,Ms=r(),g(ce.$$.fragment),Ls=r(),me=n("div"),g(ft.$$.fragment),Is=r(),Pr=n("p"),Pr.textContent=bl,Es=r(),de=n("div"),g(ht.$$.fragment),Hs=r(),Wr=n("p"),Wr.textContent=vl,As=r(),pe=n("div"),g(ut.$$.fragment),js=r(),Fr=n("p"),Fr.textContent=_l,Ss=r(),ge=n("div"),g(bt.$$.fragment),Ns=r(),zr=n("p"),zr.innerHTML=Tl,Ds=r(),fe=n("div"),g(vt.$$.fragment),Us=r(),Br=n("p"),Br.textContent=$l,Js=r(),he=n("div"),g(_t.$$.fragment),Ps=r(),Rr=n("p"),Rr.textContent=Cl,Ws=r(),ue=n("div"),g(Tt.$$.fragment),Fs=r(),qr=n("p"),qr.textContent=kl,zs=r(),be=n("div"),g($t.$$.fragment),Bs=r(),Or=n("p"),Or.textContent=wl,Rs=r(),ve=n("div"),g(Ct.$$.fragment),qs=r(),Vr=n("p"),Vr.textContent=yl,Os=r(),_e=n("div"),g(kt.$$.fragment),Vs=r(),Gr=n("p"),Gr.textContent=xl,Gs=r(),Te=n("div"),g(wt.$$.fragment),Ys=r(),Yr=n("p"),Yr.textContent=Ml,Xs=r(),$e=n("div"),g(yt.$$.fragment),Zs=r(),Xr=n("p"),Xr.textContent=Ll,Qs=r(),Ce=n("div"),g(xt.$$.fragment),Ks=r(),Zr=n("p"),Zr.textContent=Il,eo=r(),ke=n("div"),g(Mt.$$.fragment),to=r(),Qr=n("p"),Qr.textContent=El,ro=r(),we=n("div"),g(Lt.$$.fragment),ao=r(),Kr=n("p"),Kr.textContent=Hl,Pa=r(),It=n("p"),It.innerHTML=Al,Wa=r(),g(Et.$$.fragment),Fa=r(),Ht=n("p"),Ht.innerHTML=jl,za=r(),g(At.$$.fragment),Ba=r(),g(jt.$$.fragment),Ra=r(),E=n("div"),g(St.$$.fragment),no=r(),ea=n("p"),ea.innerHTML=Sl,so=r(),g(ye.$$.fragment),oo=r(),xe=n("div"),g(Nt.$$.fragment),lo=r(),ta=n("p"),ta.textContent=Nl,io=r(),Me=n("div"),g(Dt.$$.fragment),co=r(),ra=n("p"),ra.innerHTML=Dl,mo=r(),Le=n("div"),g(Ut.$$.fragment),po=r(),aa=n("p"),aa.innerHTML=Ul,go=r(),Ie=n("div"),g(Jt.$$.fragment),fo=r(),na=n("p"),na.innerHTML=Jl,qa=r(),g(Pt.$$.fragment),Oa=r(),se=n("div"),g(Wt.$$.fragment),ho=r(),sa=n("p"),sa.innerHTML=Pl,Va=r(),g(Ft.$$.fragment),Ga=r(),ga=n("p"),this.h()},l(e){const l=Kl("svelte-u9bgzb",document.head);m=s(l,"META",{name:!0,content:!0}),l.forEach(o),M=a(e),_=s(e,"P",{}),b(_).forEach(o),w=a(e),f(y.$$.fragment,e),C=a(e),x=s(e,"P",{"data-svelte-h":!0}),i(x)!=="svelte-117jlmj"&&(x.innerHTML=L),H=a(e),De=s(e,"P",{"data-svelte-h":!0}),i(De)!=="svelte-1ouow8t"&&(De.innerHTML=uo),ha=a(e),Ue=s(e,"P",{"data-svelte-h":!0}),i(Ue)!=="svelte-c2r1ku"&&(Ue.innerHTML=bo),ua=a(e),Je=s(e,"UL",{"data-svelte-h":!0}),i(Je)!=="svelte-5trl7y"&&(Je.innerHTML=vo),ba=a(e),Pe=s(e,"P",{"data-svelte-h":!0}),i(Pe)!=="svelte-r4lsec"&&(Pe.innerHTML=_o),va=a(e),We=s(e,"P",{"data-svelte-h":!0}),i(We)!=="svelte-8ifmvc"&&(We.innerHTML=To),_a=a(e),f(Fe.$$.fragment,e),Ta=a(e),ze=s(e,"P",{"data-svelte-h":!0}),i(ze)!=="svelte-1l9ib2b"&&(ze.innerHTML=$o),$a=a(e),B=s(e,"DIV",{class:!0});var oe=b(B);f(Be.$$.fragment,oe),wn=a(oe),Rt=s(oe,"P",{"data-svelte-h":!0}),i(Rt)!=="svelte-1b2kkci"&&(Rt.innerHTML=Co),yn=a(oe),j=s(oe,"DIV",{class:!0});var J=b(j);f(Re.$$.fragment,J),xn=a(J),qt=s(J,"P",{"data-svelte-h":!0}),i(qt)!=="svelte-frc23a"&&(qt.textContent=ko),Mn=a(J),Ot=s(J,"P",{"data-svelte-h":!0}),i(Ot)!=="svelte-1fkshtn"&&(Ot.textContent=wo),Ln=a(J),Vt=s(J,"UL",{"data-svelte-h":!0}),i(Vt)!=="svelte-rt862w"&&(Vt.innerHTML=yo),In=a(J),Gt=s(J,"P",{"data-svelte-h":!0}),i(Gt)!=="svelte-1baxs6u"&&(Gt.innerHTML=xo),J.forEach(o),oe.forEach(o),Ca=a(e),K=s(e,"DIV",{class:!0});var zt=b(K);f(qe.$$.fragment,zt),En=a(zt),Yt=s(zt,"P",{"data-svelte-h":!0}),i(Yt)!=="svelte-tbohg7"&&(Yt.innerHTML=Mo),zt.forEach(o),ka=a(e),ee=s(e,"DIV",{class:!0});var Bt=b(ee);f(Oe.$$.fragment,Bt),Hn=a(Bt),Xt=s(Bt,"P",{"data-svelte-h":!0}),i(Xt)!=="svelte-u33mq4"&&(Xt.innerHTML=Lo),Bt.forEach(o),wa=a(e),te=s(e,"DIV",{class:!0});var Xa=b(te);f(Ve.$$.fragment,Xa),An=a(Xa),Zt=s(Xa,"P",{"data-svelte-h":!0}),i(Zt)!=="svelte-1uvry8"&&(Zt.innerHTML=Io),Xa.forEach(o),ya=a(e),R=s(e,"DIV",{class:!0});var oa=b(R);f(Ge.$$.fragment,oa),jn=a(oa),Qt=s(oa,"P",{"data-svelte-h":!0}),i(Qt)!=="svelte-1uk5lii"&&(Qt.innerHTML=Eo),Sn=a(oa),Kt=s(oa,"P",{"data-svelte-h":!0}),i(Kt)!=="svelte-1hyho8y"&&(Kt.innerHTML=Ho),oa.forEach(o),xa=a(e),re=s(e,"DIV",{class:!0});var Za=b(re);f(Ye.$$.fragment,Za),Nn=a(Za),er=s(Za,"P",{"data-svelte-h":!0}),i(er)!=="svelte-11ee725"&&(er.innerHTML=Ao),Za.forEach(o),Ma=a(e),q=s(e,"DIV",{class:!0});var la=b(q);f(Xe.$$.fragment,la),Dn=a(la),tr=s(la,"P",{"data-svelte-h":!0}),i(tr)!=="svelte-mdmk5i"&&(tr.innerHTML=jo),Un=a(la),S=s(la,"DIV",{class:!0});var Q=b(S);f(Ze.$$.fragment,Q),Jn=a(Q),rr=s(Q,"P",{"data-svelte-h":!0}),i(rr)!=="svelte-op70zs"&&(rr.innerHTML=So),Pn=a(Q),ar=s(Q,"P",{"data-svelte-h":!0}),i(ar)!=="svelte-m2rt7w"&&(ar.innerHTML=No),Wn=a(Q),nr=s(Q,"P",{"data-svelte-h":!0}),i(nr)!=="svelte-1fkshtn"&&(nr.textContent=Do),Fn=a(Q),O=s(Q,"UL",{});var Ee=b(O);Qe=s(Ee,"LI",{});var Qa=b(Qe);sr=s(Qa,"P",{"data-svelte-h":!0}),i(sr)!=="svelte-py3r3s"&&(sr.innerHTML=Uo),zn=a(Qa),f(le.$$.fragment,Qa),Qa.forEach(o),Bn=a(Ee),or=s(Ee,"LI",{"data-svelte-h":!0}),i(or)!=="svelte-dx3m30"&&(or.innerHTML=Jo),Rn=a(Ee),lr=s(Ee,"LI",{"data-svelte-h":!0}),i(lr)!=="svelte-n1uh6c"&&(lr.innerHTML=Po),qn=a(Ee),ir=s(Ee,"LI",{"data-svelte-h":!0}),i(ir)!=="svelte-ybo66z"&&(ir.innerHTML=Wo),Ee.forEach(o),Q.forEach(o),la.forEach(o),La=a(e),V=s(e,"DIV",{class:!0});var ia=b(V);f(Ke.$$.fragment,ia),On=a(ia),cr=s(ia,"P",{"data-svelte-h":!0}),i(cr)!=="svelte-1oxe4mu"&&(cr.innerHTML=Fo),Vn=a(ia),P=s(ia,"DIV",{class:!0});var He=b(P);f(et.$$.fragment,He),Gn=a(He),mr=s(He,"P",{"data-svelte-h":!0}),i(mr)!=="svelte-nmg16f"&&(mr.textContent=zo),Yn=a(He),dr=s(He,"P",{"data-svelte-h":!0}),i(dr)!=="svelte-1fkshtn"&&(dr.textContent=Bo),Xn=a(He),pr=s(He,"UL",{"data-svelte-h":!0}),i(pr)!=="svelte-1dy8max"&&(pr.innerHTML=Ro),He.forEach(o),ia.forEach(o),Ia=a(e),ae=s(e,"DIV",{class:!0});var Ka=b(ae);f(tt.$$.fragment,Ka),Zn=a(Ka),gr=s(Ka,"P",{"data-svelte-h":!0}),i(gr)!=="svelte-a0ewdh"&&(gr.innerHTML=qo),Ka.forEach(o),Ea=a(e),ne=s(e,"DIV",{class:!0});var en=b(ne);f(rt.$$.fragment,en),Qn=a(en),fr=s(en,"P",{"data-svelte-h":!0}),i(fr)!=="svelte-wnzizl"&&(fr.innerHTML=Oo),en.forEach(o),Ha=a(e),G=s(e,"DIV",{class:!0});var ca=b(G);f(at.$$.fragment,ca),Kn=a(ca),hr=s(ca,"P",{"data-svelte-h":!0}),i(hr)!=="svelte-4ag9j6"&&(hr.innerHTML=Vo),es=a(ca),ur=s(ca,"P",{"data-svelte-h":!0}),i(ur)!=="svelte-1mhjcx0"&&(ur.innerHTML=Go),ca.forEach(o),Aa=a(e),D=s(e,"DIV",{class:!0});var Ae=b(D);f(nt.$$.fragment,Ae),ts=a(Ae),br=s(Ae,"P",{"data-svelte-h":!0}),i(br)!=="svelte-1qgg58f"&&(br.innerHTML=Yo),rs=a(Ae),vr=s(Ae,"P",{"data-svelte-h":!0}),i(vr)!=="svelte-1fkshtn"&&(vr.textContent=Xo),as=a(Ae),_r=s(Ae,"UL",{"data-svelte-h":!0}),i(_r)!=="svelte-15svthu"&&(_r.innerHTML=Zo),Ae.forEach(o),ja=a(e),Y=s(e,"DIV",{class:!0});var ma=b(Y);f(st.$$.fragment,ma),ns=a(ma),Tr=s(ma,"P",{"data-svelte-h":!0}),i(Tr)!=="svelte-1w5b5fu"&&(Tr.innerHTML=Qo),ss=a(ma),W=s(ma,"DIV",{class:!0});var je=b(W);f(ot.$$.fragment,je),os=a(je),$r=s(je,"P",{"data-svelte-h":!0}),i($r)!=="svelte-1wbmj3"&&($r.textContent=Ko),ls=a(je),Cr=s(je,"P",{"data-svelte-h":!0}),i(Cr)!=="svelte-1fkshtn"&&(Cr.textContent=el),is=a(je),kr=s(je,"UL",{"data-svelte-h":!0}),i(kr)!=="svelte-dna85o"&&(kr.innerHTML=tl),je.forEach(o),ma.forEach(o),Sa=a(e),X=s(e,"DIV",{class:!0});var da=b(X);f(lt.$$.fragment,da),cs=a(da),wr=s(da,"P",{"data-svelte-h":!0}),i(wr)!=="svelte-7nm0bd"&&(wr.innerHTML=rl),ms=a(da),f(ie.$$.fragment,da),da.forEach(o),Na=a(e),U=s(e,"DIV",{class:!0});var Se=b(U);f(it.$$.fragment,Se),ds=a(Se),yr=s(Se,"P",{"data-svelte-h":!0}),i(yr)!=="svelte-rsra78"&&(yr.innerHTML=al),ps=a(Se),xr=s(Se,"P",{"data-svelte-h":!0}),i(xr)!=="svelte-eu3kj7"&&(xr.innerHTML=nl),gs=a(Se),F=s(Se,"DIV",{class:!0});var Ne=b(F);f(ct.$$.fragment,Ne),fs=a(Ne),Mr=s(Ne,"P",{"data-svelte-h":!0}),i(Mr)!=="svelte-jjkenj"&&(Mr.innerHTML=sl),hs=a(Ne),Lr=s(Ne,"P",{"data-svelte-h":!0}),i(Lr)!=="svelte-1fkshtn"&&(Lr.textContent=ol),us=a(Ne),Ir=s(Ne,"UL",{"data-svelte-h":!0}),i(Ir)!=="svelte-z751aa"&&(Ir.innerHTML=ll),Ne.forEach(o),Se.forEach(o),Da=a(e),Z=s(e,"DIV",{class:!0});var pa=b(Z);f(mt.$$.fragment,pa),bs=a(pa),Er=s(pa,"P",{"data-svelte-h":!0}),i(Er)!=="svelte-1e8uqzv"&&(Er.innerHTML=il),vs=a(pa),A=s(pa,"DIV",{class:!0});var z=b(A);f(dt.$$.fragment,z),_s=a(z),Hr=s(z,"P",{"data-svelte-h":!0}),i(Hr)!=="svelte-1pnk5m4"&&(Hr.innerHTML=cl),Ts=a(z),Ar=s(z,"P",{"data-svelte-h":!0}),i(Ar)!=="svelte-s781co"&&(Ar.innerHTML=ml),$s=a(z),jr=s(z,"P",{"data-svelte-h":!0}),i(jr)!=="svelte-g9rl62"&&(jr.innerHTML=dl),Cs=a(z),Sr=s(z,"P",{"data-svelte-h":!0}),i(Sr)!=="svelte-1fkshtn"&&(Sr.textContent=pl),ks=a(z),Nr=s(z,"UL",{"data-svelte-h":!0}),i(Nr)!=="svelte-jaaggq"&&(Nr.innerHTML=gl),z.forEach(o),pa.forEach(o),Ua=a(e),f(pt.$$.fragment,e),Ja=a(e),T=s(e,"DIV",{class:!0});var k=b(T);f(gt.$$.fragment,k),ws=a(k),Dr=s(k,"P",{"data-svelte-h":!0}),i(Dr)!=="svelte-14xg00o"&&(Dr.textContent=fl),ys=a(k),Ur=s(k,"P",{"data-svelte-h":!0}),i(Ur)!=="svelte-1xprdvt"&&(Ur.innerHTML=hl),xs=a(k),Jr=s(k,"P",{"data-svelte-h":!0}),i(Jr)!=="svelte-1mdgvl9"&&(Jr.innerHTML=ul),Ms=a(k),f(ce.$$.fragment,k),Ls=a(k),me=s(k,"DIV",{class:!0});var tn=b(me);f(ft.$$.fragment,tn),Is=a(tn),Pr=s(tn,"P",{"data-svelte-h":!0}),i(Pr)!=="svelte-106889p"&&(Pr.textContent=bl),tn.forEach(o),Es=a(k),de=s(k,"DIV",{class:!0});var rn=b(de);f(ht.$$.fragment,rn),Hs=a(rn),Wr=s(rn,"P",{"data-svelte-h":!0}),i(Wr)!=="svelte-oshcpj"&&(Wr.textContent=vl),rn.forEach(o),As=a(k),pe=s(k,"DIV",{class:!0});var an=b(pe);f(ut.$$.fragment,an),js=a(an),Fr=s(an,"P",{"data-svelte-h":!0}),i(Fr)!=="svelte-1o0xh73"&&(Fr.textContent=_l),an.forEach(o),Ss=a(k),ge=s(k,"DIV",{class:!0});var nn=b(ge);f(bt.$$.fragment,nn),Ns=a(nn),zr=s(nn,"P",{"data-svelte-h":!0}),i(zr)!=="svelte-1wy373q"&&(zr.innerHTML=Tl),nn.forEach(o),Ds=a(k),fe=s(k,"DIV",{class:!0});var sn=b(fe);f(vt.$$.fragment,sn),Us=a(sn),Br=s(sn,"P",{"data-svelte-h":!0}),i(Br)!=="svelte-10eiwg0"&&(Br.textContent=$l),sn.forEach(o),Js=a(k),he=s(k,"DIV",{class:!0});var on=b(he);f(_t.$$.fragment,on),Ps=a(on),Rr=s(on,"P",{"data-svelte-h":!0}),i(Rr)!=="svelte-1mpbj2z"&&(Rr.textContent=Cl),on.forEach(o),Ws=a(k),ue=s(k,"DIV",{class:!0});var ln=b(ue);f(Tt.$$.fragment,ln),Fs=a(ln),qr=s(ln,"P",{"data-svelte-h":!0}),i(qr)!=="svelte-qj3qgf"&&(qr.textContent=kl),ln.forEach(o),zs=a(k),be=s(k,"DIV",{class:!0});var cn=b(be);f($t.$$.fragment,cn),Bs=a(cn),Or=s(cn,"P",{"data-svelte-h":!0}),i(Or)!=="svelte-1df7x4n"&&(Or.textContent=wl),cn.forEach(o),Rs=a(k),ve=s(k,"DIV",{class:!0});var mn=b(ve);f(Ct.$$.fragment,mn),qs=a(mn),Vr=s(mn,"P",{"data-svelte-h":!0}),i(Vr)!=="svelte-18swygp"&&(Vr.textContent=yl),mn.forEach(o),Os=a(k),_e=s(k,"DIV",{class:!0});var dn=b(_e);f(kt.$$.fragment,dn),Vs=a(dn),Gr=s(dn,"P",{"data-svelte-h":!0}),i(Gr)!=="svelte-19xp05v"&&(Gr.textContent=xl),dn.forEach(o),Gs=a(k),Te=s(k,"DIV",{class:!0});var pn=b(Te);f(wt.$$.fragment,pn),Ys=a(pn),Yr=s(pn,"P",{"data-svelte-h":!0}),i(Yr)!=="svelte-7af61p"&&(Yr.textContent=Ml),pn.forEach(o),Xs=a(k),$e=s(k,"DIV",{class:!0});var gn=b($e);f(yt.$$.fragment,gn),Zs=a(gn),Xr=s(gn,"P",{"data-svelte-h":!0}),i(Xr)!=="svelte-8cdxjr"&&(Xr.textContent=Ll),gn.forEach(o),Qs=a(k),Ce=s(k,"DIV",{class:!0});var fn=b(Ce);f(xt.$$.fragment,fn),Ks=a(fn),Zr=s(fn,"P",{"data-svelte-h":!0}),i(Zr)!=="svelte-sluvs0"&&(Zr.textContent=Il),fn.forEach(o),eo=a(k),ke=s(k,"DIV",{class:!0});var hn=b(ke);f(Mt.$$.fragment,hn),to=a(hn),Qr=s(hn,"P",{"data-svelte-h":!0}),i(Qr)!=="svelte-6bvy6d"&&(Qr.textContent=El),hn.forEach(o),ro=a(k),we=s(k,"DIV",{class:!0});var un=b(we);f(Lt.$$.fragment,un),ao=a(un),Kr=s(un,"P",{"data-svelte-h":!0}),i(Kr)!=="svelte-zzwxsv"&&(Kr.textContent=Hl),un.forEach(o),k.forEach(o),Pa=a(e),It=s(e,"P",{"data-svelte-h":!0}),i(It)!=="svelte-jteqqf"&&(It.innerHTML=Al),Wa=a(e),f(Et.$$.fragment,e),Fa=a(e),Ht=s(e,"P",{"data-svelte-h":!0}),i(Ht)!=="svelte-8gc48t"&&(Ht.innerHTML=jl),za=a(e),f(At.$$.fragment,e),Ba=a(e),f(jt.$$.fragment,e),Ra=a(e),E=s(e,"DIV",{class:!0});var N=b(E);f(St.$$.fragment,N),no=a(N),ea=s(N,"P",{"data-svelte-h":!0}),i(ea)!=="svelte-2lch02"&&(ea.innerHTML=Sl),so=a(N),f(ye.$$.fragment,N),oo=a(N),xe=s(N,"DIV",{class:!0});var bn=b(xe);f(Nt.$$.fragment,bn),lo=a(bn),ta=s(bn,"P",{"data-svelte-h":!0}),i(ta)!=="svelte-754oj0"&&(ta.textContent=Nl),bn.forEach(o),io=a(N),Me=s(N,"DIV",{class:!0});var vn=b(Me);f(Dt.$$.fragment,vn),co=a(vn),ra=s(vn,"P",{"data-svelte-h":!0}),i(ra)!=="svelte-1mzjlie"&&(ra.innerHTML=Dl),vn.forEach(o),mo=a(N),Le=s(N,"DIV",{class:!0});var _n=b(Le);f(Ut.$$.fragment,_n),po=a(_n),aa=s(_n,"P",{"data-svelte-h":!0}),i(aa)!=="svelte-hbs6ga"&&(aa.innerHTML=Ul),_n.forEach(o),go=a(N),Ie=s(N,"DIV",{class:!0});var Tn=b(Ie);f(Jt.$$.fragment,Tn),fo=a(Tn),na=s(Tn,"P",{"data-svelte-h":!0}),i(na)!=="svelte-dkslae"&&(na.innerHTML=Jl),Tn.forEach(o),N.forEach(o),qa=a(e),f(Pt.$$.fragment,e),Oa=a(e),se=s(e,"DIV",{class:!0});var $n=b(se);f(Wt.$$.fragment,$n),ho=a($n),sa=s($n,"P",{"data-svelte-h":!0}),i(sa)!=="svelte-lakwdm"&&(sa.innerHTML=Pl),$n.forEach(o),Va=a(e),f(Ft.$$.fragment,e),Ga=a(e),ga=s(e,"P",{}),b(ga).forEach(o),this.h()},h(){v(m,"name","hf:doc:metadata"),v(m,"content",mi),v(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(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(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(se,"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),c(e,M,l),c(e,_,l),c(e,w,l),h(y,e,l),c(e,C,l),c(e,x,l),c(e,H,l),c(e,De,l),c(e,ha,l),c(e,Ue,l),c(e,ua,l),c(e,Je,l),c(e,ba,l),c(e,Pe,l),c(e,va,l),c(e,We,l),c(e,_a,l),h(Fe,e,l),c(e,Ta,l),c(e,ze,l),c(e,$a,l),c(e,B,l),h(Be,B,null),t(B,wn),t(B,Rt),t(B,yn),t(B,j),h(Re,j,null),t(j,xn),t(j,qt),t(j,Mn),t(j,Ot),t(j,Ln),t(j,Vt),t(j,In),t(j,Gt),c(e,Ca,l),c(e,K,l),h(qe,K,null),t(K,En),t(K,Yt),c(e,ka,l),c(e,ee,l),h(Oe,ee,null),t(ee,Hn),t(ee,Xt),c(e,wa,l),c(e,te,l),h(Ve,te,null),t(te,An),t(te,Zt),c(e,ya,l),c(e,R,l),h(Ge,R,null),t(R,jn),t(R,Qt),t(R,Sn),t(R,Kt),c(e,xa,l),c(e,re,l),h(Ye,re,null),t(re,Nn),t(re,er),c(e,Ma,l),c(e,q,l),h(Xe,q,null),t(q,Dn),t(q,tr),t(q,Un),t(q,S),h(Ze,S,null),t(S,Jn),t(S,rr),t(S,Pn),t(S,ar),t(S,Wn),t(S,nr),t(S,Fn),t(S,O),t(O,Qe),t(Qe,sr),t(Qe,zn),h(le,Qe,null),t(O,Bn),t(O,or),t(O,Rn),t(O,lr),t(O,qn),t(O,ir),c(e,La,l),c(e,V,l),h(Ke,V,null),t(V,On),t(V,cr),t(V,Vn),t(V,P),h(et,P,null),t(P,Gn),t(P,mr),t(P,Yn),t(P,dr),t(P,Xn),t(P,pr),c(e,Ia,l),c(e,ae,l),h(tt,ae,null),t(ae,Zn),t(ae,gr),c(e,Ea,l),c(e,ne,l),h(rt,ne,null),t(ne,Qn),t(ne,fr),c(e,Ha,l),c(e,G,l),h(at,G,null),t(G,Kn),t(G,hr),t(G,es),t(G,ur),c(e,Aa,l),c(e,D,l),h(nt,D,null),t(D,ts),t(D,br),t(D,rs),t(D,vr),t(D,as),t(D,_r),c(e,ja,l),c(e,Y,l),h(st,Y,null),t(Y,ns),t(Y,Tr),t(Y,ss),t(Y,W),h(ot,W,null),t(W,os),t(W,$r),t(W,ls),t(W,Cr),t(W,is),t(W,kr),c(e,Sa,l),c(e,X,l),h(lt,X,null),t(X,cs),t(X,wr),t(X,ms),h(ie,X,null),c(e,Na,l),c(e,U,l),h(it,U,null),t(U,ds),t(U,yr),t(U,ps),t(U,xr),t(U,gs),t(U,F),h(ct,F,null),t(F,fs),t(F,Mr),t(F,hs),t(F,Lr),t(F,us),t(F,Ir),c(e,Da,l),c(e,Z,l),h(mt,Z,null),t(Z,bs),t(Z,Er),t(Z,vs),t(Z,A),h(dt,A,null),t(A,_s),t(A,Hr),t(A,Ts),t(A,Ar),t(A,$s),t(A,jr),t(A,Cs),t(A,Sr),t(A,ks),t(A,Nr),c(e,Ua,l),h(pt,e,l),c(e,Ja,l),c(e,T,l),h(gt,T,null),t(T,ws),t(T,Dr),t(T,ys),t(T,Ur),t(T,xs),t(T,Jr),t(T,Ms),h(ce,T,null),t(T,Ls),t(T,me),h(ft,me,null),t(me,Is),t(me,Pr),t(T,Es),t(T,de),h(ht,de,null),t(de,Hs),t(de,Wr),t(T,As),t(T,pe),h(ut,pe,null),t(pe,js),t(pe,Fr),t(T,Ss),t(T,ge),h(bt,ge,null),t(ge,Ns),t(ge,zr),t(T,Ds),t(T,fe),h(vt,fe,null),t(fe,Us),t(fe,Br),t(T,Js),t(T,he),h(_t,he,null),t(he,Ps),t(he,Rr),t(T,Ws),t(T,ue),h(Tt,ue,null),t(ue,Fs),t(ue,qr),t(T,zs),t(T,be),h($t,be,null),t(be,Bs),t(be,Or),t(T,Rs),t(T,ve),h(Ct,ve,null),t(ve,qs),t(ve,Vr),t(T,Os),t(T,_e),h(kt,_e,null),t(_e,Vs),t(_e,Gr),t(T,Gs),t(T,Te),h(wt,Te,null),t(Te,Ys),t(Te,Yr),t(T,Xs),t(T,$e),h(yt,$e,null),t($e,Zs),t($e,Xr),t(T,Qs),t(T,Ce),h(xt,Ce,null),t(Ce,Ks),t(Ce,Zr),t(T,eo),t(T,ke),h(Mt,ke,null),t(ke,to),t(ke,Qr),t(T,ro),t(T,we),h(Lt,we,null),t(we,ao),t(we,Kr),c(e,Pa,l),c(e,It,l),c(e,Wa,l),h(Et,e,l),c(e,Fa,l),c(e,Ht,l),c(e,za,l),h(At,e,l),c(e,Ba,l),h(jt,e,l),c(e,Ra,l),c(e,E,l),h(St,E,null),t(E,no),t(E,ea),t(E,so),h(ye,E,null),t(E,oo),t(E,xe),h(Nt,xe,null),t(xe,lo),t(xe,ta),t(E,io),t(E,Me),h(Dt,Me,null),t(Me,co),t(Me,ra),t(E,mo),t(E,Le),h(Ut,Le,null),t(Le,po),t(Le,aa),t(E,go),t(E,Ie),h(Jt,Ie,null),t(Ie,fo),t(Ie,na),c(e,qa,l),h(Pt,e,l),c(e,Oa,l),c(e,se,l),h(Wt,se,null),t(se,ho),t(se,sa),c(e,Va,l),h(Ft,e,l),c(e,Ga,l),c(e,ga,l),Ya=!0},p(e,[l]){const oe={};l&2&&(oe.$$scope={dirty:l,ctx:e}),le.$set(oe);const J={};l&2&&(J.$$scope={dirty:l,ctx:e}),ie.$set(J);const zt={};l&2&&(zt.$$scope={dirty:l,ctx:e}),ce.$set(zt);const Bt={};l&2&&(Bt.$$scope={dirty:l,ctx:e}),ye.$set(Bt)},i(e){Ya||(d(y.$$.fragment,e),d(Fe.$$.fragment,e),d(Be.$$.fragment,e),d(Re.$$.fragment,e),d(qe.$$.fragment,e),d(Oe.$$.fragment,e),d(Ve.$$.fragment,e),d(Ge.$$.fragment,e),d(Ye.$$.fragment,e),d(Xe.$$.fragment,e),d(Ze.$$.fragment,e),d(le.$$.fragment,e),d(Ke.$$.fragment,e),d(et.$$.fragment,e),d(tt.$$.fragment,e),d(rt.$$.fragment,e),d(at.$$.fragment,e),d(nt.$$.fragment,e),d(st.$$.fragment,e),d(ot.$$.fragment,e),d(lt.$$.fragment,e),d(ie.$$.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(ce.$$.fragment,e),d(ft.$$.fragment,e),d(ht.$$.fragment,e),d(ut.$$.fragment,e),d(bt.$$.fragment,e),d(vt.$$.fragment,e),d(_t.$$.fragment,e),d(Tt.$$.fragment,e),d($t.$$.fragment,e),d(Ct.$$.fragment,e),d(kt.$$.fragment,e),d(wt.$$.fragment,e),d(yt.$$.fragment,e),d(xt.$$.fragment,e),d(Mt.$$.fragment,e),d(Lt.$$.fragment,e),d(Et.$$.fragment,e),d(At.$$.fragment,e),d(jt.$$.fragment,e),d(St.$$.fragment,e),d(ye.$$.fragment,e),d(Nt.$$.fragment,e),d(Dt.$$.fragment,e),d(Ut.$$.fragment,e),d(Jt.$$.fragment,e),d(Pt.$$.fragment,e),d(Wt.$$.fragment,e),d(Ft.$$.fragment,e),Ya=!0)},o(e){p(y.$$.fragment,e),p(Fe.$$.fragment,e),p(Be.$$.fragment,e),p(Re.$$.fragment,e),p(qe.$$.fragment,e),p(Oe.$$.fragment,e),p(Ve.$$.fragment,e),p(Ge.$$.fragment,e),p(Ye.$$.fragment,e),p(Xe.$$.fragment,e),p(Ze.$$.fragment,e),p(le.$$.fragment,e),p(Ke.$$.fragment,e),p(et.$$.fragment,e),p(tt.$$.fragment,e),p(rt.$$.fragment,e),p(at.$$.fragment,e),p(nt.$$.fragment,e),p(st.$$.fragment,e),p(ot.$$.fragment,e),p(lt.$$.fragment,e),p(ie.$$.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(ce.$$.fragment,e),p(ft.$$.fragment,e),p(ht.$$.fragment,e),p(ut.$$.fragment,e),p(bt.$$.fragment,e),p(vt.$$.fragment,e),p(_t.$$.fragment,e),p(Tt.$$.fragment,e),p($t.$$.fragment,e),p(Ct.$$.fragment,e),p(kt.$$.fragment,e),p(wt.$$.fragment,e),p(yt.$$.fragment,e),p(xt.$$.fragment,e),p(Mt.$$.fragment,e),p(Lt.$$.fragment,e),p(Et.$$.fragment,e),p(At.$$.fragment,e),p(jt.$$.fragment,e),p(St.$$.fragment,e),p(ye.$$.fragment,e),p(Nt.$$.fragment,e),p(Dt.$$.fragment,e),p(Ut.$$.fragment,e),p(Jt.$$.fragment,e),p(Pt.$$.fragment,e),p(Wt.$$.fragment,e),p(Ft.$$.fragment,e),Ya=!1},d(e){e&&(o(M),o(_),o(w),o(C),o(x),o(H),o(De),o(ha),o(Ue),o(ua),o(Je),o(ba),o(Pe),o(va),o(We),o(_a),o(Ta),o(ze),o($a),o(B),o(Ca),o(K),o(ka),o(ee),o(wa),o(te),o(ya),o(R),o(xa),o(re),o(Ma),o(q),o(La),o(V),o(Ia),o(ae),o(Ea),o(ne),o(Ha),o(G),o(Aa),o(D),o(ja),o(Y),o(Sa),o(X),o(Na),o(U),o(Da),o(Z),o(Ua),o(Ja),o(T),o(Pa),o(It),o(Wa),o(Fa),o(Ht),o(za),o(Ba),o(Ra),o(E),o(qa),o(Oa),o(se),o(Va),o(Ga),o(ga)),o(m),u(y,e),u(Fe,e),u(Be),u(Re),u(qe),u(Oe),u(Ve),u(Ge),u(Ye),u(Xe),u(Ze),u(le),u(Ke),u(et),u(tt),u(rt),u(at),u(nt),u(st),u(ot),u(lt),u(ie),u(it),u(ct),u(mt),u(dt),u(pt,e),u(gt),u(ce),u(ft),u(ht),u(ut),u(bt),u(vt),u(_t),u(Tt),u($t),u(Ct),u(kt),u(wt),u(yt),u(xt),u(Mt),u(Lt),u(Et,e),u(At,e),u(jt,e),u(St),u(ye),u(Nt),u(Dt),u(Ut),u(Jt),u(Pt,e),u(Wt),u(Ft,e)}}}const mi='{"title":"Callbacks","local":"callbacks","sections":[{"title":"Available 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 di(I){return Zl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class _i extends Rl{constructor(m){super(),ql(this,m,di,ci,Bl,{})}}export{_i as component};
