File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ bert-dataset -d data/corpus.small -v data/corpus.small.vocab -o data/dataset.sma
55
55
56
56
### 3. Train your own BERT model
57
57
``` shell
58
- bert -d data/dataset.small -v data/corpus.small.vocab -o output/
58
+ bert -d data/dataset.small -v data/corpus.small.vocab -o output/bert.model
59
59
```
60
60
61
61
## Language Model Pre-training
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ def train():
13
13
parser .add_argument ("-d" , "--train_dataset" , required = True , type = str )
14
14
parser .add_argument ("-t" , "--test_dataset" , type = str , default = None )
15
15
parser .add_argument ("-v" , "--vocab_path" , required = True , type = str )
16
- parser .add_argument ("-o" , "--output_dir " , required = True , type = str )
16
+ parser .add_argument ("-o" , "--output_path " , required = True , type = str )
17
17
18
18
parser .add_argument ("-hs" , "--hidden" , type = int , default = 256 )
19
19
parser .add_argument ("-n" , "--layers" , type = int , default = 8 )
@@ -61,7 +61,7 @@ def train():
61
61
print ("Training Start" )
62
62
for epoch in range (args .epochs ):
63
63
trainer .train (epoch )
64
- trainer .save (args .output_dir , epoch )
64
+ trainer .save (args .output_path , epoch )
65
65
66
66
if test_data_loader is not None :
67
67
trainer .test (epoch )
You can’t perform that action at this time.
0 commit comments