[docs] fix some bugs about parameter description (#28806)
Co-authored-by: p_spozzhang <p_spozzhang@tencent.com>
This commit is contained in:
@@ -202,7 +202,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ def parse_args():
|
|||||||
type=bool,
|
type=bool,
|
||||||
default=False,
|
default=False,
|
||||||
help=(
|
help=(
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ def parse_args():
|
|||||||
type=bool,
|
type=bool,
|
||||||
default=False,
|
default=False,
|
||||||
help=(
|
help=(
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ def parse_args():
|
|||||||
type=bool,
|
type=bool,
|
||||||
default=False,
|
default=False,
|
||||||
help=(
|
help=(
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ def parse_args():
|
|||||||
type=bool,
|
type=bool,
|
||||||
default=False,
|
default=False,
|
||||||
help=(
|
help=(
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ def parse_args():
|
|||||||
type=bool,
|
type=bool,
|
||||||
default=False,
|
default=False,
|
||||||
help=(
|
help=(
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ def parse_args():
|
|||||||
type=bool,
|
type=bool,
|
||||||
default=False,
|
default=False,
|
||||||
help=(
|
help=(
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ def parse_args():
|
|||||||
type=bool,
|
type=bool,
|
||||||
default=False,
|
default=False,
|
||||||
help=(
|
help=(
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ class DataTrainingArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ class DataTrainingArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ def parse_args():
|
|||||||
type=bool,
|
type=bool,
|
||||||
default=False,
|
default=False,
|
||||||
help=(
|
help=(
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ def parse_args():
|
|||||||
type=bool,
|
type=bool,
|
||||||
default=False,
|
default=False,
|
||||||
help=(
|
help=(
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ def parse_args():
|
|||||||
type=bool,
|
type=bool,
|
||||||
default=False,
|
default=False,
|
||||||
help=(
|
help=(
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ def parse_args():
|
|||||||
type=bool,
|
type=bool,
|
||||||
default=False,
|
default=False,
|
||||||
help=(
|
help=(
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ class ModelArguments:
|
|||||||
default=False,
|
default=False,
|
||||||
metadata={
|
metadata={
|
||||||
"help": (
|
"help": (
|
||||||
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option"
|
"Whether or not to allow for custom models defined on the Hub in their own modeling files. This option "
|
||||||
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
"should only be set to `True` for repositories you trust and in which you have read the code, as it will "
|
||||||
"execute code present on the Hub on your local machine."
|
"execute code present on the Hub on your local machine."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -373,6 +373,7 @@ def speed_metrics(split, start_time, num_samples=None, num_steps=None, num_token
|
|||||||
- split: name to prefix metric (like train, eval, test...)
|
- split: name to prefix metric (like train, eval, test...)
|
||||||
- start_time: operation start time
|
- start_time: operation start time
|
||||||
- num_samples: number of samples processed
|
- num_samples: number of samples processed
|
||||||
|
- num_steps: number of steps processed
|
||||||
- num_tokens: number of tokens processed
|
- num_tokens: number of tokens processed
|
||||||
"""
|
"""
|
||||||
runtime = time.time() - start_time
|
runtime = time.time() - start_time
|
||||||
|
|||||||
Reference in New Issue
Block a user