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


<span class="hljs-meta">@task</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">train_hf_transformer</span>():
    cp = current_context().checkpoint
    trainer = Trainer(..., callbacks=[FlyteCallback()])
    output = trainer.train(resume_from_checkpoint=cp.restore())`,wrap:!1}}),{c(){m=s("p"),m.textContent=x,b=r(),p(k.$$.fragment)},l(v){m=o(v,"P",{"data-svelte-h":!0}),c(m)!=="svelte-11lpom8"&&(m.textContent=x),b=a(v),g(k.$$.fragment,v)},m(v,M){i(v,m,M),i(v,b,M),h(k,v,M),y=!0},p:qa,i(v){y||(d(k.$$.fragment,v),y=!0)},o(v){f(k.$$.fragment,v),y=!1},d(v){v&&(n(m),n(b)),u(k,v)}}}function ll(I){let m,x="Example:",b,k,y;return k=new Ga({props:{code:"Y2xhc3MlMjBQcmludGVyQ2FsbGJhY2soVHJhaW5lckNhbGxiYWNrKSUzQSUwQSUyMCUyMCUyMCUyMGRlZiUyMG9uX2xvZyhzZWxmJTJDJTIwYXJncyUyQyUyMHN0YXRlJTJDJTIwY29udHJvbCUyQyUyMGxvZ3MlM0ROb25lJTJDJTIwKiprd2FyZ3MpJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwXyUyMCUzRCUyMGxvZ3MucG9wKCUyMnRvdGFsX2Zsb3MlMjIlMkMlMjBOb25lKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGlmJTIwc3RhdGUuaXNfbG9jYWxfcHJvY2Vzc196ZXJvJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcHJpbnQobG9ncyk=",highlighted:`<span class="hljs-keyword">class</span> <span class="hljs-title class_">PrinterCallback</span>(<span class="hljs-title class_ inherited__">TrainerCallback</span>):
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">on_log</span>(<span class="hljs-params">self, args, state, control, logs=<span class="hljs-literal">None</span>, **kwargs</span>):
        _ = logs.pop(<span class="hljs-string">&quot;total_flos&quot;</span>, <span class="hljs-literal">None</span>)
        <span class="hljs-keyword">if</span> state.is_local_process_zero:
            <span class="hljs-built_in">print</span>(logs)`,wrap:!1}}),{c(){m=s("p"),m.textContent=x,b=r(),p(k.$$.fragment)},l(v){m=o(v,"P",{"data-svelte-h":!0}),c(m)!=="svelte-11lpom8"&&(m.textContent=x),b=a(v),g(k.$$.fragment,v)},m(v,M){i(v,m,M),i(v,b,M),h(k,v,M),y=!0},p:qa,i(v){y||(d(k.$$.fragment,v),y=!0)},o(v){f(k.$$.fragment,v),y=!1},d(v){v&&(n(m),n(b)),u(k,v)}}}function il(I){let m,x=`In all this class, one step is to be understood as one update step. When using gradient accumulation, one update
