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
3d5dea9b
Unverified
Commit
3d5dea9b
authored
Feb 10, 2022
by
Patrick von Platen
Committed by
GitHub
Feb 10, 2022
Browse files
Add example batch size to all commands (#15596)
parent
cb7ed6e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
examples/pytorch/language-modeling/README.md
examples/pytorch/language-modeling/README.md
+12
-0
No files found.
examples/pytorch/language-modeling/README.md
View file @
3d5dea9b
...
@@ -39,6 +39,8 @@ python run_clm.py \
...
@@ -39,6 +39,8 @@ python run_clm.py \
--model_name_or_path
gpt2
\
--model_name_or_path
gpt2
\
--dataset_name
wikitext
\
--dataset_name
wikitext
\
--dataset_config_name
wikitext-2-raw-v1
\
--dataset_config_name
wikitext-2-raw-v1
\
--per_device_train_batch_size
8
\
--per_device_eval_batch_size
8
\
--do_train
\
--do_train
\
--do_eval
\
--do_eval
\
--output_dir
/tmp/test-clm
--output_dir
/tmp/test-clm
...
@@ -54,6 +56,8 @@ python run_clm.py \
...
@@ -54,6 +56,8 @@ python run_clm.py \
--model_name_or_path
gpt2
\
--model_name_or_path
gpt2
\
--train_file
path_to_train_file
\
--train_file
path_to_train_file
\
--validation_file
path_to_validation_file
\
--validation_file
path_to_validation_file
\
--per_device_train_batch_size
8
\
--per_device_eval_batch_size
8
\
--do_train
\
--do_train
\
--do_eval
\
--do_eval
\
--output_dir
/tmp/test-clm
--output_dir
/tmp/test-clm
...
@@ -83,6 +87,8 @@ python run_mlm.py \
...
@@ -83,6 +87,8 @@ python run_mlm.py \
--model_name_or_path
roberta-base
\
--model_name_or_path
roberta-base
\
--dataset_name
wikitext
\
--dataset_name
wikitext
\
--dataset_config_name
wikitext-2-raw-v1
\
--dataset_config_name
wikitext-2-raw-v1
\
--per_device_train_batch_size
8
\
--per_device_eval_batch_size
8
\
--do_train
\
--do_train
\
--do_eval
\
--do_eval
\
--output_dir
/tmp/test-mlm
--output_dir
/tmp/test-mlm
...
@@ -95,6 +101,8 @@ python run_mlm.py \
...
@@ -95,6 +101,8 @@ python run_mlm.py \
--model_name_or_path
roberta-base
\
--model_name_or_path
roberta-base
\
--train_file
path_to_train_file
\
--train_file
path_to_train_file
\
--validation_file
path_to_validation_file
\
--validation_file
path_to_validation_file
\
--per_device_train_batch_size
8
\
--per_device_eval_batch_size
8
\
--do_train
\
--do_train
\
--do_eval
\
--do_eval
\
--output_dir
/tmp/test-mlm
--output_dir
/tmp/test-mlm
...
@@ -139,6 +147,8 @@ python run_plm.py \
...
@@ -139,6 +147,8 @@ python run_plm.py \
--model_name_or_path
=
xlnet-base-cased
\
--model_name_or_path
=
xlnet-base-cased
\
--dataset_name
wikitext
\
--dataset_name
wikitext
\
--dataset_config_name
wikitext-2-raw-v1
\
--dataset_config_name
wikitext-2-raw-v1
\
--per_device_train_batch_size
8
\
--per_device_eval_batch_size
8
\
--do_train
\
--do_train
\
--do_eval
\
--do_eval
\
--output_dir
/tmp/test-plm
--output_dir
/tmp/test-plm
...
@@ -151,6 +161,8 @@ python run_plm.py \
...
@@ -151,6 +161,8 @@ python run_plm.py \
--model_name_or_path
=
xlnet-base-cased
\
--model_name_or_path
=
xlnet-base-cased
\
--train_file
path_to_train_file
\
--train_file
path_to_train_file
\
--validation_file
path_to_validation_file
\
--validation_file
path_to_validation_file
\
--per_device_train_batch_size
8
\
--per_device_eval_batch_size
8
\
--do_train
\
--do_train
\
--do_eval
\
--do_eval
\
--output_dir
/tmp/test-plm
--output_dir
/tmp/test-plm
...
...
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