import{s as ol,c as ml,u as dl,g as pl,d as fl,o as gl,n as nn}from"../chunks/scheduler.9bc65507.js";import{S as ll,i as il,u as h,v as u,w as b,d as f,t as g,x as v,g as a,m as al,s,h as n,j as p,n as nl,f as r,c as o,k as d,a as i,o as t,p as hl,A as ul,y as c}from"../chunks/index.78c82d43.js";import{T as cl}from"../chunks/Tip.87d55b76.js";import{D as w}from"../chunks/Docstring.f3d04bd2.js";import{C as an}from"../chunks/CodeBlock.48618ec2.js";import{I as Zr}from"../chunks/IconCopyLink.bedaa44d.js";import{E as sl}from"../chunks/ExampleCodeBlock.872b014d.js";function bl(E){let m,M,T,C,y;const _=E[1].default,L=ml(_,E,E[2],null);return{c(){m=a("p"),M=al("Deprecated in "),T=al(E[0]),C=s(),L&&L.c(),this.h()},l(x){m=n(x,"P",{class:!0});var I=p(m);M=nl(I,"Deprecated in "),T=nl(I,E[0]),I.forEach(r),C=o(x),L&&L.l(x),this.h()},h(){d(m,"class","font-medium")},m(x,I){i(x,m,I),t(m,M),t(m,T),i(x,C,I),L&&L.m(x,I),y=!0},p(x,I){(!y||I&1)&&hl(T,x[0]),L&&L.p&&(!y||I&4)&&dl(L,_,x,x[2],y?fl(_,x[2],I,null):pl(x[2]),null)},i(x){y||(f(L,x),y=!0)},o(x){g(L,x),y=!1},d(x){x&&(r(m),r(C)),L&&L.d(x)}}}function vl(E){let m,M;return m=new cl({props:{warning:!0,$$slots:{default:[bl]},$$scope:{ctx:E}}}),{c(){h(m.$$.fragment)},l(T){u(m.$$.fragment,T)},m(T,C){b(m,T,C),M=!0},p(T,[C]){const y={};C&5&&(y.$$scope={dirty:C,ctx:T}),m.$set(y)},i(T){M||(f(m.$$.fragment,T),M=!0)},o(T){g(m.$$.fragment,T),M=!1},d(T){v(m,T)}}}function _l(E,m,M){let{$$slots:T={},$$scope:C}=m,{version:y}=m;return E.$$set=_=>{"version"in _&&M(0,y=_.version),"$$scope"in _&&M(2,C=_.$$scope)},[y,T,C]}class Tl extends ll{constructor(m){super(),il(this,m,_l,vl,ol,{version:0})}}function $l(E){let m,M="Setting <code>WANDB_LOG_MODEL</code> as <code>bool</code> will be deprecated in version 5 of 🤗 Transformers.";return{c(){m=a("p"),m.innerHTML=M},l(T){m=n(T,"P",{"data-svelte-h":!0}),c(m)!=="svelte-fxlq1n"&&(m.innerHTML=M)},m(T,C){i(T,m,C)},p:nn,d(T){T&&r(m)}}}function Cl(E){let m,M="Example:",T,C,y;return C=new an({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())`}}),{c(){m=a("p"),m.textContent=M,T=s(),h(C.$$.fragment)},l(_){m=n(_,"P",{"data-svelte-h":!0}),c(m)!=="svelte-11lpom8"&&(m.textContent=M),T=o(_),u(C.$$.fragment,_)},m(_,L){i(_,m,L),i(_,T,L),b(C,_,L),y=!0},p:nn,i(_){y||(f(C.$$.fragment,_),y=!0)},o(_){g(C.$$.fragment,_),y=!1},d(_){_&&(r(m),r(T)),v(C,_)}}}function kl(E){let m,M="Example:",T,C,y;return C=new an({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)`}}),{c(){m=a("p"),m.textContent=M,T=s(),h(C.$$.fragment)},l(_){m=n(_,"P",{"data-svelte-h":!0}),c(m)!=="svelte-11lpom8"&&(m.textContent=M),T=o(_),u(C.$$.fragment,_)},m(_,L){i(_,m,L),i(_,T,L),b(C,_,L),y=!0},p:nn,i(_){y||(f(C.$$.fragment,_),y=!0)},o(_){g(C.$$.fragment,_),y=!1},d(_){_&&(r(m),r(T)),v(C,_)}}}function wl(E){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=a("p"),m.innerHTML=M},l(T){m=n(T,"P",{"data-svelte-h":!0}),c(m)!=="svelte-rhwh6p"&&(m.innerHTML=M)},m(T,C){i(T,m,C)},p:nn,d(T){T&&r(m)}}}function yl(E){let m,M,T,C,y,_,L,x,I,Ht,Js="Callbacks",Qr,je,Ns=`Callbacks are objects that can customize the behavior of the training loop in the PyTorch
<a href="/docs/transformers/v4.33.3/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).`,Kr,Ae,Us=`Callbacks are “read only” pieces of code, apart from the <a href="/docs/transformers/v4.33.3/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/v4.33.3/en/main_classes/trainer#transformers.Trainer">Trainer</a> and override the methods you need (see <a href="trainer">trainer</a> for examples).`,ea,Je,Ss='By default a <a href="/docs/transformers/v4.33.3/en/main_classes/trainer#transformers.Trainer">Trainer</a> will use the following callbacks:',ta,Ne,Ds=`<li><a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.DefaultFlowCallback">DefaultFlowCallback</a> which handles the default behavior for logging, saving and evaluation.</li> <li><a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.PrinterCallback">PrinterCallback</a> or <a href="/docs/transformers/v4.33.3/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/v4.33.3/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>, otherwise
it’s the second one).</li> <li><a href="/docs/transformers/v4.33.3/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/v4.33.3/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/v4.33.3/en/main_classes/callback#transformers.integrations.CometCallback">CometCallback</a> if <a href="https://www.comet.ml/site/" rel="nofollow">comet_ml</a> is installed.</li> <li><a href="/docs/transformers/v4.33.3/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/v4.33.3/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/v4.33.3/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/v4.33.3/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/v4.33.3/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/v4.33.3/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/v4.33.3/en/main_classes/callback#transformers.integrations.FlyteCallback">FlyteCallback</a> if <a href="https://flyte.org/" rel="nofollow">flyte</a> is installed.</li>`,ra,Ue,Ps=`The main class that implements callbacks is <a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>. It gets the
<a href="/docs/transformers/v4.33.3/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> used to instantiate the <a href="/docs/transformers/v4.33.3/en/main_classes/trainer#transformers.Trainer">Trainer</a>, can access that
Trainer’s internal state via <a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.TrainerState">TrainerState</a>, and can take some actions on the training loop via
<a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.TrainerControl">TrainerControl</a>.`,aa,O,se,Rr,Se,sn,jt,Fs="Available Callbacks",na,De,Ws='Here is the list of the available <a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> in the library:',sa,S,Pe,on,At,zs='A <a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://www.comet.ml/site/" rel="nofollow">Comet ML</a>.',ln,j,Fe,cn,Jt,Bs="Setup the optional Comet.ml integration.",mn,Nt,Rs="Environment:",dn,Ut,Gs=`<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>`,pn,St,Ys=`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>.`,oa,V,We,fn,Dt,qs='A <a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that handles the default flow of the training loop for logs, evaluation and checkpoints.',la,X,ze,gn,Pt,Os='A bare <a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that just prints the logs.',ia,Z,Be,hn,Ft,Vs='A <a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that displays the progress of training or evaluation.',ca,D,Re,un,Wt,Xs='A <a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that handles early stopping.',bn,zt,Zs=`This callback depends on <a href="/docs/transformers/v4.33.3/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/v4.33.3/en/main_classes/callback#transformers.TrainerState">TrainerState</a>. Note that if the <a href="/docs/transformers/v4.33.3/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.`,ma,Q,Ge,vn,Bt,Qs='A <a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://www.tensorflow.org/tensorboard" rel="nofollow">TensorBoard</a>.',da,P,Ye,_n,Rt,Ks='A <a href="/docs/transformers/v4.33.3/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>.',Tn,A,qe,$n,Gt,eo="Setup the optional Weights &amp; Biases (<em>wandb</em>) integration.",Cn,Yt,to=`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:`,kn,qt,ro="Environment:",wn,F,Oe,Ot,ao=`<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.`,yn,oe,Mn,Vt,no=`<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>`,xn,Xt,so=`<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>`,Ln,Zt,oo=`<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>`,pa,W,Ve,En,Qt,lo=`A <a href="/docs/transformers/v4.33.3/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>.`,In,N,Xe,Hn,Kt,io="Setup the optional MLflow integration.",jn,er,co="Environment:",An,tr,mo=`<li><strong>HF_MLFLOW_LOG_ARTIFACTS</strong> (<code>str</code>, <em>optional</em>):
Whether to use MLflow <code>.log_artifact()</code> facility to log artifacts. This only makes sense if logging to a
remote server, e.g. s3 or GCS. If set to <code>True</code> or <em>1</em>, will copy each saved checkpoint on each save in
<a href="/docs/transformers/v4.33.3/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_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>`,fa,K,Ze,Jn,rr,po='A <a href="/docs/transformers/v4.33.3/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>.',ga,ee,Qe,Nn,ar,fo='A <a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that tracks the CO2 emission of training.',ha,z,Ke,Un,nr,go='TrainerCallback that sends the logs to <a href="https://app.neptune.ai" rel="nofollow">Neptune</a>.',Sn,sr,ho=`For instructions and examples, see the <a href="https://docs.neptune.ai/integrations/transformers" rel="nofollow">Transformers integration
guide</a> in the Neptune documentation.`,ua,J,et,Dn,or,uo='A <a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://clear.ml/" rel="nofollow">ClearML</a>.',Pn,lr,bo="Environment:",Fn,ir,vo=`<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>`,ba,B,tt,Wn,cr,_o='A <a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that logs to <a href="https://dagshub.com/" rel="nofollow">DagsHub</a>. Extends <code>MLflowCallback</code>',zn,U,rt,Bn,mr,To="Setup the DagsHub’s Logging integration.",Rn,dr,$o="Environment:",Gn,pr,Co=`<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>`,va,R,at,Yn,fr,ko=`A <a href="/docs/transformers/v4.33.3/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.`,qn,le,_a,te,ie,Gr,nt,On,gr,wo="TrainerCallback",Ta,$,st,Vn,hr,yo=`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:`,Xn,ur,Mo=`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.`,Zn,br,xo=`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 <code>~transformer.PrinterCallback</code>.`,Qn,ce,Kn,me,ot,es,vr,Lo="Event called at the beginning of an epoch.",ts,de,lt,rs,_r,Eo="Event called at the end of an epoch.",as,pe,it,ns,Tr,Io="Event called after an evaluation phase.",ss,fe,ct,os,$r,Ho='Event called at the end of the initialization of the <a href="/docs/transformers/v4.33.3/en/main_classes/trainer#transformers.Trainer">Trainer</a>.',ls,ge,mt,is,Cr,jo="Event called after logging the last logs.",cs,he,dt,ms,kr,Ao="Event called after a successful prediction.",ds,ue,pt,ps,wr,Jo="Event called after a prediction step.",fs,be,ft,gs,yr,No="Event called after a checkpoint save.",hs,ve,gt,us,Mr,Uo=`Event called at the beginning of a training step. If using gradient accumulation, one training step might take
several inputs.`,bs,_e,ht,vs,xr,So=`Event called at the end of a training step. If using gradient accumulation, one training step might take
several inputs.`,_s,Te,ut,Ts,Lr,Do="Event called at the end of an substep during gradient accumulation.",$s,$e,bt,Cs,Er,Po="Event called at the beginning of training.",ks,Ce,vt,ws,Ir,Fo="Event called at the end of training.",$a,_t,Wo='Here is an example of how to register a custom callback with the PyTorch <a href="/docs/transformers/v4.33.3/en/main_classes/trainer#transformers.Trainer">Trainer</a>:',Ca,Tt,ka,$t,zo="Another way to register a callback is to call <code>trainer.add_callback()</code> as follows:",wa,Ct,ya,re,ke,Yr,kt,ys,Hr,Bo="TrainerState",Ma,H,wt,Ms,jr,Ro=`A class containing the <a href="/docs/transformers/v4.33.3/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/v4.33.3/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>.`,xs,we,Ls,ye,yt,Es,Ar,Go="Create an instance from the content of <code>json_path</code>.",Is,Me,Mt,Hs,Jr,Yo="Save the content of this instance in JSON format inside <code>json_path</code>.",xa,ae,xe,qr,xt,js,Nr,qo="TrainerControl",La,ne,Lt,As,Ur,Oo=`A class that handles the <a href="/docs/transformers/v4.33.3/en/main_classes/trainer#transformers.Trainer">Trainer</a> control flow. This class is used by the <a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> to activate some
switches in the training loop.`,Ea,Or,Ia;return x=new Zr({}),Se=new Zr({}),Pe=new w({props:{name:"class transformers.integrations.CometCallback",anchor:"transformers.integrations.CometCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/integrations/integration_utils.py#L826"}}),Fe=new w({props:{name:"setup",anchor:"transformers.integrations.CometCallback.setup",parameters:[{name:"args",val:""},{name:"state",val:""},{name:"model",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/integrations/integration_utils.py#L837"}}),We=new w({props:{name:"class transformers.DefaultFlowCallback",anchor:"transformers.DefaultFlowCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L424"}}),ze=new w({props:{name:"class transformers.PrinterCallback",anchor:"transformers.PrinterCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L524"}}),Be=new w({props:{name:"class transformers.ProgressCallback",anchor:"transformers.ProgressCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L474"}}),Re=new w({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/v4.33.3/src/transformers/trainer_callback.py#L535"}}),Ge=new w({props:{name:"class transformers.integrations.TensorBoardCallback",anchor:"transformers.integrations.TensorBoardCallback",parameters:[{name:"tb_writer",val:" = None"}],parametersDescription:[{anchor:"transformers.integrations.TensorBoardCallback.tb_writer",description:`<strong>tb_writer</strong> (<code>SummaryWriter</code>, <em>optional</em>) &#x2014;
The writer to use. Will instantiate one if not set.`,name:"tb_writer"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/integrations/integration_utils.py#L573"}}),Ye=new w({props:{name:"class transformers.integrations.WandbCallback",anchor:"transformers.integrations.WandbCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/integrations/integration_utils.py#L659"}}),qe=new w({props:{name:"setup",anchor:"transformers.integrations.WandbCallback.setup",parameters:[{name:"args",val:""},{name:"state",val:""},{name:"model",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/integrations/integration_utils.py#L684"}}),oe=new Tl({props:{version:"5.0",$$slots:{default:[$l]},$$scope:{ctx:E}}}),Ve=new w({props:{name:"class transformers.integrations.MLflowCallback",anchor:"transformers.integrations.MLflowCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/integrations/integration_utils.py#L926"}}),Xe=new w({props:{name:"setup",anchor:"transformers.integrations.MLflowCallback.setup",parameters:[{name:"args",val:""},{name:"state",val:""},{name:"model",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/integrations/integration_utils.py#L945"}}),Ze=new w({props:{name:"class transformers.integrations.AzureMLCallback",anchor:"transformers.integrations.AzureMLCallback",parameters:[{name:"azureml_run",val:" = None"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/integrations/integration_utils.py#L903"}}),Qe=new w({props:{name:"class transformers.integrations.CodeCarbonCallback",anchor:"transformers.integrations.CodeCarbonCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/integrations/integration_utils.py#L1392"}}),Ke=new w({props:{name:"class transformers.integrations.NeptuneCallback",anchor:"transformers.integrations.NeptuneCallback",parameters:[{name:"api_token",val:": typing.Optional[str] = None"},{name:"project",val:": typing.Optional[str] = None"},{name:"name",val:": typing.Optional[str] = None"},{name:"base_namespace",val:": str = 'finetuning'"},{name:"run",val:" = None"},{name:"log_parameters",val:": bool = True"},{name:"log_checkpoints",val:": typing.Optional[str] = None"},{name:"**neptune_run_kwargs",val:""}],parametersDescription:[{anchor:"transformers.integrations.NeptuneCallback.api_token",description:`<strong>api_token</strong> (<code>str</code>, <em>optional</em>) &#x2014; Neptune API token obtained upon registration.
You can leave this argument out if you have saved your token to the <code>NEPTUNE_API_TOKEN</code> environment
variable (strongly recommended). See full setup instructions in the
<a href="https://docs.neptune.ai/setup/installation" rel="nofollow">docs</a>.`,name:"api_token"},{anchor:"transformers.integrations.NeptuneCallback.project",description:`<strong>project</strong> (<code>str</code>, <em>optional</em>) &#x2014; Name of an existing Neptune project, in the form &#x201C;workspace-name/project-name&#x201D;.
You can find and copy the name in Neptune from the project settings -&gt; Properties. If None (default), the
value of the <code>NEPTUNE_PROJECT</code> environment variable is used.`,name:"project"},{anchor:"transformers.integrations.NeptuneCallback.name",description:"<strong>name</strong> (<code>str</code>, <em>optional</em>) &#x2014; Custom name for the run.",name:"name"},{anchor:"transformers.integrations.NeptuneCallback.base_namespace",description:`<strong>base_namespace</strong> (<code>str</code>, optional, defaults to &#x201C;finetuning&#x201D;) &#x2014; In the Neptune run, the root namespace
that will contain all of the metadata logged by the callback.`,name:"base_namespace"},{anchor:"transformers.integrations.NeptuneCallback.log_parameters",description:`<strong>log_parameters</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
If True, logs all Trainer arguments and model parameters provided by the Trainer.`,name:"log_parameters"},{anchor:"transformers.integrations.NeptuneCallback.log_checkpoints",description:`<strong>log_checkpoints</strong> (<code>str</code>, <em>optional</em>) &#x2014; If &#x201C;same&#x201D;, uploads checkpoints whenever they are saved by the Trainer.
If &#x201C;last&#x201D;, uploads only the most recently saved checkpoint. If &#x201C;best&#x201D;, uploads the best checkpoint (among
the ones saved by the Trainer). If <code>None</code>, does not upload checkpoints.`,name:"log_checkpoints"},{anchor:"transformers.integrations.NeptuneCallback.run",description:`<strong>run</strong> (<code>Run</code>, <em>optional</em>) &#x2014; Pass a Neptune run object if you want to continue logging to an existing run.
Read more about resuming runs in the <a href="https://docs.neptune.ai/logging/to_existing_object" rel="nofollow">docs</a>.`,name:"run"},{anchor:"transformers.integrations.NeptuneCallback.*neptune_run_kwargs",description:`*<strong>*neptune_run_kwargs</strong> (<em>optional</em>) &#x2014;
Additional keyword arguments to be passed directly to the
<a href="https://docs.neptune.ai/api/neptune#init_run" rel="nofollow"><code>neptune.init_run()</code></a> function when a new run is created.`,name:"*neptune_run_kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/integrations/integration_utils.py#L1121"}}),et=new w({props:{name:"class transformers.integrations.ClearMLCallback",anchor:"transformers.integrations.ClearMLCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/integrations/integration_utils.py#L1421"}}),tt=new w({props:{name:"class transformers.integrations.DagsHubCallback",anchor:"transformers.integrations.DagsHubCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/integrations/integration_utils.py#L1061"}}),rt=new w({props:{name:"setup",anchor:"transformers.integrations.DagsHubCallback.setup",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/integrations/integration_utils.py#L1075"}}),at=new w({props:{name:"class transformers.integrations.FlyteCallback",anchor:"transformers.integrations.FlyteCallback",parameters:[{name:"save_log_history",val:": bool = True"},{name:"sync_checkpoints",val:": bool = True"}],parametersDescription:[{anchor:"transformers.integrations.FlyteCallback.save_log_history",description:`<strong>save_log_history</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
When set to True, the training logs are saved as a Flyte Deck.`,name:"save_log_history"},{anchor:"transformers.integrations.FlyteCallback.sync_checkpoints",description:`<strong>sync_checkpoints</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
When set to True, checkpoints are synced with Flyte and can be used to resume training in the case of an
interruption.`,name:"sync_checkpoints"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/integrations/integration_utils.py#L1540"}}),le=new sl({props:{anchor:"transformers.integrations.FlyteCallback.example",$$slots:{default:[Cl]},$$scope:{ctx:E}}}),nt=new Zr({}),st=new w({props:{name:"class transformers.TrainerCallback",anchor:"transformers.TrainerCallback",parameters:[],parametersDescription:[{anchor:"transformers.TrainerCallback.args",description:`<strong>args</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>) &#x2014;
The training arguments used to instantiate the <a href="/docs/transformers/v4.33.3/en/main_classes/trainer#transformers.Trainer">Trainer</a>.`,name:"args"},{anchor:"transformers.TrainerCallback.state",description:`<strong>state</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.TrainerState">TrainerState</a>) &#x2014;
The current state of the <a href="/docs/transformers/v4.33.3/en/main_classes/trainer#transformers.Trainer">Trainer</a>.`,name:"state"},{anchor:"transformers.TrainerCallback.control",description:`<strong>control</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/callback#transformers.TrainerControl">TrainerControl</a>) &#x2014;
The object that is returned to the <a href="/docs/transformers/v4.33.3/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/v4.33.3/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/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer used for encoding the data.`,name:"tokenizer"},{anchor:"transformers.TrainerCallback.optimizer",description:`<strong>optimizer</strong> (<code>torch.optim.Optimizer</code>) &#x2014;
The optimizer used for the training steps.`,name:"optimizer"},{anchor:"transformers.TrainerCallback.lr_scheduler",description:`<strong>lr_scheduler</strong> (<code>torch.optim.lr_scheduler.LambdaLR</code>) &#x2014;
The scheduler used for setting the learning rate.`,name:"lr_scheduler"},{anchor:"transformers.TrainerCallback.train_dataloader",description:`<strong>train_dataloader</strong> (<code>torch.utils.data.DataLoader</code>, <em>optional</em>) &#x2014;
The current dataloader used for training.`,name:"train_dataloader"},{anchor:"transformers.TrainerCallback.eval_dataloader",description:`<strong>eval_dataloader</strong> (<code>torch.utils.data.DataLoader</code>, <em>optional</em>) &#x2014;
The current dataloader used for training.`,name:"eval_dataloader"},{anchor:"transformers.TrainerCallback.metrics",description:`<strong>metrics</strong> (<code>Dict[str, float]</code>) &#x2014;
The metrics computed by the last evaluation phase.</p>
<p>Those are only accessible in the event <code>on_evaluate</code>.`,name:"metrics"},{anchor:"transformers.TrainerCallback.logs",description:`<strong>logs</strong>  (<code>Dict[str, float]</code>) &#x2014;
The values to log.</p>
<p>Those are only accessible in the event <code>on_log</code>.`,name:"logs"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L168"}}),ce=new sl({props:{anchor:"transformers.TrainerCallback.example",$$slots:{default:[kl]},$$scope:{ctx:E}}}),ot=new w({props:{name:"on_epoch_begin",anchor:"transformers.TrainerCallback.on_epoch_begin",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L236"}}),lt=new w({props:{name:"on_epoch_end",anchor:"transformers.TrainerCallback.on_epoch_end",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L242"}}),it=new w({props:{name:"on_evaluate",anchor:"transformers.TrainerCallback.on_evaluate",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L268"}}),ct=new w({props:{name:"on_init_end",anchor:"transformers.TrainerCallback.on_init_end",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L218"}}),mt=new w({props:{name:"on_log",anchor:"transformers.TrainerCallback.on_log",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L286"}}),dt=new w({props:{name:"on_predict",anchor:"transformers.TrainerCallback.on_predict",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"metrics",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L274"}}),pt=new w({props:{name:"on_prediction_step",anchor:"transformers.TrainerCallback.on_prediction_step",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L292"}}),ft=new w({props:{name:"on_save",anchor:"transformers.TrainerCallback.on_save",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L280"}}),gt=new w({props:{name:"on_step_begin",anchor:"transformers.TrainerCallback.on_step_begin",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L248"}}),ht=new w({props:{name:"on_step_end",anchor:"transformers.TrainerCallback.on_step_end",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L261"}}),ut=new w({props:{name:"on_substep_end",anchor:"transformers.TrainerCallback.on_substep_end",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L255"}}),bt=new w({props:{name:"on_train_begin",anchor:"transformers.TrainerCallback.on_train_begin",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L224"}}),vt=new w({props:{name:"on_train_end",anchor:"transformers.TrainerCallback.on_train_end",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L230"}}),Tt=new an({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>
)`}}),Ct=new an({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())`}}),kt=new Zr({}),wt=new w({props:{name:"class transformers.TrainerState",anchor:"transformers.TrainerState",parameters:[{name:"epoch",val:": typing.Optional[float] = None"},{name:"global_step",val:": int = 0"},{name:"max_steps",val:": int = 0"},{name:"logging_steps",val:": int = 500"},{name:"eval_steps",val:": int = 500"},{name:"save_steps",val:": int = 500"},{name:"num_train_epochs",val:": int = 0"},{name:"total_flos",val:": float = 0"},{name:"log_history",val:": typing.List[typing.Dict[str, float]] = None"},{name:"best_metric",val:": typing.Optional[float] = None"},{name:"best_model_checkpoint",val:": typing.Optional[str] = None"},{name:"is_local_process_zero",val:": bool = True"},{name:"is_world_process_zero",val:": bool = True"},{name:"is_hyper_param_search",val:": bool = False"},{name:"trial_name",val:": str = None"},{name:"trial_params",val:": typing.Dict[str, typing.Union[str, float, int, bool]] = None"}],parametersDescription:[{anchor:"transformers.TrainerState.epoch",description:`<strong>epoch</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Only set during training, will represent the epoch the training is at (the decimal part being the
percentage of the current epoch completed).`,name:"epoch"},{anchor:"transformers.TrainerState.global_step",description:`<strong>global_step</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
During training, represents the number of update steps completed.`,name:"global_step"},{anchor:"transformers.TrainerState.max_steps",description:`<strong>max_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
The number of update steps to do during the current training.`,name:"max_steps"},{anchor:"transformers.TrainerState.logging_steps",description:`<strong>logging_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 500) &#x2014;
Log every X updates steps`,name:"logging_steps"},{anchor:"transformers.TrainerState.eval_steps",description:`<strong>eval_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Run an evaluation every X steps.`,name:"eval_steps"},{anchor:"transformers.TrainerState.save_steps",description:`<strong>save_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 500) &#x2014;
Save checkpoint every X updates steps.`,name:"save_steps"},{anchor:"transformers.TrainerState.total_flos",description:`<strong>total_flos</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The total number of floating operations done by the model since the beginning of training (stored as floats
to avoid overflow).`,name:"total_flos"},{anchor:"transformers.TrainerState.log_history",description:`<strong>log_history</strong> (<code>List[Dict[str, float]]</code>, <em>optional</em>) &#x2014;
The list of logs done since the beginning of training.`,name:"log_history"},{anchor:"transformers.TrainerState.best_metric",description:`<strong>best_metric</strong> (<code>float</code>, <em>optional</em>) &#x2014;
When tracking the best model, the value of the best metric encountered so far.`,name:"best_metric"},{anchor:"transformers.TrainerState.best_model_checkpoint",description:`<strong>best_model_checkpoint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
When tracking the best model, the value of the name of the checkpoint for the best model encountered so
far.`,name:"best_model_checkpoint"},{anchor:"transformers.TrainerState.is_local_process_zero",description:`<strong>is_local_process_zero</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not this process is the local (e.g., on one machine if training in a distributed fashion on
several machines) main process.`,name:"is_local_process_zero"},{anchor:"transformers.TrainerState.is_world_process_zero",description:`<strong>is_world_process_zero</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not this process is the global main process (when training in a distributed fashion on several
machines, this is only going to be <code>True</code> for one process).`,name:"is_world_process_zero"},{anchor:"transformers.TrainerState.is_hyper_param_search",description:`<strong>is_hyper_param_search</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether we are in the process of a hyper parameter search using Trainer.hyperparameter_search. This will
impact the way data will be logged in TensorBoard.`,name:"is_hyper_param_search"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L35"}}),we=new cl({props:{$$slots:{default:[wl]},$$scope:{ctx:E}}}),yt=new w({props:{name:"load_from_json",anchor:"transformers.TrainerState.load_from_json",parameters:[{name:"json_path",val:": str"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L110"}}),Mt=new w({props:{name:"save_to_json",anchor:"transformers.TrainerState.save_to_json",parameters:[{name:"json_path",val:": str"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L104"}}),xt=new Zr({}),Lt=new w({props:{name:"class transformers.TrainerControl",anchor:"transformers.TrainerControl",parameters:[{name:"should_training_stop",val:": bool = False"},{name:"should_epoch_stop",val:": bool = False"},{name:"should_save",val:": bool = False"},{name:"should_evaluate",val:": bool = False"},{name:"should_log",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TrainerControl.should_training_stop",description:`<strong>should_training_stop</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the training should be interrupted.</p>
<p>If <code>True</code>, this variable will not be set back to <code>False</code>. The training will just stop.`,name:"should_training_stop"},{anchor:"transformers.TrainerControl.should_epoch_stop",description:`<strong>should_epoch_stop</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the current epoch should be interrupted.</p>
<p>If <code>True</code>, this variable will be set back to <code>False</code> at the beginning of the next epoch.`,name:"should_epoch_stop"},{anchor:"transformers.TrainerControl.should_save",description:`<strong>should_save</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the model should be saved at this step.</p>
<p>If <code>True</code>, this variable will be set back to <code>False</code> at the beginning of the next step.`,name:"should_save"},{anchor:"transformers.TrainerControl.should_evaluate",description:`<strong>should_evaluate</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the model should be evaluated at this step.</p>
<p>If <code>True</code>, this variable will be set back to <code>False</code> at the beginning of the next step.`,name:"should_evaluate"},{anchor:"transformers.TrainerControl.should_log",description:`<strong>should_log</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the logs should be reported at this step.</p>
<p>If <code>True</code>, this variable will be set back to <code>False</code> at the beginning of the next step.`,name:"should_log"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/trainer_callback.py#L119"}}),{c(){m=a("meta"),M=s(),T=a("p"),C=s(),y=a("h1"),_=a("a"),L=a("span"),h(x.$$.fragment),I=s(),Ht=a("span"),Ht.textContent=Js,Qr=s(),je=a("p"),je.innerHTML=Ns,Kr=s(),Ae=a("p"),Ae.innerHTML=Us,ea=s(),Je=a("p"),Je.innerHTML=Ss,ta=s(),Ne=a("ul"),Ne.innerHTML=Ds,ra=s(),Ue=a("p"),Ue.innerHTML=Ps,aa=s(),O=a("h2"),se=a("a"),Rr=a("span"),h(Se.$$.fragment),sn=s(),jt=a("span"),jt.textContent=Fs,na=s(),De=a("p"),De.innerHTML=Ws,sa=s(),S=a("div"),h(Pe.$$.fragment),on=s(),At=a("p"),At.innerHTML=zs,ln=s(),j=a("div"),h(Fe.$$.fragment),cn=s(),Jt=a("p"),Jt.textContent=Bs,mn=s(),Nt=a("p"),Nt.textContent=Rs,dn=s(),Ut=a("ul"),Ut.innerHTML=Gs,pn=s(),St=a("p"),St.innerHTML=Ys,oa=s(),V=a("div"),h(We.$$.fragment),fn=s(),Dt=a("p"),Dt.innerHTML=qs,la=s(),X=a("div"),h(ze.$$.fragment),gn=s(),Pt=a("p"),Pt.innerHTML=Os,ia=s(),Z=a("div"),h(Be.$$.fragment),hn=s(),Ft=a("p"),Ft.innerHTML=Vs,ca=s(),D=a("div"),h(Re.$$.fragment),un=s(),Wt=a("p"),Wt.innerHTML=Xs,bn=s(),zt=a("p"),zt.innerHTML=Zs,ma=s(),Q=a("div"),h(Ge.$$.fragment),vn=s(),Bt=a("p"),Bt.innerHTML=Qs,da=s(),P=a("div"),h(Ye.$$.fragment),_n=s(),Rt=a("p"),Rt.innerHTML=Ks,Tn=s(),A=a("div"),h(qe.$$.fragment),$n=s(),Gt=a("p"),Gt.innerHTML=eo,Cn=s(),Yt=a("p"),Yt.innerHTML=to,kn=s(),qt=a("p"),qt.textContent=ro,wn=s(),F=a("ul"),Oe=a("li"),Ot=a("p"),Ot.innerHTML=ao,yn=s(),h(oe.$$.fragment),Mn=s(),Vt=a("li"),Vt.innerHTML=no,xn=s(),Xt=a("li"),Xt.innerHTML=so,Ln=s(),Zt=a("li"),Zt.innerHTML=oo,pa=s(),W=a("div"),h(Ve.$$.fragment),En=s(),Qt=a("p"),Qt.innerHTML=lo,In=s(),N=a("div"),h(Xe.$$.fragment),Hn=s(),Kt=a("p"),Kt.textContent=io,jn=s(),er=a("p"),er.textContent=co,An=s(),tr=a("ul"),tr.innerHTML=mo,fa=s(),K=a("div"),h(Ze.$$.fragment),Jn=s(),rr=a("p"),rr.innerHTML=po,ga=s(),ee=a("div"),h(Qe.$$.fragment),Nn=s(),ar=a("p"),ar.innerHTML=fo,ha=s(),z=a("div"),h(Ke.$$.fragment),Un=s(),nr=a("p"),nr.innerHTML=go,Sn=s(),sr=a("p"),sr.innerHTML=ho,ua=s(),J=a("div"),h(et.$$.fragment),Dn=s(),or=a("p"),or.innerHTML=uo,Pn=s(),lr=a("p"),lr.textContent=bo,Fn=s(),ir=a("ul"),ir.innerHTML=vo,ba=s(),B=a("div"),h(tt.$$.fragment),Wn=s(),cr=a("p"),cr.innerHTML=_o,zn=s(),U=a("div"),h(rt.$$.fragment),Bn=s(),mr=a("p"),mr.textContent=To,Rn=s(),dr=a("p"),dr.textContent=$o,Gn=s(),pr=a("ul"),pr.innerHTML=Co,va=s(),R=a("div"),h(at.$$.fragment),Yn=s(),fr=a("p"),fr.innerHTML=ko,qn=s(),h(le.$$.fragment),_a=s(),te=a("h2"),ie=a("a"),Gr=a("span"),h(nt.$$.fragment),On=s(),gr=a("span"),gr.textContent=wo,Ta=s(),$=a("div"),h(st.$$.fragment),Vn=s(),hr=a("p"),hr.textContent=yo,Xn=s(),ur=a("p"),ur.innerHTML=Mo,Zn=s(),br=a("p"),br.innerHTML=xo,Qn=s(),h(ce.$$.fragment),Kn=s(),me=a("div"),h(ot.$$.fragment),es=s(),vr=a("p"),vr.textContent=Lo,ts=s(),de=a("div"),h(lt.$$.fragment),rs=s(),_r=a("p"),_r.textContent=Eo,as=s(),pe=a("div"),h(it.$$.fragment),ns=s(),Tr=a("p"),Tr.textContent=Io,ss=s(),fe=a("div"),h(ct.$$.fragment),os=s(),$r=a("p"),$r.innerHTML=Ho,ls=s(),ge=a("div"),h(mt.$$.fragment),is=s(),Cr=a("p"),Cr.textContent=jo,cs=s(),he=a("div"),h(dt.$$.fragment),ms=s(),kr=a("p"),kr.textContent=Ao,ds=s(),ue=a("div"),h(pt.$$.fragment),ps=s(),wr=a("p"),wr.textContent=Jo,fs=s(),be=a("div"),h(ft.$$.fragment),gs=s(),yr=a("p"),yr.textContent=No,hs=s(),ve=a("div"),h(gt.$$.fragment),us=s(),Mr=a("p"),Mr.textContent=Uo,bs=s(),_e=a("div"),h(ht.$$.fragment),vs=s(),xr=a("p"),xr.textContent=So,_s=s(),Te=a("div"),h(ut.$$.fragment),Ts=s(),Lr=a("p"),Lr.textContent=Do,$s=s(),$e=a("div"),h(bt.$$.fragment),Cs=s(),Er=a("p"),Er.textContent=Po,ks=s(),Ce=a("div"),h(vt.$$.fragment),ws=s(),Ir=a("p"),Ir.textContent=Fo,$a=s(),_t=a("p"),_t.innerHTML=Wo,Ca=s(),h(Tt.$$.fragment),ka=s(),$t=a("p"),$t.innerHTML=zo,wa=s(),h(Ct.$$.fragment),ya=s(),re=a("h2"),ke=a("a"),Yr=a("span"),h(kt.$$.fragment),ys=s(),Hr=a("span"),Hr.textContent=Bo,Ma=s(),H=a("div"),h(wt.$$.fragment),Ms=s(),jr=a("p"),jr.innerHTML=Ro,xs=s(),h(we.$$.fragment),Ls=s(),ye=a("div"),h(yt.$$.fragment),Es=s(),Ar=a("p"),Ar.innerHTML=Go,Is=s(),Me=a("div"),h(Mt.$$.fragment),Hs=s(),Jr=a("p"),Jr.innerHTML=Yo,xa=s(),ae=a("h2"),xe=a("a"),qr=a("span"),h(xt.$$.fragment),js=s(),Nr=a("span"),Nr.textContent=qo,La=s(),ne=a("div"),h(Lt.$$.fragment),As=s(),Ur=a("p"),Ur.innerHTML=Oo,Ea=s(),Or=a("p"),this.h()},l(e){const l=ul("svelte-1phssyn",document.head);m=n(l,"META",{name:!0,content:!0}),l.forEach(r),M=o(e),T=n(e,"P",{}),p(T).forEach(r),C=o(e),y=n(e,"H1",{class:!0});var Et=p(y);_=n(Et,"A",{id:!0,class:!0,href:!0});var Vr=p(_);L=n(Vr,"SPAN",{});var Xr=p(L);u(x.$$.fragment,Xr),Xr.forEach(r),Vr.forEach(r),I=o(Et),Ht=n(Et,"SPAN",{"data-svelte-h":!0}),c(Ht)!=="svelte-e19hn7"&&(Ht.textContent=Js),Et.forEach(r),Qr=o(e),je=n(e,"P",{"data-svelte-h":!0}),c(je)!=="svelte-24ow07"&&(je.innerHTML=Ns),Kr=o(e),Ae=n(e,"P",{"data-svelte-h":!0}),c(Ae)!=="svelte-1s4yi0l"&&(Ae.innerHTML=Us),ea=o(e),Je=n(e,"P",{"data-svelte-h":!0}),c(Je)!=="svelte-1kc4ads"&&(Je.innerHTML=Ss),ta=o(e),Ne=n(e,"UL",{"data-svelte-h":!0}),c(Ne)!=="svelte-c3dl4"&&(Ne.innerHTML=Ds),ra=o(e),Ue=n(e,"P",{"data-svelte-h":!0}),c(Ue)!=="svelte-1ihpzsg"&&(Ue.innerHTML=Ps),aa=o(e),O=n(e,"H2",{class:!0});var It=p(O);se=n(It,"A",{id:!0,class:!0,href:!0});var Vo=p(se);Rr=n(Vo,"SPAN",{});var Xo=p(Rr);u(Se.$$.fragment,Xo),Xo.forEach(r),Vo.forEach(r),sn=o(It),jt=n(It,"SPAN",{"data-svelte-h":!0}),c(jt)!=="svelte-1d3butk"&&(jt.textContent=Fs),It.forEach(r),na=o(e),De=n(e,"P",{"data-svelte-h":!0}),c(De)!=="svelte-4mqi47"&&(De.innerHTML=Ws),sa=o(e),S=n(e,"DIV",{class:!0});var Sr=p(S);u(Pe.$$.fragment,Sr),on=o(Sr),At=n(Sr,"P",{"data-svelte-h":!0}),c(At)!=="svelte-1i7gfn0"&&(At.innerHTML=zs),ln=o(Sr),j=n(Sr,"DIV",{class:!0});var G=p(j);u(Fe.$$.fragment,G),cn=o(G),Jt=n(G,"P",{"data-svelte-h":!0}),c(Jt)!=="svelte-1bfkm9x"&&(Jt.textContent=Bs),mn=o(G),Nt=n(G,"P",{"data-svelte-h":!0}),c(Nt)!=="svelte-1fkshtn"&&(Nt.textContent=Rs),dn=o(G),Ut=n(G,"UL",{"data-svelte-h":!0}),c(Ut)!=="svelte-12drq5x"&&(Ut.innerHTML=Gs),pn=o(G),St=n(G,"P",{"data-svelte-h":!0}),c(St)!=="svelte-1faq0a7"&&(St.innerHTML=Ys),G.forEach(r),Sr.forEach(r),oa=o(e),V=n(e,"DIV",{class:!0});var Ha=p(V);u(We.$$.fragment,Ha),fn=o(Ha),Dt=n(Ha,"P",{"data-svelte-h":!0}),c(Dt)!=="svelte-1om6cjl"&&(Dt.innerHTML=qs),Ha.forEach(r),la=o(e),X=n(e,"DIV",{class:!0});var ja=p(X);u(ze.$$.fragment,ja),gn=o(ja),Pt=n(ja,"P",{"data-svelte-h":!0}),c(Pt)!=="svelte-1xg3rzk"&&(Pt.innerHTML=Os),ja.forEach(r),ia=o(e),Z=n(e,"DIV",{class:!0});var Aa=p(Z);u(Be.$$.fragment,Aa),hn=o(Aa),Ft=n(Aa,"P",{"data-svelte-h":!0}),c(Ft)!=="svelte-wijiwz"&&(Ft.innerHTML=Vs),Aa.forEach(r),ca=o(e),D=n(e,"DIV",{class:!0});var Dr=p(D);u(Re.$$.fragment,Dr),un=o(Dr),Wt=n(Dr,"P",{"data-svelte-h":!0}),c(Wt)!=="svelte-1qvqmnq"&&(Wt.innerHTML=Xs),bn=o(Dr),zt=n(Dr,"P",{"data-svelte-h":!0}),c(zt)!=="svelte-1gk50rc"&&(zt.innerHTML=Zs),Dr.forEach(r),ma=o(e),Q=n(e,"DIV",{class:!0});var Ja=p(Q);u(Ge.$$.fragment,Ja),vn=o(Ja),Bt=n(Ja,"P",{"data-svelte-h":!0}),c(Bt)!=="svelte-um2f6n"&&(Bt.innerHTML=Qs),Ja.forEach(r),da=o(e),P=n(e,"DIV",{class:!0});var Pr=p(P);u(Ye.$$.fragment,Pr),_n=o(Pr),Rt=n(Pr,"P",{"data-svelte-h":!0}),c(Rt)!=="svelte-dhthbe"&&(Rt.innerHTML=Ks),Tn=o(Pr),A=n(Pr,"DIV",{class:!0});var Y=p(A);u(qe.$$.fragment,Y),$n=o(Y),Gt=n(Y,"P",{"data-svelte-h":!0}),c(Gt)!=="svelte-op70zs"&&(Gt.innerHTML=eo),Cn=o(Y),Yt=n(Y,"P",{"data-svelte-h":!0}),c(Yt)!=="svelte-m2rt7w"&&(Yt.innerHTML=to),kn=o(Y),qt=n(Y,"P",{"data-svelte-h":!0}),c(qt)!=="svelte-1fkshtn"&&(qt.textContent=ro),wn=o(Y),F=n(Y,"UL",{});var Le=p(F);Oe=n(Le,"LI",{});var Na=p(Oe);Ot=n(Na,"P",{"data-svelte-h":!0}),c(Ot)!=="svelte-py3r3s"&&(Ot.innerHTML=ao),yn=o(Na),u(oe.$$.fragment,Na),Na.forEach(r),Mn=o(Le),Vt=n(Le,"LI",{"data-svelte-h":!0}),c(Vt)!=="svelte-dx3m30"&&(Vt.innerHTML=no),xn=o(Le),Xt=n(Le,"LI",{"data-svelte-h":!0}),c(Xt)!=="svelte-n1uh6c"&&(Xt.innerHTML=so),Ln=o(Le),Zt=n(Le,"LI",{"data-svelte-h":!0}),c(Zt)!=="svelte-ybo66z"&&(Zt.innerHTML=oo),Le.forEach(r),Y.forEach(r),Pr.forEach(r),pa=o(e),W=n(e,"DIV",{class:!0});var Fr=p(W);u(Ve.$$.fragment,Fr),En=o(Fr),Qt=n(Fr,"P",{"data-svelte-h":!0}),c(Qt)!=="svelte-1sr8w0q"&&(Qt.innerHTML=lo),In=o(Fr),N=n(Fr,"DIV",{class:!0});var Ee=p(N);u(Xe.$$.fragment,Ee),Hn=o(Ee),Kt=n(Ee,"P",{"data-svelte-h":!0}),c(Kt)!=="svelte-nmg16f"&&(Kt.textContent=io),jn=o(Ee),er=n(Ee,"P",{"data-svelte-h":!0}),c(er)!=="svelte-1fkshtn"&&(er.textContent=co),An=o(Ee),tr=n(Ee,"UL",{"data-svelte-h":!0}),c(tr)!=="svelte-1al1z2i"&&(tr.innerHTML=mo),Ee.forEach(r),Fr.forEach(r),fa=o(e),K=n(e,"DIV",{class:!0});var Ua=p(K);u(Ze.$$.fragment,Ua),Jn=o(Ua),rr=n(Ua,"P",{"data-svelte-h":!0}),c(rr)!=="svelte-1mwry7b"&&(rr.innerHTML=po),Ua.forEach(r),ga=o(e),ee=n(e,"DIV",{class:!0});var Sa=p(ee);u(Qe.$$.fragment,Sa),Nn=o(Sa),ar=n(Sa,"P",{"data-svelte-h":!0}),c(ar)!=="svelte-10vc7uj"&&(ar.innerHTML=fo),Sa.forEach(r),ha=o(e),z=n(e,"DIV",{class:!0});var Wr=p(z);u(Ke.$$.fragment,Wr),Un=o(Wr),nr=n(Wr,"P",{"data-svelte-h":!0}),c(nr)!=="svelte-4ag9j6"&&(nr.innerHTML=go),Sn=o(Wr),sr=n(Wr,"P",{"data-svelte-h":!0}),c(sr)!=="svelte-1mhjcx0"&&(sr.innerHTML=ho),Wr.forEach(r),ua=o(e),J=n(e,"DIV",{class:!0});var Ie=p(J);u(et.$$.fragment,Ie),Dn=o(Ie),or=n(Ie,"P",{"data-svelte-h":!0}),c(or)!=="svelte-8r4j7t"&&(or.innerHTML=uo),Pn=o(Ie),lr=n(Ie,"P",{"data-svelte-h":!0}),c(lr)!=="svelte-1fkshtn"&&(lr.textContent=bo),Fn=o(Ie),ir=n(Ie,"UL",{"data-svelte-h":!0}),c(ir)!=="svelte-15svthu"&&(ir.innerHTML=vo),Ie.forEach(r),ba=o(e),B=n(e,"DIV",{class:!0});var zr=p(B);u(tt.$$.fragment,zr),Wn=o(zr),cr=n(zr,"P",{"data-svelte-h":!0}),c(cr)!=="svelte-ljcuu"&&(cr.innerHTML=_o),zn=o(zr),U=n(zr,"DIV",{class:!0});var He=p(U);u(rt.$$.fragment,He),Bn=o(He),mr=n(He,"P",{"data-svelte-h":!0}),c(mr)!=="svelte-1wbmj3"&&(mr.textContent=To),Rn=o(He),dr=n(He,"P",{"data-svelte-h":!0}),c(dr)!=="svelte-1fkshtn"&&(dr.textContent=$o),Gn=o(He),pr=n(He,"UL",{"data-svelte-h":!0}),c(pr)!=="svelte-dna85o"&&(pr.innerHTML=Co),He.forEach(r),zr.forEach(r),va=o(e),R=n(e,"DIV",{class:!0});var Br=p(R);u(at.$$.fragment,Br),Yn=o(Br),fr=n(Br,"P",{"data-svelte-h":!0}),c(fr)!=="svelte-9bp32r"&&(fr.innerHTML=ko),qn=o(Br),u(le.$$.fragment,Br),Br.forEach(r),_a=o(e),te=n(e,"H2",{class:!0});var Da=p(te);ie=n(Da,"A",{id:!0,class:!0,href:!0});var Zo=p(ie);Gr=n(Zo,"SPAN",{});var Qo=p(Gr);u(nt.$$.fragment,Qo),Qo.forEach(r),Zo.forEach(r),On=o(Da),gr=n(Da,"SPAN",{"data-svelte-h":!0}),c(gr)!=="svelte-mml66t"&&(gr.textContent=wo),Da.forEach(r),Ta=o(e),$=n(e,"DIV",{class:!0});var k=p($);u(st.$$.fragment,k),Vn=o(k),hr=n(k,"P",{"data-svelte-h":!0}),c(hr)!=="svelte-14xg00o"&&(hr.textContent=yo),Xn=o(k),ur=n(k,"P",{"data-svelte-h":!0}),c(ur)!=="svelte-1xprdvt"&&(ur.innerHTML=Mo),Zn=o(k),br=n(k,"P",{"data-svelte-h":!0}),c(br)!=="svelte-1vv9zs6"&&(br.innerHTML=xo),Qn=o(k),u(ce.$$.fragment,k),Kn=o(k),me=n(k,"DIV",{class:!0});var Pa=p(me);u(ot.$$.fragment,Pa),es=o(Pa),vr=n(Pa,"P",{"data-svelte-h":!0}),c(vr)!=="svelte-106889p"&&(vr.textContent=Lo),Pa.forEach(r),ts=o(k),de=n(k,"DIV",{class:!0});var Fa=p(de);u(lt.$$.fragment,Fa),rs=o(Fa),_r=n(Fa,"P",{"data-svelte-h":!0}),c(_r)!=="svelte-oshcpj"&&(_r.textContent=Eo),Fa.forEach(r),as=o(k),pe=n(k,"DIV",{class:!0});var Wa=p(pe);u(it.$$.fragment,Wa),ns=o(Wa),Tr=n(Wa,"P",{"data-svelte-h":!0}),c(Tr)!=="svelte-1o0xh73"&&(Tr.textContent=Io),Wa.forEach(r),ss=o(k),fe=n(k,"DIV",{class:!0});var za=p(fe);u(ct.$$.fragment,za),os=o(za),$r=n(za,"P",{"data-svelte-h":!0}),c($r)!=="svelte-1sj4n0k"&&($r.innerHTML=Ho),za.forEach(r),ls=o(k),ge=n(k,"DIV",{class:!0});var Ba=p(ge);u(mt.$$.fragment,Ba),is=o(Ba),Cr=n(Ba,"P",{"data-svelte-h":!0}),c(Cr)!=="svelte-10eiwg0"&&(Cr.textContent=jo),Ba.forEach(r),cs=o(k),he=n(k,"DIV",{class:!0});var Ra=p(he);u(dt.$$.fragment,Ra),ms=o(Ra),kr=n(Ra,"P",{"data-svelte-h":!0}),c(kr)!=="svelte-1df7x4n"&&(kr.textContent=Ao),Ra.forEach(r),ds=o(k),ue=n(k,"DIV",{class:!0});var Ga=p(ue);u(pt.$$.fragment,Ga),ps=o(Ga),wr=n(Ga,"P",{"data-svelte-h":!0}),c(wr)!=="svelte-18swygp"&&(wr.textContent=Jo),Ga.forEach(r),fs=o(k),be=n(k,"DIV",{class:!0});var Ya=p(be);u(ft.$$.fragment,Ya),gs=o(Ya),yr=n(Ya,"P",{"data-svelte-h":!0}),c(yr)!=="svelte-19xp05v"&&(yr.textContent=No),Ya.forEach(r),hs=o(k),ve=n(k,"DIV",{class:!0});var qa=p(ve);u(gt.$$.fragment,qa),us=o(qa),Mr=n(qa,"P",{"data-svelte-h":!0}),c(Mr)!=="svelte-7af61p"&&(Mr.textContent=Uo),qa.forEach(r),bs=o(k),_e=n(k,"DIV",{class:!0});var Oa=p(_e);u(ht.$$.fragment,Oa),vs=o(Oa),xr=n(Oa,"P",{"data-svelte-h":!0}),c(xr)!=="svelte-8cdxjr"&&(xr.textContent=So),Oa.forEach(r),_s=o(k),Te=n(k,"DIV",{class:!0});var Va=p(Te);u(ut.$$.fragment,Va),Ts=o(Va),Lr=n(Va,"P",{"data-svelte-h":!0}),c(Lr)!=="svelte-sluvs0"&&(Lr.textContent=Do),Va.forEach(r),$s=o(k),$e=n(k,"DIV",{class:!0});var Xa=p($e);u(bt.$$.fragment,Xa),Cs=o(Xa),Er=n(Xa,"P",{"data-svelte-h":!0}),c(Er)!=="svelte-6bvy6d"&&(Er.textContent=Po),Xa.forEach(r),ks=o(k),Ce=n(k,"DIV",{class:!0});var Za=p(Ce);u(vt.$$.fragment,Za),ws=o(Za),Ir=n(Za,"P",{"data-svelte-h":!0}),c(Ir)!=="svelte-zzwxsv"&&(Ir.textContent=Fo),Za.forEach(r),k.forEach(r),$a=o(e),_t=n(e,"P",{"data-svelte-h":!0}),c(_t)!=="svelte-7izilt"&&(_t.innerHTML=Wo),Ca=o(e),u(Tt.$$.fragment,e),ka=o(e),$t=n(e,"P",{"data-svelte-h":!0}),c($t)!=="svelte-8gc48t"&&($t.innerHTML=zo),wa=o(e),u(Ct.$$.fragment,e),ya=o(e),re=n(e,"H2",{class:!0});var Qa=p(re);ke=n(Qa,"A",{id:!0,class:!0,href:!0});var Ko=p(ke);Yr=n(Ko,"SPAN",{});var el=p(Yr);u(kt.$$.fragment,el),el.forEach(r),Ko.forEach(r),ys=o(Qa),Hr=n(Qa,"SPAN",{"data-svelte-h":!0}),c(Hr)!=="svelte-1ncj2hz"&&(Hr.textContent=Bo),Qa.forEach(r),Ma=o(e),H=n(e,"DIV",{class:!0});var q=p(H);u(wt.$$.fragment,q),Ms=o(q),jr=n(q,"P",{"data-svelte-h":!0}),c(jr)!=="svelte-weho22"&&(jr.innerHTML=Ro),xs=o(q),u(we.$$.fragment,q),Ls=o(q),ye=n(q,"DIV",{class:!0});var Ka=p(ye);u(yt.$$.fragment,Ka),Es=o(Ka),Ar=n(Ka,"P",{"data-svelte-h":!0}),c(Ar)!=="svelte-hbs6ga"&&(Ar.innerHTML=Go),Ka.forEach(r),Is=o(q),Me=n(q,"DIV",{class:!0});var en=p(Me);u(Mt.$$.fragment,en),Hs=o(en),Jr=n(en,"P",{"data-svelte-h":!0}),c(Jr)!=="svelte-dkslae"&&(Jr.innerHTML=Yo),en.forEach(r),q.forEach(r),xa=o(e),ae=n(e,"H2",{class:!0});var tn=p(ae);xe=n(tn,"A",{id:!0,class:!0,href:!0});var tl=p(xe);qr=n(tl,"SPAN",{});var rl=p(qr);u(xt.$$.fragment,rl),rl.forEach(r),tl.forEach(r),js=o(tn),Nr=n(tn,"SPAN",{"data-svelte-h":!0}),c(Nr)!=="svelte-1q9x0cf"&&(Nr.textContent=qo),tn.forEach(r),La=o(e),ne=n(e,"DIV",{class:!0});var rn=p(ne);u(Lt.$$.fragment,rn),As=o(rn),Ur=n(rn,"P",{"data-svelte-h":!0}),c(Ur)!=="svelte-xz93wy"&&(Ur.innerHTML=Oo),rn.forEach(r),Ea=o(e),Or=n(e,"P",{}),p(Or).forEach(r),this.h()},h(){d(m,"name","hf:doc:metadata"),d(m,"content",JSON.stringify(Ml)),d(_,"id","callbacks"),d(_,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(_,"href","#callbacks"),d(y,"class","relative group"),d(se,"id","transformers.integrations.CometCallback"),d(se,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(se,"href","#transformers.integrations.CometCallback"),d(O,"class","relative group"),d(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(ie,"id","transformers.TrainerCallback"),d(ie,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(ie,"href","#transformers.TrainerCallback"),d(te,"class","relative group"),d(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(ke,"id","transformers.TrainerState"),d(ke,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(ke,"href","#transformers.TrainerState"),d(re,"class","relative group"),d(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(xe,"id","transformers.TrainerControl"),d(xe,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(xe,"href","#transformers.TrainerControl"),d(ae,"class","relative group"),d(ne,"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,T,l),i(e,C,l),i(e,y,l),t(y,_),t(_,L),b(x,L,null),t(y,I),t(y,Ht),i(e,Qr,l),i(e,je,l),i(e,Kr,l),i(e,Ae,l),i(e,ea,l),i(e,Je,l),i(e,ta,l),i(e,Ne,l),i(e,ra,l),i(e,Ue,l),i(e,aa,l),i(e,O,l),t(O,se),t(se,Rr),b(Se,Rr,null),t(O,sn),t(O,jt),i(e,na,l),i(e,De,l),i(e,sa,l),i(e,S,l),b(Pe,S,null),t(S,on),t(S,At),t(S,ln),t(S,j),b(Fe,j,null),t(j,cn),t(j,Jt),t(j,mn),t(j,Nt),t(j,dn),t(j,Ut),t(j,pn),t(j,St),i(e,oa,l),i(e,V,l),b(We,V,null),t(V,fn),t(V,Dt),i(e,la,l),i(e,X,l),b(ze,X,null),t(X,gn),t(X,Pt),i(e,ia,l),i(e,Z,l),b(Be,Z,null),t(Z,hn),t(Z,Ft),i(e,ca,l),i(e,D,l),b(Re,D,null),t(D,un),t(D,Wt),t(D,bn),t(D,zt),i(e,ma,l),i(e,Q,l),b(Ge,Q,null),t(Q,vn),t(Q,Bt),i(e,da,l),i(e,P,l),b(Ye,P,null),t(P,_n),t(P,Rt),t(P,Tn),t(P,A),b(qe,A,null),t(A,$n),t(A,Gt),t(A,Cn),t(A,Yt),t(A,kn),t(A,qt),t(A,wn),t(A,F),t(F,Oe),t(Oe,Ot),t(Oe,yn),b(oe,Oe,null),t(F,Mn),t(F,Vt),t(F,xn),t(F,Xt),t(F,Ln),t(F,Zt),i(e,pa,l),i(e,W,l),b(Ve,W,null),t(W,En),t(W,Qt),t(W,In),t(W,N),b(Xe,N,null),t(N,Hn),t(N,Kt),t(N,jn),t(N,er),t(N,An),t(N,tr),i(e,fa,l),i(e,K,l),b(Ze,K,null),t(K,Jn),t(K,rr),i(e,ga,l),i(e,ee,l),b(Qe,ee,null),t(ee,Nn),t(ee,ar),i(e,ha,l),i(e,z,l),b(Ke,z,null),t(z,Un),t(z,nr),t(z,Sn),t(z,sr),i(e,ua,l),i(e,J,l),b(et,J,null),t(J,Dn),t(J,or),t(J,Pn),t(J,lr),t(J,Fn),t(J,ir),i(e,ba,l),i(e,B,l),b(tt,B,null),t(B,Wn),t(B,cr),t(B,zn),t(B,U),b(rt,U,null),t(U,Bn),t(U,mr),t(U,Rn),t(U,dr),t(U,Gn),t(U,pr),i(e,va,l),i(e,R,l),b(at,R,null),t(R,Yn),t(R,fr),t(R,qn),b(le,R,null),i(e,_a,l),i(e,te,l),t(te,ie),t(ie,Gr),b(nt,Gr,null),t(te,On),t(te,gr),i(e,Ta,l),i(e,$,l),b(st,$,null),t($,Vn),t($,hr),t($,Xn),t($,ur),t($,Zn),t($,br),t($,Qn),b(ce,$,null),t($,Kn),t($,me),b(ot,me,null),t(me,es),t(me,vr),t($,ts),t($,de),b(lt,de,null),t(de,rs),t(de,_r),t($,as),t($,pe),b(it,pe,null),t(pe,ns),t(pe,Tr),t($,ss),t($,fe),b(ct,fe,null),t(fe,os),t(fe,$r),t($,ls),t($,ge),b(mt,ge,null),t(ge,is),t(ge,Cr),t($,cs),t($,he),b(dt,he,null),t(he,ms),t(he,kr),t($,ds),t($,ue),b(pt,ue,null),t(ue,ps),t(ue,wr),t($,fs),t($,be),b(ft,be,null),t(be,gs),t(be,yr),t($,hs),t($,ve),b(gt,ve,null),t(ve,us),t(ve,Mr),t($,bs),t($,_e),b(ht,_e,null),t(_e,vs),t(_e,xr),t($,_s),t($,Te),b(ut,Te,null),t(Te,Ts),t(Te,Lr),t($,$s),t($,$e),b(bt,$e,null),t($e,Cs),t($e,Er),t($,ks),t($,Ce),b(vt,Ce,null),t(Ce,ws),t(Ce,Ir),i(e,$a,l),i(e,_t,l),i(e,Ca,l),b(Tt,e,l),i(e,ka,l),i(e,$t,l),i(e,wa,l),b(Ct,e,l),i(e,ya,l),i(e,re,l),t(re,ke),t(ke,Yr),b(kt,Yr,null),t(re,ys),t(re,Hr),i(e,Ma,l),i(e,H,l),b(wt,H,null),t(H,Ms),t(H,jr),t(H,xs),b(we,H,null),t(H,Ls),t(H,ye),b(yt,ye,null),t(ye,Es),t(ye,Ar),t(H,Is),t(H,Me),b(Mt,Me,null),t(Me,Hs),t(Me,Jr),i(e,xa,l),i(e,ae,l),t(ae,xe),t(xe,qr),b(xt,qr,null),t(ae,js),t(ae,Nr),i(e,La,l),i(e,ne,l),b(Lt,ne,null),t(ne,As),t(ne,Ur),i(e,Ea,l),i(e,Or,l),Ia=!0},p(e,[l]){const Et={};l&2&&(Et.$$scope={dirty:l,ctx:e}),oe.$set(Et);const Vr={};l&2&&(Vr.$$scope={dirty:l,ctx:e}),le.$set(Vr);const Xr={};l&2&&(Xr.$$scope={dirty:l,ctx:e}),ce.$set(Xr);const It={};l&2&&(It.$$scope={dirty:l,ctx:e}),we.$set(It)},i(e){Ia||(f(x.$$.fragment,e),f(Se.$$.fragment,e),f(Pe.$$.fragment,e),f(Fe.$$.fragment,e),f(We.$$.fragment,e),f(ze.$$.fragment,e),f(Be.$$.fragment,e),f(Re.$$.fragment,e),f(Ge.$$.fragment,e),f(Ye.$$.fragment,e),f(qe.$$.fragment,e),f(oe.$$.fragment,e),f(Ve.$$.fragment,e),f(Xe.$$.fragment,e),f(Ze.$$.fragment,e),f(Qe.$$.fragment,e),f(Ke.$$.fragment,e),f(et.$$.fragment,e),f(tt.$$.fragment,e),f(rt.$$.fragment,e),f(at.$$.fragment,e),f(le.$$.fragment,e),f(nt.$$.fragment,e),f(st.$$.fragment,e),f(ce.$$.fragment,e),f(ot.$$.fragment,e),f(lt.$$.fragment,e),f(it.$$.fragment,e),f(ct.$$.fragment,e),f(mt.$$.fragment,e),f(dt.$$.fragment,e),f(pt.$$.fragment,e),f(ft.$$.fragment,e),f(gt.$$.fragment,e),f(ht.$$.fragment,e),f(ut.$$.fragment,e),f(bt.$$.fragment,e),f(vt.$$.fragment,e),f(Tt.$$.fragment,e),f(Ct.$$.fragment,e),f(kt.$$.fragment,e),f(wt.$$.fragment,e),f(we.$$.fragment,e),f(yt.$$.fragment,e),f(Mt.$$.fragment,e),f(xt.$$.fragment,e),f(Lt.$$.fragment,e),Ia=!0)},o(e){g(x.$$.fragment,e),g(Se.$$.fragment,e),g(Pe.$$.fragment,e),g(Fe.$$.fragment,e),g(We.$$.fragment,e),g(ze.$$.fragment,e),g(Be.$$.fragment,e),g(Re.$$.fragment,e),g(Ge.$$.fragment,e),g(Ye.$$.fragment,e),g(qe.$$.fragment,e),g(oe.$$.fragment,e),g(Ve.$$.fragment,e),g(Xe.$$.fragment,e),g(Ze.$$.fragment,e),g(Qe.$$.fragment,e),g(Ke.$$.fragment,e),g(et.$$.fragment,e),g(tt.$$.fragment,e),g(rt.$$.fragment,e),g(at.$$.fragment,e),g(le.$$.fragment,e),g(nt.$$.fragment,e),g(st.$$.fragment,e),g(ce.$$.fragment,e),g(ot.$$.fragment,e),g(lt.$$.fragment,e),g(it.$$.fragment,e),g(ct.$$.fragment,e),g(mt.$$.fragment,e),g(dt.$$.fragment,e),g(pt.$$.fragment,e),g(ft.$$.fragment,e),g(gt.$$.fragment,e),g(ht.$$.fragment,e),g(ut.$$.fragment,e),g(bt.$$.fragment,e),g(vt.$$.fragment,e),g(Tt.$$.fragment,e),g(Ct.$$.fragment,e),g(kt.$$.fragment,e),g(wt.$$.fragment,e),g(we.$$.fragment,e),g(yt.$$.fragment,e),g(Mt.$$.fragment,e),g(xt.$$.fragment,e),g(Lt.$$.fragment,e),Ia=!1},d(e){e&&(r(M),r(T),r(C),r(y),r(Qr),r(je),r(Kr),r(Ae),r(ea),r(Je),r(ta),r(Ne),r(ra),r(Ue),r(aa),r(O),r(na),r(De),r(sa),r(S),r(oa),r(V),r(la),r(X),r(ia),r(Z),r(ca),r(D),r(ma),r(Q),r(da),r(P),r(pa),r(W),r(fa),r(K),r(ga),r(ee),r(ha),r(z),r(ua),r(J),r(ba),r(B),r(va),r(R),r(_a),r(te),r(Ta),r($),r($a),r(_t),r(Ca),r(ka),r($t),r(wa),r(ya),r(re),r(Ma),r(H),r(xa),r(ae),r(La),r(ne),r(Ea),r(Or)),r(m),v(x),v(Se),v(Pe),v(Fe),v(We),v(ze),v(Be),v(Re),v(Ge),v(Ye),v(qe),v(oe),v(Ve),v(Xe),v(Ze),v(Qe),v(Ke),v(et),v(tt),v(rt),v(at),v(le),v(nt),v(st),v(ce),v(ot),v(lt),v(it),v(ct),v(mt),v(dt),v(pt),v(ft),v(gt),v(ht),v(ut),v(bt),v(vt),v(Tt,e),v(Ct,e),v(kt),v(wt),v(we),v(yt),v(Mt),v(xt),v(Lt)}}}const Ml={local:"callbacks",sections:[{local:"transformers.integrations.CometCallback",title:"Available Callbacks"},{local:"transformers.TrainerCallback",title:"TrainerCallback"},{local:"transformers.TrainerState",title:"TrainerState"},{local:"transformers.TrainerControl",title:"TrainerControl"}],title:"Callbacks"};function xl(E){return gl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Nl extends ll{constructor(m){super(),il(this,m,xl,yl,ol,{})}}export{Nl as component};
