import{s as Aa,f as or,o as La,n as ir}from"../chunks/scheduler.25b97de1.js";import{S as Wa,i as ja,g as l,s as a,r as h,A as Da,h as m,f as t,c as n,j as z,u,x as p,k as b,y as o,a as s,v as f,d as g,t as _,w}from"../chunks/index.d9030fc9.js";import{D as M}from"../chunks/Docstring.e257edda.js";import{C as lr}from"../chunks/CodeBlock.e6cd0d95.js";import{E as sr}from"../chunks/ExampleCodeBlock.20db4b6e.js";import{H as ht,E as Ua}from"../chunks/EditOnGithub.91d95064.js";function Ra(U){let c,C="Example:",x,d,$;return d=new lr({props:{code:"QWRhZmFjdG9yKG1vZGVsLnBhcmFtZXRlcnMoKSUyQyUyMHNjYWxlX3BhcmFtZXRlciUzREZhbHNlJTJDJTIwcmVsYXRpdmVfc3RlcCUzREZhbHNlJTJDJTIwd2FybXVwX2luaXQlM0RGYWxzZSUyQyUyMGxyJTNEMWUtMyk=",highlighted:'Adafactor(model.parameters(), scale_parameter=<span class="hljs-literal">False</span>, relative_step=<span class="hljs-literal">False</span>, warmup_init=<span class="hljs-literal">False</span>, lr=<span class="hljs-number">1e-3</span>)',wrap:!1}}),{c(){c=l("p"),c.textContent=C,x=a(),h(d.$$.fragment)},l(i){c=m(i,"P",{"data-svelte-h":!0}),p(c)!=="svelte-11lpom8"&&(c.textContent=C),x=n(i),u(d.$$.fragment,i)},m(i,T){s(i,c,T),s(i,x,T),f(d,i,T),$=!0},p:ir,i(i){$||(g(d.$$.fragment,i),$=!0)},o(i){_(d.$$.fragment,i),$=!1},d(i){i&&(t(c),t(x)),w(d,i)}}}function Ea(U){let c,C="Others reported the following combination to work well:",x,d,$;return d=new lr({props:{code:"QWRhZmFjdG9yKG1vZGVsLnBhcmFtZXRlcnMoKSUyQyUyMHNjYWxlX3BhcmFtZXRlciUzRFRydWUlMkMlMjByZWxhdGl2ZV9zdGVwJTNEVHJ1ZSUyQyUyMHdhcm11cF9pbml0JTNEVHJ1ZSUyQyUyMGxyJTNETm9uZSk=",highlighted:'Adafactor(model.parameters(), scale_parameter=<span class="hljs-literal">True</span>, relative_step=<span class="hljs-literal">True</span>, warmup_init=<span class="hljs-literal">True</span>, lr=<span class="hljs-literal">None</span>)',wrap:!1}}),{c(){c=l("p"),c.textContent=C,x=a(),h(d.$$.fragment)},l(i){c=m(i,"P",{"data-svelte-h":!0}),p(c)!=="svelte-mxeef1"&&(c.textContent=C),x=n(i),u(d.$$.fragment,i)},m(i,T){s(i,c,T),s(i,x,T),f(d,i,T),$=!0},p:ir,i(i){$||(g(d.$$.fragment,i),$=!0)},o(i){_(d.$$.fragment,i),$=!1},d(i){i&&(t(c),t(x)),w(d,i)}}}function ka(U){let c,C="scheduler as following:",x,d,$;return d=new lr({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy5vcHRpbWl6YXRpb24lMjBpbXBvcnQlMjBBZGFmYWN0b3IlMkMlMjBBZGFmYWN0b3JTY2hlZHVsZSUwQSUwQW9wdGltaXplciUyMCUzRCUyMEFkYWZhY3Rvcihtb2RlbC5wYXJhbWV0ZXJzKCklMkMlMjBzY2FsZV9wYXJhbWV0ZXIlM0RUcnVlJTJDJTIwcmVsYXRpdmVfc3RlcCUzRFRydWUlMkMlMjB3YXJtdXBfaW5pdCUzRFRydWUlMkMlMjBsciUzRE5vbmUpJTBBbHJfc2NoZWR1bGVyJTIwJTNEJTIwQWRhZmFjdG9yU2NoZWR1bGUob3B0aW1pemVyKSUwQXRyYWluZXIlMjAlM0QlMjBUcmFpbmVyKC4uLiUyQyUyMG9wdGltaXplcnMlM0Qob3B0aW1pemVyJTJDJTIwbHJfc2NoZWR1bGVyKSk=",highlighted:`<span class="hljs-keyword">from</span> transformers.optimization <span class="hljs-keyword">import</span> Adafactor, AdafactorSchedule

optimizer = Adafactor(model.parameters(), scale_parameter=<span class="hljs-literal">True</span>, relative_step=<span class="hljs-literal">True</span>, warmup_init=<span class="hljs-literal">True</span>, lr=<span class="hljs-literal">None</span>)
lr_scheduler = AdafactorSchedule(optimizer)
trainer = Trainer(..., optimizers=(optimizer, lr_scheduler))`,wrap:!1}}),{c(){c=l("p"),c.textContent=C,x=a(),h(d.$$.fragment)},l(i){c=m(i,"P",{"data-svelte-h":!0}),p(c)!=="svelte-1eua222"&&(c.textContent=C),x=n(i),u(d.$$.fragment,i)},m(i,T){s(i,c,T),s(i,x,T),f(d,i,T),$=!0},p:ir,i(i){$||(g(d.$$.fragment,i),$=!0)},o(i){_(d.$$.fragment,i),$=!1},d(i){i&&(t(c),t(x)),w(d,i)}}}function Ia(U){let c,C="Usage:",x,d,$;return d=new lr({props:{code:"JTIzJTIwcmVwbGFjZSUyMEFkYW1XJTIwd2l0aCUyMEFkYWZhY3RvciUwQW9wdGltaXplciUyMCUzRCUyMEFkYWZhY3RvciglMEElMjAlMjAlMjAlMjBtb2RlbC5wYXJhbWV0ZXJzKCklMkMlMEElMjAlMjAlMjAlMjBsciUzRDFlLTMlMkMlMEElMjAlMjAlMjAlMjBlcHMlM0QoMWUtMzAlMkMlMjAxZS0zKSUyQyUwQSUyMCUyMCUyMCUyMGNsaXBfdGhyZXNob2xkJTNEMS4wJTJDJTBBJTIwJTIwJTIwJTIwZGVjYXlfcmF0ZSUzRC0wLjglMkMlMEElMjAlMjAlMjAlMjBiZXRhMSUzRE5vbmUlMkMlMEElMjAlMjAlMjAlMjB3ZWlnaHRfZGVjYXklM0QwLjAlMkMlMEElMjAlMjAlMjAlMjByZWxhdGl2ZV9zdGVwJTNERmFsc2UlMkMlMEElMjAlMjAlMjAlMjBzY2FsZV9wYXJhbWV0ZXIlM0RGYWxzZSUyQyUwQSUyMCUyMCUyMCUyMHdhcm11cF9pbml0JTNERmFsc2UlMkMlMEEp",highlighted:`<span class="hljs-comment"># replace AdamW with Adafactor</span>
optimizer = Adafactor(
    model.parameters(),
    lr=<span class="hljs-number">1e-3</span>,
    eps=(<span class="hljs-number">1e-30</span>, <span class="hljs-number">1e-3</span>),
    clip_threshold=<span class="hljs-number">1.0</span>,
    decay_rate=-<span class="hljs-number">0.8</span>,
    beta1=<span class="hljs-literal">None</span>,
    weight_decay=<span class="hljs-number">0.0</span>,
    relative_step=<span class="hljs-literal">False</span>,
    scale_parameter=<span class="hljs-literal">False</span>,
    warmup_init=<span class="hljs-literal">False</span>,
)`,wrap:!1}}),{c(){c=l("p"),c.textContent=C,x=a(),h(d.$$.fragment)},l(i){c=m(i,"P",{"data-svelte-h":!0}),p(c)!=="svelte-5wyjqd"&&(c.textContent=C),x=n(i),u(d.$$.fragment,i)},m(i,T){s(i,c,T),s(i,x,T),f(d,i,T),$=!0},p:ir,i(i){$||(g(d.$$.fragment,i),$=!0)},o(i){_(d.$$.fragment,i),$=!1},d(i){i&&(t(c),t(x)),w(d,i)}}}function Pa(U){let c,C,x,d,$,i,T,Hr="The <code>.optimization</code> module provides:",ft,ee,Sr="<li>an optimizer with weight decay fixed that can be used to fine-tuned models, and</li> <li>several schedules in the form of schedule objects that inherit from <code>_LRSchedule</code>:</li> <li>a gradient accumulation class to accumulate the gradients of multiple batches</li>",gt,te,_t,L,re,mr,ke,qr=`Implements Adam algorithm with weight decay fix as introduced in <a href="https://arxiv.org/abs/1711.05101" rel="nofollow">Decoupled Weight Decay
Regularization</a>.`,cr,H,ae,pr,Ie,Br="Performs a single optimization step.",wt,ne,bt,v,oe,dr,Pe,Xr=`AdaFactor pytorch implementation can be used as a drop in replacement for Adam original fairseq code:
<a href="https://github.com/pytorch/fairseq/blob/master/fairseq/optim/adafactor.py" rel="nofollow">https://github.com/pytorch/fairseq/blob/master/fairseq/optim/adafactor.py</a>`,hr,Fe,Or=`Paper: <em>Adafactor: Adaptive Learning Rates with Sublinear Memory Cost</em> <a href="https://arxiv.org/abs/1804.04235" rel="nofollow">https://arxiv.org/abs/1804.04235</a> Note that
this optimizer internally adjusts the learning rate depending on the <code>scale_parameter</code>, <code>relative_step</code> and
<code>warmup_init</code> options. To use a manual (external) learning rate schedule you should set <code>scale_parameter=False</code> and
<code>relative_step=False</code>.`,ur,Ve,Yr="This implementation handles low-precision (FP16, bfloat) values, but we have not thoroughly tested.",fr,Je,Qr='Recommended T5 finetuning settings (<a href="https://discuss.huggingface.co/t/t5-finetuning-tips/684/3" rel="nofollow">https://discuss.huggingface.co/t/t5-finetuning-tips/684/3</a>):',gr,Ne,Kr='<li><p>Training without LR warmup or clip_threshold is not recommended.</p> <ul><li>use scheduled LR warm-up to fixed LR</li> <li>use clip_threshold=1.0 (<a href="https://arxiv.org/abs/1804.04235" rel="nofollow">https://arxiv.org/abs/1804.04235</a>)</li></ul></li> <li><p>Disable relative updates</p></li> <li><p>Use scale_parameter=False</p></li> <li><p>Additional optimizer operations like gradient clipping should not be used alongside Adafactor</p></li>',_r,S,wr,q,br,Ze,ea='When using <code>lr=None</code> with <a href="/docs/transformers/pr_30623/en/main_classes/trainer#transformers.Trainer">Trainer</a> you will most likely need to use <code>AdafactorSchedule</code>',vr,B,$r,X,yr,O,se,xr,Ge,ta="Performs a single optimization step",vt,ie,$t,A,le,Tr,He,ra=`Adam enables L2 weight decay and clip_by_global_norm on gradients. Just adding the square of the weights to the
loss function is <em>not</em> the correct way of using L2 regularization/weight decay with Adam, since that will interact
with the m and v parameters in strange ways as shown in <a href="https://arxiv.org/abs/1711.05101" rel="nofollow">Decoupled Weight Decay
Regularization</a>.`,zr,Se,aa=`Instead we want to decay the weights in a manner that doesn’t interact with the m/v parameters. This is equivalent
to adding the square of the weights to the loss with plain (non-momentum) SGD.`,Mr,Y,me,Cr,qe,na="Creates an optimizer from its config with WarmUp custom object.",yt,R,ce,Ar,Be,oa="Creates an optimizer with a learning rate schedule using a warmup phase followed by a linear decay.",xt,pe,Tt,de,zt,E,he,Lr,Xe,sa="An enumeration.",Mt,k,ue,Wr,Oe,ia="Unified API to get any scheduler from its name.",Ct,I,fe,jr,Ye,la="Create a schedule with a constant learning rate, using the learning rate set in optimizer.",At,P,ge,Dr,Qe,ma=`Create a schedule with a constant learning rate preceded by a warmup period during which the learning rate
increases linearly between 0 and the initial lr set in the optimizer.`,Lt,_e,ca,Wt,F,we,Ur,Ke,pa=`Create a schedule with a learning rate that decreases following the values of the cosine function between the
initial lr set in the optimizer to 0, after a warmup period during which it increases linearly between 0 and the
initial lr set in the optimizer.`,jt,be,da,Dt,V,ve,Rr,et,ha=`Create a schedule with a learning rate that decreases following the values of the cosine function between the
initial lr set in the optimizer to 0, with several hard restarts, after a warmup period during which it increases
linearly between 0 and the initial lr set in the optimizer.`,Ut,$e,ua,Rt,J,ye,Er,tt,fa=`Create a schedule with a learning rate that decreases linearly from the initial lr set in the optimizer to 0, after
a warmup period during which it increases linearly from 0 to the initial lr set in the optimizer.`,Et,xe,ga,kt,W,Te,kr,rt,_a=`Create a schedule with a learning rate that decreases as a polynomial decay from the initial lr set in the
optimizer to end lr defined by <em>lr_end</em>, after a warmup period during which it increases linearly from 0 to the
initial lr set in the optimizer.`,Ir,at,wa=`Note: <em>power</em> defaults to 1.0 as in the fairseq implementation, which in turn is based on the original BERT
implementation at
<a href="https://github.com/google-research/bert/blob/f39e881b169b9d53bea03d2d341b31707a6c052b/optimization.py#L37" rel="nofollow">https://github.com/google-research/bert/blob/f39e881b169b9d53bea03d2d341b31707a6c052b/optimization.py#L37</a>`,It,N,ze,Pr,nt,ba=`Create a schedule with an inverse square-root learning rate, from the initial lr set in the optimizer, after a
warmup period which increases lr linearly from 0 to the initial lr set in the optimizer.`,Pt,j,Me,Fr,ot,va="Create a schedule with a learning rate that has three stages:",Vr,st,$a=`<li>linear increase from 0 to initial lr.</li> <li>constant lr (equal to initial lr).</li> <li>decrease following the values of the cosine function between the initial lr set in the optimizer to
a fraction of initial lr.</li>`,Ft,Ce,ya="### Warmup (TensorFlow)[[transformers.WarmUp]]",Vt,Z,Ae,Jr,it,xa="Applies a warmup schedule on a given learning rate decay schedule.",Jt,Le,Ta="## Gradient Strategies",Nt,We,za="### GradientAccumulator (TensorFlow)[[transformers.GradientAccumulator]]",Zt,D,je,Nr,lt,Ma=`Gradient accumulation utility. When used with a distribution strategy, the accumulator should be called in a
replica context. Gradients will be accumulated locally on each replica and without synchronization. Users should
then call <code>.gradients</code>, scale the gradients if required, and pass the result to <code>apply_gradients</code>.`,Zr,Q,De,Gr,mt,Ca="Resets the accumulated gradients on the current replica.",Gt,Ue,Ht,ut,St;return $=new ht({props:{title:"Optimization",local:"optimization",headingTag:"h1"}}),te=new ht({props:{title:"AdamW (PyTorch)",local:"transformers.AdamW",headingTag:"h2"}}),re=new M({props:{name:"class transformers.AdamW",anchor:"transformers.AdamW",parameters:[{name:"params",val:": Iterable"},{name:"lr",val:": float = 0.001"},{name:"betas",val:": Tuple = (0.9, 0.999)"},{name:"eps",val:": float = 1e-06"},{name:"weight_decay",val:": float = 0.0"},{name:"correct_bias",val:": bool = True"},{name:"no_deprecation_warning",val:": bool = False"}],parametersDescription:[{anchor:"transformers.AdamW.params",description:`<strong>params</strong> (<code>Iterable[nn.parameter.Parameter]</code>) &#x2014;
Iterable of parameters to optimize or dictionaries defining parameter groups.`,name:"params"},{anchor:"transformers.AdamW.lr",description:`<strong>lr</strong> (<code>float</code>, <em>optional</em>, defaults to 0.001) &#x2014;
The learning rate to use.`,name:"lr"},{anchor:"transformers.AdamW.betas",description:`<strong>betas</strong> (<code>Tuple[float,float]</code>, <em>optional</em>, defaults to <code>(0.9, 0.999)</code>) &#x2014;
Adam&#x2019;s betas parameters (b1, b2).`,name:"betas"},{anchor:"transformers.AdamW.eps",description:`<strong>eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-06) &#x2014;
Adam&#x2019;s epsilon for numerical stability.`,name:"eps"},{anchor:"transformers.AdamW.weight_decay",description:`<strong>weight_decay</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Decoupled weight decay to apply.`,name:"weight_decay"},{anchor:"transformers.AdamW.correct_bias",description:`<strong>correct_bias</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to correct bias in Adam (for instance, in Bert TF repository they use <code>False</code>).`,name:"correct_bias"},{anchor:"transformers.AdamW.no_deprecation_warning",description:`<strong>no_deprecation_warning</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
A flag used to disable the deprecation warning (set to <code>True</code> to disable the warning).`,name:"no_deprecation_warning"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization.py#L558"}}),ae=new M({props:{name:"step",anchor:"transformers.AdamW.step",parameters:[{name:"closure",val:": Callable = None"}],parametersDescription:[{anchor:"transformers.AdamW.step.closure",description:"<strong>closure</strong> (<code>Callable</code>, <em>optional</em>) &#x2014; A closure that reevaluates the model and returns the loss.",name:"closure"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization.py#L609"}}),ne=new ht({props:{title:"AdaFactor (PyTorch)",local:"transformers.Adafactor",headingTag:"h2"}}),oe=new M({props:{name:"class transformers.Adafactor",anchor:"transformers.Adafactor",parameters:[{name:"params",val:""},{name:"lr",val:" = None"},{name:"eps",val:" = (1e-30, 0.001)"},{name:"clip_threshold",val:" = 1.0"},{name:"decay_rate",val:" = -0.8"},{name:"beta1",val:" = None"},{name:"weight_decay",val:" = 0.0"},{name:"scale_parameter",val:" = True"},{name:"relative_step",val:" = True"},{name:"warmup_init",val:" = False"}],parametersDescription:[{anchor:"transformers.Adafactor.params",description:`<strong>params</strong> (<code>Iterable[nn.parameter.Parameter]</code>) &#x2014;
Iterable of parameters to optimize or dictionaries defining parameter groups.`,name:"params"},{anchor:"transformers.Adafactor.lr",description:`<strong>lr</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The external learning rate.`,name:"lr"},{anchor:"transformers.Adafactor.eps",description:`<strong>eps</strong> (<code>Tuple[float, float]</code>, <em>optional</em>, defaults to <code>(1e-30, 0.001)</code>) &#x2014;
Regularization constants for square gradient and parameter scale respectively`,name:"eps"},{anchor:"transformers.Adafactor.clip_threshold",description:`<strong>clip_threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
Threshold of root mean square of final gradient update`,name:"clip_threshold"},{anchor:"transformers.Adafactor.decay_rate",description:`<strong>decay_rate</strong> (<code>float</code>, <em>optional</em>, defaults to -0.8) &#x2014;
Coefficient used to compute running averages of square`,name:"decay_rate"},{anchor:"transformers.Adafactor.beta1",description:`<strong>beta1</strong> (<code>float</code>, <em>optional</em>) &#x2014;
Coefficient used for computing running averages of gradient`,name:"beta1"},{anchor:"transformers.Adafactor.weight_decay",description:`<strong>weight_decay</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Weight decay (L2 penalty)`,name:"weight_decay"},{anchor:"transformers.Adafactor.scale_parameter",description:`<strong>scale_parameter</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
If True, learning rate is scaled by root mean square`,name:"scale_parameter"},{anchor:"transformers.Adafactor.relative_step",description:`<strong>relative_step</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
If True, time-dependent learning rate is computed instead of external learning rate`,name:"relative_step"},{anchor:"transformers.Adafactor.warmup_init",description:`<strong>warmup_init</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Time-dependent learning rate computation depends on whether warm-up initialization is being used`,name:"warmup_init"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization.py#L672"}}),S=new sr({props:{anchor:"transformers.Adafactor.example",$$slots:{default:[Ra]},$$scope:{ctx:U}}}),q=new sr({props:{anchor:"transformers.Adafactor.example-2",$$slots:{default:[Ea]},$$scope:{ctx:U}}}),B=new sr({props:{anchor:"transformers.Adafactor.example-3",$$slots:{default:[ka]},$$scope:{ctx:U}}}),X=new sr({props:{anchor:"transformers.Adafactor.example-4",$$slots:{default:[Ia]},$$scope:{ctx:U}}}),se=new M({props:{name:"step",anchor:"transformers.Adafactor.step",parameters:[{name:"closure",val:" = None"}],parametersDescription:[{anchor:"transformers.Adafactor.step.closure",description:`<strong>closure</strong> (callable, optional) &#x2014; A closure that reevaluates the model
and returns the loss.`,name:"closure"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization.py#L818"}}),ie=new ht({props:{title:"AdamWeightDecay (TensorFlow)",local:"transformers.AdamWeightDecay",headingTag:"h2"}}),le=new M({props:{name:"class transformers.AdamWeightDecay",anchor:"transformers.AdamWeightDecay",parameters:[{name:"learning_rate",val:": Union = 0.001"},{name:"beta_1",val:": float = 0.9"},{name:"beta_2",val:": float = 0.999"},{name:"epsilon",val:": float = 1e-07"},{name:"amsgrad",val:": bool = False"},{name:"weight_decay_rate",val:": float = 0.0"},{name:"include_in_weight_decay",val:": Optional = None"},{name:"exclude_from_weight_decay",val:": Optional = None"},{name:"name",val:": str = 'AdamWeightDecay'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AdamWeightDecay.learning_rate",description:`<strong>learning_rate</strong> (<code>Union[float, LearningRateSchedule]</code>, <em>optional</em>, defaults to 0.001) &#x2014;
The learning rate to use or a schedule.`,name:"learning_rate"},{anchor:"transformers.AdamWeightDecay.beta_1",description:`<strong>beta_1</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
The beta1 parameter in Adam, which is the exponential decay rate for the 1st momentum estimates.`,name:"beta_1"},{anchor:"transformers.AdamWeightDecay.beta_2",description:`<strong>beta_2</strong> (<code>float</code>, <em>optional</em>, defaults to 0.999) &#x2014;
The beta2 parameter in Adam, which is the exponential decay rate for the 2nd momentum estimates.`,name:"beta_2"},{anchor:"transformers.AdamWeightDecay.epsilon",description:`<strong>epsilon</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-07) &#x2014;
The epsilon parameter in Adam, which is a small constant for numerical stability.`,name:"epsilon"},{anchor:"transformers.AdamWeightDecay.amsgrad",description:`<strong>amsgrad</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to apply AMSGrad variant of this algorithm or not, see <a href="https://arxiv.org/abs/1904.09237" rel="nofollow">On the Convergence of Adam and
Beyond</a>.`,name:"amsgrad"},{anchor:"transformers.AdamWeightDecay.weight_decay_rate",description:`<strong>weight_decay_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The weight decay to apply.`,name:"weight_decay_rate"},{anchor:"transformers.AdamWeightDecay.include_in_weight_decay",description:`<strong>include_in_weight_decay</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of the parameter names (or re patterns) to apply weight decay to. If none is passed, weight decay is
applied to all parameters by default (unless they are in <code>exclude_from_weight_decay</code>).`,name:"include_in_weight_decay"},{anchor:"transformers.AdamWeightDecay.exclude_from_weight_decay",description:`<strong>exclude_from_weight_decay</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of the parameter names (or re patterns) to exclude from applying weight decay to. If a
<code>include_in_weight_decay</code> is passed, the names in it will supersede this list.`,name:"exclude_from_weight_decay"},{anchor:"transformers.AdamWeightDecay.name",description:`<strong>name</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;AdamWeightDecay&quot;</code>) &#x2014;
Optional name for the operations created when applying gradients.`,name:"name"},{anchor:"transformers.AdamWeightDecay.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Keyword arguments. Allowed to be {<code>clipnorm</code>, <code>clipvalue</code>, <code>lr</code>, <code>decay</code>}. <code>clipnorm</code> is clip gradients by
norm; <code>clipvalue</code> is clip gradients by value, <code>decay</code> is included for backward compatibility to allow time
inverse decay of learning rate. <code>lr</code> is included for backward compatibility, recommended to use
<code>learning_rate</code> instead.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization_tf.py#L180"}}),me=new M({props:{name:"from_config",anchor:"transformers.AdamWeightDecay.from_config",parameters:[{name:"config",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization_tf.py#L237"}}),ce=new M({props:{name:"transformers.create_optimizer",anchor:"transformers.create_optimizer",parameters:[{name:"init_lr",val:": float"},{name:"num_train_steps",val:": int"},{name:"num_warmup_steps",val:": int"},{name:"min_lr_ratio",val:": float = 0.0"},{name:"adam_beta1",val:": float = 0.9"},{name:"adam_beta2",val:": float = 0.999"},{name:"adam_epsilon",val:": float = 1e-08"},{name:"adam_clipnorm",val:": Optional = None"},{name:"adam_global_clipnorm",val:": Optional = None"},{name:"weight_decay_rate",val:": float = 0.0"},{name:"power",val:": float = 1.0"},{name:"include_in_weight_decay",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.create_optimizer.init_lr",description:`<strong>init_lr</strong> (<code>float</code>) &#x2014;
The desired learning rate at the end of the warmup phase.`,name:"init_lr"},{anchor:"transformers.create_optimizer.num_train_steps",description:`<strong>num_train_steps</strong> (<code>int</code>) &#x2014;
The total number of training steps.`,name:"num_train_steps"},{anchor:"transformers.create_optimizer.num_warmup_steps",description:`<strong>num_warmup_steps</strong> (<code>int</code>) &#x2014;
The number of warmup steps.`,name:"num_warmup_steps"},{anchor:"transformers.create_optimizer.min_lr_ratio",description:`<strong>min_lr_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The final learning rate at the end of the linear decay will be <code>init_lr * min_lr_ratio</code>.`,name:"min_lr_ratio"},{anchor:"transformers.create_optimizer.adam_beta1",description:`<strong>adam_beta1</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
The beta1 to use in Adam.`,name:"adam_beta1"},{anchor:"transformers.create_optimizer.adam_beta2",description:`<strong>adam_beta2</strong> (<code>float</code>, <em>optional</em>, defaults to 0.999) &#x2014;
The beta2 to use in Adam.`,name:"adam_beta2"},{anchor:"transformers.create_optimizer.adam_epsilon",description:`<strong>adam_epsilon</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-8) &#x2014;
The epsilon to use in Adam.`,name:"adam_epsilon"},{anchor:"transformers.create_optimizer.adam_clipnorm",description:`<strong>adam_clipnorm</strong> (<code>float</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
If not <code>None</code>, clip the gradient norm for each weight tensor to this value.`,name:"adam_clipnorm"},{anchor:"transformers.create_optimizer.adam_global_clipnorm",description:`<strong>adam_global_clipnorm</strong> (<code>float</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
If not <code>None</code>, clip gradient norm to this value. When using this argument, the norm is computed over all
weight tensors, as if they were concatenated into a single vector.`,name:"adam_global_clipnorm"},{anchor:"transformers.create_optimizer.weight_decay_rate",description:`<strong>weight_decay_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The weight decay to use.`,name:"weight_decay_rate"},{anchor:"transformers.create_optimizer.power",description:`<strong>power</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
The power to use for PolynomialDecay.`,name:"power"},{anchor:"transformers.create_optimizer.include_in_weight_decay",description:`<strong>include_in_weight_decay</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of the parameter names (or re patterns) to apply weight decay to. If none is passed, weight decay is
applied to all parameters except bias and layer norm parameters.`,name:"include_in_weight_decay"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization_tf.py#L96"}}),pe=new ht({props:{title:"Schedules",local:"schedules",headingTag:"h2"}}),de=new ht({props:{title:"Learning Rate Schedules (Pytorch)",local:"transformers.SchedulerType",headingTag:"h3"}}),he=new M({props:{name:"class transformers.SchedulerType",anchor:"transformers.SchedulerType",parameters:[{name:"value",val:""},{name:"names",val:" = None"},{name:"module",val:" = None"},{name:"qualname",val:" = None"},{name:"type",val:" = None"},{name:"start",val:" = 1"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/trainer_utils.py#L408"}}),ue=new M({props:{name:"transformers.get_scheduler",anchor:"transformers.get_scheduler",parameters:[{name:"name",val:": Union"},{name:"optimizer",val:": Optimizer"},{name:"num_warmup_steps",val:": Optional = None"},{name:"num_training_steps",val:": Optional = None"},{name:"scheduler_specific_kwargs",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.get_scheduler.name",description:`<strong>name</strong> (<code>str</code> or <code>SchedulerType</code>) &#x2014;
The name of the scheduler to use.`,name:"name"},{anchor:"transformers.get_scheduler.optimizer",description:`<strong>optimizer</strong> (<code>torch.optim.Optimizer</code>) &#x2014;
The optimizer that will be used during training.`,name:"optimizer"},{anchor:"transformers.get_scheduler.num_warmup_steps",description:`<strong>num_warmup_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of warmup steps to do. This is not required by all schedulers (hence the argument being
optional), the function will raise an error if it&#x2019;s unset and the scheduler type requires it.`,name:"num_warmup_steps"},{anchor:"transformers.get_scheduler.num_training_steps",description:`<strong>num_training_steps</strong> (\`int&#x201C;, <em>optional</em>) &#x2014;
The number of training steps to do. This is not required by all schedulers (hence the argument being
optional), the function will raise an error if it&#x2019;s unset and the scheduler type requires it.`,name:"num_training_steps"},{anchor:"transformers.get_scheduler.scheduler_specific_kwargs",description:`<strong>scheduler_specific_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Extra parameters for schedulers such as cosine with restarts. Mismatched scheduler types and scheduler
parameters will cause the scheduler function to raise a TypeError.`,name:"scheduler_specific_kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization.py#L471"}}),fe=new M({props:{name:"transformers.get_constant_schedule",anchor:"transformers.get_constant_schedule",parameters:[{name:"optimizer",val:": Optimizer"},{name:"last_epoch",val:": int = -1"}],parametersDescription:[{anchor:"transformers.get_constant_schedule.optimizer",description:`<strong>optimizer</strong> (<code>~torch.optim.Optimizer</code>) &#x2014;
The optimizer for which to schedule the learning rate.`,name:"optimizer"},{anchor:"transformers.get_constant_schedule.last_epoch",description:`<strong>last_epoch</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
The index of the last epoch when resuming training.`,name:"last_epoch"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization.py#L40",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.optim.lr_scheduler.LambdaLR</code> with the appropriate schedule.</p>
`}}),ge=new M({props:{name:"transformers.get_constant_schedule_with_warmup",anchor:"transformers.get_constant_schedule_with_warmup",parameters:[{name:"optimizer",val:": Optimizer"},{name:"num_warmup_steps",val:": int"},{name:"last_epoch",val:": int = -1"}],parametersDescription:[{anchor:"transformers.get_constant_schedule_with_warmup.optimizer",description:`<strong>optimizer</strong> (<code>~torch.optim.Optimizer</code>) &#x2014;
The optimizer for which to schedule the learning rate.`,name:"optimizer"},{anchor:"transformers.get_constant_schedule_with_warmup.num_warmup_steps",description:`<strong>num_warmup_steps</strong> (<code>int</code>) &#x2014;
The number of steps for the warmup phase.`,name:"num_warmup_steps"},{anchor:"transformers.get_constant_schedule_with_warmup.last_epoch",description:`<strong>last_epoch</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
The index of the last epoch when resuming training.`,name:"last_epoch"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization.py#L81",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.optim.lr_scheduler.LambdaLR</code> with the appropriate schedule.</p>
`}}),we=new M({props:{name:"transformers.get_cosine_schedule_with_warmup",anchor:"transformers.get_cosine_schedule_with_warmup",parameters:[{name:"optimizer",val:": Optimizer"},{name:"num_warmup_steps",val:": int"},{name:"num_training_steps",val:": int"},{name:"num_cycles",val:": float = 0.5"},{name:"last_epoch",val:": int = -1"}],parametersDescription:[{anchor:"transformers.get_cosine_schedule_with_warmup.optimizer",description:`<strong>optimizer</strong> (<code>~torch.optim.Optimizer</code>) &#x2014;
The optimizer for which to schedule the learning rate.`,name:"optimizer"},{anchor:"transformers.get_cosine_schedule_with_warmup.num_warmup_steps",description:`<strong>num_warmup_steps</strong> (<code>int</code>) &#x2014;
The number of steps for the warmup phase.`,name:"num_warmup_steps"},{anchor:"transformers.get_cosine_schedule_with_warmup.num_training_steps",description:`<strong>num_training_steps</strong> (<code>int</code>) &#x2014;
The total number of training steps.`,name:"num_training_steps"},{anchor:"transformers.get_cosine_schedule_with_warmup.num_cycles",description:`<strong>num_cycles</strong> (<code>float</code>, <em>optional</em>, defaults to 0.5) &#x2014;
The number of waves in the cosine schedule (the defaults is to just decrease from the max value to 0
following a half-cosine).`,name:"num_cycles"},{anchor:"transformers.get_cosine_schedule_with_warmup.last_epoch",description:`<strong>last_epoch</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
The index of the last epoch when resuming training.`,name:"last_epoch"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization.py#L144",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.optim.lr_scheduler.LambdaLR</code> with the appropriate schedule.</p>
`}}),ve=new M({props:{name:"transformers.get_cosine_with_hard_restarts_schedule_with_warmup",anchor:"transformers.get_cosine_with_hard_restarts_schedule_with_warmup",parameters:[{name:"optimizer",val:": Optimizer"},{name:"num_warmup_steps",val:": int"},{name:"num_training_steps",val:": int"},{name:"num_cycles",val:": int = 1"},{name:"last_epoch",val:": int = -1"}],parametersDescription:[{anchor:"transformers.get_cosine_with_hard_restarts_schedule_with_warmup.optimizer",description:`<strong>optimizer</strong> (<code>~torch.optim.Optimizer</code>) &#x2014;
The optimizer for which to schedule the learning rate.`,name:"optimizer"},{anchor:"transformers.get_cosine_with_hard_restarts_schedule_with_warmup.num_warmup_steps",description:`<strong>num_warmup_steps</strong> (<code>int</code>) &#x2014;
The number of steps for the warmup phase.`,name:"num_warmup_steps"},{anchor:"transformers.get_cosine_with_hard_restarts_schedule_with_warmup.num_training_steps",description:`<strong>num_training_steps</strong> (<code>int</code>) &#x2014;
The total number of training steps.`,name:"num_training_steps"},{anchor:"transformers.get_cosine_with_hard_restarts_schedule_with_warmup.num_cycles",description:`<strong>num_cycles</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of hard restarts to use.`,name:"num_cycles"},{anchor:"transformers.get_cosine_with_hard_restarts_schedule_with_warmup.last_epoch",description:`<strong>last_epoch</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
The index of the last epoch when resuming training.`,name:"last_epoch"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization.py#L189",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.optim.lr_scheduler.LambdaLR</code> with the appropriate schedule.</p>
`}}),ye=new M({props:{name:"transformers.get_linear_schedule_with_warmup",anchor:"transformers.get_linear_schedule_with_warmup",parameters:[{name:"optimizer",val:""},{name:"num_warmup_steps",val:""},{name:"num_training_steps",val:""},{name:"last_epoch",val:" = -1"}],parametersDescription:[{anchor:"transformers.get_linear_schedule_with_warmup.optimizer",description:`<strong>optimizer</strong> (<code>~torch.optim.Optimizer</code>) &#x2014;
The optimizer for which to schedule the learning rate.`,name:"optimizer"},{anchor:"transformers.get_linear_schedule_with_warmup.num_warmup_steps",description:`<strong>num_warmup_steps</strong> (<code>int</code>) &#x2014;
The number of steps for the warmup phase.`,name:"num_warmup_steps"},{anchor:"transformers.get_linear_schedule_with_warmup.num_training_steps",description:`<strong>num_training_steps</strong> (<code>int</code>) &#x2014;
The total number of training steps.`,name:"num_training_steps"},{anchor:"transformers.get_linear_schedule_with_warmup.last_epoch",description:`<strong>last_epoch</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
The index of the last epoch when resuming training.`,name:"last_epoch"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization.py#L108",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.optim.lr_scheduler.LambdaLR</code> with the appropriate schedule.</p>
`}}),Te=new M({props:{name:"transformers.get_polynomial_decay_schedule_with_warmup",anchor:"transformers.get_polynomial_decay_schedule_with_warmup",parameters:[{name:"optimizer",val:""},{name:"num_warmup_steps",val:""},{name:"num_training_steps",val:""},{name:"lr_end",val:" = 1e-07"},{name:"power",val:" = 1.0"},{name:"last_epoch",val:" = -1"}],parametersDescription:[{anchor:"transformers.get_polynomial_decay_schedule_with_warmup.optimizer",description:`<strong>optimizer</strong> (<code>~torch.optim.Optimizer</code>) &#x2014;
The optimizer for which to schedule the learning rate.`,name:"optimizer"},{anchor:"transformers.get_polynomial_decay_schedule_with_warmup.num_warmup_steps",description:`<strong>num_warmup_steps</strong> (<code>int</code>) &#x2014;
The number of steps for the warmup phase.`,name:"num_warmup_steps"},{anchor:"transformers.get_polynomial_decay_schedule_with_warmup.num_training_steps",description:`<strong>num_training_steps</strong> (<code>int</code>) &#x2014;
The total number of training steps.`,name:"num_training_steps"},{anchor:"transformers.get_polynomial_decay_schedule_with_warmup.lr_end",description:`<strong>lr_end</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-7) &#x2014;
The end LR.`,name:"lr_end"},{anchor:"transformers.get_polynomial_decay_schedule_with_warmup.power",description:`<strong>power</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
Power factor.`,name:"power"},{anchor:"transformers.get_polynomial_decay_schedule_with_warmup.last_epoch",description:`<strong>last_epoch</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
The index of the last epoch when resuming training.`,name:"last_epoch"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization.py#L243",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.optim.lr_scheduler.LambdaLR</code> with the appropriate schedule.</p>
`}}),ze=new M({props:{name:"transformers.get_inverse_sqrt_schedule",anchor:"transformers.get_inverse_sqrt_schedule",parameters:[{name:"optimizer",val:": Optimizer"},{name:"num_warmup_steps",val:": int"},{name:"timescale",val:": int = None"},{name:"last_epoch",val:": int = -1"}],parametersDescription:[{anchor:"transformers.get_inverse_sqrt_schedule.optimizer",description:`<strong>optimizer</strong> (<code>~torch.optim.Optimizer</code>) &#x2014;
The optimizer for which to schedule the learning rate.`,name:"optimizer"},{anchor:"transformers.get_inverse_sqrt_schedule.num_warmup_steps",description:`<strong>num_warmup_steps</strong> (<code>int</code>) &#x2014;
The number of steps for the warmup phase.`,name:"num_warmup_steps"},{anchor:"transformers.get_inverse_sqrt_schedule.timescale",description:`<strong>timescale</strong> (<code>int</code>, <em>optional</em>, defaults to <code>num_warmup_steps</code>) &#x2014;
Time scale.`,name:"timescale"},{anchor:"transformers.get_inverse_sqrt_schedule.last_epoch",description:`<strong>last_epoch</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
The index of the last epoch when resuming training.`,name:"last_epoch"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization.py#L297",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.optim.lr_scheduler.LambdaLR</code> with the appropriate schedule.</p>
`}}),Me=new M({props:{name:"transformers.get_wsd_schedule",anchor:"transformers.get_wsd_schedule",parameters:[{name:"optimizer",val:": Optimizer"},{name:"num_warmup_steps",val:": int"},{name:"num_stable_steps",val:": int"},{name:"num_decay_steps",val:": int"},{name:"min_lr_ratio",val:": float = 0"},{name:"num_cycles",val:": float = 0.5"},{name:"last_epoch",val:": int = -1"}],parametersDescription:[{anchor:"transformers.get_wsd_schedule.optimizer",description:`<strong>optimizer</strong> (<code>~torch.optim.Optimizer</code>) &#x2014;
The optimizer for which to schedule the learning rate.`,name:"optimizer"},{anchor:"transformers.get_wsd_schedule.num_warmup_steps",description:`<strong>num_warmup_steps</strong> (<code>int</code>) &#x2014;
The number of steps for the warmup phase.`,name:"num_warmup_steps"},{anchor:"transformers.get_wsd_schedule.num_stable_steps",description:`<strong>num_stable_steps</strong> (<code>int</code>) &#x2014;
The number of steps for the stable phase.`,name:"num_stable_steps"},{anchor:"transformers.get_wsd_schedule.num_decay_steps",description:`<strong>num_decay_steps</strong> (<code>int</code>) &#x2014;
The number of steps for the cosine annealing phase.`,name:"num_decay_steps"},{anchor:"transformers.get_wsd_schedule.min_lr_ratio",description:`<strong>min_lr_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The minimum learning rate as a ratio of the initial learning rate.`,name:"min_lr_ratio"},{anchor:"transformers.get_wsd_schedule.num_cycles",description:`<strong>num_cycles</strong> (<code>float</code>, <em>optional</em>, defaults to 0.5) &#x2014;
The number of waves in the cosine schedule (the defaults is to just decrease from the max value to 0
following a half-cosine).`,name:"num_cycles"},{anchor:"transformers.get_wsd_schedule.last_epoch",description:`<strong>last_epoch</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
The index of the last epoch when resuming training.`,name:"last_epoch"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization.py#L410",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.optim.lr_scheduler.LambdaLR</code> with the appropriate schedule.</p>
`}}),Ae=new M({props:{name:"class transformers.WarmUp",anchor:"transformers.WarmUp",parameters:[{name:"initial_learning_rate",val:": float"},{name:"decay_schedule_fn",val:": Callable"},{name:"warmup_steps",val:": int"},{name:"power",val:": float = 1.0"},{name:"name",val:": str = None"}],parametersDescription:[{anchor:"transformers.WarmUp.initial_learning_rate",description:`<strong>initial_learning_rate</strong> (<code>float</code>) &#x2014;
The initial learning rate for the schedule after the warmup (so this will be the learning rate at the end
of the warmup).`,name:"initial_learning_rate"},{anchor:"transformers.WarmUp.decay_schedule_fn",description:`<strong>decay_schedule_fn</strong> (<code>Callable</code>) &#x2014;
The schedule function to apply after the warmup for the rest of training.`,name:"decay_schedule_fn"},{anchor:"transformers.WarmUp.warmup_steps",description:`<strong>warmup_steps</strong> (<code>int</code>) &#x2014;
The number of steps for the warmup part of training.`,name:"warmup_steps"},{anchor:"transformers.WarmUp.power",description:`<strong>power</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
The power to use for the polynomial warmup (defaults is a linear warmup).`,name:"power"},{anchor:"transformers.WarmUp.name",description:`<strong>name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Optional name prefix for the returned tensors during the schedule.`,name:"name"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization_tf.py#L38"}}),je=new M({props:{name:"class transformers.GradientAccumulator",anchor:"transformers.GradientAccumulator",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization_tf.py#L310"}}),De=new M({props:{name:"reset",anchor:"transformers.GradientAccumulator.reset",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/optimization_tf.py#L372"}}),Ue=new Ua({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/main_classes/optimizer_schedules.md"}}),{c(){c=l("meta"),C=a(),x=l("p"),d=a(),h($.$$.fragment),i=a(),T=l("p"),T.innerHTML=Hr,ft=a(),ee=l("ul"),ee.innerHTML=Sr,gt=a(),h(te.$$.fragment),_t=a(),L=l("div"),h(re.$$.fragment),mr=a(),ke=l("p"),ke.innerHTML=qr,cr=a(),H=l("div"),h(ae.$$.fragment),pr=a(),Ie=l("p"),Ie.textContent=Br,wt=a(),h(ne.$$.fragment),bt=a(),v=l("div"),h(oe.$$.fragment),dr=a(),Pe=l("p"),Pe.innerHTML=Xr,hr=a(),Fe=l("p"),Fe.innerHTML=Or,ur=a(),Ve=l("p"),Ve.textContent=Yr,fr=a(),Je=l("p"),Je.innerHTML=Qr,gr=a(),Ne=l("ul"),Ne.innerHTML=Kr,_r=a(),h(S.$$.fragment),wr=a(),h(q.$$.fragment),br=a(),Ze=l("p"),Ze.innerHTML=ea,vr=a(),h(B.$$.fragment),$r=a(),h(X.$$.fragment),yr=a(),O=l("div"),h(se.$$.fragment),xr=a(),Ge=l("p"),Ge.textContent=ta,vt=a(),h(ie.$$.fragment),$t=a(),A=l("div"),h(le.$$.fragment),Tr=a(),He=l("p"),He.innerHTML=ra,zr=a(),Se=l("p"),Se.textContent=aa,Mr=a(),Y=l("div"),h(me.$$.fragment),Cr=a(),qe=l("p"),qe.textContent=na,yt=a(),R=l("div"),h(ce.$$.fragment),Ar=a(),Be=l("p"),Be.textContent=oa,xt=a(),h(pe.$$.fragment),Tt=a(),h(de.$$.fragment),zt=a(),E=l("div"),h(he.$$.fragment),Lr=a(),Xe=l("p"),Xe.textContent=sa,Mt=a(),k=l("div"),h(ue.$$.fragment),Wr=a(),Oe=l("p"),Oe.textContent=ia,Ct=a(),I=l("div"),h(fe.$$.fragment),jr=a(),Ye=l("p"),Ye.textContent=la,At=a(),P=l("div"),h(ge.$$.fragment),Dr=a(),Qe=l("p"),Qe.textContent=ma,Lt=a(),_e=l("img"),Wt=a(),F=l("div"),h(we.$$.fragment),Ur=a(),Ke=l("p"),Ke.textContent=pa,jt=a(),be=l("img"),Dt=a(),V=l("div"),h(ve.$$.fragment),Rr=a(),et=l("p"),et.textContent=ha,Ut=a(),$e=l("img"),Rt=a(),J=l("div"),h(ye.$$.fragment),Er=a(),tt=l("p"),tt.textContent=fa,Et=a(),xe=l("img"),kt=a(),W=l("div"),h(Te.$$.fragment),kr=a(),rt=l("p"),rt.innerHTML=_a,Ir=a(),at=l("p"),at.innerHTML=wa,It=a(),N=l("div"),h(ze.$$.fragment),Pr=a(),nt=l("p"),nt.textContent=ba,Pt=a(),j=l("div"),h(Me.$$.fragment),Fr=a(),ot=l("p"),ot.textContent=va,Vr=a(),st=l("ol"),st.innerHTML=$a,Ft=a(),Ce=l("p"),Ce.textContent=ya,Vt=a(),Z=l("div"),h(Ae.$$.fragment),Jr=a(),it=l("p"),it.textContent=xa,Jt=a(),Le=l("p"),Le.textContent=Ta,Nt=a(),We=l("p"),We.textContent=za,Zt=a(),D=l("div"),h(je.$$.fragment),Nr=a(),lt=l("p"),lt.innerHTML=Ma,Zr=a(),Q=l("div"),h(De.$$.fragment),Gr=a(),mt=l("p"),mt.textContent=Ca,Gt=a(),h(Ue.$$.fragment),Ht=a(),ut=l("p"),this.h()},l(e){const r=Da("svelte-u9bgzb",document.head);c=m(r,"META",{name:!0,content:!0}),r.forEach(t),C=n(e),x=m(e,"P",{}),z(x).forEach(t),d=n(e),u($.$$.fragment,e),i=n(e),T=m(e,"P",{"data-svelte-h":!0}),p(T)!=="svelte-312sfx"&&(T.innerHTML=Hr),ft=n(e),ee=m(e,"UL",{"data-svelte-h":!0}),p(ee)!=="svelte-ps1e52"&&(ee.innerHTML=Sr),gt=n(e),u(te.$$.fragment,e),_t=n(e),L=m(e,"DIV",{class:!0});var G=z(L);u(re.$$.fragment,G),mr=n(G),ke=m(G,"P",{"data-svelte-h":!0}),p(ke)!=="svelte-b86q21"&&(ke.innerHTML=qr),cr=n(G),H=m(G,"DIV",{class:!0});var Re=z(H);u(ae.$$.fragment,Re),pr=n(Re),Ie=m(Re,"P",{"data-svelte-h":!0}),p(Ie)!=="svelte-1gr03w4"&&(Ie.textContent=Br),Re.forEach(t),G.forEach(t),wt=n(e),u(ne.$$.fragment,e),bt=n(e),v=m(e,"DIV",{class:!0});var y=z(v);u(oe.$$.fragment,y),dr=n(y),Pe=m(y,"P",{"data-svelte-h":!0}),p(Pe)!=="svelte-114ll6r"&&(Pe.innerHTML=Xr),hr=n(y),Fe=m(y,"P",{"data-svelte-h":!0}),p(Fe)!=="svelte-9bvrpy"&&(Fe.innerHTML=Or),ur=n(y),Ve=m(y,"P",{"data-svelte-h":!0}),p(Ve)!=="svelte-1dxk71o"&&(Ve.textContent=Yr),fr=n(y),Je=m(y,"P",{"data-svelte-h":!0}),p(Je)!=="svelte-kc6644"&&(Je.innerHTML=Qr),gr=n(y),Ne=m(y,"UL",{"data-svelte-h":!0}),p(Ne)!=="svelte-p81jc"&&(Ne.innerHTML=Kr),_r=n(y),u(S.$$.fragment,y),wr=n(y),u(q.$$.fragment,y),br=n(y),Ze=m(y,"P",{"data-svelte-h":!0}),p(Ze)!=="svelte-i6ekzv"&&(Ze.innerHTML=ea),vr=n(y),u(B.$$.fragment,y),$r=n(y),u(X.$$.fragment,y),yr=n(y),O=m(y,"DIV",{class:!0});var Ee=z(O);u(se.$$.fragment,Ee),xr=n(Ee),Ge=m(Ee,"P",{"data-svelte-h":!0}),p(Ge)!=="svelte-6lkj7q"&&(Ge.textContent=ta),Ee.forEach(t),y.forEach(t),vt=n(e),u(ie.$$.fragment,e),$t=n(e),A=m(e,"DIV",{class:!0});var K=z(A);u(le.$$.fragment,K),Tr=n(K),He=m(K,"P",{"data-svelte-h":!0}),p(He)!=="svelte-towids"&&(He.innerHTML=ra),zr=n(K),Se=m(K,"P",{"data-svelte-h":!0}),p(Se)!=="svelte-id029h"&&(Se.textContent=aa),Mr=n(K),Y=m(K,"DIV",{class:!0});var qt=z(Y);u(me.$$.fragment,qt),Cr=n(qt),qe=m(qt,"P",{"data-svelte-h":!0}),p(qe)!=="svelte-3iict9"&&(qe.textContent=na),qt.forEach(t),K.forEach(t),yt=n(e),R=m(e,"DIV",{class:!0});var Bt=z(R);u(ce.$$.fragment,Bt),Ar=n(Bt),Be=m(Bt,"P",{"data-svelte-h":!0}),p(Be)!=="svelte-16qojcu"&&(Be.textContent=oa),Bt.forEach(t),xt=n(e),u(pe.$$.fragment,e),Tt=n(e),u(de.$$.fragment,e),zt=n(e),E=m(e,"DIV",{class:!0});var Xt=z(E);u(he.$$.fragment,Xt),Lr=n(Xt),Xe=m(Xt,"P",{"data-svelte-h":!0}),p(Xe)!=="svelte-ofujqi"&&(Xe.textContent=sa),Xt.forEach(t),Mt=n(e),k=m(e,"DIV",{class:!0});var Ot=z(k);u(ue.$$.fragment,Ot),Wr=n(Ot),Oe=m(Ot,"P",{"data-svelte-h":!0}),p(Oe)!=="svelte-1oh310h"&&(Oe.textContent=ia),Ot.forEach(t),Ct=n(e),I=m(e,"DIV",{class:!0});var Yt=z(I);u(fe.$$.fragment,Yt),jr=n(Yt),Ye=m(Yt,"P",{"data-svelte-h":!0}),p(Ye)!=="svelte-cadr4a"&&(Ye.textContent=la),Yt.forEach(t),At=n(e),P=m(e,"DIV",{class:!0});var Qt=z(P);u(ge.$$.fragment,Qt),Dr=n(Qt),Qe=m(Qt,"P",{"data-svelte-h":!0}),p(Qe)!=="svelte-1lj8vcj"&&(Qe.textContent=ma),Qt.forEach(t),Lt=n(e),_e=m(e,"IMG",{alt:!0,src:!0}),Wt=n(e),F=m(e,"DIV",{class:!0});var Kt=z(F);u(we.$$.fragment,Kt),Ur=n(Kt),Ke=m(Kt,"P",{"data-svelte-h":!0}),p(Ke)!=="svelte-1lhkhz0"&&(Ke.textContent=pa),Kt.forEach(t),jt=n(e),be=m(e,"IMG",{alt:!0,src:!0}),Dt=n(e),V=m(e,"DIV",{class:!0});var er=z(V);u(ve.$$.fragment,er),Rr=n(er),et=m(er,"P",{"data-svelte-h":!0}),p(et)!=="svelte-1pclsvt"&&(et.textContent=ha),er.forEach(t),Ut=n(e),$e=m(e,"IMG",{alt:!0,src:!0}),Rt=n(e),J=m(e,"DIV",{class:!0});var tr=z(J);u(ye.$$.fragment,tr),Er=n(tr),tt=m(tr,"P",{"data-svelte-h":!0}),p(tt)!=="svelte-17q4ov5"&&(tt.textContent=fa),tr.forEach(t),Et=n(e),xe=m(e,"IMG",{alt:!0,src:!0}),kt=n(e),W=m(e,"DIV",{class:!0});var ct=z(W);u(Te.$$.fragment,ct),kr=n(ct),rt=m(ct,"P",{"data-svelte-h":!0}),p(rt)!=="svelte-1y55gjq"&&(rt.innerHTML=_a),Ir=n(ct),at=m(ct,"P",{"data-svelte-h":!0}),p(at)!=="svelte-1k7dul1"&&(at.innerHTML=wa),ct.forEach(t),It=n(e),N=m(e,"DIV",{class:!0});var rr=z(N);u(ze.$$.fragment,rr),Pr=n(rr),nt=m(rr,"P",{"data-svelte-h":!0}),p(nt)!=="svelte-yp2yn6"&&(nt.textContent=ba),rr.forEach(t),Pt=n(e),j=m(e,"DIV",{class:!0});var pt=z(j);u(Me.$$.fragment,pt),Fr=n(pt),ot=m(pt,"P",{"data-svelte-h":!0}),p(ot)!=="svelte-1g5u0qv"&&(ot.textContent=va),Vr=n(pt),st=m(pt,"OL",{"data-svelte-h":!0}),p(st)!=="svelte-t2fd5b"&&(st.innerHTML=$a),pt.forEach(t),Ft=n(e),Ce=m(e,"P",{"data-svelte-h":!0}),p(Ce)!=="svelte-1yx7yxn"&&(Ce.textContent=ya),Vt=n(e),Z=m(e,"DIV",{class:!0});var ar=z(Z);u(Ae.$$.fragment,ar),Jr=n(ar),it=m(ar,"P",{"data-svelte-h":!0}),p(it)!=="svelte-1mfn66a"&&(it.textContent=xa),ar.forEach(t),Jt=n(e),Le=m(e,"P",{"data-svelte-h":!0}),p(Le)!=="svelte-1ft7kux"&&(Le.textContent=Ta),Nt=n(e),We=m(e,"P",{"data-svelte-h":!0}),p(We)!=="svelte-p8npgf"&&(We.textContent=za),Zt=n(e),D=m(e,"DIV",{class:!0});var dt=z(D);u(je.$$.fragment,dt),Nr=n(dt),lt=m(dt,"P",{"data-svelte-h":!0}),p(lt)!=="svelte-8tkiw"&&(lt.innerHTML=Ma),Zr=n(dt),Q=m(dt,"DIV",{class:!0});var nr=z(Q);u(De.$$.fragment,nr),Gr=n(nr),mt=m(nr,"P",{"data-svelte-h":!0}),p(mt)!=="svelte-v0y289"&&(mt.textContent=Ca),nr.forEach(t),dt.forEach(t),Gt=n(e),u(Ue.$$.fragment,e),Ht=n(e),ut=m(e,"P",{}),z(ut).forEach(t),this.h()},h(){b(c,"name","hf:doc:metadata"),b(c,"content",Fa),b(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(_e,"alt",""),or(_e.src,ca="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/warmup_constant_schedule.png")||b(_e,"src",ca),b(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(be,"alt",""),or(be.src,da="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/warmup_cosine_schedule.png")||b(be,"src",da),b(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b($e,"alt",""),or($e.src,ua="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/warmup_cosine_hard_restarts_schedule.png")||b($e,"src",ua),b(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(xe,"alt",""),or(xe.src,ga="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/warmup_linear_schedule.png")||b(xe,"src",ga),b(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(D,"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,r){o(document.head,c),s(e,C,r),s(e,x,r),s(e,d,r),f($,e,r),s(e,i,r),s(e,T,r),s(e,ft,r),s(e,ee,r),s(e,gt,r),f(te,e,r),s(e,_t,r),s(e,L,r),f(re,L,null),o(L,mr),o(L,ke),o(L,cr),o(L,H),f(ae,H,null),o(H,pr),o(H,Ie),s(e,wt,r),f(ne,e,r),s(e,bt,r),s(e,v,r),f(oe,v,null),o(v,dr),o(v,Pe),o(v,hr),o(v,Fe),o(v,ur),o(v,Ve),o(v,fr),o(v,Je),o(v,gr),o(v,Ne),o(v,_r),f(S,v,null),o(v,wr),f(q,v,null),o(v,br),o(v,Ze),o(v,vr),f(B,v,null),o(v,$r),f(X,v,null),o(v,yr),o(v,O),f(se,O,null),o(O,xr),o(O,Ge),s(e,vt,r),f(ie,e,r),s(e,$t,r),s(e,A,r),f(le,A,null),o(A,Tr),o(A,He),o(A,zr),o(A,Se),o(A,Mr),o(A,Y),f(me,Y,null),o(Y,Cr),o(Y,qe),s(e,yt,r),s(e,R,r),f(ce,R,null),o(R,Ar),o(R,Be),s(e,xt,r),f(pe,e,r),s(e,Tt,r),f(de,e,r),s(e,zt,r),s(e,E,r),f(he,E,null),o(E,Lr),o(E,Xe),s(e,Mt,r),s(e,k,r),f(ue,k,null),o(k,Wr),o(k,Oe),s(e,Ct,r),s(e,I,r),f(fe,I,null),o(I,jr),o(I,Ye),s(e,At,r),s(e,P,r),f(ge,P,null),o(P,Dr),o(P,Qe),s(e,Lt,r),s(e,_e,r),s(e,Wt,r),s(e,F,r),f(we,F,null),o(F,Ur),o(F,Ke),s(e,jt,r),s(e,be,r),s(e,Dt,r),s(e,V,r),f(ve,V,null),o(V,Rr),o(V,et),s(e,Ut,r),s(e,$e,r),s(e,Rt,r),s(e,J,r),f(ye,J,null),o(J,Er),o(J,tt),s(e,Et,r),s(e,xe,r),s(e,kt,r),s(e,W,r),f(Te,W,null),o(W,kr),o(W,rt),o(W,Ir),o(W,at),s(e,It,r),s(e,N,r),f(ze,N,null),o(N,Pr),o(N,nt),s(e,Pt,r),s(e,j,r),f(Me,j,null),o(j,Fr),o(j,ot),o(j,Vr),o(j,st),s(e,Ft,r),s(e,Ce,r),s(e,Vt,r),s(e,Z,r),f(Ae,Z,null),o(Z,Jr),o(Z,it),s(e,Jt,r),s(e,Le,r),s(e,Nt,r),s(e,We,r),s(e,Zt,r),s(e,D,r),f(je,D,null),o(D,Nr),o(D,lt),o(D,Zr),o(D,Q),f(De,Q,null),o(Q,Gr),o(Q,mt),s(e,Gt,r),f(Ue,e,r),s(e,Ht,r),s(e,ut,r),St=!0},p(e,[r]){const G={};r&2&&(G.$$scope={dirty:r,ctx:e}),S.$set(G);const Re={};r&2&&(Re.$$scope={dirty:r,ctx:e}),q.$set(Re);const y={};r&2&&(y.$$scope={dirty:r,ctx:e}),B.$set(y);const Ee={};r&2&&(Ee.$$scope={dirty:r,ctx:e}),X.$set(Ee)},i(e){St||(g($.$$.fragment,e),g(te.$$.fragment,e),g(re.$$.fragment,e),g(ae.$$.fragment,e),g(ne.$$.fragment,e),g(oe.$$.fragment,e),g(S.$$.fragment,e),g(q.$$.fragment,e),g(B.$$.fragment,e),g(X.$$.fragment,e),g(se.$$.fragment,e),g(ie.$$.fragment,e),g(le.$$.fragment,e),g(me.$$.fragment,e),g(ce.$$.fragment,e),g(pe.$$.fragment,e),g(de.$$.fragment,e),g(he.$$.fragment,e),g(ue.$$.fragment,e),g(fe.$$.fragment,e),g(ge.$$.fragment,e),g(we.$$.fragment,e),g(ve.$$.fragment,e),g(ye.$$.fragment,e),g(Te.$$.fragment,e),g(ze.$$.fragment,e),g(Me.$$.fragment,e),g(Ae.$$.fragment,e),g(je.$$.fragment,e),g(De.$$.fragment,e),g(Ue.$$.fragment,e),St=!0)},o(e){_($.$$.fragment,e),_(te.$$.fragment,e),_(re.$$.fragment,e),_(ae.$$.fragment,e),_(ne.$$.fragment,e),_(oe.$$.fragment,e),_(S.$$.fragment,e),_(q.$$.fragment,e),_(B.$$.fragment,e),_(X.$$.fragment,e),_(se.$$.fragment,e),_(ie.$$.fragment,e),_(le.$$.fragment,e),_(me.$$.fragment,e),_(ce.$$.fragment,e),_(pe.$$.fragment,e),_(de.$$.fragment,e),_(he.$$.fragment,e),_(ue.$$.fragment,e),_(fe.$$.fragment,e),_(ge.$$.fragment,e),_(we.$$.fragment,e),_(ve.$$.fragment,e),_(ye.$$.fragment,e),_(Te.$$.fragment,e),_(ze.$$.fragment,e),_(Me.$$.fragment,e),_(Ae.$$.fragment,e),_(je.$$.fragment,e),_(De.$$.fragment,e),_(Ue.$$.fragment,e),St=!1},d(e){e&&(t(C),t(x),t(d),t(i),t(T),t(ft),t(ee),t(gt),t(_t),t(L),t(wt),t(bt),t(v),t(vt),t($t),t(A),t(yt),t(R),t(xt),t(Tt),t(zt),t(E),t(Mt),t(k),t(Ct),t(I),t(At),t(P),t(Lt),t(_e),t(Wt),t(F),t(jt),t(be),t(Dt),t(V),t(Ut),t($e),t(Rt),t(J),t(Et),t(xe),t(kt),t(W),t(It),t(N),t(Pt),t(j),t(Ft),t(Ce),t(Vt),t(Z),t(Jt),t(Le),t(Nt),t(We),t(Zt),t(D),t(Gt),t(Ht),t(ut)),t(c),w($,e),w(te,e),w(re),w(ae),w(ne,e),w(oe),w(S),w(q),w(B),w(X),w(se),w(ie,e),w(le),w(me),w(ce),w(pe,e),w(de,e),w(he),w(ue),w(fe),w(ge),w(we),w(ve),w(ye),w(Te),w(ze),w(Me),w(Ae),w(je),w(De),w(Ue,e)}}}const Fa='{"title":"Optimization","local":"optimization","sections":[{"title":"AdamW (PyTorch)","local":"transformers.AdamW","sections":[],"depth":2},{"title":"AdaFactor (PyTorch)","local":"transformers.Adafactor","sections":[],"depth":2},{"title":"AdamWeightDecay (TensorFlow)","local":"transformers.AdamWeightDecay","sections":[],"depth":2},{"title":"Schedules","local":"schedules","sections":[{"title":"Learning Rate Schedules (Pytorch)","local":"transformers.SchedulerType","sections":[],"depth":3}],"depth":2}],"depth":1}';function Va(U){return La(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class qa extends Wa{constructor(c){super(),ja(this,c,Va,Pa,Aa,{})}}export{qa as component};
