"git@developer.sourcefind.cn:wangsen/mineru.git" did not exist on "4c946d5b2136cf183f2b9be17813e84dd7731c3e"
Unverified Commit 6f1727d8 authored by Gunjan Chhablani's avatar Gunjan Chhablani Committed by GitHub
Browse files

Fix Seq2SeqTrainingArguments docs (#16295)

* Indent Seq2Seq Train Args docs

* Add Args keyword to Seq2Seq Train Args docs
parent 7643b1ca
...@@ -27,12 +27,13 @@ logger = logging.getLogger(__name__) ...@@ -27,12 +27,13 @@ logger = logging.getLogger(__name__)
@add_start_docstrings(TrainingArguments.__doc__) @add_start_docstrings(TrainingArguments.__doc__)
class Seq2SeqTrainingArguments(TrainingArguments): class Seq2SeqTrainingArguments(TrainingArguments):
""" """
Args:
sortish_sampler (`bool`, *optional*, defaults to `False`): sortish_sampler (`bool`, *optional*, defaults to `False`):
Whether to use a *sortish sampler* or not. Only possible if the underlying datasets are *Seq2SeqDataset* for Whether to use a *sortish sampler* or not. Only possible if the underlying datasets are *Seq2SeqDataset*
now but will become generally available in the near future. for now but will become generally available in the near future.
It sorts the inputs according to lengths in order to minimize the padding size, with a bit of randomness for It sorts the inputs according to lengths in order to minimize the padding size, with a bit of randomness
the training set. for the training set.
predict_with_generate (`bool`, *optional*, defaults to `False`): predict_with_generate (`bool`, *optional*, defaults to `False`):
Whether to use generate to calculate generative metrics (ROUGE, BLEU). Whether to use generate to calculate generative metrics (ROUGE, BLEU).
generation_max_length (`int`, *optional*): generation_max_length (`int`, *optional*):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment