import{s as gn,o as un,n as _n}from"../chunks/scheduler.d9d004e7.js";import{S as hn,i as bn,e as r,s as t,c as m,q as dn,h as fn,a as l,d as n,b as o,f as v,g as d,j as f,r as cn,k as y,l as a,m as s,n as c,t as g,o as u,p as _}from"../chunks/index.4a2b774c.js";import{T as mn}from"../chunks/Tip.cf0287e4.js";import{C as vn,H as Le,E as yn}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.c93fcd94.js";import{D as T}from"../chunks/Docstring.783c4744.js";import{C as Tn}from"../chunks/CodeBlock.8bd69f21.js";function wn(_e){let b,w='The <a href="https://huggingface.co/docs/optimum/habana/package_reference/trainer#optimum.habana.GaudiTrainer" rel="nofollow"><code>GaudiTrainer</code></a> class is optimized for 🤗 Transformers models running on Intel Gaudi.';return{c(){b=r("p"),b.innerHTML=w},l(x){b=l(x,"P",{"data-svelte-h":!0}),f(b)!=="svelte-1stpso7"&&(b.innerHTML=w)},m(x,he){s(x,b,he)},p:_n,d(x){x&&n(b)}}}function xn(_e){let b;return{c(){b=dn(`If your predictions or labels have different sequence lengths (for instance because you're doing dynamic
padding in a token classification task) the predictions will be padded (on the right) to allow for
concatenation into one array. The padding index is -100.`)},l(w){b=cn(w,`If your predictions or labels have different sequence lengths (for instance because you're doing dynamic
padding in a token classification task) the predictions will be padded (on the right) to allow for
concatenation into one array. The padding index is -100.`)},m(w,x){s(w,b,x)},d(w){w&&n(b)}}}function $n(_e){let b,w,x,he,L,je,j,De,D,Da='The <a href="https://huggingface.co/docs/optimum/habana/package_reference/trainer#optimum.habana.GaudiTrainer" rel="nofollow"><code>GaudiTrainer</code></a> class provides an extended API for the feature-complete <a href="https://huggingface.co/docs/transformers/main_classes/trainer" rel="nofollow">Transformers Trainer</a>. It is used in all the <a href="/examples">example scripts</a>.',Pe,P,Pa='Before instantiating your <a href="https://huggingface.co/docs/optimum/habana/package_reference/trainer#optimum.habana.GaudiTrainer" rel="nofollow"><code>GaudiTrainer</code></a>, create a <a href="/docs/optimum.habana/v1.19.0/en/package_reference/trainer#optimum.habana.GaudiTrainingArguments">GaudiTrainingArguments</a> object to access all the points of customization during training.',Ee,S,Re,E,Ea='Here is an example of how to customize <a href="https://huggingface.co/docs/optimum/habana/package_reference/trainer#optimum.habana.GaudiTrainer" rel="nofollow"><code>GaudiTrainer</code></a> to use a weighted loss (useful when you have an unbalanced training set):',We,R,Be,W,Ra='Another way to customize the training loop behavior for the PyTorch <a href="https://huggingface.co/docs/optimum/habana/package_reference/trainer#optimum.habana.GaudiTrainer" rel="nofollow"><code>GaudiTrainer</code></a> is to use <a href="https://huggingface.co/docs/transformers/main_classes/callback" rel="nofollow">callbacks</a> that can inspect the training loop state (for progress reporting, logging on TensorBoard or other ML platforms…) and take decisions (like early stopping).',Ve,B,Ze,p,V,ca,be,Wa=`GaudiTrainer is built on top of the tranformers’ Trainer to enable
deployment on Habana’s Gaudi.`,ga,U,Z,ua,fe,Ba=`A helper wrapper that creates an appropriate context manager for <code>autocast</code> while feeding it the desired
arguments, depending on the situation.
Modified by Habana to enable using <code>autocast</code> on Gaudi devices.`,_a,k,X,ha,ve,Va='From <a href="https://github.com/huggingface/transformers/blob/v4.38.2/src/transformers/trainer.py#L3162" rel="nofollow">https://github.com/huggingface/transformers/blob/v4.38.2/src/transformers/trainer.py#L3162</a> with the following modification',ba,ye,Za="<li>use throughput_warmup_steps in evaluation throughput calculation</li>",fa,q,Y,va,Te,Xa=`Prediction/evaluation loop, shared by <code>Trainer.evaluate()</code> and <code>Trainer.predict()</code>.
Works both with or without labels.`,ya,F,Q,Ta,we,Ya='From <a href="https://github.com/huggingface/transformers/blob/v4.45.2/src/transformers/trainer.py#L3904" rel="nofollow">https://github.com/huggingface/transformers/blob/v4.45.2/src/transformers/trainer.py#L3904</a> with the following modification',wa,xe,Qa="<li>comment out TPU related</li> <li>use throughput_warmup_steps in evaluation throughput calculation</li>",xa,I,K,$a,$e,Ka=`Perform an evaluation step on <code>model</code> using <code>inputs</code>.
Subclass and override to inject custom behavior.`,Na,A,ee,Oa,Ne,en=`Will save the model, so you can reload it using <code>from_pretrained()</code>.
Will only save from the main process.`,ka,C,ae,Fa,Oe,an="Main training entry point.",Ma,M,ne,Ga,ke,nn="Perform a training step on a batch of inputs.",Sa,Fe,tn="Subclass and override to inject custom behavior.",Xe,te,Ye,$,oe,Ua,J,ie,qa,Me,on=`Run evaluation and returns metrics.
The calling script will be responsible for providing a method to compute metrics, as they are task-dependent
(pass it to the init <code>compute_metrics</code> argument).
You can also subclass and override this method to inject custom behavior.`,Ia,N,re,Aa,Ge,rn=`Run prediction and returns predictions and potential metrics.
Depending on the dataset and your use case, your test dataset may contain labels. In that case, this method
will also return metrics, like in <code>evaluate()</code>.`,Ca,H,Ja,Qe,le,Ke,G,se,Ha,Se,ln=`GaudiTrainingArguments is built on top of the Tranformers’ <a href="https://huggingface.co/docs/transformers/main_classes/trainer#transformers.TrainingArguments" rel="nofollow">TrainingArguments</a>
to enable deployment on Habana’s Gaudi.`,ea,pe,aa,O,me,za,Ue,sn=`GaudiSeq2SeqTrainingArguments is built on top of the Tranformers’ <a href="https://huggingface.co/docs/transformers/main_classes/trainer#transformers.Seq2SeqTrainingArguments" rel="nofollow">Seq2SeqTrainingArguments</a>
to enable deployment on Habana’s Gaudi.`,La,z,de,ja,qe,pn=`Serializes this instance while replace <code>Enum</code> by their values and <code>GaudiGenerationConfig</code> by dictionaries (for JSON
serialization support). It obfuscates the token values by removing their value.`,na,ce,ta,ze,oa;return L=new vn({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),j=new Le({props:{title:"GaudiTrainer",local:"gauditrainer",headingTag:"h1"}}),S=new mn({props:{warning:!0,$$slots:{default:[wn]},$$scope:{ctx:_e}}}),R=new Tn({props:{code:"ZnJvbSUyMHRvcmNoJTIwaW1wb3J0JTIwbm4lMEFmcm9tJTIwb3B0aW11bS5oYWJhbmElMjBpbXBvcnQlMjBHYXVkaVRyYWluZXIlMEElMEElMEFjbGFzcyUyMEN1c3RvbUdhdWRpVHJhaW5lcihHYXVkaVRyYWluZXIpJTNBJTBBJTIwJTIwJTIwJTIwZGVmJTIwY29tcHV0ZV9sb3NzKHNlbGYlMkMlMjBtb2RlbCUyQyUyMGlucHV0cyUyQyUyMHJldHVybl9vdXRwdXRzJTNERmFsc2UpJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwbGFiZWxzJTIwJTNEJTIwaW5wdXRzLmdldCglMjJsYWJlbHMlMjIpJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIzJTIwZm9yd2FyZCUyMHBhc3MlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwbG9naXRzJTIwJTNEJTIwb3V0cHV0cy5nZXQoJTIybG9naXRzJTIyKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMyUyMGNvbXB1dGUlMjBjdXN0b20lMjBsb3NzJTIwKHN1cHBvc2UlMjBvbmUlMjBoYXMlMjAzJTIwbGFiZWxzJTIwd2l0aCUyMGRpZmZlcmVudCUyMHdlaWdodHMpJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwbG9zc19mY3QlMjAlM0QlMjBubi5Dcm9zc0VudHJvcHlMb3NzKHdlaWdodCUzRHRvcmNoLnRlbnNvciglNUIxLjAlMkMlMjAyLjAlMkMlMjAzLjAlNUQpKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGxvc3MlMjAlM0QlMjBsb3NzX2ZjdChsb2dpdHMudmlldygtMSUyQyUyMHNlbGYubW9kZWwuY29uZmlnLm51bV9sYWJlbHMpJTJDJTIwbGFiZWxzLnZpZXcoLTEpKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHJldHVybiUyMChsb3NzJTJDJTIwb3V0cHV0cyklMjBpZiUyMHJldHVybl9vdXRwdXRzJTIwZWxzZSUyMGxvc3M=",highlighted:`<span class="hljs-keyword">from</span> torch <span class="hljs-keyword">import</span> nn
<span class="hljs-keyword">from</span> optimum.habana <span class="hljs-keyword">import</span> GaudiTrainer


