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
ModelZoo
ResNet50_tensorflow
Commits
20a0716c
Commit
20a0716c
authored
Sep 21, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Sep 21, 2020
Browse files
Fix flags in the instructions.
PiperOrigin-RevId: 332918217
parent
976ba237
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
official/nlp/nhnet/README.md
official/nlp/nhnet/README.md
+2
-4
No files found.
official/nlp/nhnet/README.md
View file @
20a0716c
...
@@ -104,14 +104,13 @@ Please first install TensorFlow 2 and Tensorflow Model Garden following the
...
@@ -104,14 +104,13 @@ Please first install TensorFlow 2 and Tensorflow Model Garden following the
```
shell
```
shell
$
python3 trainer.py
\
$
python3 trainer.py
\
--mode
=
train_and_eval
\
--mode
=
train_and_eval
\
--vocab
=
/path/to/bert_checkpoint/vocab.txt
\
--init_checkpoint
=
/path/to/bert_checkpoint/bert_model.ckpt
\
--init_checkpoint
=
/path/to/bert_checkpoint/bert_model.ckpt
\
--params_override
=
'init_from_bert2bert=false'
\
--params_override
=
'init_from_bert2bert=false'
\
--train_file_pattern
=
$DATA_FOLDER
/processed/train.tfrecord
*
\
--train_file_pattern
=
$DATA_FOLDER
/processed/train.tfrecord
*
\
--model_dir
=
/path/to/output/model
\
--model_dir
=
/path/to/output/model
\
--len_title
=
15
\
--len_title
=
15
\
--len_passage
=
200
\
--len_passage
=
200
\
--
max_num
_articles
=
5
\
--
num_nhnet
_articles
=
5
\
--model_type
=
nhnet
\
--model_type
=
nhnet
\
--train_batch_size
=
16
\
--train_batch_size
=
16
\
--train_steps
=
10000
\
--train_steps
=
10000
\
...
@@ -123,14 +122,13 @@ $ python3 trainer.py \
...
@@ -123,14 +122,13 @@ $ python3 trainer.py \
```
shell
```
shell
$
python3 trainer.py
\
$
python3 trainer.py
\
--mode
=
train_and_eval
\
--mode
=
train_and_eval
\
--vocab
=
/path/to/bert_checkpoint/vocab.txt
\
--init_checkpoint
=
/path/to/bert_checkpoint/bert_model.ckpt
\
--init_checkpoint
=
/path/to/bert_checkpoint/bert_model.ckpt
\
--params_override
=
'init_from_bert2bert=false'
\
--params_override
=
'init_from_bert2bert=false'
\
--train_file_pattern
=
$DATA_FOLDER
/processed/train.tfrecord
*
\
--train_file_pattern
=
$DATA_FOLDER
/processed/train.tfrecord
*
\
--model_dir
=
/path/to/output/model
\
--model_dir
=
/path/to/output/model
\
--len_title
=
15
\
--len_title
=
15
\
--len_passage
=
200
\
--len_passage
=
200
\
--
max_num
_articles
=
5
\
--
num_nhnet
_articles
=
5
\
--model_type
=
nhnet
\
--model_type
=
nhnet
\
--train_batch_size
=
1024
\
--train_batch_size
=
1024
\
--train_steps
=
10000
\
--train_steps
=
10000
\
...
...
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