import{s as Rs,o as Ys,n as $t}from"../chunks/scheduler.9bc65507.js";import{S as Ss,i as Xs,g as r,s as n,r as b,A as Os,h as l,f as o,c as s,j as U,u as _,x as p,k as D,y as t,a as f,v,d as $,t as w,w as x}from"../chunks/index.707bf1b6.js";import{D as k}from"../chunks/Docstring.17db21ae.js";import{C as wt}from"../chunks/CodeBlock.54a9f38d.js";import{E as vt}from"../chunks/ExampleCodeBlock.4f515aa9.js";import{H as bt}from"../chunks/Heading.342b1fa6.js";function qs(J){let c,T="To activate the underflow/overflow detection, initialize the object with the model :",j,u,g;return u=new wt({props:{code:"ZGVidWdfb3ZlcmZsb3clMjAlM0QlMjBEZWJ1Z1VuZGVyZmxvd092ZXJmbG93KG1vZGVsKQ==",highlighted:"debug_overflow = DebugUnderflowOverflow(model)",wrap:!1}}),{c(){c=r("p"),c.textContent=T,j=n(),b(u.$$.fragment)},l(a){c=l(a,"P",{"data-svelte-h":!0}),p(c)!=="svelte-e61xrj"&&(c.textContent=T),j=s(a),_(u.$$.fragment,a)},m(a,M){f(a,c,M),f(a,j,M),v(u,a,M),g=!0},p:$t,i(a){g||($(u.$$.fragment,a),g=!0)},o(a){w(u.$$.fragment,a),g=!1},d(a){a&&(o(c),o(j)),x(u,a)}}}function Ks(J){let c,T="mixed precision :",j,u,g;return u=new wt({props:{code:"RGV0ZWN0ZWQlMjBpbmYlMkZuYW4lMjBkdXJpbmclMjBiYXRjaF9udW1iZXIlM0QwJTBBTGFzdCUyMDIxJTIwZm9yd2FyZCUyMGZyYW1lcyUzQSUwQWFicyUyMG1pbiUyMCUyMGFicyUyMG1heCUyMCUyMG1ldGFkYXRhJTBBJTVCLi4uJTVEJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZW5jb2Rlci5ibG9jay4yLmxheWVyLjEuRGVuc2VSZWx1RGVuc2Uud2lfMCUyMExpbmVhciUwQTIuMTdlLTA3JTIwNC41MGUlMkIwMCUyMHdlaWdodCUwQTEuNzllLTA2JTIwNC42NWUlMkIwMCUyMGlucHV0JTVCMCU1RCUwQTIuNjhlLTA2JTIwMy43MGUlMkIwMSUyMG91dHB1dCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGVuY29kZXIuYmxvY2suMi5sYXllci4xLkRlbnNlUmVsdURlbnNlLndpXzElMjBMaW5lYXIlMEE4LjA4ZS0wNyUyMDIuNjZlJTJCMDElMjB3ZWlnaHQlMEExLjc5ZS0wNiUyMDQuNjVlJTJCMDAlMjBpbnB1dCU1QjAlNUQlMEExLjI3ZS0wNCUyMDIuMzdlJTJCMDIlMjBvdXRwdXQlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBlbmNvZGVyLmJsb2NrLjIubGF5ZXIuMS5EZW5zZVJlbHVEZW5zZS53byUyMExpbmVhciUwQTEuMDFlLTA2JTIwNi40NGUlMkIwMCUyMHdlaWdodCUwQTAuMDBlJTJCMDAlMjA5Ljc0ZSUyQjAzJTIwaW5wdXQlNUIwJTVEJTBBMy4xOGUtMDQlMjA2LjI3ZSUyQjA0JTIwb3V0cHV0JTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZW5jb2Rlci5ibG9jay4yLmxheWVyLjEuRGVuc2VSZWx1RGVuc2UlMjBUNURlbnNlR2F0ZWRHZWx1RGVuc2UlMEExLjc5ZS0wNiUyMDQuNjVlJTJCMDAlMjBpbnB1dCU1QjAlNUQlMEEzLjE4ZS0wNCUyMDYuMjdlJTJCMDQlMjBvdXRwdXQlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBlbmNvZGVyLmJsb2NrLjIubGF5ZXIuMS5kcm9wb3V0JTIwRHJvcG91dCUwQTMuMThlLTA0JTIwNi4yN2UlMkIwNCUyMGlucHV0JTVCMCU1RCUwQTAuMDBlJTJCMDAlMjAlMjAlMjAlMjAlMjAlMjBpbmYlMjBvdXRwdXQ=",highlighted:`<span class="hljs-attribute">Detected</span> inf/nan during batch_number=<span class="hljs-number">0</span>
<span class="hljs-attribute">Last</span> <span class="hljs-number">21</span> forward frames:
<span class="hljs-attribute">abs</span> min  abs max  metadata<span class="hljs-meta">
[...]</span>
                  <span class="hljs-attribute">encoder</span>.block.<span class="hljs-number">2</span>.layer.<span class="hljs-number">1</span>.DenseReluDense.wi_0 Linear
<span class="hljs-attribute">2</span>.<span class="hljs-number">17</span>e-<span class="hljs-number">07</span> <span class="hljs-number">4</span>.<span class="hljs-number">50</span>e+<span class="hljs-number">00</span> weight
<span class="hljs-attribute">1</span>.<span class="hljs-number">79</span>e-<span class="hljs-number">06</span> <span class="hljs-number">4</span>.<span class="hljs-number">65</span>e+<span class="hljs-number">00</span> input[<span class="hljs-number">0</span>]
<span class="hljs-attribute">2</span>.<span class="hljs-number">68</span>e-<span class="hljs-number">06</span> <span class="hljs-number">3</span>.<span class="hljs-number">70</span>e+<span class="hljs-number">01</span> output
                  <span class="hljs-attribute">encoder</span>.block.<span class="hljs-number">2</span>.layer.<span class="hljs-number">1</span>.DenseReluDense.wi_1 Linear
<span class="hljs-attribute">8</span>.<span class="hljs-number">08</span>e-<span class="hljs-number">07</span> <span class="hljs-number">2</span>.<span class="hljs-number">66</span>e+<span class="hljs-number">01</span> weight
<span class="hljs-attribute">1</span>.<span class="hljs-number">79</span>e-<span class="hljs-number">06</span> <span class="hljs-number">4</span>.<span class="hljs-number">65</span>e+<span class="hljs-number">00</span> input[<span class="hljs-number">0</span>]
<span class="hljs-attribute">1</span>.<span class="hljs-number">27</span>e-<span class="hljs-number">04</span> <span class="hljs-number">2</span>.<span class="hljs-number">37</span>e+<span class="hljs-number">02</span> output
                  <span class="hljs-attribute">encoder</span>.block.<span class="hljs-number">2</span>.layer.<span class="hljs-number">1</span>.DenseReluDense.wo Linear
<span class="hljs-attribute">1</span>.<span class="hljs-number">01</span>e-<span class="hljs-number">06</span> <span class="hljs-number">6</span>.<span class="hljs-number">44</span>e+<span class="hljs-number">00</span> weight
<span class="hljs-attribute">0</span>.<span class="hljs-number">00</span>e+<span class="hljs-number">00</span> <span class="hljs-number">9</span>.<span class="hljs-number">74</span>e+<span class="hljs-number">03</span> input[<span class="hljs-number">0</span>]
<span class="hljs-attribute">3</span>.<span class="hljs-number">18</span>e-<span class="hljs-number">04</span> <span class="hljs-number">6</span>.<span class="hljs-number">27</span>e+<span class="hljs-number">04</span> output
                  <span class="hljs-attribute">encoder</span>.block.<span class="hljs-number">2</span>.layer.<span class="hljs-number">1</span>.DenseReluDense T5DenseGatedGeluDense
<span class="hljs-attribute">1</span>.<span class="hljs-number">79</span>e-<span class="hljs-number">06</span> <span class="hljs-number">4</span>.<span class="hljs-number">65</span>e+<span class="hljs-number">00</span> input[<span class="hljs-number">0</span>]
<span class="hljs-attribute">3</span>.<span class="hljs-number">18</span>e-<span class="hljs-number">04</span> <span class="hljs-number">6</span>.<span class="hljs-number">27</span>e+<span class="hljs-number">04</span> output
                  <span class="hljs-attribute">encoder</span>.block.<span class="hljs-number">2</span>.layer.<span class="hljs-number">1</span>.dropout Dropout
<span class="hljs-attribute">3</span>.<span class="hljs-number">18</span>e-<span class="hljs-number">04</span> <span class="hljs-number">6</span>.<span class="hljs-number">27</span>e+<span class="hljs-number">04</span> input[<span class="hljs-number">0</span>]
<span class="hljs-attribute">0</span>.<span class="hljs-number">00</span>e+<span class="hljs-number">00</span>      inf output`,wrap:!1}}),{c(){c=r("p"),c.textContent=T,j=n(),b(u.$$.fragment)},l(a){c=l(a,"P",{"data-svelte-h":!0}),p(c)!=="svelte-1705ugl"&&(c.textContent=T),j=s(a),_(u.$$.fragment,a)},m(a,M){f(a,c,M),f(a,j,M),v(u,a,M),g=!0},p:$t,i(a){g||($(u.$$.fragment,a),g=!0)},o(a){w(u.$$.fragment,a),g=!1},d(a){a&&(o(c),o(j)),x(u,a)}}}function ea(J){let c,T="By default the last 21 frames are printed. You can change the default to adjust for your needs. For example :",j,u,g;return u=new wt({props:{code:"ZGVidWdfb3ZlcmZsb3clMjAlM0QlMjBEZWJ1Z1VuZGVyZmxvd092ZXJmbG93KG1vZGVsJTJDJTIwbWF4X2ZyYW1lc190b19zYXZlJTNEMTAwKQ==",highlighted:'debug_overflow = DebugUnderflowOverflow(model, max_frames_to_save=<span class="hljs-number">100</span>)',wrap:!1}}),{c(){c=r("p"),c.textContent=T,j=n(),b(u.$$.fragment)},l(a){c=l(a,"P",{"data-svelte-h":!0}),p(c)!=="svelte-jxu20j"&&(c.textContent=T),j=s(a),_(u.$$.fragment,a)},m(a,M){f(a,c,M),f(a,j,M),v(u,a,M),g=!0},p:$t,i(a){g||($(u.$$.fragment,a),g=!0)},o(a){w(u.$$.fragment,a),g=!1},d(a){a&&(o(c),o(j)),x(u,a)}}}function ta(J){let c,T="given batch, and only do that for batches 1 and 3. Then you instantiate this class as :",j,u,g;return u=new wt({props:{code:"ZGVidWdfb3ZlcmZsb3clMjAlM0QlMjBEZWJ1Z1VuZGVyZmxvd092ZXJmbG93KG1vZGVsJTJDJTIwdHJhY2VfYmF0Y2hfbnVtcyUzRCU1QjElMkMlMjAzJTVEKQ==",highlighted:'debug_overflow = DebugUnderflowOverflow(model, trace_batch_nums=[<span class="hljs-number">1</span>, <span class="hljs-number">3</span>])',wrap:!1}}),{c(){c=r("p"),c.textContent=T,j=n(),b(u.$$.fragment)},l(a){c=l(a,"P",{"data-svelte-h":!0}),p(c)!=="svelte-1009pyu"&&(c.textContent=T),j=s(a),_(u.$$.fragment,a)},m(a,M){f(a,c,M),f(a,j,M),v(u,a,M),g=!0},p:$t,i(a){g||($(u.$$.fragment,a),g=!0)},o(a){w(u.$$.fragment,a),g=!1},d(a){a&&(o(c),o(j)),x(u,a)}}}function na(J){let c,T="You can also specify the batch number after which to stop the training, with :",j,u,g;return u=new wt({props:{code:"ZGVidWdfb3ZlcmZsb3clMjAlM0QlMjBEZWJ1Z1VuZGVyZmxvd092ZXJmbG93KG1vZGVsJTJDJTIwdHJhY2VfYmF0Y2hfbnVtcyUzRCU1QjElMkMlMjAzJTVEJTJDJTIwYWJvcnRfYWZ0ZXJfYmF0Y2hfbnVtJTNEMyk=",highlighted:'debug_overflow = DebugUnderflowOverflow(model, trace_batch_nums=[<span class="hljs-number">1</span>, <span class="hljs-number">3</span>], abort_after_batch_num=<span class="hljs-number">3</span>)',wrap:!1}}),{c(){c=r("p"),c.textContent=T,j=n(),b(u.$$.fragment)},l(a){c=l(a,"P",{"data-svelte-h":!0}),p(c)!=="svelte-psjyqa"&&(c.textContent=T),j=s(a),_(u.$$.fragment,a)},m(a,M){f(a,c,M),f(a,j,M),v(u,a,M),g=!0},p:$t,i(a){g||($(u.$$.fragment,a),g=!0)},o(a){w(u.$$.fragment,a),g=!1},d(a){a&&(o(c),o(j)),x(u,a)}}}function sa(J){let c,T,j,u,g,a,M,On='このページには、<a href="/docs/transformers/main/ja/main_classes/trainer#transformers.Trainer">Trainer</a> で使用されるすべてのユーティリティ関数がリストされています。',xt,O,qn="これらのほとんどは、ライブラリ内のトレーナーのコードを学習する場合にのみ役に立ちます。",jt,q,yt,P,K,Qt,xe,Kn="Evaluation output (always contains labels), to be used to compute metrics.",Mt,H,ee,Ft,je,es="An enumeration.",Tt,I,te,Rt,ye,ts="Helper function for reproducible behavior during distributed training. See",Yt,Me,ns='<li><a href="https://pytorch.org/docs/stable/notes/randomness.html" rel="nofollow">https://pytorch.org/docs/stable/notes/randomness.html</a> for pytorch</li> <li><a href="https://www.tensorflow.org/api_docs/python/tf/config/experimental/enable_op_determinism" rel="nofollow">https://www.tensorflow.org/api_docs/python/tf/config/experimental/enable_op_determinism</a> for tensorflow</li>',Ct,E,ne,St,Te,ss="Helper function for reproducible behavior to set the seed in <code>random</code>, <code>numpy</code>, <code>torch</code> and/or <code>tf</code> (if installed).",Ut,Z,se,Xt,Ce,as="Decorator to make all processes in distributed training wait for each local_master to do something.",Dt,ae,kt,V,re,Ot,Ue,rs="Internal class that just calls the list of callbacks in order.",Lt,le,Jt,h,oe,qt,De,ls="A class responsible for properly gathering tensors (or nested list/tuple of tensors) on the CPU by chunks.",Kt,ke,os=`If our dataset has 16 samples with a batch size of 2 on 3 processes and we gather then transfer on CPU at every
step, our sampler will generate the following indices:`,en,Le,is="<code>[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1]</code>",tn,Je,ps=`to get something of size a multiple of 3 (so that each process gets the same dataset length). Then process 0, 1 and
2 will be responsible of making predictions for the following samples:`,nn,Ie,ms="<li>P0: <code>[0, 1, 2, 3, 4, 5]</code></li> <li>P1: <code>[6, 7, 8, 9, 10, 11]</code></li> <li>P2: <code>[12, 13, 14, 15, 0, 1]</code></li>",sn,Ae,ds="The first batch treated on each process will be",an,Pe,cs="<li>P0: <code>[0, 1]</code></li> <li>P1: <code>[6, 7]</code></li> <li>P2: <code>[12, 13]</code></li>",rn,He,us=`So if we gather at the end of the first batch, we will get a tensor (nested list/tuple of tensor) corresponding to
the following indices:`,ln,Ee,fs="<code>[0, 1, 6, 7, 12, 13]</code>",on,Ze,hs=`If we directly concatenate our results without taking any precautions, the user will then get the predictions for
the indices in this order at the end of the prediction loop:`,pn,Ve,gs="<code>[0, 1, 6, 7, 12, 13, 2, 3, 8, 9, 14, 15, 4, 5, 10, 11, 0, 1]</code>",mn,Ge,bs="For some reason, that’s not going to roll their boat. This class is there to solve that problem.",dn,z,ie,cn,ze,_s=`Add <code>arrays</code> to the internal storage, Will initialize the storage to the full size at the first arrays passed
so that if we’re bound to get an OOM, it happens at the beginning.`,un,N,pe,fn,Ne,vs=`Return the properly gathered arrays and truncate to the number of samples (since the sampler added some extras
to get each process a dataset of the same length).`,It,me,At,C,de,hn,Be,$s="This subclass of <code>argparse.ArgumentParser</code> uses type hints on dataclasses to generate arguments.",gn,We,ws=`The class is designed to play well with the native argparse. In particular, you can add more (non-dataclass backed)
arguments to the parser after initialization and you’ll get the output back after parsing as an additional
namespace. Optional: To create sub argument groups use the <code>_argument_group_name</code> attribute in the dataclass.`,bn,A,ce,_n,Qe,xs="Parse command-line args into instances of the specified dataclass types.",vn,Fe,js=`This relies on argparse’s <code>ArgumentParser.parse_known_args</code>. See the doc at:
docs.python.org/3.7/library/argparse.html#argparse.ArgumentParser.parse_args`,$n,B,ue,wn,Re,ys=`Alternative helper method that does not use <code>argparse</code> at all, instead uses a dict and populating the dataclass
types.`,xn,W,fe,jn,Ye,Ms=`Alternative helper method that does not use <code>argparse</code> at all, instead loading a json file and populating the
dataclass types.`,yn,Q,he,Mn,Se,Ts=`Alternative helper method that does not use <code>argparse</code> at all, instead loading a yaml file and populating the
dataclass types.`,Pt,ge,Ht,i,be,Tn,Xe,Cs=`This debug class helps detect and understand where the model starts getting very large or very small, and more
importantly <code>nan</code> or <code>inf</code> weight and activation elements.`,Cn,Oe,Us="There are 2 working modes:",Un,qe,Ds="<li>Underflow/overflow detection (default)</li> <li>Specific batch absolute min/max tracing without detection</li>",Dn,Ke,ks="Mode 1: Underflow/overflow detection",kn,F,Ln,et,Ls=`then run the training as normal and if <code>nan</code> or <code>inf</code> gets detected in at least one of the weight, input or output
elements this module will throw an exception and will print <code>max_frames_to_save</code> frames that lead to this event,
each frame reporting`,Jn,tt,Js="<li>the fully qualified module name plus the class name whose <code>forward</code> was run</li> <li>the absolute min and max value of all elements for each module weights, and the inputs and output</li>",In,nt,Is="For example, here is the header and the last few frames in detection report for <code>google/mt5-small</code> run in fp16",An,R,Pn,st,As=`You can see here, that <code>T5DenseGatedGeluDense.forward</code> resulted in output activations, whose absolute max value was
around 62.7K, which is very close to fp16’s top limit of 64K. In the next frame we have <code>Dropout</code> which
renormalizes the weights, after it zeroed some of the elements, which pushes the absolute max value to more than
64K, and we get an overlow.`,Hn,at,Ps=`As you can see it’s the previous frames that we need to look into when the numbers start going into very large for
fp16 numbers.`,En,rt,Hs="The tracking is done in a forward hook, which gets invoked immediately after <code>forward</code> has completed.",Zn,Y,Vn,lt,Es=`To validate that you have set up this debugging feature correctly, and you intend to use it in a training that
may take hours to complete, first run it with normal tracing enabled for one of a few batches as explained in
the next section.`,Gn,ot,Zs="Mode 2. Specific batch absolute min/max tracing without detection",zn,it,Vs="The second work mode is per-batch tracing with the underflow/overflow detection feature turned off.",Nn,pt,Gs="Let’s say you want to watch the absolute min and max values for all the ingredients of each <code>forward</code> call of a",Bn,S,Wn,mt,zs="And now full batches 1 and 3 will be traced using the same format as explained above. Batches are 0-indexed.",Qn,dt,Ns=`This is helpful if you know that the program starts misbehaving after a certain batch number, so you can
fast-forward right to that area.`,Fn,ct,Bs="Early stopping:",Rn,X,Yn,ut,Ws="This feature is mainly useful in the tracing mode, but you can use it for any mode.",Sn,ft,Qs="<strong>Performance</strong>:",Xn,ht,Fs="As this module measures absolute <code>min</code>/`<code>max</code> of each weight of the model on every forward it’ll slow the training\ndown. Therefore remember to turn it off once the debugging needs have been met.",Et,_t,Zt;return g=new bt({props:{title:"トレーナー用ユーティリティ",local:"トレーナー用ユーティリティ",headingTag:"h1"}}),q=new bt({props:{title:"Utilities",local:"transformers.EvalPrediction",headingTag:"h2"}}),K=new k({props:{name:"class transformers.EvalPrediction",anchor:"transformers.EvalPrediction",parameters:[{name:"predictions",val:": typing.Union[numpy.ndarray, typing.Tuple[numpy.ndarray]]"},{name:"label_ids",val:": typing.Union[numpy.ndarray, typing.Tuple[numpy.ndarray]]"},{name:"inputs",val:": typing.Union[numpy.ndarray, typing.Tuple[numpy.ndarray], NoneType] = None"}],parametersDescription:[{anchor:"transformers.EvalPrediction.predictions",description:"<strong>predictions</strong> (<code>np.ndarray</code>) &#x2014; Predictions of the model.",name:"predictions"},{anchor:"transformers.EvalPrediction.label_ids",description:"<strong>label_ids</strong> (<code>np.ndarray</code>) &#x2014; Targets to be matched.",name:"label_ids"},{anchor:"transformers.EvalPrediction.inputs",description:"<strong>inputs</strong> (<code>np.ndarray</code>, <em>optional</em>) &#x2014;",name:"inputs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_utils.py#L134"}}),ee=new k({props:{name:"class transformers.IntervalStrategy",anchor:"transformers.IntervalStrategy",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/main/src/transformers/trainer_utils.py#L208"}}),te=new k({props:{name:"transformers.enable_full_determinism",anchor:"transformers.enable_full_determinism",parameters:[{name:"seed",val:": int"},{name:"warn_only",val:": bool = False"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_utils.py#L58"}}),ne=new k({props:{name:"transformers.set_seed",anchor:"transformers.set_seed",parameters:[{name:"seed",val:": int"}],parametersDescription:[{anchor:"transformers.set_seed.seed",description:"<strong>seed</strong> (<code>int</code>) &#x2014; The seed to set.",name:"seed"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_utils.py#L85"}}),se=new k({props:{name:"transformers.torch_distributed_zero_first",anchor:"transformers.torch_distributed_zero_first",parameters:[{name:"local_rank",val:": int"}],parametersDescription:[{anchor:"transformers.torch_distributed_zero_first.local_rank",description:"<strong>local_rank</strong> (<code>int</code>) &#x2014; The rank of the local process.",name:"local_rank"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_pt_utils.py#L242"}}),ae=new bt({props:{title:"Callbacks internals",local:"transformers.trainer_callback.CallbackHandler",headingTag:"h2"}}),re=new k({props:{name:"class transformers.trainer_callback.CallbackHandler",anchor:"transformers.trainer_callback.CallbackHandler",parameters:[{name:"callbacks",val:""},{name:"model",val:""},{name:"tokenizer",val:""},{name:"optimizer",val:""},{name:"lr_scheduler",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_callback.py#L303"}}),le=new bt({props:{title:"Distributed Evaluation",local:"transformers.trainer_pt_utils.DistributedTensorGatherer",headingTag:"h2"}}),oe=new k({props:{name:"class transformers.trainer_pt_utils.DistributedTensorGatherer",anchor:"transformers.trainer_pt_utils.DistributedTensorGatherer",parameters:[{name:"world_size",val:""},{name:"num_samples",val:""},{name:"make_multiple_of",val:" = None"},{name:"padding_index",val:" = -100"}],parametersDescription:[{anchor:"transformers.trainer_pt_utils.DistributedTensorGatherer.world_size",description:`<strong>world_size</strong> (<code>int</code>) &#x2014;
The number of processes used in the distributed training.`,name:"world_size"},{anchor:"transformers.trainer_pt_utils.DistributedTensorGatherer.num_samples",description:`<strong>num_samples</strong> (<code>int</code>) &#x2014;
The number of samples in our dataset.`,name:"num_samples"},{anchor:"transformers.trainer_pt_utils.DistributedTensorGatherer.make_multiple_of",description:`<strong>make_multiple_of</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If passed, the class assumes the datasets passed to each process are made to be a multiple of this argument
(by adding samples).`,name:"make_multiple_of"},{anchor:"transformers.trainer_pt_utils.DistributedTensorGatherer.padding_index",description:`<strong>padding_index</strong> (<code>int</code>, <em>optional</em>, defaults to -100) &#x2014;
The padding index to use if the arrays don&#x2019;t all have the same sequence length.`,name:"padding_index"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_pt_utils.py#L371"}}),ie=new k({props:{name:"add_arrays",anchor:"transformers.trainer_pt_utils.DistributedTensorGatherer.add_arrays",parameters:[{name:"arrays",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_pt_utils.py#L431"}}),pe=new k({props:{name:"finalize",anchor:"transformers.trainer_pt_utils.DistributedTensorGatherer.finalize",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/trainer_pt_utils.py#L467"}}),me=new bt({props:{title:"Distributed Evaluation",local:"transformers.HfArgumentParser",headingTag:"h2"}}),de=new k({props:{name:"class transformers.HfArgumentParser",anchor:"transformers.HfArgumentParser",parameters:[{name:"dataclass_types",val:": typing.Union[DataClassType, typing.Iterable[DataClassType]]"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/hf_argparser.py#L109"}}),ce=new k({props:{name:"parse_args_into_dataclasses",anchor:"transformers.HfArgumentParser.parse_args_into_dataclasses",parameters:[{name:"args",val:" = None"},{name:"return_remaining_strings",val:" = False"},{name:"look_for_args_file",val:" = True"},{name:"args_filename",val:" = None"},{name:"args_file_flag",val:" = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/hf_argparser.py#L265",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li>the dataclass instances in the same order as they were passed to the initializer.abspath</li>
<li>if applicable, an additional namespace for more (non-dataclass backed) arguments added to the parser
after initialization.</li>
<li>The potential list of remaining argument strings. (same as argparse.ArgumentParser.parse_known_args)</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Tuple consisting of</p>
`}}),ue=new k({props:{name:"parse_dict",anchor:"transformers.HfArgumentParser.parse_dict",parameters:[{name:"args",val:": typing.Dict[str, typing.Any]"},{name:"allow_extra_keys",val:": bool = False"}],parametersDescription:[{anchor:"transformers.HfArgumentParser.parse_dict.args",description:`<strong>args</strong> (<code>dict</code>) &#x2014;
dict containing config values`,name:"args"},{anchor:"transformers.HfArgumentParser.parse_dict.allow_extra_keys",description:`<strong>allow_extra_keys</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Defaults to False. If False, will raise an exception if the dict contains keys that are not parsed.`,name:"allow_extra_keys"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/hf_argparser.py#L351",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li>the dataclass instances in the same order as they were passed to the initializer.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Tuple consisting of</p>
`}}),fe=new k({props:{name:"parse_json_file",anchor:"transformers.HfArgumentParser.parse_json_file",parameters:[{name:"json_file",val:": str"},{name:"allow_extra_keys",val:": bool = False"}],parametersDescription:[{anchor:"transformers.HfArgumentParser.parse_json_file.json_file",description:`<strong>json_file</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
File name of the json file to parse`,name:"json_file"},{anchor:"transformers.HfArgumentParser.parse_json_file.allow_extra_keys",description:`<strong>allow_extra_keys</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Defaults to False. If False, will raise an exception if the json file contains keys that are not
parsed.`,name:"allow_extra_keys"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/hf_argparser.py#L379",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li>the dataclass instances in the same order as they were passed to the initializer.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Tuple consisting of</p>
`}}),he=new k({props:{name:"parse_yaml_file",anchor:"transformers.HfArgumentParser.parse_yaml_file",parameters:[{name:"yaml_file",val:": str"},{name:"allow_extra_keys",val:": bool = False"}],parametersDescription:[{anchor:"transformers.HfArgumentParser.parse_yaml_file.yaml_file",description:`<strong>yaml_file</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
File name of the yaml file to parse`,name:"yaml_file"},{anchor:"transformers.HfArgumentParser.parse_yaml_file.allow_extra_keys",description:`<strong>allow_extra_keys</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Defaults to False. If False, will raise an exception if the json file contains keys that are not
parsed.`,name:"allow_extra_keys"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/hf_argparser.py#L401",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li>the dataclass instances in the same order as they were passed to the initializer.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Tuple consisting of</p>
`}}),ge=new bt({props:{title:"Debug Utilities",local:"transformers.debug_utils.DebugUnderflowOverflow",headingTag:"h2"}}),be=new k({props:{name:"class transformers.debug_utils.DebugUnderflowOverflow",anchor:"transformers.debug_utils.DebugUnderflowOverflow",parameters:[{name:"model",val:""},{name:"max_frames_to_save",val:" = 21"},{name:"trace_batch_nums",val:" = []"},{name:"abort_after_batch_num",val:" = None"}],parametersDescription:[{anchor:"transformers.debug_utils.DebugUnderflowOverflow.model",description:`<strong>model</strong> (<code>nn.Module</code>) &#x2014;
The model to debug.`,name:"model"},{anchor:"transformers.debug_utils.DebugUnderflowOverflow.max_frames_to_save",description:`<strong>max_frames_to_save</strong> (<code>int</code>, <em>optional</em>, defaults to 21) &#x2014;
How many frames back to record`,name:"max_frames_to_save"},{anchor:"transformers.debug_utils.DebugUnderflowOverflow.trace_batch_nums(List[int],",description:`<strong>trace_batch_nums(<code>List[int]</code>,</strong> <em>optional</em>, defaults to <code>[]</code>) &#x2014;
Which batch numbers to trace (turns detection off)`,name:"trace_batch_nums(List[int],"},{anchor:"transformers.debug_utils.DebugUnderflowOverflow.abort_after_batch_num",description:"<strong>abort_after_batch_num</strong>  (`int&#x201C;, <em>optional</em>) &#x2014;\nWhether to abort after a certain batch number has finished",name:"abort_after_batch_num"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/debug_utils.py#L27"}}),F=new vt({props:{anchor:"transformers.debug_utils.DebugUnderflowOverflow.example",$$slots:{default:[qs]},$$scope:{ctx:J}}}),R=new vt({props:{anchor:"transformers.debug_utils.DebugUnderflowOverflow.example-2",$$slots:{default:[Ks]},$$scope:{ctx:J}}}),Y=new vt({props:{anchor:"transformers.debug_utils.DebugUnderflowOverflow.example-3",$$slots:{default:[ea]},$$scope:{ctx:J}}}),S=new vt({props:{anchor:"transformers.debug_utils.DebugUnderflowOverflow.example-4",$$slots:{default:[ta]},$$scope:{ctx:J}}}),X=new vt({props:{anchor:"transformers.debug_utils.DebugUnderflowOverflow.example-5",$$slots:{default:[na]},$$scope:{ctx:J}}}),{c(){c=r("meta"),T=n(),j=r("p"),u=n(),b(g.$$.fragment),a=n(),M=r("p"),M.innerHTML=On,xt=n(),O=r("p"),O.textContent=qn,jt=n(),b(q.$$.fragment),yt=n(),P=r("div"),b(K.$$.fragment),Qt=n(),xe=r("p"),xe.textContent=Kn,Mt=n(),H=r("div"),b(ee.$$.fragment),Ft=n(),je=r("p"),je.textContent=es,Tt=n(),I=r("div"),b(te.$$.fragment),Rt=n(),ye=r("p"),ye.textContent=ts,Yt=n(),Me=r("ul"),Me.innerHTML=ns,Ct=n(),E=r("div"),b(ne.$$.fragment),St=n(),Te=r("p"),Te.innerHTML=ss,Ut=n(),Z=r("div"),b(se.$$.fragment),Xt=n(),Ce=r("p"),Ce.textContent=as,Dt=n(),b(ae.$$.fragment),kt=n(),V=r("div"),b(re.$$.fragment),Ot=n(),Ue=r("p"),Ue.textContent=rs,Lt=n(),b(le.$$.fragment),Jt=n(),h=r("div"),b(oe.$$.fragment),qt=n(),De=r("p"),De.textContent=ls,Kt=n(),ke=r("p"),ke.textContent=os,en=n(),Le=r("p"),Le.innerHTML=is,tn=n(),Je=r("p"),Je.textContent=ps,nn=n(),Ie=r("ul"),Ie.innerHTML=ms,sn=n(),Ae=r("p"),Ae.textContent=ds,an=n(),Pe=r("ul"),Pe.innerHTML=cs,rn=n(),He=r("p"),He.textContent=us,ln=n(),Ee=r("p"),Ee.innerHTML=fs,on=n(),Ze=r("p"),Ze.textContent=hs,pn=n(),Ve=r("p"),Ve.innerHTML=gs,mn=n(),Ge=r("p"),Ge.textContent=bs,dn=n(),z=r("div"),b(ie.$$.fragment),cn=n(),ze=r("p"),ze.innerHTML=_s,un=n(),N=r("div"),b(pe.$$.fragment),fn=n(),Ne=r("p"),Ne.textContent=vs,It=n(),b(me.$$.fragment),At=n(),C=r("div"),b(de.$$.fragment),hn=n(),Be=r("p"),Be.innerHTML=$s,gn=n(),We=r("p"),We.innerHTML=ws,bn=n(),A=r("div"),b(ce.$$.fragment),_n=n(),Qe=r("p"),Qe.textContent=xs,vn=n(),Fe=r("p"),Fe.innerHTML=js,$n=n(),B=r("div"),b(ue.$$.fragment),wn=n(),Re=r("p"),Re.innerHTML=ys,xn=n(),W=r("div"),b(fe.$$.fragment),jn=n(),Ye=r("p"),Ye.innerHTML=Ms,yn=n(),Q=r("div"),b(he.$$.fragment),Mn=n(),Se=r("p"),Se.innerHTML=Ts,Pt=n(),b(ge.$$.fragment),Ht=n(),i=r("div"),b(be.$$.fragment),Tn=n(),Xe=r("p"),Xe.innerHTML=Cs,Cn=n(),Oe=r("p"),Oe.textContent=Us,Un=n(),qe=r("ol"),qe.innerHTML=Ds,Dn=n(),Ke=r("p"),Ke.textContent=ks,kn=n(),b(F.$$.fragment),Ln=n(),et=r("p"),et.innerHTML=Ls,Jn=n(),tt=r("ol"),tt.innerHTML=Js,In=n(),nt=r("p"),nt.innerHTML=Is,An=n(),b(R.$$.fragment),Pn=n(),st=r("p"),st.innerHTML=As,Hn=n(),at=r("p"),at.textContent=Ps,En=n(),rt=r("p"),rt.innerHTML=Hs,Zn=n(),b(Y.$$.fragment),Vn=n(),lt=r("p"),lt.textContent=Es,Gn=n(),ot=r("p"),ot.textContent=Zs,zn=n(),it=r("p"),it.textContent=Vs,Nn=n(),pt=r("p"),pt.innerHTML=Gs,Bn=n(),b(S.$$.fragment),Wn=n(),mt=r("p"),mt.textContent=zs,Qn=n(),dt=r("p"),dt.textContent=Ns,Fn=n(),ct=r("p"),ct.textContent=Bs,Rn=n(),b(X.$$.fragment),Yn=n(),ut=r("p"),ut.textContent=Ws,Sn=n(),ft=r("p"),ft.innerHTML=Qs,Xn=n(),ht=r("p"),ht.innerHTML=Fs,Et=n(),_t=r("p"),this.h()},l(e){const m=Os("svelte-u9bgzb",document.head);c=l(m,"META",{name:!0,content:!0}),m.forEach(o),T=s(e),j=l(e,"P",{}),U(j).forEach(o),u=s(e),_(g.$$.fragment,e),a=s(e),M=l(e,"P",{"data-svelte-h":!0}),p(M)!=="svelte-182fh5l"&&(M.innerHTML=On),xt=s(e),O=l(e,"P",{"data-svelte-h":!0}),p(O)!=="svelte-192036j"&&(O.textContent=qn),jt=s(e),_(q.$$.fragment,e),yt=s(e),P=l(e,"DIV",{class:!0});var _e=U(P);_(K.$$.fragment,_e),Qt=s(_e),xe=l(_e,"P",{"data-svelte-h":!0}),p(xe)!=="svelte-b01y7t"&&(xe.textContent=Kn),_e.forEach(o),Mt=s(e),H=l(e,"DIV",{class:!0});var ve=U(H);_(ee.$$.fragment,ve),Ft=s(ve),je=l(ve,"P",{"data-svelte-h":!0}),p(je)!=="svelte-ofujqi"&&(je.textContent=es),ve.forEach(o),Tt=s(e),I=l(e,"DIV",{class:!0});var G=U(I);_(te.$$.fragment,G),Rt=s(G),ye=l(G,"P",{"data-svelte-h":!0}),p(ye)!=="svelte-ajn1jc"&&(ye.textContent=ts),Yt=s(G),Me=l(G,"UL",{"data-svelte-h":!0}),p(Me)!=="svelte-1q4p6e6"&&(Me.innerHTML=ns),G.forEach(o),Ct=s(e),E=l(e,"DIV",{class:!0});var $e=U(E);_(ne.$$.fragment,$e),St=s($e),Te=l($e,"P",{"data-svelte-h":!0}),p(Te)!=="svelte-nlunew"&&(Te.innerHTML=ss),$e.forEach(o),Ut=s(e),Z=l(e,"DIV",{class:!0});var we=U(Z);_(se.$$.fragment,we),Xt=s(we),Ce=l(we,"P",{"data-svelte-h":!0}),p(Ce)!=="svelte-50krjz"&&(Ce.textContent=as),we.forEach(o),Dt=s(e),_(ae.$$.fragment,e),kt=s(e),V=l(e,"DIV",{class:!0});var Vt=U(V);_(re.$$.fragment,Vt),Ot=s(Vt),Ue=l(Vt,"P",{"data-svelte-h":!0}),p(Ue)!=="svelte-1xkzvlg"&&(Ue.textContent=rs),Vt.forEach(o),Lt=s(e),_(le.$$.fragment,e),Jt=s(e),h=l(e,"DIV",{class:!0});var y=U(h);_(oe.$$.fragment,y),qt=s(y),De=l(y,"P",{"data-svelte-h":!0}),p(De)!=="svelte-1n8tp04"&&(De.textContent=ls),Kt=s(y),ke=l(y,"P",{"data-svelte-h":!0}),p(ke)!=="svelte-1bmnzk6"&&(ke.textContent=os),en=s(y),Le=l(y,"P",{"data-svelte-h":!0}),p(Le)!=="svelte-1i3zlda"&&(Le.innerHTML=is),tn=s(y),Je=l(y,"P",{"data-svelte-h":!0}),p(Je)!=="svelte-poxoov"&&(Je.textContent=ps),nn=s(y),Ie=l(y,"UL",{"data-svelte-h":!0}),p(Ie)!=="svelte-eccldq"&&(Ie.innerHTML=ms),sn=s(y),Ae=l(y,"P",{"data-svelte-h":!0}),p(Ae)!=="svelte-dr8jii"&&(Ae.textContent=ds),an=s(y),Pe=l(y,"UL",{"data-svelte-h":!0}),p(Pe)!=="svelte-1umurgm"&&(Pe.innerHTML=cs),rn=s(y),He=l(y,"P",{"data-svelte-h":!0}),p(He)!=="svelte-he1scd"&&(He.textContent=us),ln=s(y),Ee=l(y,"P",{"data-svelte-h":!0}),p(Ee)!=="svelte-1qs6cxi"&&(Ee.innerHTML=fs),on=s(y),Ze=l(y,"P",{"data-svelte-h":!0}),p(Ze)!=="svelte-x84c1n"&&(Ze.textContent=hs),pn=s(y),Ve=l(y,"P",{"data-svelte-h":!0}),p(Ve)!=="svelte-dcsxla"&&(Ve.innerHTML=gs),mn=s(y),Ge=l(y,"P",{"data-svelte-h":!0}),p(Ge)!=="svelte-fk4pq9"&&(Ge.textContent=bs),dn=s(y),z=l(y,"DIV",{class:!0});var Gt=U(z);_(ie.$$.fragment,Gt),cn=s(Gt),ze=l(Gt,"P",{"data-svelte-h":!0}),p(ze)!=="svelte-18bdjbi"&&(ze.innerHTML=_s),Gt.forEach(o),un=s(y),N=l(y,"DIV",{class:!0});var zt=U(N);_(pe.$$.fragment,zt),fn=s(zt),Ne=l(zt,"P",{"data-svelte-h":!0}),p(Ne)!=="svelte-cxa3v7"&&(Ne.textContent=vs),zt.forEach(o),y.forEach(o),It=s(e),_(me.$$.fragment,e),At=s(e),C=l(e,"DIV",{class:!0});var L=U(C);_(de.$$.fragment,L),hn=s(L),Be=l(L,"P",{"data-svelte-h":!0}),p(Be)!=="svelte-ym76lw"&&(Be.innerHTML=$s),gn=s(L),We=l(L,"P",{"data-svelte-h":!0}),p(We)!=="svelte-lsn7j7"&&(We.innerHTML=ws),bn=s(L),A=l(L,"DIV",{class:!0});var gt=U(A);_(ce.$$.fragment,gt),_n=s(gt),Qe=l(gt,"P",{"data-svelte-h":!0}),p(Qe)!=="svelte-p6utzx"&&(Qe.textContent=xs),vn=s(gt),Fe=l(gt,"P",{"data-svelte-h":!0}),p(Fe)!=="svelte-e7yqwr"&&(Fe.innerHTML=js),gt.forEach(o),$n=s(L),B=l(L,"DIV",{class:!0});var Nt=U(B);_(ue.$$.fragment,Nt),wn=s(Nt),Re=l(Nt,"P",{"data-svelte-h":!0}),p(Re)!=="svelte-815dvz"&&(Re.innerHTML=ys),Nt.forEach(o),xn=s(L),W=l(L,"DIV",{class:!0});var Bt=U(W);_(fe.$$.fragment,Bt),jn=s(Bt),Ye=l(Bt,"P",{"data-svelte-h":!0}),p(Ye)!=="svelte-1fm6x4h"&&(Ye.innerHTML=Ms),Bt.forEach(o),yn=s(L),Q=l(L,"DIV",{class:!0});var Wt=U(Q);_(he.$$.fragment,Wt),Mn=s(Wt),Se=l(Wt,"P",{"data-svelte-h":!0}),p(Se)!=="svelte-12wc0v2"&&(Se.innerHTML=Ts),Wt.forEach(o),L.forEach(o),Pt=s(e),_(ge.$$.fragment,e),Ht=s(e),i=l(e,"DIV",{class:!0});var d=U(i);_(be.$$.fragment,d),Tn=s(d),Xe=l(d,"P",{"data-svelte-h":!0}),p(Xe)!=="svelte-7pufvy"&&(Xe.innerHTML=Cs),Cn=s(d),Oe=l(d,"P",{"data-svelte-h":!0}),p(Oe)!=="svelte-1sexrnb"&&(Oe.textContent=Us),Un=s(d),qe=l(d,"OL",{"data-svelte-h":!0}),p(qe)!=="svelte-1klaood"&&(qe.innerHTML=Ds),Dn=s(d),Ke=l(d,"P",{"data-svelte-h":!0}),p(Ke)!=="svelte-4br128"&&(Ke.textContent=ks),kn=s(d),_(F.$$.fragment,d),Ln=s(d),et=l(d,"P",{"data-svelte-h":!0}),p(et)!=="svelte-1jokgs0"&&(et.innerHTML=Ls),Jn=s(d),tt=l(d,"OL",{"data-svelte-h":!0}),p(tt)!=="svelte-tujq3x"&&(tt.innerHTML=Js),In=s(d),nt=l(d,"P",{"data-svelte-h":!0}),p(nt)!=="svelte-1o699wi"&&(nt.innerHTML=Is),An=s(d),_(R.$$.fragment,d),Pn=s(d),st=l(d,"P",{"data-svelte-h":!0}),p(st)!=="svelte-drqgcb"&&(st.innerHTML=As),Hn=s(d),at=l(d,"P",{"data-svelte-h":!0}),p(at)!=="svelte-y74rb4"&&(at.textContent=Ps),En=s(d),rt=l(d,"P",{"data-svelte-h":!0}),p(rt)!=="svelte-1j494vd"&&(rt.innerHTML=Hs),Zn=s(d),_(Y.$$.fragment,d),Vn=s(d),lt=l(d,"P",{"data-svelte-h":!0}),p(lt)!=="svelte-10kqlwp"&&(lt.textContent=Es),Gn=s(d),ot=l(d,"P",{"data-svelte-h":!0}),p(ot)!=="svelte-16tdr0"&&(ot.textContent=Zs),zn=s(d),it=l(d,"P",{"data-svelte-h":!0}),p(it)!=="svelte-1hu51bp"&&(it.textContent=Vs),Nn=s(d),pt=l(d,"P",{"data-svelte-h":!0}),p(pt)!=="svelte-1orvvp5"&&(pt.innerHTML=Gs),Bn=s(d),_(S.$$.fragment,d),Wn=s(d),mt=l(d,"P",{"data-svelte-h":!0}),p(mt)!=="svelte-ev1hfq"&&(mt.textContent=zs),Qn=s(d),dt=l(d,"P",{"data-svelte-h":!0}),p(dt)!=="svelte-1b66ig1"&&(dt.textContent=Ns),Fn=s(d),ct=l(d,"P",{"data-svelte-h":!0}),p(ct)!=="svelte-1hsaz31"&&(ct.textContent=Bs),Rn=s(d),_(X.$$.fragment,d),Yn=s(d),ut=l(d,"P",{"data-svelte-h":!0}),p(ut)!=="svelte-yuienj"&&(ut.textContent=Ws),Sn=s(d),ft=l(d,"P",{"data-svelte-h":!0}),p(ft)!=="svelte-z6s5o1"&&(ft.innerHTML=Qs),Xn=s(d),ht=l(d,"P",{"data-svelte-h":!0}),p(ht)!=="svelte-1ery8m7"&&(ht.innerHTML=Fs),d.forEach(o),Et=s(e),_t=l(e,"P",{}),U(_t).forEach(o),this.h()},h(){D(c,"name","hf:doc:metadata"),D(c,"content",aa),D(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(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(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(h,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),D(i,"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,m){t(document.head,c),f(e,T,m),f(e,j,m),f(e,u,m),v(g,e,m),f(e,a,m),f(e,M,m),f(e,xt,m),f(e,O,m),f(e,jt,m),v(q,e,m),f(e,yt,m),f(e,P,m),v(K,P,null),t(P,Qt),t(P,xe),f(e,Mt,m),f(e,H,m),v(ee,H,null),t(H,Ft),t(H,je),f(e,Tt,m),f(e,I,m),v(te,I,null),t(I,Rt),t(I,ye),t(I,Yt),t(I,Me),f(e,Ct,m),f(e,E,m),v(ne,E,null),t(E,St),t(E,Te),f(e,Ut,m),f(e,Z,m),v(se,Z,null),t(Z,Xt),t(Z,Ce),f(e,Dt,m),v(ae,e,m),f(e,kt,m),f(e,V,m),v(re,V,null),t(V,Ot),t(V,Ue),f(e,Lt,m),v(le,e,m),f(e,Jt,m),f(e,h,m),v(oe,h,null),t(h,qt),t(h,De),t(h,Kt),t(h,ke),t(h,en),t(h,Le),t(h,tn),t(h,Je),t(h,nn),t(h,Ie),t(h,sn),t(h,Ae),t(h,an),t(h,Pe),t(h,rn),t(h,He),t(h,ln),t(h,Ee),t(h,on),t(h,Ze),t(h,pn),t(h,Ve),t(h,mn),t(h,Ge),t(h,dn),t(h,z),v(ie,z,null),t(z,cn),t(z,ze),t(h,un),t(h,N),v(pe,N,null),t(N,fn),t(N,Ne),f(e,It,m),v(me,e,m),f(e,At,m),f(e,C,m),v(de,C,null),t(C,hn),t(C,Be),t(C,gn),t(C,We),t(C,bn),t(C,A),v(ce,A,null),t(A,_n),t(A,Qe),t(A,vn),t(A,Fe),t(C,$n),t(C,B),v(ue,B,null),t(B,wn),t(B,Re),t(C,xn),t(C,W),v(fe,W,null),t(W,jn),t(W,Ye),t(C,yn),t(C,Q),v(he,Q,null),t(Q,Mn),t(Q,Se),f(e,Pt,m),v(ge,e,m),f(e,Ht,m),f(e,i,m),v(be,i,null),t(i,Tn),t(i,Xe),t(i,Cn),t(i,Oe),t(i,Un),t(i,qe),t(i,Dn),t(i,Ke),t(i,kn),v(F,i,null),t(i,Ln),t(i,et),t(i,Jn),t(i,tt),t(i,In),t(i,nt),t(i,An),v(R,i,null),t(i,Pn),t(i,st),t(i,Hn),t(i,at),t(i,En),t(i,rt),t(i,Zn),v(Y,i,null),t(i,Vn),t(i,lt),t(i,Gn),t(i,ot),t(i,zn),t(i,it),t(i,Nn),t(i,pt),t(i,Bn),v(S,i,null),t(i,Wn),t(i,mt),t(i,Qn),t(i,dt),t(i,Fn),t(i,ct),t(i,Rn),v(X,i,null),t(i,Yn),t(i,ut),t(i,Sn),t(i,ft),t(i,Xn),t(i,ht),f(e,Et,m),f(e,_t,m),Zt=!0},p(e,[m]){const _e={};m&2&&(_e.$$scope={dirty:m,ctx:e}),F.$set(_e);const ve={};m&2&&(ve.$$scope={dirty:m,ctx:e}),R.$set(ve);const G={};m&2&&(G.$$scope={dirty:m,ctx:e}),Y.$set(G);const $e={};m&2&&($e.$$scope={dirty:m,ctx:e}),S.$set($e);const we={};m&2&&(we.$$scope={dirty:m,ctx:e}),X.$set(we)},i(e){Zt||($(g.$$.fragment,e),$(q.$$.fragment,e),$(K.$$.fragment,e),$(ee.$$.fragment,e),$(te.$$.fragment,e),$(ne.$$.fragment,e),$(se.$$.fragment,e),$(ae.$$.fragment,e),$(re.$$.fragment,e),$(le.$$.fragment,e),$(oe.$$.fragment,e),$(ie.$$.fragment,e),$(pe.$$.fragment,e),$(me.$$.fragment,e),$(de.$$.fragment,e),$(ce.$$.fragment,e),$(ue.$$.fragment,e),$(fe.$$.fragment,e),$(he.$$.fragment,e),$(ge.$$.fragment,e),$(be.$$.fragment,e),$(F.$$.fragment,e),$(R.$$.fragment,e),$(Y.$$.fragment,e),$(S.$$.fragment,e),$(X.$$.fragment,e),Zt=!0)},o(e){w(g.$$.fragment,e),w(q.$$.fragment,e),w(K.$$.fragment,e),w(ee.$$.fragment,e),w(te.$$.fragment,e),w(ne.$$.fragment,e),w(se.$$.fragment,e),w(ae.$$.fragment,e),w(re.$$.fragment,e),w(le.$$.fragment,e),w(oe.$$.fragment,e),w(ie.$$.fragment,e),w(pe.$$.fragment,e),w(me.$$.fragment,e),w(de.$$.fragment,e),w(ce.$$.fragment,e),w(ue.$$.fragment,e),w(fe.$$.fragment,e),w(he.$$.fragment,e),w(ge.$$.fragment,e),w(be.$$.fragment,e),w(F.$$.fragment,e),w(R.$$.fragment,e),w(Y.$$.fragment,e),w(S.$$.fragment,e),w(X.$$.fragment,e),Zt=!1},d(e){e&&(o(T),o(j),o(u),o(a),o(M),o(xt),o(O),o(jt),o(yt),o(P),o(Mt),o(H),o(Tt),o(I),o(Ct),o(E),o(Ut),o(Z),o(Dt),o(kt),o(V),o(Lt),o(Jt),o(h),o(It),o(At),o(C),o(Pt),o(Ht),o(i),o(Et),o(_t)),o(c),x(g,e),x(q,e),x(K),x(ee),x(te),x(ne),x(se),x(ae,e),x(re),x(le,e),x(oe),x(ie),x(pe),x(me,e),x(de),x(ce),x(ue),x(fe),x(he),x(ge,e),x(be),x(F),x(R),x(Y),x(S),x(X)}}}const aa='{"title":"トレーナー用ユーティリティ","local":"トレーナー用ユーティリティ","sections":[{"title":"Utilities","local":"transformers.EvalPrediction","sections":[],"depth":2},{"title":"Callbacks internals","local":"transformers.trainer_callback.CallbackHandler","sections":[],"depth":2},{"title":"Distributed Evaluation","local":"transformers.trainer_pt_utils.DistributedTensorGatherer","sections":[],"depth":2},{"title":"Distributed Evaluation","local":"transformers.HfArgumentParser","sections":[],"depth":2},{"title":"Debug Utilities","local":"transformers.debug_utils.DebugUnderflowOverflow","sections":[],"depth":2}],"depth":1}';function ra(J){return Ys(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ca extends Ss{constructor(c){super(),Xs(this,c,ra,sa,Rs,{})}}export{ca as component};