<span class="hljs-keyword">class</span> <span class="hljs-title class_">CustomGaudiTrainer</span>(<span class="hljs-title class_ inherited__">GaudiTrainer</span>):
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">compute_loss</span>(<span class="hljs-params">self, model, inputs, return_outputs=<span class="hljs-literal">False</span></span>):
        labels = inputs.get(<span class="hljs-string">&quot;labels&quot;</span>)
        <span class="hljs-comment"># forward pass</span>
        outputs = model(**inputs)
        logits = outputs.get(<span class="hljs-string">&quot;logits&quot;</span>)
        <span class="hljs-comment"># compute custom loss (suppose one has 3 labels with different weights)</span>
        loss_fct = nn.CrossEntropyLoss(weight=torch.tensor([<span class="hljs-number">1.0</span>, <span class="hljs-number">2.0</span>, <span class="hljs-number">3.0</span>]))
        loss = loss_fct(logits.view(-<span class="hljs-number">1</span>, self.model.config.num_labels), labels.view(-<span class="hljs-number">1</span>))
        <span class="hljs-keyword">return</span> (loss, outputs) <span class="hljs-keyword">if</span> return_outputs <span class="hljs-keyword">else</span> loss`,wrap:!1}}),B=new Le({props:{title:"GaudiTrainer",local:"optimum.habana.GaudiTrainer",headingTag:"h2"}}),V=new T({props:{name:"class optimum.habana.GaudiTrainer",anchor:"optimum.habana.GaudiTrainer",parameters:[{name:"model",val:": typing.Union[transformers.modeling_utils.PreTrainedModel, torch.nn.modules.module.Module, NoneType] = None"},{name:"gaudi_config",val:": GaudiConfig = None"},{name:"args",val:": TrainingArguments = None"},{name:"data_collator",val:": typing.Optional[transformers.data.data_collator.DataCollator] = None"},{name:"train_dataset",val:": typing.Union[torch.utils.data.dataset.Dataset, torch.utils.data.dataset.IterableDataset, ForwardRef('datasets.Dataset'), NoneType] = None"},{name:"eval_dataset",val:": typing.Union[torch.utils.data.dataset.Dataset, dict[str, torch.utils.data.dataset.Dataset], ForwardRef('datasets.Dataset'), NoneType] = None"},{name:"processing_class",val:": typing.Union[transformers.tokenization_utils_base.PreTrainedTokenizerBase, transformers.image_processing_utils.BaseImageProcessor, transformers.feature_extraction_utils.FeatureExtractionMixin, transformers.processing_utils.ProcessorMixin, NoneType] = None"},{name:"model_init",val:": typing.Optional[typing.Callable[[], transformers.modeling_utils.PreTrainedModel]] = None"},{name:"compute_loss_func",val:": typing.Optional[typing.Callable] = None"},{name:"compute_metrics",val:": typing.Optional[typing.Callable[[transformers.trainer_utils.EvalPrediction], dict]] = None"},{name:"callbacks",val:": typing.Optional[list[transformers.trainer_callback.TrainerCallback]] = None"},{name:"optimizers",val:": tuple = (None, None)"},{name:"optimizer_cls_and_kwargs",val:": typing.Optional[tuple[type[torch.optim.optimizer.Optimizer], dict[str, typing.Any]]] = None"},{name:"preprocess_logits_for_metrics",val:": typing.Optional[typing.Callable[[torch.Tensor, torch.Tensor], torch.Tensor]] = None"}],source:"https://github.com/huggingface/optimum-habana/blob/v1.19.0/optimum/habana/transformers/trainer.py#L214"}}),Z=new T({props:{name:"autocast_smart_context_manager",anchor:"optimum.habana.GaudiTrainer.autocast_smart_context_manager",parameters:[{name:"cache_enabled",val:": typing.Optional[bool] = True"}],source:"https://github.com/huggingface/optimum-habana/blob/v1.19.0/optimum/habana/transformers/trainer.py#L1686"}}),X=new T({props:{name:"evaluate",anchor:"optimum.habana.GaudiTrainer.evaluate",parameters:[{name:"eval_dataset",val:": typing.Union[torch.utils.data.dataset.Dataset, dict[str, torch.utils.data.dataset.Dataset], NoneType] = None"},{name:"ignore_keys",val:": typing.Optional[list[str]] = None"},{name:"metric_key_prefix",val:": str = 'eval'"}],source:"https://github.com/huggingface/optimum-habana/blob/v1.19.0/optimum/habana/transformers/trainer.py#L1883"}}),Y=new T({props:{name:"evaluation_loop",anchor:"optimum.habana.GaudiTrainer.evaluation_loop",parameters:[{name:"dataloader",val:": DataLoader"},{name:"description",val:": str"},{name:"prediction_loss_only",val:": typing.Optional[bool] = None"},{name:"ignore_keys",val:": typing.Optional[list[str]] = None"},{name:"metric_key_prefix",val:": str = 'eval'"}],source:"https://github.com/huggingface/optimum-habana/blob/v1.19.0/optimum/habana/transformers/trainer.py#L2004"}}),Q=new T({props:{name:"predict",anchor:"optimum.habana.GaudiTrainer.predict",parameters:[{name:"test_dataset",val:": Dataset"},{name:"ignore_keys",val:": typing.Optional[list[str]] = None"},{name:"metric_key_prefix",val:": str = 'test'"}],source:"https://github.com/huggingface/optimum-habana/blob/v1.19.0/optimum/habana/transformers/trainer.py#L1959"}}),K=new T({props:{name:"prediction_step",anchor:"optimum.habana.GaudiTrainer.prediction_step",parameters:[{name:"model",val:": Module"},{name:"inputs",val:": dict"},{name:"prediction_loss_only",val:": bool"},{name:"ignore_keys",val:": typing.Optional[list[str]] = None"}],parametersDescription:[{anchor:"optimum.habana.GaudiTrainer.prediction_step.model",description:`<strong>model</strong> (<code>torch.nn.Module</code>) &#x2014;
The model to evaluate.`,name:"model"},{anchor:"optimum.habana.GaudiTrainer.prediction_step.inputs",description:`<strong>inputs</strong> (<code>dict[str, Union[torch.Tensor, Any]]</code>) &#x2014;
The inputs and targets of the model.
The dictionary will be unpacked before being fed to the model. Most models expect the targets under the
argument <code>labels</code>. Check your model&#x2019;s documentation for all accepted arguments.`,name:"inputs"},{anchor:"optimum.habana.GaudiTrainer.prediction_step.prediction_loss_only",description:`<strong>prediction_loss_only</strong> (<code>bool</code>) &#x2014;
Whether or not to return the loss only.`,name:"prediction_loss_only"},{anchor:"optimum.habana.GaudiTrainer.prediction_step.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"}],source:"https://github.com/huggingface/optimum-habana/blob/v1.19.0/optimum/habana/transformers/trainer.py#L2271",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A tuple with the loss,
logits and labels (each being optional).</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>tuple[Optional[torch.Tensor], Optional[torch.Tensor], Optional[torch.Tensor]]</p>
`}}),ee=new T({props:{name:"save_model",anchor:"optimum.habana.GaudiTrainer.save_model",parameters:[{name:"output_dir",val:": typing.Optional[str] = None"},{name:"_internal_call",val:": bool = False"}],source:"https://github.com/huggingface/optimum-habana/blob/v1.19.0/optimum/habana/transformers/trainer.py#L1786"}}),ae=new T({props:{name:"train",anchor:"optimum.habana.GaudiTrainer.train",parameters:[{name:"resume_from_checkpoint",val:": typing.Union[str, bool, NoneType] = None"},{name:"trial",val:": typing.Union[ForwardRef('optuna.Trial'), dict[str, typing.Any], NoneType] = None"},{name:"ignore_keys_for_eval",val:": typing.Optional[list[str]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"optimum.habana.GaudiTrainer.train.resume_from_checkpoint",description:`<strong>resume_from_checkpoint</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
If a <code>str</code>, local path to a saved checkpoint as saved by a previous instance of <code>Trainer</code>. If a
<code>bool</code> and equals <code>True</code>, load the last checkpoint in <em>args.output_dir</em> as saved by a previous instance
of <code>Trainer</code>. If present, training will resume from the model/optimizer/scheduler states loaded here.`,name:"resume_from_checkpoint"},{anchor:"optimum.habana.GaudiTrainer.train.trial",description:`<strong>trial</strong> (<code>optuna.Trial</code> or <code>dict[str, Any]</code>, <em>optional</em>) &#x2014;
The trial run or the hyperparameter dictionary for hyperparameter search.`,name:"trial"},{anchor:"optimum.habana.GaudiTrainer.train.ignore_keys_for_eval",description:`<strong>ignore_keys_for_eval</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions for evaluation during the training.`,name:"ignore_keys_for_eval"},{anchor:"optimum.habana.GaudiTrainer.train.kwargs",description:`<strong>kwargs</strong> (<code>dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments used to hide deprecated arguments`,name:"kwargs"}],source:"https://github.com/huggingface/optimum-habana/blob/v1.19.0/optimum/habana/transformers/trainer.py#L517"}}),ne=new T({props:{name:"training_step",anchor:"optimum.habana.GaudiTrainer.training_step",parameters:[{name:"model",val:": Module"},{name:"inputs",val:": dict"},{name:"num_items_in_batch",val:": typing.Optional[torch.Tensor] = None"}],parametersDescription:[{anchor:"optimum.habana.GaudiTrainer.training_step.model",description:`<strong>model</strong> (<code>torch.nn.Module</code>) &#x2014;
The model to train.`,name:"model"},{anchor:"optimum.habana.GaudiTrainer.training_step.inputs",description:`<strong>inputs</strong> (<code>dict[str, Union[torch.Tensor, Any]]</code>) &#x2014;
The inputs and targets of the model.</p>
<p>The dictionary will be unpacked before being fed to the model. Most models expect the targets under the
argument <code>labels</code>. Check your model&#x2019;s documentation for all accepted arguments.`,name:"inputs"}],source:"https://github.com/huggingface/optimum-habana/blob/v1.19.0/optimum/habana/transformers/trainer.py#L1706",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The tensor with training loss on this batch.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.Tensor</code></p>
`}}),te=new Le({props:{title:"GaudiSeq2SeqTrainer",local:"optimum.habana.GaudiSeq2SeqTrainer",headingTag:"h2"}}),oe=new T({props:{name:"class optimum.habana.GaudiSeq2SeqTrainer",anchor:"optimum.habana.GaudiSeq2SeqTrainer",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), torch.nn.modules.module.Module] = None"},{name:"gaudi_config",val:": GaudiConfig = None"},{name:"args",val:": GaudiTrainingArguments = None"},{name:"data_collator",val:": typing.Optional[ForwardRef('DataCollator')] = None"},{name:"train_dataset",val:": typing.Union[torch.utils.data.dataset.Dataset, ForwardRef('IterableDataset'), ForwardRef('datasets.Dataset'), NoneType] = None"},{name:"eval_dataset",val:": typing.Union[torch.utils.data.dataset.Dataset, dict[str, torch.utils.data.dataset.Dataset], NoneType] = None"},{name:"processing_class",val:": typing.Union[ForwardRef('PreTrainedTokenizerBase'), ForwardRef('BaseImageProcessor'), ForwardRef('FeatureExtractionMixin'), ForwardRef('ProcessorMixin'), NoneType] = None"},{name:"model_init",val:": typing.Optional[typing.Callable[[], ForwardRef('PreTrainedModel')]] = None"},{name:"compute_loss_func",val:": typing.Optional[typing.Callable] = None"},{name:"compute_metrics",val:": typing.Optional[typing.Callable[[ForwardRef('EvalPrediction')], dict]] = None"},{name:"callbacks",val:": typing.Optional[list['TrainerCallback']] = None"},{name:"optimizers",val:": tuple = (None, None)"},{name:"preprocess_logits_for_metrics",val:": typing.Optional[typing.Callable[[torch.Tensor, torch.Tensor], torch.Tensor]] = None"}],source:"https://github.com/huggingface/optimum-habana/blob/v1.19.0/optimum/habana/transformers/trainer_seq2seq.py#L56"}}),ie=new T({props:{name:"evaluate",anchor:"optimum.habana.GaudiSeq2SeqTrainer.evaluate",parameters:[{name:"eval_dataset",val:": typing.Optional[torch.utils.data.dataset.Dataset] = None"},{name:"ignore_keys",val:": typing.Optional[list[str]] = None"},{name:"metric_key_prefix",val:": str = 'eval'"},{name:"**gen_kwargs",val:""}],parametersDescription:[{anchor:"optimum.habana.GaudiSeq2SeqTrainer.evaluate.eval_dataset",description:`<strong>eval_dataset</strong> (<code>Dataset</code>, <em>optional</em>) &#x2014;
Pass a dataset if you wish to override <code>self.eval_dataset</code>. If it is an <a href="https://huggingface.co/docs/datasets/v4.1.1/en/package_reference/main_classes#datasets.Dataset" rel="nofollow">Dataset</a>, columns
not accepted by the <code>model.forward()</code> method are automatically removed. It must implement the <code>__len__</code>
method.`,name:"eval_dataset"},{anchor:"optimum.habana.GaudiSeq2SeqTrainer.evaluate.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"},{anchor:"optimum.habana.GaudiSeq2SeqTrainer.evaluate.metric_key_prefix",description:`<strong>metric_key_prefix</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;eval&quot;</code>) &#x2014;
An optional prefix to be used as the metrics key prefix. For example the metrics &#x201C;bleu&#x201D; will be named
&#x201C;eval_bleu&#x201D; if the prefix is <code>&quot;eval&quot;</code> (default)`,name:"metric_key_prefix"},{anchor:"optimum.habana.GaudiSeq2SeqTrainer.evaluate.max_length",description:`<strong>max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The maximum target length to use when predicting with the generate method.`,name:"max_length"},{anchor:"optimum.habana.GaudiSeq2SeqTrainer.evaluate.num_beams",description:`<strong>num_beams</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of beams for beam search that will be used when predicting with the generate method. 1 means no
beam search.`,name:"num_beams"},{anchor:"optimum.habana.GaudiSeq2SeqTrainer.evaluate.gen_kwargs",description:`<strong>gen_kwargs</strong> &#x2014;
Additional <code>generate</code> specific kwargs.`,name:"gen_kwargs"}],source:"https://github.com/huggingface/optimum-habana/blob/v1.19.0/optimum/habana/transformers/trainer_seq2seq.py#L142",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary containing the evaluation loss and the potential metrics computed from the predictions. The
dictionary also contains the epoch number which comes from the training state.</p>
`}}),re=new T({props:{name:"predict",anchor:"optimum.habana.GaudiSeq2SeqTrainer.predict",parameters:[{name:"test_dataset",val:": Dataset"},{name:"ignore_keys",val:": typing.Optional[list[str]] = None"},{name:"metric_key_prefix",val:": str = 'test'"},{name:"**gen_kwargs",val:""}],parametersDescription:[{anchor:"optimum.habana.GaudiSeq2SeqTrainer.predict.test_dataset",description:`<strong>test_dataset</strong> (<code>Dataset</code>) &#x2014;
Dataset to run the predictions on. If it is a <a href="https://huggingface.co/docs/datasets/v4.1.1/en/package_reference/main_classes#datasets.Dataset" rel="nofollow">Dataset</a>, columns not accepted by the
<code>model.forward()</code> method are automatically removed. Has to implement the method <code>__len__</code>`,name:"test_dataset"},{anchor:"optimum.habana.GaudiSeq2SeqTrainer.predict.ignore_keys",description:`<strong>ignore_keys</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
A list of keys in the output of your model (if it is a dictionary) that should be ignored when
gathering predictions.`,name:"ignore_keys"},{anchor:"optimum.habana.GaudiSeq2SeqTrainer.predict.metric_key_prefix",description:`<strong>metric_key_prefix</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;eval&quot;</code>) &#x2014;
An optional prefix to be used as the metrics key prefix. For example the metrics &#x201C;bleu&#x201D; will be named
&#x201C;eval_bleu&#x201D; if the prefix is <code>&quot;eval&quot;</code> (default)`,name:"metric_key_prefix"},{anchor:"optimum.habana.GaudiSeq2SeqTrainer.predict.max_length",description:`<strong>max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The maximum target length to use when predicting with the generate method.`,name:"max_length"},{anchor:"optimum.habana.GaudiSeq2SeqTrainer.predict.num_beams",description:`<strong>num_beams</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of beams for beam search that will be used when predicting with the generate method. 1 means no
beam search.`,name:"num_beams"},{anchor:"optimum.habana.GaudiSeq2SeqTrainer.predict.gen_kwargs",description:`<strong>gen_kwargs</strong> &#x2014;
Additional <code>generate</code> specific kwargs.`,name:"gen_kwargs"}],source:"https://github.com/huggingface/optimum-habana/blob/v1.19.0/optimum/habana/transformers/trainer_seq2seq.py#L194"}}),H=new mn({props:{$$slots:{default:[xn]},$$scope:{ctx:_e}}}),le=new Le({props:{title:"GaudiTrainingArguments",local:"optimum.habana.GaudiTrainingArguments",headingTag:"h2"}}),se=new T({props:{name:"class optimum.habana.GaudiTrainingArguments",anchor:"optimum.habana.GaudiTrainingArguments",parameters:[{name:"output_dir",val:": typing.Optional[str] = None"},{name:"overwrite_output_dir",val:": bool = False"},{name:"do_train",val:": bool = False"},{name:"do_eval",val:": bool = False"},{name:"do_predict",val:": bool = False"},{name:"eval_strategy",val:": typing.Union[transformers.trainer_utils.IntervalStrategy, str] = 'no'"},{name:"prediction_loss_only",val:": bool = False"},{name:"per_device_train_batch_size",val:": int = 8"},{name:"per_device_eval_batch_size",val:": int = 8"},{name:"per_gpu_train_batch_size",val:": typing.Optional[int] = None"},{name:"per_gpu_eval_batch_size",val:": typing.Optional[int] = None"},{name:"gradient_accumulation_steps",val:": int = 1"},{name:"eval_accumulation_steps",val:": typing.Optional[int] = None"},{name:"eval_delay",val:": typing.Optional[float] = 0"},{name:"torch_empty_cache_steps",val:": typing.Optional[int] = None"},{name:"learning_rate",val:": float = 5e-05"},{name:"weight_decay",val:": float = 0.0"},{name:"adam_beta1",val:": float = 0.9"},{name:"adam_beta2",val:": float = 0.999"},{name:"adam_epsilon",val:": typing.Optional[float] = 1e-06"},{name:"max_grad_norm",val:": float = 1.0"},{name:"num_train_epochs",val:": float = 3.0"},{name:"max_steps",val:": int = -1"},{name:"lr_scheduler_type",val:": typing.Union[transformers.trainer_utils.SchedulerType, str] = 'linear'"},{name:"lr_scheduler_kwargs",val:": typing.Union[dict[str, typing.Any], str, NoneType] = <factory>"},{name:"warmup_ratio",val:": float = 0.0"},{name:"warmup_steps",val:": int = 0"},{name:"log_level",val:": str = 'passive'"},{name:"log_level_replica",val:": str = 'warning'"},{name:"log_on_each_node",val:": bool = True"},{name:"logging_dir",val:": typing.Optional[str] = None"},{name:"logging_strategy",val:": typing.Union[transformers.trainer_utils.IntervalStrategy, str] = 'steps'"},{name:"logging_first_step",val:": bool = False"},{name:"logging_steps",val:": float = 500"},{name:"logging_nan_inf_filter",val:": typing.Optional[bool] = False"},{name:"save_strategy",val:": typing.Union[transformers.trainer_utils.SaveStrategy, str] = 'steps'"},{name:"save_steps",val:": float = 500"},{name:"save_total_limit",val:": typing.Optional[int] = None"},{name:"save_safetensors",val:": typing.Optional[bool] = True"},{name:"save_on_each_node",val:": bool = False"},{name:"save_only_model",val:": bool = False"},{name:"restore_callback_states_from_checkpoint",val:": bool = False"},{name:"no_cuda",val:": bool = False"},{name:"use_cpu",val:": bool = False"},{name:"use_mps_device",val:": bool = False"},{name:"seed",val:": int = 42"},{name:"data_seed",val:": typing.Optional[int] = None"},{name:"jit_mode_eval",val:": bool = False"},{name:"use_ipex",val:": bool = False"},{name:"bf16",val:": bool = False"},{name:"fp16",val:": bool = False"},{name:"fp16_opt_level",val:": str = 'O1'"},{name:"half_precision_backend",val:": str = 'hpu_amp'"},{name:"bf16_full_eval",val:": bool = False"},{name:"fp16_full_eval",val:": bool = False"},{name:"tf32",val:": typing.Optional[bool] = None"},{name:"local_rank",val:": int = -1"},{name:"ddp_backend",val:": typing.Optional[str] = None"},{name:"tpu_num_cores",val:": typing.Optional[int] = None"},{name:"tpu_metrics_debug",val:": bool = False"},{name:"debug",val:": typing.Union[str, list[transformers.debug_utils.DebugOption]] = ''"},{name:"dataloader_drop_last",val:": bool = False"},{name:"eval_steps",val:": typing.Optional[float] = None"},{name:"dataloader_num_workers",val:": int = 0"},{name:"dataloader_prefetch_factor",val:": typing.Optional[int] = None"},{name:"past_index",val:": int = -1"},{name:"run_name",val:": typing.Optional[str] = None"},{name:"disable_tqdm",val:": typing.Optional[bool] = None"},{name:"remove_unused_columns",val:": typing.Optional[bool] = True"},{name:"label_names",val:": typing.Optional[list[str]] = None"},{name:"load_best_model_at_end",val:": typing.Optional[bool] = False"},{name:"metric_for_best_model",val:": typing.Optional[str] = None"},{name:"greater_is_better",val:": typing.Optional[bool] = None"},{name:"ignore_data_skip",val:": bool = False"},{name:"fsdp",val:": typing.Union[list[transformers.trainer_utils.FSDPOption], str, NoneType] = ''"},{name:"fsdp_min_num_params",val:": int = 0"},{name:"fsdp_config",val:": typing.Union[dict[str, typing.Any], str, NoneType] = None"},{name:"fsdp_transformer_layer_cls_to_wrap",val:": typing.Optional[str] = None"},{name:"accelerator_config",val:": typing.Union[dict, str, NoneType] = None"},{name:"deepspeed",val:": typing.Union[dict, str, NoneType] = None"},{name:"label_smoothing_factor",val:": float = 0.0"},{name:"optim",val:": typing.Union[transformers.training_args.OptimizerNames, str, NoneType] = 'adamw_torch'"},{name:"optim_args",val:": typing.Optional[str] = None"},{name:"adafactor",val:": bool = False"},{name:"group_by_length",val:": bool = False"},{name:"length_column_name",val:": typing.Optional[str] = 'length'"},{name:"report_to",val:": typing.Union[NoneType, str, list[str]] = None"},{name:"ddp_find_unused_parameters",val:": typing.Optional[bool] = False"},{name:"ddp_bucket_cap_mb",val:": typing.Optional[int] = 230"},{name:"ddp_broadcast_buffers",val:": typing.Optional[bool] = None"},{name:"dataloader_pin_memory",val:": bool = True"},{name:"dataloader_persistent_workers",val:": bool = False"},{name:"skip_memory_metrics",val:": bool = True"},{name:"use_legacy_prediction_loop",val:": bool = False"},{name:"push_to_hub",val:": bool = False"},{name:"resume_from_checkpoint",val:": typing.Optional[str] = None"},{name:"hub_model_id",val:": typing.Optional[str] = None"},{name:"hub_strategy",val:": typing.Union[transformers.trainer_utils.HubStrategy, str] = 'every_save'"},{name:"hub_token",val:": typing.Optional[str] = None"},{name:"hub_private_repo",val:": typing.Optional[bool] = None"},{name:"hub_always_push",val:": bool = False"},{name:"hub_revision",val:": typing.Optional[str] = None"},{name:"gradient_checkpointing",val:": bool = False"},{name:"gradient_checkpointing_kwargs",val:": typing.Union[dict[str, typing.Any], str, NoneType] = None"},{name:"include_inputs_for_metrics",val:": bool = False"},{name:"include_for_metrics",val:": list = <factory>"},{name:"eval_do_concat_batches",val:": bool = True"},{name:"fp16_backend",val:": str = 'auto'"},{name:"push_to_hub_model_id",val:": typing.Optional[str] = None"},{name:"push_to_hub_organization",val:": typing.Optional[str] = None"},{name:"push_to_hub_token",val:": typing.Optional[str] = None"},{name:"mp_parameters",val:": str = ''"},{name:"auto_find_batch_size",val:": bool = False"},{name:"full_determinism",val:": bool = False"},{name:"torchdynamo",val:": typing.Optional[str] = None"},{name:"ray_scope",val:": typing.Optional[str] = 'last'"},{name:"ddp_timeout",val:": int = 1800"},{name:"torch_compile",val:": bool = False"},{name:"torch_compile_backend",val:": typing.Optional[str] = None"},{name:"torch_compile_mode",val:": typing.Optional[str] = None"},{name:"include_tokens_per_second",val:": typing.Optional[bool] = False"},{name:"include_num_input_tokens_seen",val:": typing.Optional[bool] = False"},{name:"neftune_noise_alpha",val:": typing.Optional[float] = None"},{name:"optim_target_modules",val:": typing.Union[NoneType, str, list[str]] = None"},{name:"batch_eval_metrics",val:": bool = False"},{name:"eval_on_start",val:": bool = False"},{name:"use_liger_kernel",val:": typing.Optional[bool] = False"},{name:"liger_kernel_config",val:": typing.Optional[dict[str, bool]] = None"},{name:"eval_use_gather_object",val:": typing.Optional[bool] = False"},{name:"average_tokens_across_devices",val:": typing.Optional[bool] = True"},{name:"use_habana",val:": typing.Optional[bool] = False"},{name:"gaudi_config_name",val:": typing.Optional[str] = None"},{name:"use_lazy_mode",val:": typing.Optional[bool] = True"},{name:"use_hpu_graphs",val:": typing.Optional[bool] = False"},{name:"use_hpu_graphs_for_inference",val:": typing.Optional[bool] = False"},{name:"use_hpu_graphs_for_training",val:": typing.Optional[bool] = False"},{name:"use_compiled_autograd",val:": typing.Optional[bool] = False"},{name:"compile_from_sec_iteration",val:": typing.Optional[bool] = False"},{name:"compile_dynamic",val:": typing.Optional[bool] = None"},{name:"use_zero3_leaf_promotion",val:": typing.Optional[bool] = False"},{name:"cache_size_limit",val:": typing.Optional[int] = None"},{name:"use_regional_compilation",val:": typing.Optional[bool] = False"},{name:"inline_inbuilt_nn_modules",val:": typing.Optional[bool] = None"},{name:"allow_unspec_int_on_nn_module",val:": typing.Optional[bool] = None"},{name:"disable_tensor_cache_hpu_graphs",val:": typing.Optional[bool] = False"},{name:"max_hpu_graphs",val:": typing.Optional[int] = None"},{name:"distribution_strategy",val:": typing.Optional[str] = 'ddp'"},{name:"context_parallel_size",val:": typing.Optional[int] = 1"},{name:"minimize_memory",val:": typing.Optional[bool] = False"},{name:"throughput_warmup_steps",val:": typing.Optional[int] = 0"},{name:"adjust_throughput",val:": bool = False"},{name:"pipelining_fwd_bwd",val:": typing.Optional[bool] = False"},{name:"ignore_eos",val:": typing.Optional[bool] = True"},{name:"non_blocking_data_copy",val:": typing.Optional[bool] = False"},{name:"profiling_warmup_steps",val:": typing.Optional[int] = 0"},{name:"profiling_steps",val:": typing.Optional[int] = 0"},{name:"profiling_warmup_steps_eval",val:": typing.Optional[int] = 0"},{name:"profiling_steps_eval",val:": typing.Optional[int] = 0"},{name:"profiling_record_shapes",val:": typing.Optional[bool] = True"},{name:"profiling_with_stack",val:": typing.Optional[bool] = False"},{name:"attn_implementation",val:": typing.Optional[str] = 'eager'"},{name:"sdp_on_bf16",val:": bool = False"},{name:"fp8",val:": typing.Optional[bool] = False"}],parametersDescription:[{anchor:"optimum.habana.GaudiTrainingArguments.use_habana",description:`<strong>use_habana</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use Habana&#x2019;s HPU for running the model.`,name:"use_habana"},{anchor:"optimum.habana.GaudiTrainingArguments.gaudi_config_name",description:`<strong>gaudi_config_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Pretrained Gaudi config name or path.`,name:"gaudi_config_name"},{anchor:"optimum.habana.GaudiTrainingArguments.use_lazy_mode",description:`<strong>use_lazy_mode</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to use lazy mode for running the model.`,name:"use_lazy_mode"},{anchor:"optimum.habana.GaudiTrainingArguments.use_hpu_graphs",description:`<strong>use_hpu_graphs</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Deprecated, use <code>use_hpu_graphs_for_inference</code> instead. Whether to use HPU graphs for performing inference.`,name:"use_hpu_graphs"},{anchor:"optimum.habana.GaudiTrainingArguments.use_hpu_graphs_for_inference",description:`<strong>use_hpu_graphs_for_inference</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use HPU graphs for performing inference. It will speed up latency but may not be compatible with some operations.`,name:"use_hpu_graphs_for_inference"},{anchor:"optimum.habana.GaudiTrainingArguments.use_hpu_graphs_for_training",description:`<strong>use_hpu_graphs_for_training</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use HPU graphs for performing inference. It will speed up training but may not be compatible with some operations.`,name:"use_hpu_graphs_for_training"},{anchor:"optimum.habana.GaudiTrainingArguments.use_compiled_autograd",description:`<strong>use_compiled_autograd</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use compiled autograd for training. Currently only for summarization models.`,name:"use_compiled_autograd"},{anchor:"optimum.habana.GaudiTrainingArguments.compile_from_sec_iteration",description:`<strong>compile_from_sec_iteration</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to torch.compile from the second training iteration.`,name:"compile_from_sec_iteration"},{anchor:"optimum.habana.GaudiTrainingArguments.compile_dynamic",description:`<strong>compile_dynamic</strong> (<code>bool|None</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Set value of &#x2018;dynamic&#x2019; parameter for torch.compile.`,name:"compile_dynamic"},{anchor:"optimum.habana.GaudiTrainingArguments.use_regional_compilation",description:`<strong>use_regional_compilation</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use regional compile with deepspeed`,name:"use_regional_compilation"},{anchor:"optimum.habana.GaudiTrainingArguments.inline_inbuilt_nn_modules",description:`<strong>inline_inbuilt_nn_modules</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Set value of &#x2018;inline_inbuilt_nn_modules&#x2019; parameter for torch._dynamo.config. Currently, disabling this parameter improves the performance of the ALBERT model.`,name:"inline_inbuilt_nn_modules"},{anchor:"optimum.habana.GaudiTrainingArguments.cache_size_limit(int,",description:`<strong>cache_size_limit(<code>int</code>,</strong> <em>optional</em>, defaults to &#x2018;None&#x2019;) &#x2014;
Set value of &#x2018;cache_size_limit&#x2019; parameter for torch._dynamo.config`,name:"cache_size_limit(int,"},{anchor:"optimum.habana.GaudiTrainingArguments.allow_unspec_int_on_nn_module",description:`<strong>allow_unspec_int_on_nn_module</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Set value of &#x2018;allow_unspec_int_on_nn_module&#x2019; parameter for torch._dynamo.config.`,name:"allow_unspec_int_on_nn_module"},{anchor:"optimum.habana.GaudiTrainingArguments.disable_tensor_cache_hpu_graphs",description:`<strong>disable_tensor_cache_hpu_graphs</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to disable tensor cache when using hpu graphs. If True, tensors won&#x2019;t be cached in hpu graph and memory can be saved.`,name:"disable_tensor_cache_hpu_graphs"},{anchor:"optimum.habana.GaudiTrainingArguments.max_hpu_graphs",description:`<strong>max_hpu_graphs</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Maximum number of hpu graphs to be cached. Reduce to save device memory.`,name:"max_hpu_graphs"},{anchor:"optimum.habana.GaudiTrainingArguments.distribution_strategy",description:`<strong>distribution_strategy</strong> (<code>str</code>, <em>optional</em>, defaults to <code>ddp</code>) &#x2014;
Determines how data parallel distributed training is achieved. May be: <code>ddp</code> or <code>fast_ddp</code>.`,name:"distribution_strategy"},{anchor:"optimum.habana.GaudiTrainingArguments.throughput_warmup_steps",description:`<strong>throughput_warmup_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of steps to ignore for throughput calculation. For example, with <code>throughput_warmup_steps=N</code>,
the first N steps will not be considered in the calculation of the throughput. This is especially
useful in lazy mode where the first two or three iterations typically take longer.`,name:"throughput_warmup_steps"},{anchor:"optimum.habana.GaudiTrainingArguments.adjust_throughput",description:`<strong>adjust_throughput</strong> (&#x2018;bool&#x2019;, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to remove the time taken for logging, evaluating and saving from throughput calculation.`,name:"adjust_throughput"},{anchor:"optimum.habana.GaudiTrainingArguments.pipelining_fwd_bwd",description:`<strong>pipelining_fwd_bwd</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to add an additional <code>mark_step</code> between forward and backward for pipelining
host backward building and HPU forward computing.`,name:"pipelining_fwd_bwd"},{anchor:"optimum.habana.GaudiTrainingArguments.non_blocking_data_copy",description:`<strong>non_blocking_data_copy</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to enable async data copy when preparing inputs.`,name:"non_blocking_data_copy"},{anchor:"optimum.habana.GaudiTrainingArguments.profiling_warmup_steps",description:`<strong>profiling_warmup_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of training steps to ignore for profiling.`,name:"profiling_warmup_steps"},{anchor:"optimum.habana.GaudiTrainingArguments.profiling_steps",description:`<strong>profiling_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of training steps to be captured when enabling profiling.`,name:"profiling_steps"},{anchor:"optimum.habana.GaudiTrainingArguments.profiling_warmup_steps_eval",description:`<strong>profiling_warmup_steps_eval</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of eval steps to ignore for profiling.`,name:"profiling_warmup_steps_eval"},{anchor:"optimum.habana.GaudiTrainingArguments.profiling_steps_eval",description:`<strong>profiling_steps_eval</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of eval steps to be captured when enabling profiling.`,name:"profiling_steps_eval"}],source:"https://github.com/huggingface/optimum-habana/blob/v1.19.0/optimum/habana/transformers/training_args.py#L86"}}),pe=new Le({props:{title:"GaudiSeq2SeqTrainingArguments",local:"optimum.habana.GaudiSeq2SeqTrainingArguments",headingTag:"h2"}}),me=new T({props:{name:"class optimum.habana.GaudiSeq2SeqTrainingArguments",anchor:"optimum.habana.GaudiSeq2SeqTrainingArguments",parameters:[{name:"output_dir",val:": typing.Optional[str] = None"},{name:"overwrite_output_dir",val:": bool = False"},{name:"do_train",val:": bool = False"},{name:"do_eval",val:": bool = False"},{name:"do_predict",val:": bool = False"},{name:"eval_strategy",val:": typing.Union[transformers.trainer_utils.IntervalStrategy, str] = 'no'"},{name:"prediction_loss_only",val:": bool = False"},{name:"per_device_train_batch_size",val:": int = 8"},{name:"per_device_eval_batch_size",val:": int = 8"},{name:"per_gpu_train_batch_size",val:": typing.Optional[int] = None"},{name:"per_gpu_eval_batch_size",val:": typing.Optional[int] = None"},{name:"gradient_accumulation_steps",val:": int = 1"},{name:"eval_accumulation_steps",val:": typing.Optional[int] = None"},{name:"eval_delay",val:": typing.Optional[float] = 0"},{name:"torch_empty_cache_steps",val:": typing.Optional[int] = None"},{name:"learning_rate",val:": float = 5e-05"},{name:"weight_decay",val:": float = 0.0"},{name:"adam_beta1",val:": float = 0.9"},{name:"adam_beta2",val:": float = 0.999"},{name:"adam_epsilon",val:": typing.Optional[float] = 1e-06"},{name:"max_grad_norm",val:": float = 1.0"},{name:"num_train_epochs",val:": float = 3.0"},{name:"max_steps",val:": int = -1"},{name:"lr_scheduler_type",val:": typing.Union[transformers.trainer_utils.SchedulerType, str] = 'linear'"},{name:"lr_scheduler_kwargs",val:": typing.Union[dict[str, typing.Any], str, NoneType] = <factory>"},{name:"warmup_ratio",val:": float = 0.0"},{name:"warmup_steps",val:": int = 0"},{name:"log_level",val:": str = 'passive'"},{name:"log_level_replica",val:": str = 'warning'"},{name:"log_on_each_node",val:": bool = True"},{name:"logging_dir",val:": typing.Optional[str] = None"},{name:"logging_strategy",val:": typing.Union[transformers.trainer_utils.IntervalStrategy, str] = 'steps'"},{name:"logging_first_step",val:": bool = False"},{name:"logging_steps",val:": float = 500"},{name:"logging_nan_inf_filter",val:": typing.Optional[bool] = False"},{name:"save_strategy",val:": typing.Union[transformers.trainer_utils.SaveStrategy, str] = 'steps'"},{name:"save_steps",val:": float = 500"},{name:"save_total_limit",val:": typing.Optional[int] = None"},{name:"save_safetensors",val:": typing.Optional[bool] = True"},{name:"save_on_each_node",val:": bool = False"},{name:"save_only_model",val:": bool = False"},{name:"restore_callback_states_from_checkpoint",val:": bool = False"},{name:"no_cuda",val:": bool = False"},{name:"use_cpu",val:": bool = False"},{name:"use_mps_device",val:": bool = False"},{name:"seed",val:": int = 42"},{name:"data_seed",val:": typing.Optional[int] = None"},{name:"jit_mode_eval",val:": bool = False"},{name:"use_ipex",val:": bool = False"},{name:"bf16",val:": bool = False"},{name:"fp16",val:": bool = False"},{name:"fp16_opt_level",val:": str = 'O1'"},{name:"half_precision_backend",val:": str = 'hpu_amp'"},{name:"bf16_full_eval",val:": bool = False"},{name:"fp16_full_eval",val:": bool = False"},{name:"tf32",val:": typing.Optional[bool] = None"},{name:"local_rank",val:": int = -1"},{name:"ddp_backend",val:": typing.Optional[str] = None"},{name:"tpu_num_cores",val:": typing.Optional[int] = None"},{name:"tpu_metrics_debug",val:": bool = False"},{name:"debug",val:": typing.Union[str, list[transformers.debug_utils.DebugOption]] = ''"},{name:"dataloader_drop_last",val:": bool = False"},{name:"eval_steps",val:": typing.Optional[float] = None"},{name:"dataloader_num_workers",val:": int = 0"},{name:"dataloader_prefetch_factor",val:": typing.Optional[int] = None"},{name:"past_index",val:": int = -1"},{name:"run_name",val:": typing.Optional[str] = None"},{name:"disable_tqdm",val:": typing.Optional[bool] = None"},{name:"remove_unused_columns",val:": typing.Optional[bool] = True"},{name:"label_names",val:": typing.Optional[list[str]] = None"},{name:"load_best_model_at_end",val:": typing.Optional[bool] = False"},{name:"metric_for_best_model",val:": typing.Optional[str] = None"},{name:"greater_is_better",val:": typing.Optional[bool] = None"},{name:"ignore_data_skip",val:": bool = False"},{name:"fsdp",val:": typing.Union[list[transformers.trainer_utils.FSDPOption], str, NoneType] = ''"},{name:"fsdp_min_num_params",val:": int = 0"},{name:"fsdp_config",val:": typing.Union[dict[str, typing.Any], str, NoneType] = None"},{name:"fsdp_transformer_layer_cls_to_wrap",val:": typing.Optional[str] = None"},{name:"accelerator_config",val:": typing.Union[dict, str, NoneType] = None"},{name:"deepspeed",val:": typing.Union[dict, str, NoneType] = None"},{name:"label_smoothing_factor",val:": float = 0.0"},{name:"optim",val:": typing.Union[transformers.training_args.OptimizerNames, str, NoneType] = 'adamw_torch'"},{name:"optim_args",val:": typing.Optional[str] = None"},{name:"adafactor",val:": bool = False"},{name:"group_by_length",val:": bool = False"},{name:"length_column_name",val:": typing.Optional[str] = 'length'"},{name:"report_to",val:": typing.Union[NoneType, str, list[str]] = None"},{name:"ddp_find_unused_parameters",val:": typing.Optional[bool] = False"},{name:"ddp_bucket_cap_mb",val:": typing.Optional[int] = 230"},{name:"ddp_broadcast_buffers",val:": typing.Optional[bool] = None"},{name:"dataloader_pin_memory",val:": bool = True"},{name:"dataloader_persistent_workers",val:": bool = False"},{name:"skip_memory_metrics",val:": bool = True"},{name:"use_legacy_prediction_loop",val:": bool = False"},{name:"push_to_hub",val:": bool = False"},{name:"resume_from_checkpoint",val:": typing.Optional[str] = None"},{name:"hub_model_id",val:": typing.Optional[str] = None"},{name:"hub_strategy",val:": typing.Union[transformers.trainer_utils.HubStrategy, str] = 'every_save'"},{name:"hub_token",val:": typing.Optional[str] = None"},{name:"hub_private_repo",val:": typing.Optional[bool] = None"},{name:"hub_always_push",val:": bool = False"},{name:"hub_revision",val:": typing.Optional[str] = None"},{name:"gradient_checkpointing",val:": bool = False"},{name:"gradient_checkpointing_kwargs",val:": typing.Union[dict[str, typing.Any], str, NoneType] = None"},{name:"include_inputs_for_metrics",val:": bool = False"},{name:"include_for_metrics",val:": list = <factory>"},{name:"eval_do_concat_batches",val:": bool = True"},{name:"fp16_backend",val:": str = 'auto'"},{name:"push_to_hub_model_id",val:": typing.Optional[str] = None"},{name:"push_to_hub_organization",val:": typing.Optional[str] = None"},{name:"push_to_hub_token",val:": typing.Optional[str] = None"},{name:"mp_parameters",val:": str = ''"},{name:"auto_find_batch_size",val:": bool = False"},{name:"full_determinism",val:": bool = False"},{name:"torchdynamo",val:": typing.Optional[str] = None"},{name:"ray_scope",val:": typing.Optional[str] = 'last'"},{name:"ddp_timeout",val:": int = 1800"},{name:"torch_compile",val:": bool = False"},{name:"torch_compile_backend",val:": typing.Optional[str] = None"},{name:"torch_compile_mode",val:": typing.Optional[str] = None"},{name:"include_tokens_per_second",val:": typing.Optional[bool] = False"},{name:"include_num_input_tokens_seen",val:": typing.Optional[bool] = False"},{name:"neftune_noise_alpha",val:": typing.Optional[float] = None"},{name:"optim_target_modules",val:": typing.Union[NoneType, str, list[str]] = None"},{name:"batch_eval_metrics",val:": bool = False"},{name:"eval_on_start",val:": bool = False"},{name:"use_liger_kernel",val:": typing.Optional[bool] = False"},{name:"liger_kernel_config",val:": typing.Optional[dict[str, bool]] = None"},{name:"eval_use_gather_object",val:": typing.Optional[bool] = False"},{name:"average_tokens_across_devices",val:": typing.Optional[bool] = True"},{name:"use_habana",val:": typing.Optional[bool] = False"},{name:"gaudi_config_name",val:": typing.Optional[str] = None"},{name:"use_lazy_mode",val:": typing.Optional[bool] = True"},{name:"use_hpu_graphs",val:": typing.Optional[bool] = False"},{name:"use_hpu_graphs_for_inference",val:": typing.Optional[bool] = False"},{name:"use_hpu_graphs_for_training",val:": typing.Optional[bool] = False"},{name:"use_compiled_autograd",val:": typing.Optional[bool] = False"},{name:"compile_from_sec_iteration",val:": typing.Optional[bool] = False"},{name:"compile_dynamic",val:": typing.Optional[bool] = None"},{name:"use_zero3_leaf_promotion",val:": typing.Optional[bool] = False"},{name:"cache_size_limit",val:": typing.Optional[int] = None"},{name:"use_regional_compilation",val:": typing.Optional[bool] = False"},{name:"inline_inbuilt_nn_modules",val:": typing.Optional[bool] = None"},{name:"allow_unspec_int_on_nn_module",val:": typing.Optional[bool] = None"},{name:"disable_tensor_cache_hpu_graphs",val:": typing.Optional[bool] = False"},{name:"max_hpu_graphs",val:": typing.Optional[int] = None"},{name:"distribution_strategy",val:": typing.Optional[str] = 'ddp'"},{name:"context_parallel_size",val:": typing.Optional[int] = 1"},{name:"minimize_memory",val:": typing.Optional[bool] = False"},{name:"throughput_warmup_steps",val:": typing.Optional[int] = 0"},{name:"adjust_throughput",val:": bool = False"},{name:"pipelining_fwd_bwd",val:": typing.Optional[bool] = False"},{name:"ignore_eos",val:": typing.Optional[bool] = True"},{name:"non_blocking_data_copy",val:": typing.Optional[bool] = False"},{name:"profiling_warmup_steps",val:": typing.Optional[int] = 0"},{name:"profiling_steps",val:": typing.Optional[int] = 0"},{name:"profiling_warmup_steps_eval",val:": typing.Optional[int] = 0"},{name:"profiling_steps_eval",val:": typing.Optional[int] = 0"},{name:"profiling_record_shapes",val:": typing.Optional[bool] = True"},{name:"profiling_with_stack",val:": typing.Optional[bool] = False"},{name:"attn_implementation",val:": typing.Optional[str] = 'eager'"},{name:"sdp_on_bf16",val:": bool = False"},{name:"fp8",val:": typing.Optional[bool] = False"},{name:"sortish_sampler",val:": bool = False"},{name:"predict_with_generate",val:": bool = False"},{name:"generation_max_length",val:": typing.Optional[int] = None"},{name:"generation_num_beams",val:": typing.Optional[int] = None"},{name:"generation_config",val:": typing.Union[str, pathlib.Path, optimum.habana.transformers.generation.configuration_utils.GaudiGenerationConfig, NoneType] = None"}],parametersDescription:[{anchor:"optimum.habana.GaudiSeq2SeqTrainingArguments.predict_with_generate",description:`<strong>predict_with_generate</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use generate to calculate generative metrics (ROUGE, BLEU).`,name:"predict_with_generate"},{anchor:"optimum.habana.GaudiSeq2SeqTrainingArguments.generation_max_length",description:`<strong>generation_max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The <code>max_length</code> to use on each evaluation loop when <code>predict_with_generate=True</code>. Will default to the
<code>max_length</code> value of the model configuration.`,name:"generation_max_length"},{anchor:"optimum.habana.GaudiSeq2SeqTrainingArguments.generation_num_beams",description:`<strong>generation_num_beams</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The <code>num_beams</code> to use on each evaluation loop when <code>predict_with_generate=True</code>. Will default to the
<code>num_beams</code> value of the model configuration.`,name:"generation_num_beams"},{anchor:"optimum.habana.GaudiSeq2SeqTrainingArguments.generation_config",description:`<strong>generation_config</strong> (<code>str</code> or <code>Path</code> or <code>transformers.generation.GenerationConfig</code>, <em>optional</em>) &#x2014;
Allows to load a <code>transformers.generation.GenerationConfig</code> from the <code>from_pretrained</code> method. This can be either:</p>
<ul>
<li>a string, the <em>model id</em> of a pretrained model configuration hosted inside a model repo on
huggingface.co.</li>
<li>a path to a <em>directory</em> containing a configuration file saved using the
<a href="https://huggingface.co/docs/transformers/v4.57.0/en/main_classes/text_generation#transformers.GenerationConfig.save_pretrained" rel="nofollow">transformers.GenerationConfig.save_pretrained</a> method, e.g., <code>./my_model_directory/</code>.</li>
<li>a <code>transformers.generation.GenerationConfig</code> object.</li>
</ul>`,name:"generation_config"}],source:"https://github.com/huggingface/optimum-habana/blob/v1.19.0/optimum/habana/transformers/training_args_seq2seq.py#L30"}}),de=new T({props:{name:"to_dict",anchor:"optimum.habana.GaudiSeq2SeqTrainingArguments.to_dict",parameters:[],source:"https://github.com/huggingface/optimum-habana/blob/v1.19.0/optimum/habana/transformers/training_args_seq2seq.py#L83"}}),ce=new yn({props:{source:"https://github.com/huggingface/optimum-habana/blob/main/docs/source/package_reference/trainer.mdx"}}),{c(){b=r("meta"),w=t(),x=r("p"),he=t(),m(L.$$.fragment),je=t(),m(j.$$.fragment),De=t(),D=r("p"),D.innerHTML=Da,Pe=t(),P=r("p"),P.innerHTML=Pa,Ee=t(),m(S.$$.fragment),Re=t(),E=r("p"),E.innerHTML=Ea,We=t(),m(R.$$.fragment),Be=t(),W=r("p"),W.innerHTML=Ra,Ve=t(),m(B.$$.fragment),Ze=t(),p=r("div"),m(V.$$.fragment),ca=t(),be=r("p"),be.textContent=Wa,ga=t(),U=r("div"),m(Z.$$.fragment),ua=t(),fe=r("p"),fe.innerHTML=Ba,_a=t(),k=r("div"),m(X.$$.fragment),ha=t(),ve=r("p"),ve.innerHTML=Va,ba=t(),ye=r("ol"),ye.innerHTML=Za,fa=t(),q=r("div"),m(Y.$$.fragment),va=t(),Te=r("p"),Te.innerHTML=Xa,ya=t(),F=r("div"),m(Q.$$.fragment),Ta=t(),we=r("p"),we.innerHTML=Ya,wa=t(),xe=r("ol"),xe.innerHTML=Qa,xa=t(),I=r("div"),m(K.$$.fragment),$a=t(),$e=r("p"),$e.innerHTML=Ka,Na=t(),A=r("div"),m(ee.$$.fragment),Oa=t(),Ne=r("p"),Ne.innerHTML=en,ka=t(),C=r("div"),m(ae.$$.fragment),Fa=t(),Oe=r("p"),Oe.textContent=an,Ma=t(),M=r("div"),m(ne.$$.fragment),Ga=t(),ke=r("p"),ke.textContent=nn,Sa=t(),Fe=r("p"),Fe.textContent=tn,Xe=t(),m(te.$$.fragment),Ye=t(),$=r("div"),m(oe.$$.fragment),Ua=t(),J=r("div"),m(ie.$$.fragment),qa=t(),Me=r("p"),Me.innerHTML=on,Ia=t(),N=r("div"),m(re.$$.fragment),Aa=t(),Ge=r("p"),Ge.innerHTML=rn,Ca=t(),m(H.$$.fragment),Ja=dn("\nReturns: *NamedTuple* A namedtuple with the following keys:\n- predictions (`np.ndarray`): The predictions on `test_dataset`.\n- label_ids (`np.ndarray`, *optional*): The labels (if the dataset contained some).\n- metrics (`Dict[str, float]`, *optional*): The potential dictionary of metrics (if the dataset contained\n  labels)."),Qe=t(),m(le.$$.fragment),Ke=t(),G=r("div"),m(se.$$.fragment),Ha=t(),Se=r("p"),Se.innerHTML=ln,ea=t(),m(pe.$$.fragment),aa=t(),O=r("div"),m(me.$$.fragment),za=t(),Ue=r("p"),Ue.innerHTML=sn,La=t(),z=r("div"),m(de.$$.fragment),ja=t(),qe=r("p"),qe.innerHTML=pn,na=t(),m(ce.$$.fragment),ta=t(),ze=r("p"),this.h()},l(e){const i=fn("svelte-u9bgzb",document.head);b=l(i,"META",{name:!0,content:!0}),i.forEach(n),w=o(e),x=l(e,"P",{}),v(x).forEach(n),he=o(e),d(L.$$.fragment,e),je=o(e),d(j.$$.fragment,e),De=o(e),D=l(e,"P",{"data-svelte-h":!0}),f(D)!=="svelte-103qx69"&&(D.innerHTML=Da),Pe=o(e),P=l(e,"P",{"data-svelte-h":!0}),f(P)!=="svelte-1i819i9"&&(P.innerHTML=Pa),Ee=o(e),d(S.$$.fragment,e),Re=o(e),E=l(e,"P",{"data-svelte-h":!0}),f(E)!=="svelte-1jtax1u"&&(E.innerHTML=Ea),We=o(e),d(R.$$.fragment,e),Be=o(e),W=l(e,"P",{"data-svelte-h":!0}),f(W)!=="svelte-lfoibw"&&(W.innerHTML=Ra),Ve=o(e),d(B.$$.fragment,e),Ze=o(e),p=l(e,"DIV",{class:!0});var h=v(p);d(V.$$.fragment,h),ca=o(h),be=l(h,"P",{"data-svelte-h":!0}),f(be)!=="svelte-1j23w6z"&&(be.textContent=Wa),ga=o(h),U=l(h,"DIV",{class:!0});var ge=v(U);d(Z.$$.fragment,ge),ua=o(ge),fe=l(ge,"P",{"data-svelte-h":!0}),f(fe)!=="svelte-3vy23z"&&(fe.innerHTML=Ba),ge.forEach(n),_a=o(h),k=l(h,"DIV",{class:!0});var Ie=v(k);d(X.$$.fragment,Ie),ha=o(Ie),ve=l(Ie,"P",{"data-svelte-h":!0}),f(ve)!=="svelte-vxpl2h"&&(ve.innerHTML=Va),ba=o(Ie),ye=l(Ie,"OL",{"data-svelte-h":!0}),f(ye)!=="svelte-2ian0d"&&(ye.innerHTML=Za),Ie.forEach(n),fa=o(h),q=l(h,"DIV",{class:!0});var ia=v(q);d(Y.$$.fragment,ia),va=o(ia),Te=l(ia,"P",{"data-svelte-h":!0}),f(Te)!=="svelte-1379lme"&&(Te.innerHTML=Xa),ia.forEach(n),ya=o(h),F=l(h,"DIV",{class:!0});var Ae=v(F);d(Q.$$.fragment,Ae),Ta=o(Ae),we=l(Ae,"P",{"data-svelte-h":!0}),f(we)!=="svelte-1vedoc1"&&(we.innerHTML=Ya),wa=o(Ae),xe=l(Ae,"OL",{"data-svelte-h":!0}),f(xe)!=="svelte-vzrmm3"&&(xe.innerHTML=Qa),Ae.forEach(n),xa=o(h),I=l(h,"DIV",{class:!0});var ra=v(I);d(K.$$.fragment,ra),$a=o(ra),$e=l(ra,"P",{"data-svelte-h":!0}),f($e)!=="svelte-qt0zbt"&&($e.innerHTML=Ka),ra.forEach(n),Na=o(h),A=l(h,"DIV",{class:!0});var la=v(A);d(ee.$$.fragment,la),Oa=o(la),Ne=l(la,"P",{"data-svelte-h":!0}),f(Ne)!=="svelte-45fu3d"&&(Ne.innerHTML=en),la.forEach(n),ka=o(h),C=l(h,"DIV",{class:!0});var sa=v(C);d(ae.$$.fragment,sa),Fa=o(sa),Oe=l(sa,"P",{"data-svelte-h":!0}),f(Oe)!=="svelte-1cilnet"&&(Oe.textContent=an),sa.forEach(n),Ma=o(h),M=l(h,"DIV",{class:!0});var Ce=v(M);d(ne.$$.fragment,Ce),Ga=o(Ce),ke=l(Ce,"P",{"data-svelte-h":!0}),f(ke)!=="svelte-4qplkw"&&(ke.textContent=nn),Sa=o(Ce),Fe=l(Ce,"P",{"data-svelte-h":!0}),f(Fe)!=="svelte-qjfexy"&&(Fe.textContent=tn),Ce.forEach(n),h.forEach(n),Xe=o(e),d(te.$$.fragment,e),Ye=o(e),$=l(e,"DIV",{class:!0});var Je=v($);d(oe.$$.fragment,Je),Ua=o(Je),J=l(Je,"DIV",{class:!0});var pa=v(J);d(ie.$$.fragment,pa),qa=o(pa),Me=l(pa,"P",{"data-svelte-h":!0}),f(Me)!=="svelte-1pw2jj7"&&(Me.innerHTML=on),pa.forEach(n),Ia=o(Je),N=l(Je,"DIV",{class:!0});var ue=v(N);d(re.$$.fragment,ue),Aa=o(ue),Ge=l(ue,"P",{"data-svelte-h":!0}),f(Ge)!=="svelte-12trqag"&&(Ge.innerHTML=rn),Ca=o(ue),d(H.$$.fragment,ue),Ja=cn(ue,"\nReturns: *NamedTuple* A namedtuple with the following keys:\n- predictions (`np.ndarray`): The predictions on `test_dataset`.\n- label_ids (`np.ndarray`, *optional*): The labels (if the dataset contained some).\n- metrics (`Dict[str, float]`, *optional*): The potential dictionary of metrics (if the dataset contained\n  labels)."),ue.forEach(n),Je.forEach(n),Qe=o(e),d(le.$$.fragment,e),Ke=o(e),G=l(e,"DIV",{class:!0});var ma=v(G);d(se.$$.fragment,ma),Ha=o(ma),Se=l(ma,"P",{"data-svelte-h":!0}),f(Se)!=="svelte-1pjgb0w"&&(Se.innerHTML=ln),ma.forEach(n),ea=o(e),d(pe.$$.fragment,e),aa=o(e),O=l(e,"DIV",{class:!0});var He=v(O);d(me.$$.fragment,He),za=o(He),Ue=l(He,"P",{"data-svelte-h":!0}),f(Ue)!=="svelte-1bpl5s2"&&(Ue.innerHTML=sn),La=o(He),z=l(He,"DIV",{class:!0});var da=v(z);d(de.$$.fragment,da),ja=o(da),qe=l(da,"P",{"data-svelte-h":!0}),f(qe)!=="svelte-1cdlr91"&&(qe.innerHTML=pn),da.forEach(n),He.forEach(n),na=o(e),d(ce.$$.fragment,e),ta=o(e),ze=l(e,"P",{}),v(ze).forEach(n),this.h()},h(){y(b,"name","hf:doc:metadata"),y(b,"content",Nn),y(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(p,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(O,"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,i){a(document.head,b),s(e,w,i),s(e,x,i),s(e,he,i),c(L,e,i),s(e,je,i),c(j,e,i),s(e,De,i),s(e,D,i),s(e,Pe,i),s(e,P,i),s(e,Ee,i),c(S,e,i),s(e,Re,i),s(e,E,i),s(e,We,i),c(R,e,i),s(e,Be,i),s(e,W,i),s(e,Ve,i),c(B,e,i),s(e,Ze,i),s(e,p,i),c(V,p,null),a(p,ca),a(p,be),a(p,ga),a(p,U),c(Z,U,null),a(U,ua),a(U,fe),a(p,_a),a(p,k),c(X,k,null),a(k,ha),a(k,ve),a(k,ba),a(k,ye),a(p,fa),a(p,q),c(Y,q,null),a(q,va),a(q,Te),a(p,ya),a(p,F),c(Q,F,null),a(F,Ta),a(F,we),a(F,wa),a(F,xe),a(p,xa),a(p,I),c(K,I,null),a(I,$a),a(I,$e),a(p,Na),a(p,A),c(ee,A,null),a(A,Oa),a(A,Ne),a(p,ka),a(p,C),c(ae,C,null),a(C,Fa),a(C,Oe),a(p,Ma),a(p,M),c(ne,M,null),a(M,Ga),a(M,ke),a(M,Sa),a(M,Fe),s(e,Xe,i),c(te,e,i),s(e,Ye,i),s(e,$,i),c(oe,$,null),a($,Ua),a($,J),c(ie,J,null),a(J,qa),a(J,Me),a($,Ia),a($,N),c(re,N,null),a(N,Aa),a(N,Ge),a(N,Ca),c(H,N,null),a(N,Ja),s(e,Qe,i),c(le,e,i),s(e,Ke,i),s(e,G,i),c(se,G,null),a(G,Ha),a(G,Se),s(e,ea,i),c(pe,e,i),s(e,aa,i),s(e,O,i),c(me,O,null),a(O,za),a(O,Ue),a(O,La),a(O,z),c(de,z,null),a(z,ja),a(z,qe),s(e,na,i),c(ce,e,i),s(e,ta,i),s(e,ze,i),oa=!0},p(e,[i]){const h={};i&2&&(h.$$scope={dirty:i,ctx:e}),S.$set(h);const ge={};i&2&&(ge.$$scope={dirty:i,ctx:e}),H.$set(ge)},i(e){oa||(g(L.$$.fragment,e),g(j.$$.fragment,e),g(S.$$.fragment,e),g(R.$$.fragment,e),g(B.$$.fragment,e),g(V.$$.fragment,e),g(Z.$$.fragment,e),g(X.$$.fragment,e),g(Y.$$.fragment,e),g(Q.$$.fragment,e),g(K.$$.fragment,e),g(ee.$$.fragment,e),g(ae.$$.fragment,e),g(ne.$$.fragment,e),g(te.$$.fragment,e),g(oe.$$.fragment,e),g(ie.$$.fragment,e),g(re.$$.fragment,e),g(H.$$.fragment,e),g(le.$$.fragment,e),g(se.$$.fragment,e),g(pe.$$.fragment,e),g(me.$$.fragment,e),g(de.$$.fragment,e),g(ce.$$.fragment,e),oa=!0)},o(e){u(L.$$.fragment,e),u(j.$$.fragment,e),u(S.$$.fragment,e),u(R.$$.fragment,e),u(B.$$.fragment,e),u(V.$$.fragment,e),u(Z.$$.fragment,e),u(X.$$.fragment,e),u(Y.$$.fragment,e),u(Q.$$.fragment,e),u(K.$$.fragment,e),u(ee.$$.fragment,e),u(ae.$$.fragment,e),u(ne.$$.fragment,e),u(te.$$.fragment,e),u(oe.$$.fragment,e),u(ie.$$.fragment,e),u(re.$$.fragment,e),u(H.$$.fragment,e),u(le.$$.fragment,e),u(se.$$.fragment,e),u(pe.$$.fragment,e),u(me.$$.fragment,e),u(de.$$.fragment,e),u(ce.$$.fragment,e),oa=!1},d(e){e&&(n(w),n(x),n(he),n(je),n(De),n(D),n(Pe),n(P),n(Ee),n(Re),n(E),n(We),n(Be),n(W),n(Ve),n(Ze),n(p),n(Xe),n(Ye),n($),n(Qe),n(Ke),n(G),n(ea),n(aa),n(O),n(na),n(ta),n(ze)),n(b),_(L,e),_(j,e),_(S,e),_(R,e),_(B,e),_(V),_(Z),_(X),_(Y),_(Q),_(K),_(ee),_(ae),_(ne),_(te,e),_(oe),_(ie),_(re),_(H),_(le,e),_(se),_(pe,e),_(me),_(de),_(ce,e)}}}const Nn='{"title":"GaudiTrainer","local":"gauditrainer","sections":[{"title":"GaudiTrainer","local":"optimum.habana.GaudiTrainer","sections":[],"depth":2},{"title":"GaudiSeq2SeqTrainer","local":"optimum.habana.GaudiSeq2SeqTrainer","sections":[],"depth":2},{"title":"GaudiTrainingArguments","local":"optimum.habana.GaudiTrainingArguments","sections":[],"depth":2},{"title":"GaudiSeq2SeqTrainingArguments","local":"optimum.habana.GaudiSeq2SeqTrainingArguments","sections":[],"depth":2}],"depth":1}';function On(_e){return un(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class qn extends hn{constructor(b){super(),bn(this,b,On,$n,gn,{})}}export{qn as component};
