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
...@@ -132,7 +132,7 @@ class ModelArguments: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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 ...@@ -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
......
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