step may require several forward and backward passes: if you use <code>gradient_accumulation_steps=n</code>, then one update
step requires going through <em>n</em> batches.`;return{c(){m=s("p"),m.innerHTML=x},l(b){m=o(b,"P",{"data-svelte-h":!0}),c(m)!=="svelte-rhwh6p"&&(m.innerHTML=x)},m(b,k){i(b,m,k)},p:qa,d(b){b&&n(m)}}}function cl(I){let m,x,b,k,y,v,M,L=`Callbacks are objects that can customize the behavior of the training loop in the PyTorch
<a href="/docs/transformers/v4.41.2/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).`,E,Ie,ys=`Callbacks are “read only” pieces of code, apart from the <a href="/docs/transformers/v4.41.2/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.41.2/en/main_classes/trainer#transformers.Trainer">Trainer</a> and override the methods you need (see <a href="trainer">trainer</a> for examples).`,Vr,Ee,Ms='By default, <code>TrainingArguments.report_to</code> is set to <code>&quot;all&quot;</code>, so a <a href="/docs/transformers/v4.41.2/en/main_classes/trainer#transformers.Trainer">Trainer</a> will use the following callbacks.',Gr,He,xs=`<li><a href="/docs/transformers/v4.41.2/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.41.2/en/main_classes/callback#transformers.PrinterCallback">PrinterCallback</a> or <a href="/docs/transformers/v4.41.2/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.41.2/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>, otherwise
it’s the second one).</li> <li><a href="/docs/transformers/v4.41.2/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.41.2/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.41.2/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.41.2/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.41.2/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.41.2/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.41.2/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.41.2/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.41.2/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.41.2/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/v4.41.2/en/main_classes/callback#transformers.integrations.DVCLiveCallback">DVCLiveCallback</a> if <a href="https://dvc.org/doc/dvclive" rel="nofollow">dvclive</a> is installed.</li>`,qr,je,Ls="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>).",Or,Je,Is=`The main class that implements callbacks is <a href="/docs/transformers/v4.41.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>. It gets the
<a href="/docs/transformers/v4.41.2/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a> used to instantiate the <a href="/docs/transformers/v4.41.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>, can access that
Trainer’s internal state via <a href="/docs/transformers/v4.41.2/en/main_classes/callback#transformers.TrainerState">TrainerState</a>, and can take some actions on the training loop via
<a href="/docs/transformers/v4.41.2/en/main_classes/callback#transformers.TrainerControl">TrainerControl</a>.`,Yr,De,Xr,Ae,Es='Here is the list of the available <a href="/docs/transformers/v4.41.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> in the library:',Zr,P,Ue,Oa,Ht,Hs='A <a href="/docs/transformers/v4.41.2/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>.',Ya,j,Ne,Xa,jt,js="Setup the optional Comet.ml integration.",Za,Jt,Js="Environment:",Qa,Dt,Ds=`<li><strong>COMET_MODE</strong> (<code>str</code>, <em>optional</em>, defaults to <code>ONLINE</code>):
Whether to create an online, offline experiment or disable Comet logging. Can be <code>OFFLINE</code>, <code>ONLINE</code>, or
<code>DISABLED</code>.</li> <li><strong>COMET_PROJECT_NAME</strong> (<code>str</code>, <em>optional</em>):
Comet project name for experiments.</li> <li><strong>COMET_OFFLINE_DIRECTORY</strong> (<code>str</code>, <em>optional</em>):
Folder to use for saving offline experiments when <code>COMET_MODE</code> is <code>OFFLINE</code>.</li> <li><strong>COMET_LOG_ASSETS</strong> (<code>str</code>, <em>optional</em>, defaults to <code>TRUE</code>):
Whether or not to log training assets (tf event logs, checkpoints, etc), to Comet. Can be <code>TRUE</code>, or
<code>FALSE</code>.</li>`,Ka,At,As=`For a number of configurable items in the environment, see
<a href="https://www.comet.ml/docs/python-sdk/advanced/#comet-configuration-variables" rel="nofollow">here</a>.`,Qr,X,Fe,en,Ut,Us='A <a href="/docs/transformers/v4.41.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that handles the default flow of the training loop for logs, evaluation and checkpoints.',Kr,Z,Se,tn,Nt,Ns='A bare <a href="/docs/transformers/v4.41.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that just prints the logs.',ea,Q,Pe,rn,Ft,Fs='A <a href="/docs/transformers/v4.41.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that displays the progress of training or evaluation.',ta,W,We,an,St,Ss='A <a href="/docs/transformers/v4.41.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that handles early stopping.',nn,Pt,Ps=`This callback depends on <a href="/docs/transformers/v4.41.2/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.41.2/en/main_classes/callback#transformers.TrainerState">TrainerState</a>. Note that if the <a href="/docs/transformers/v4.41.2/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.`,ra,K,ze,sn,Wt,Ws='A <a href="/docs/transformers/v4.41.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://www.tensorflow.org/tensorboard" rel="nofollow">TensorBoard</a>.',aa,z,Be,on,zt,zs='A <a href="/docs/transformers/v4.41.2/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>.',ln,J,Re,cn,Bt,Bs="Setup the optional Weights &amp; Biases (<em>wandb</em>) integration.",mn,Rt,Rs=`One can subclass and override this method to customize the setup if needed. Find more information
<a href="https://docs.wandb.ai/guides/integrations/huggingface" rel="nofollow">here</a>. You can also override the following environment
variables:`,dn,Vt,Vs="Environment:",fn,B,Ve,Gt,Gs=`<strong>WANDB_LOG_MODEL</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;false&quot;</code>):
Whether to log model and checkpoints during training. Can be <code>&quot;end&quot;</code>, <code>&quot;checkpoint&quot;</code> or <code>&quot;false&quot;</code>. If set
to <code>&quot;end&quot;</code>, the model will be uploaded at the end of training. If set to <code>&quot;checkpoint&quot;</code>, the checkpoint
will be uploaded every <code>args.save_steps</code> . If set to <code>&quot;false&quot;</code>, the model will not be uploaded. Use along
with <code>load_best_model_at_end()</code> to upload best model.`,pn,ne,gn,qt,qs=`<p><strong>WANDB_WATCH</strong> (<code>str</code>, <em>optional</em> defaults to <code>&quot;false&quot;</code>):
Can be <code>&quot;gradients&quot;</code>, <code>&quot;all&quot;</code>, <code>&quot;parameters&quot;</code>, or <code>&quot;false&quot;</code>. Set to <code>&quot;all&quot;</code> to log gradients and
parameters.</p>`,hn,Ot,Os=`<p><strong>WANDB_PROJECT</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;huggingface&quot;</code>):
Set this to a custom string to store results in a different project.</p>`,un,Yt,Ys=`<p><strong>WANDB_DISABLED</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether to disable wandb entirely. Set <code>WANDB_DISABLED=true</code> to disable.</p>`,na,R,Ge,bn,Xt,Xs=`A <a href="/docs/transformers/v4.41.2/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,N,qe,_n,Zt,Zs="Setup the optional MLflow integration.",Tn,Qt,Qs="Environment:",$n,Kt,Ks=`<li><strong>HF_MLFLOW_LOG_ARTIFACTS</strong> (<code>str</code>, <em>optional</em>):
Whether to use MLflow <code>.log_artifact()</code> facility to log artifacts. This only makes sense if logging to a
remote server, e.g. s3 or GCS. If set to <code>True</code> or <em>1</em>, will copy each saved checkpoint on each save in
<a href="/docs/transformers/v4.41.2/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 usefull when resuming training from a checkpoint. When
<code>MLFLOW_RUN_ID</code> environment variable is set, <code>start_run</code> attempts to resume a run with the specified run ID
and other parameters are ignored.</li> <li><strong>MLFLOW_FLATTEN_PARAMS</strong> (<code>str</code>, <em>optional</em>, defaults to <code>False</code>):
Whether to flatten the parameters dictionary before logging.</li>`,sa,ee,Oe,Cn,er,eo='A <a href="/docs/transformers/v4.41.2/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>.',oa,te,Ye,kn,tr,to='A <a href="/docs/transformers/v4.41.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that tracks the CO2 emission of training.',la,V,Xe,wn,rr,ro='TrainerCallback that sends the logs to <a href="https://app.neptune.ai" rel="nofollow">Neptune</a>.',yn,ar,ao=`For instructions and examples, see the <a href="https://docs.neptune.ai/integrations/transformers" rel="nofollow">Transformers integration
guide</a> in the Neptune documentation.`,ia,D,Ze,Mn,nr,no='A <a href="/docs/transformers/v4.41.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that sends the logs to <a href="https://clear.ml/" rel="nofollow">ClearML</a>.',xn,sr,so="Environment:",Ln,or,oo=`<li><strong>CLEARML_PROJECT</strong> (<code>str</code>, <em>optional</em>, defaults to <code>HuggingFace Transformers</code>):
ClearML project name.</li> <li><strong>CLEARML_TASK</strong> (<code>str</code>, <em>optional</em>, defaults to <code>Trainer</code>):
ClearML task name.</li> <li><strong>CLEARML_LOG_MODEL</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>):
Whether to log models as artifacts during training.</li>`,ca,G,Qe,In,lr,lo='A <a href="/docs/transformers/v4.41.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> that logs to <a href="https://dagshub.com/" rel="nofollow">DagsHub</a>. Extends <code>MLflowCallback</code>',En,F,Ke,Hn,ir,io="Setup the DagsHub’s Logging integration.",jn,cr,co="Environment:",Jn,mr,mo=`<li><strong>HF_DAGSHUB_LOG_ARTIFACTS</strong> (<code>str</code>, <em>optional</em>):
Whether to save the data and model artifacts for the experiment. Default to <code>False</code>.</li>`,ma,q,et,Dn,dr,fo=`A <a href="/docs/transformers/v4.41.2/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.`,An,se,da,A,tt,Un,fr,po='A <a href="/docs/transformers/v4.41.2/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>.',Nn,pr,go=`Use the environment variables below in <code>setup</code> to configure the integration. To customize this callback beyond
those environment variables, see <a href="https://dvc.org/doc/dvclive/ml-frameworks/huggingface" rel="nofollow">here</a>.`,Fn,S,rt,Sn,gr,ho=`Setup the optional DVCLive integration. To customize this callback beyond the environment variables below, see
<a href="https://dvc.org/doc/dvclive/ml-frameworks/huggingface" rel="nofollow">here</a>.`,Pn,hr,uo="Environment:",Wn,ur,bo=`<li><strong>HF_DVCLIVE_LOG_MODEL</strong> (<code>str</code>, <em>optional</em>):
Whether to use <code>dvclive.Live.log_artifact()</code> to log checkpoints created by <a href="/docs/transformers/v4.41.2/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/v4.41.2/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>’s <code>output_dir</code> is logged at each checkpoint.</li>`,fa,at,pa,T,nt,zn,br,vo=`A class for objects that will inspect the state of the training loop at some events and take some decisions. At
each of those events the following arguments are available:`,Bn,vr,_o=`The <code>control</code> object is the only one that can be changed by the callback, in which case the event that changes it
should return the modified version.`,Rn,_r,To=`The argument <code>args</code>, <code>state</code> and <code>control</code> are positionals for all events, all the others are grouped in <code>kwargs</code>.
You can unpack the ones you need in the signature of the event using them. As an example, see the code of the
simple <a href="/docs/transformers/v4.41.2/en/main_classes/callback#transformers.PrinterCallback">PrinterCallback</a>.`,Vn,oe,Gn,le,st,qn,Tr,$o="Event called at the beginning of an epoch.",On,ie,ot,Yn,$r,Co="Event called at the end of an epoch.",Xn,ce,lt,Zn,Cr,ko="Event called after an evaluation phase.",Qn,me,it,Kn,kr,wo='Event called at the end of the initialization of the <a href="/docs/transformers/v4.41.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>.',es,de,ct,ts,wr,yo="Event called after logging the last logs.",rs,fe,mt,as,yr,Mo="Event called after a successful prediction.",ns,pe,dt,ss,Mr,xo="Event called after a prediction step.",os,ge,ft,ls,xr,Lo="Event called after a checkpoint save.",is,he,pt,cs,Lr,Io=`Event called at the beginning of a training step. If using gradient accumulation, one training step might take
several inputs.`,ms,ue,gt,ds,Ir,Eo=`Event called at the end of a training step. If using gradient accumulation, one training step might take
several inputs.`,fs,be,ht,ps,Er,Ho="Event called at the end of an substep during gradient accumulation.",gs,ve,ut,hs,Hr,jo="Event called at the beginning of training.",us,_e,bt,bs,jr,Jo="Event called at the end of training.",ga,vt,Do='Here is an example of how to register a custom callback with the PyTorch <a href="/docs/transformers/v4.41.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>:',ha,_t,ua,Tt,Ao="Another way to register a callback is to call <code>trainer.add_callback()</code> as follows:",ba,$t,va,Ct,_a,H,kt,vs,Jr,Uo=`A class containing the <a href="/docs/transformers/v4.41.2/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.41.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a>.`,_s,Te,Ts,$e,wt,$s,Dr,No="Create an instance from the content of <code>json_path</code>.",Cs,Ce,yt,ks,Ar,Fo="Save the content of this instance in JSON format inside <code>json_path</code>.",Ta,Mt,$a,re,xt,ws,Ur,So=`A class that handles the <a href="/docs/transformers/v4.41.2/en/main_classes/trainer#transformers.Trainer">Trainer</a> control flow. This class is used by the <a href="/docs/transformers/v4.41.2/en/main_classes/callback#transformers.TrainerCallback">TrainerCallback</a> to activate some
switches in the training loop.`,Ca,Lt,ka,Br,wa;return y=new Rr({props:{title:"Callbacks",local:"callbacks",headingTag:"h1"}}),De=new Rr({props:{title:"Available Callbacks",local:"transformers.integrations.CometCallback",headingTag:"h2"}}),Ue=new C({props:{name:"class transformers.integrations.CometCallback",anchor:"transformers.integrations.CometCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L851"}}),Ne=new C({props:{name:"setup",anchor:"transformers.integrations.CometCallback.setup",parameters:[{name:"args",val:""},{name:"state",val:""},{name:"model",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L862"}}),Fe=new C({props:{name:"class transformers.DefaultFlowCallback",anchor:"transformers.DefaultFlowCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L516"}}),Se=new C({props:{name:"class transformers.PrinterCallback",anchor:"transformers.PrinterCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L621"}}),Pe=new C({props:{name:"class transformers.ProgressCallback",anchor:"transformers.ProgressCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L566"}}),We=new C({props:{name:"class transformers.EarlyStoppingCallback",anchor:"transformers.EarlyStoppingCallback",parameters:[{name:"early_stopping_patience",val:": int = 1"},{name:"early_stopping_threshold",val:": Optional = 0.0"}],parametersDescription:[{anchor:"transformers.EarlyStoppingCallback.early_stopping_patience",description:`<strong>early_stopping_patience</strong> (<code>int</code>) &#x2014;
Use with <code>metric_for_best_model</code> to stop training when the specified metric worsens for
<code>early_stopping_patience</code> evaluation calls.`,name:"early_stopping_patience"},{anchor:"transformers.EarlyStoppingCallback.early_stopping_threshold(float,",description:`<strong>early_stopping_threshold(<code>float</code>,</strong> <em>optional</em>) &#x2014;
Use with TrainingArguments <code>metric_for_best_model</code> and <code>early_stopping_patience</code> to denote how much the
specified metric must improve to satisfy early stopping conditions. \``,name:"early_stopping_threshold(float,"}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L632"}}),ze=new C({props:{name:"class transformers.integrations.TensorBoardCallback",anchor:"transformers.integrations.TensorBoardCallback",parameters:[{name:"tb_writer",val:" = None"}],parametersDescription:[{anchor:"transformers.integrations.TensorBoardCallback.tb_writer",description:`<strong>tb_writer</strong> (<code>SummaryWriter</code>, <em>optional</em>) &#x2014;
The writer to use. Will instantiate one if not set.`,name:"tb_writer"}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L580"}}),Be=new C({props:{name:"class transformers.integrations.WandbCallback",anchor:"transformers.integrations.WandbCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L666"}}),Re=new C({props:{name:"setup",anchor:"transformers.integrations.WandbCallback.setup",parameters:[{name:"args",val:""},{name:"state",val:""},{name:"model",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L691"}}),ne=new nl({props:{version:"5.0",$$slots:{default:[sl]},$$scope:{ctx:I}}}),Ge=new C({props:{name:"class transformers.integrations.MLflowCallback",anchor:"transformers.integrations.MLflowCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L951"}}),qe=new C({props:{name:"setup",anchor:"transformers.integrations.MLflowCallback.setup",parameters:[{name:"args",val:""},{name:"state",val:""},{name:"model",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L970"}}),Oe=new C({props:{name:"class transformers.integrations.AzureMLCallback",anchor:"transformers.integrations.AzureMLCallback",parameters:[{name:"azureml_run",val:" = None"}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L928"}}),Ye=new C({props:{name:"class transformers.integrations.CodeCarbonCallback",anchor:"transformers.integrations.CodeCarbonCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L1452"}}),Xe=new C({props:{name:"class transformers.integrations.NeptuneCallback",anchor:"transformers.integrations.NeptuneCallback",parameters:[{name:"api_token",val:": Optional = None"},{name:"project",val:": Optional = None"},{name:"name",val:": Optional = None"},{name:"base_namespace",val:": str = 'finetuning'"},{name:"run",val:" = None"},{name:"log_parameters",val:": bool = True"},{name:"log_checkpoints",val:": Optional = None"},{name:"**neptune_run_kwargs",val:""}],parametersDescription:[{anchor:"transformers.integrations.NeptuneCallback.api_token",description:`<strong>api_token</strong> (<code>str</code>, <em>optional</em>) &#x2014; Neptune API token obtained upon registration.
You can leave this argument out if you have saved your token to the <code>NEPTUNE_API_TOKEN</code> environment
variable (strongly recommended). See full setup instructions in the
<a href="https://docs.neptune.ai/setup/installation" rel="nofollow">docs</a>.`,name:"api_token"},{anchor:"transformers.integrations.NeptuneCallback.project",description:`<strong>project</strong> (<code>str</code>, <em>optional</em>) &#x2014; Name of an existing Neptune project, in the form &#x201C;workspace-name/project-name&#x201D;.
You can find and copy the name in Neptune from the project settings -&gt; Properties. If None (default), the
value of the <code>NEPTUNE_PROJECT</code> environment variable is used.`,name:"project"},{anchor:"transformers.integrations.NeptuneCallback.name",description:"<strong>name</strong> (<code>str</code>, <em>optional</em>) &#x2014; Custom name for the run.",name:"name"},{anchor:"transformers.integrations.NeptuneCallback.base_namespace",description:`<strong>base_namespace</strong> (<code>str</code>, optional, defaults to &#x201C;finetuning&#x201D;) &#x2014; In the Neptune run, the root namespace
that will contain all of the metadata logged by the callback.`,name:"base_namespace"},{anchor:"transformers.integrations.NeptuneCallback.log_parameters",description:`<strong>log_parameters</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
If True, logs all Trainer arguments and model parameters provided by the Trainer.`,name:"log_parameters"},{anchor:"transformers.integrations.NeptuneCallback.log_checkpoints",description:`<strong>log_checkpoints</strong> (<code>str</code>, <em>optional</em>) &#x2014; If &#x201C;same&#x201D;, uploads checkpoints whenever they are saved by the Trainer.
If &#x201C;last&#x201D;, uploads only the most recently saved checkpoint. If &#x201C;best&#x201D;, uploads the best checkpoint (among
the ones saved by the Trainer). If <code>None</code>, does not upload checkpoints.`,name:"log_checkpoints"},{anchor:"transformers.integrations.NeptuneCallback.run",description:`<strong>run</strong> (<code>Run</code>, <em>optional</em>) &#x2014; Pass a Neptune run object if you want to continue logging to an existing run.
Read more about resuming runs in the <a href="https://docs.neptune.ai/logging/to_existing_object" rel="nofollow">docs</a>.`,name:"run"},{anchor:"transformers.integrations.NeptuneCallback.*neptune_run_kwargs",description:`*<strong>*neptune_run_kwargs</strong> (<em>optional</em>) &#x2014;
Additional keyword arguments to be passed directly to the
<a href="https://docs.neptune.ai/api/neptune#init_run" rel="nofollow"><code>neptune.init_run()</code></a> function when a new run is created.`,name:"*neptune_run_kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L1179"}}),Ze=new C({props:{name:"class transformers.integrations.ClearMLCallback",anchor:"transformers.integrations.ClearMLCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L1486"}}),Qe=new C({props:{name:"class transformers.integrations.DagsHubCallback",anchor:"transformers.integrations.DagsHubCallback",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L1119"}}),Ke=new C({props:{name:"setup",anchor:"transformers.integrations.DagsHubCallback.setup",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L1133"}}),et=new C({props:{name:"class transformers.integrations.FlyteCallback",anchor:"transformers.integrations.FlyteCallback",parameters:[{name:"save_log_history",val:": bool = True"},{name:"sync_checkpoints",val:": bool = True"}],parametersDescription:[{anchor:"transformers.integrations.FlyteCallback.save_log_history",description:`<strong>save_log_history</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
When set to True, the training logs are saved as a Flyte Deck.`,name:"save_log_history"},{anchor:"transformers.integrations.FlyteCallback.sync_checkpoints",description:`<strong>sync_checkpoints</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
When set to True, checkpoints are synced with Flyte and can be used to resume training in the case of an
interruption.`,name:"sync_checkpoints"}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L1739"}}),se=new zo({props:{anchor:"transformers.integrations.FlyteCallback.example",$$slots:{default:[ol]},$$scope:{ctx:I}}}),tt=new C({props:{name:"class transformers.integrations.DVCLiveCallback",anchor:"transformers.integrations.DVCLiveCallback",parameters:[{name:"live",val:": Optional = None"},{name:"log_model",val:": Union = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.integrations.DVCLiveCallback.live",description:`<strong>live</strong> (<code>dvclive.Live</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Optional Live instance. If None, a new instance will be created using **kwargs.`,name:"live"},{anchor:"transformers.integrations.DVCLiveCallback.log_model",description:`<strong>log_model</strong> (Union[Literal[&#x201C;all&#x201D;], bool], <em>optional</em>, defaults to <code>None</code>) &#x2014;
Whether to use <code>dvclive.Live.log_artifact()</code> to log checkpoints created by <a href="/docs/transformers/v4.41.2/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/v4.41.2/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/v4.41.2/src/transformers/integrations/integration_utils.py#L1802"}}),rt=new C({props:{name:"setup",anchor:"transformers.integrations.DVCLiveCallback.setup",parameters:[{name:"args",val:""},{name:"state",val:""},{name:"model",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/integrations/integration_utils.py#L1843"}}),at=new Rr({props:{title:"TrainerCallback",local:"transformers.TrainerCallback",headingTag:"h2"}}),nt=new C({props:{name:"class transformers.TrainerCallback",anchor:"transformers.TrainerCallback",parameters:[],parametersDescription:[{anchor:"transformers.TrainerCallback.args",description:`<strong>args</strong> (<a href="/docs/transformers/v4.41.2/en/main_classes/trainer#transformers.TrainingArguments">TrainingArguments</a>) &#x2014;
The training arguments used to instantiate the <a href="/docs/transformers/v4.41.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>.`,name:"args"},{anchor:"transformers.TrainerCallback.state",description:`<strong>state</strong> (<a href="/docs/transformers/v4.41.2/en/main_classes/callback#transformers.TrainerState">TrainerState</a>) &#x2014;
The current state of the <a href="/docs/transformers/v4.41.2/en/main_classes/trainer#transformers.Trainer">Trainer</a>.`,name:"state"},{anchor:"transformers.TrainerCallback.control",description:`<strong>control</strong> (<a href="/docs/transformers/v4.41.2/en/main_classes/callback#transformers.TrainerControl">TrainerControl</a>) &#x2014;
The object that is returned to the <a href="/docs/transformers/v4.41.2/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.41.2/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.41.2/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 evaluation.`,name:"eval_dataloader"},{anchor:"transformers.TrainerCallback.metrics",description:`<strong>metrics</strong> (<code>Dict[str, float]</code>) &#x2014;
The metrics computed by the last evaluation phase.</p>
<p>Those are only accessible in the event <code>on_evaluate</code>.`,name:"metrics"},{anchor:"transformers.TrainerCallback.logs",description:`<strong>logs</strong>  (<code>Dict[str, float]</code>) &#x2014;
The values to log.</p>
<p>Those are only accessible in the event <code>on_log</code>.`,name:"logs"}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L259"}}),oe=new zo({props:{anchor:"transformers.TrainerCallback.example",$$slots:{default:[ll]},$$scope:{ctx:I}}}),st=new C({props:{name:"on_epoch_begin",anchor:"transformers.TrainerCallback.on_epoch_begin",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L328"}}),ot=new C({props:{name:"on_epoch_end",anchor:"transformers.TrainerCallback.on_epoch_end",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L334"}}),lt=new C({props:{name:"on_evaluate",anchor:"transformers.TrainerCallback.on_evaluate",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L360"}}),it=new C({props:{name:"on_init_end",anchor:"transformers.TrainerCallback.on_init_end",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L310"}}),ct=new C({props:{name:"on_log",anchor:"transformers.TrainerCallback.on_log",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L378"}}),mt=new C({props:{name:"on_predict",anchor:"transformers.TrainerCallback.on_predict",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"metrics",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L366"}}),dt=new C({props:{name:"on_prediction_step",anchor:"transformers.TrainerCallback.on_prediction_step",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L384"}}),ft=new C({props:{name:"on_save",anchor:"transformers.TrainerCallback.on_save",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L372"}}),pt=new C({props:{name:"on_step_begin",anchor:"transformers.TrainerCallback.on_step_begin",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L340"}}),gt=new C({props:{name:"on_step_end",anchor:"transformers.TrainerCallback.on_step_end",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L353"}}),ht=new C({props:{name:"on_substep_end",anchor:"transformers.TrainerCallback.on_substep_end",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L347"}}),ut=new C({props:{name:"on_train_begin",anchor:"transformers.TrainerCallback.on_train_begin",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L316"}}),bt=new C({props:{name:"on_train_end",anchor:"transformers.TrainerCallback.on_train_end",parameters:[{name:"args",val:": TrainingArguments"},{name:"state",val:": TrainerState"},{name:"control",val:": TrainerControl"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.41.2/src/transformers/trainer_callback.py#L322"}}),_t=new Ga({props:{code:"Y2xhc3MlMjBNeUNhbGxiYWNrKFRyYWluZXJDYWxsYmFjayklM0ElMEElMjAlMjAlMjAlMjAlMjJBJTIwY2FsbGJhY2slMjB0aGF0JTIwcHJpbnRzJTIwYSUyMG1lc3NhZ2UlMjBhdCUyMHRoZSUyMGJlZ2lubmluZyUyMG9mJTIwdHJhaW5pbmclMjIlMEElMEElMjAlMjAlMjAlMjBkZWYlMjBvbl90cmFpbl9iZWdpbihzZWxmJTJDJTIwYXJncyUyQyUyMHN0YXRlJTJDJTIwY29udHJvbCUyQyUyMCoqa3dhcmdzKSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHByaW50KCUyMlN0YXJ0aW5nJTIwdHJhaW5pbmclMjIpJTBBJTBBJTBBdHJhaW5lciUyMCUzRCUyMFRyYWluZXIoJTBBJTIwJTIwJTIwJTIwbW9kZWwlMkMlMEElMjAlMjAlMjAlMjBhcmdzJTJDJTBBJTIwJTIwJTIwJTIwdHJhaW5fZGF0YXNldCUzRHRyYWluX2RhdGFzZXQlMkMlMEElMjAlMjAlMjAlMjBldmFsX2RhdGFzZXQlM0RldmFsX2RhdGFzZXQlMkMlMEElMjAlMjAlMjAlMjBjYWxsYmFja3MlM0QlNUJNeUNhbGxiYWNrJTVEJTJDJTIwJTIwJTIzJTIwV2UlMjBjYW4lMjBlaXRoZXIlMjBwYXNzJTIwdGhlJTIwY2FsbGJhY2slMjBjbGFzcyUyMHRoaXMlMjB3YXklMjBvciUyMGFuJTIwaW5zdGFuY2UlMjBvZiUyMGl0JTIwKE15Q2FsbGJhY2soKSklMEEp",highlighted:`<span class="hljs-keyword">class</span> <span class="hljs-title class_">MyCallback</span>(<span class="hljs-title class_ inherited__">TrainerCallback</span>):
    <span class="hljs-string">&quot;A callback that prints a message at the beginning of training&quot;</span>

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


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