Unverified Commit d98591a1 authored by zspo's avatar zspo Committed by GitHub
Browse files

[docs] fix some bugs about parameter description (#28806)


Co-authored-by: default avatarp_spozzhang <p_spozzhang@tencent.com>
parent e19c12e0
...@@ -99,7 +99,7 @@ class ModelArguments: ...@@ -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(): ...@@ -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: ...@@ -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: ...@@ -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(): ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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(): ...@@ -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: ...@@ -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: ...@@ -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(): ...@@ -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: ...@@ -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: ...@@ -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(): ...@@ -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: ...@@ -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(): ...@@ -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: ...@@ -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: ...@@ -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."
) )
......
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