Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
88e793f3
Commit
88e793f3
authored
Nov 05, 2018
by
thomwolf
Browse files
fix typos
parent
3914eed5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
README.md
README.md
+14
-14
No files found.
README.md
View file @
88e793f3
...
@@ -24,9 +24,9 @@ Here is an example of the conversion process for a pre-trained `BERT-Base Uncase
...
@@ -24,9 +24,9 @@ Here is an example of the conversion process for a pre-trained `BERT-Base Uncase
export
BERT_BASE_DIR
=
/path/to/bert/uncased_L-12_H-768_A-12
export
BERT_BASE_DIR
=
/path/to/bert/uncased_L-12_H-768_A-12
python convert_tf_checkpoint_to_pytorch.py
\
python convert_tf_checkpoint_to_pytorch.py
\
--tf_checkpoint_path
=
$BERT_BASE_DIR
/bert_model.ckpt
\
--tf_checkpoint_path
$BERT_BASE_DIR
/bert_model.ckpt
\
--bert_config_file
=
$BERT_BASE_DIR
/bert_config.json
\
--bert_config_file
$BERT_BASE_DIR
/bert_config.json
\
--pytorch_dump_path
=
$BERT_BASE_DIR
/pytorch_model.bin
--pytorch_dump_path
$BERT_BASE_DIR
/pytorch_model.bin
```
```
You can download Google's pre-trained models for the conversion
[
here
](
https://github.com/google-research/bert#pre-trained-models
)
.
You can download Google's pre-trained models for the conversion
[
here
](
https://github.com/google-research/bert#pre-trained-models
)
.
...
@@ -178,17 +178,17 @@ The data for SQuAD can be downloaded with the following links and should be save
...
@@ -178,17 +178,17 @@ The data for SQuAD can be downloaded with the following links and should be save
export
SQUAD_DIR
=
/path/to/SQUAD
export
SQUAD_DIR
=
/path/to/SQUAD
python run_squad.py
\
python run_squad.py
\
--vocab_file
=
$BERT_BASE_DIR
/vocab.txt
\
--vocab_file
$BERT_BASE_DIR
/vocab.txt
\
--bert_config_file
=
$BERT_BASE_DIR
/bert_config.json
\
--bert_config_file
$BERT_BASE_DIR
/bert_config.json
\
--init_checkpoint
=
$BERT_PYTORCH_DIR
/pytorch_model.bin
\
--init_checkpoint
$BERT_PYTORCH_DIR
/pytorch_model.bin
\
--do_train
\
--do_train
\
--train_file
=
$SQUAD_DIR
/train-v1.1.json
\
--train_file
$SQUAD_DIR
/train-v1.1.json
\
--do_predict
\
--do_predict
\
--predict_file
=
$SQUAD_DIR
/dev-v1.1.json
\
--predict_file
$SQUAD_DIR
/dev-v1.1.json
\
--train_batch_size
=
12
\
--train_batch_size
12
\
--learning_rate
=
5e-5
\
--learning_rate
5e-5
\
--num_train_epochs
=
2.0
\
--num_train_epochs
2.0
\
--max_seq_length
=
384
\
--max_seq_length
384
\
--doc_stride
=
128
\
--doc_stride
128
\
--output_dir
=
../debug_squad/
--output_dir
../debug_squad/
```
```
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