Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
7e73c128
"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "de62153d49d7ff9f8d990f6d7da75838180750dc"
Unverified
Commit
7e73c128
authored
Oct 13, 2020
by
Tiger
Committed by
GitHub
Oct 13, 2020
Browse files
fixed lots of typos. (#7758)
parent
8cb4ecca
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/transformers/training_args.py
src/transformers/training_args.py
+3
-3
src/transformers/training_args_tf.py
src/transformers/training_args_tf.py
+2
-2
No files found.
src/transformers/training_args.py
View file @
7e73c128
...
@@ -94,7 +94,7 @@ class TrainingArguments:
...
@@ -94,7 +94,7 @@ class TrainingArguments:
logging_dir (:obj:`str`, `optional`):
logging_dir (:obj:`str`, `optional`):
Tensorboard log directory. Will default to `runs/**CURRENT_DATETIME_HOSTNAME**`.
Tensorboard log directory. Will default to `runs/**CURRENT_DATETIME_HOSTNAME**`.
logging_first_step (:obj:`bool`, `optional`, defaults to :obj:`False`):
logging_first_step (:obj:`bool`, `optional`, defaults to :obj:`False`):
Wheter to log and evalu
l
ate the first :obj:`global_step` or not.
Whet
h
er to log and evaluate the first :obj:`global_step` or not.
logging_steps (:obj:`int`, `optional`, defaults to 500):
logging_steps (:obj:`int`, `optional`, defaults to 500):
Number of update steps between two logs.
Number of update steps between two logs.
save_steps (:obj:`int`, `optional`, defaults to 500):
save_steps (:obj:`int`, `optional`, defaults to 500):
...
@@ -114,7 +114,7 @@ class TrainingArguments:
...
@@ -114,7 +114,7 @@ class TrainingArguments:
local_rank (:obj:`int`, `optional`, defaults to -1):
local_rank (:obj:`int`, `optional`, defaults to -1):
During distributed training, the rank of the process.
During distributed training, the rank of the process.
tpu_num_cores (:obj:`int`, `optional`):
tpu_num_cores (:obj:`int`, `optional`):
When training on TPU, the
m
umber of TPU cores (automatically passed by launcher script).
When training on TPU, the
n
umber of TPU cores (automatically passed by launcher script).
debug (:obj:`bool`, `optional`, defaults to :obj:`False`):
debug (:obj:`bool`, `optional`, defaults to :obj:`False`):
When training on TPU, whether to print debug metrics or not.
When training on TPU, whether to print debug metrics or not.
dataloader_drop_last (:obj:`bool`, `optional`, defaults to :obj:`False`):
dataloader_drop_last (:obj:`bool`, `optional`, defaults to :obj:`False`):
...
@@ -159,7 +159,7 @@ class TrainingArguments:
...
@@ -159,7 +159,7 @@ class TrainingArguments:
Will default to :obj:`"loss"` if unspecified and :obj:`load_best_model_at_end=True` (to use the evaluation
Will default to :obj:`"loss"` if unspecified and :obj:`load_best_model_at_end=True` (to use the evaluation
loss).
loss).
If you set this value, :obj:`greater_is_better` will defaut to :obj:`True`. Don't forget to set it to
If you set this value, :obj:`greater_is_better` will defau
l
t to :obj:`True`. Don't forget to set it to
:obj:`False` if your metric is better when lower.
:obj:`False` if your metric is better when lower.
greater_is_better (:obj:`bool`, `optional`)
greater_is_better (:obj:`bool`, `optional`)
Use in conjunction with :obj:`load_best_model_at_end` and :obj:`metric_for_best_model` to specify if better
Use in conjunction with :obj:`load_best_model_at_end` and :obj:`metric_for_best_model` to specify if better
...
...
src/transformers/training_args_tf.py
View file @
7e73c128
...
@@ -66,7 +66,7 @@ class TFTrainingArguments(TrainingArguments):
...
@@ -66,7 +66,7 @@ class TFTrainingArguments(TrainingArguments):
logging_dir (:obj:`str`, `optional`):
logging_dir (:obj:`str`, `optional`):
Tensorboard log directory. Will default to `runs/**CURRENT_DATETIME_HOSTNAME**`.
Tensorboard log directory. Will default to `runs/**CURRENT_DATETIME_HOSTNAME**`.
logging_first_step (:obj:`bool`, `optional`, defaults to :obj:`False`):
logging_first_step (:obj:`bool`, `optional`, defaults to :obj:`False`):
Wheter to log and evalu
l
ate the first :obj:`global_step` or not.
Whet
h
er to log and evaluate the first :obj:`global_step` or not.
logging_steps (:obj:`int`, `optional`, defaults to 500):
logging_steps (:obj:`int`, `optional`, defaults to 500):
Number of update steps between two logs.
Number of update steps between two logs.
save_steps (:obj:`int`, `optional`, defaults to 500):
save_steps (:obj:`int`, `optional`, defaults to 500):
...
@@ -86,7 +86,7 @@ class TFTrainingArguments(TrainingArguments):
...
@@ -86,7 +86,7 @@ class TFTrainingArguments(TrainingArguments):
local_rank (:obj:`int`, `optional`, defaults to -1):
local_rank (:obj:`int`, `optional`, defaults to -1):
During distributed training, the rank of the process.
During distributed training, the rank of the process.
tpu_num_cores (:obj:`int`, `optional`):
tpu_num_cores (:obj:`int`, `optional`):
When training on TPU, the
m
umber of TPU cores (automatically passed by launcher script).
When training on TPU, the
n
umber of TPU cores (automatically passed by launcher script).
debug (:obj:`bool`, `optional`, defaults to :obj:`False`):
debug (:obj:`bool`, `optional`, defaults to :obj:`False`):
Whether to activate the trace to record computation graphs and profiling information or not.
Whether to activate the trace to record computation graphs and profiling information or not.
dataloader_drop_last (:obj:`bool`, `optional`, defaults to :obj:`False`):
dataloader_drop_last (:obj:`bool`, `optional`, defaults to :obj:`False`):
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment