forked from liuwei1206/LEBERT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_ner.sh
24 lines (24 loc) · 1.29 KB
/
run_ner.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CUDA_VISIBLE_DEVICES=5 python3 -m torch.distributed.launch --master_port 13517 --nproc_per_node=1 \
Trainer.py --do_train --do_eval --do_predict --evaluate_during_training \
--data_dir="data/dataset/NER/msra" \
--output_dir="data/result/NER/msra/lebertcrf" \
--config_name="data/berts/bert/config.json" \
--model_name_or_path="data/berts/bert/pytorch_model.bin" \
--vocab_file="data/berts/bert/vocab.txt" \
--word_vocab_file="data/vocab/tencent_vocab.txt" \
--max_scan_num=1000000 \
--max_word_num=5 \
--label_file="data/dataset/NER/msra/labels.txt" \
--word_embedding="data/embedding/word_embedding.txt" \
--saved_embedding_dir="data/dataset/NER/msra" \
--model_type="LEBertCRF_Token" \
--seed=106524 \
--per_gpu_train_batch_size=16 \
--per_gpu_eval_batch_size=16 \
--learning_rate=1e-5 \
--max_steps=-1 \
--max_seq_length=256 \
--num_train_epochs=20 \
--warmup_steps=190 \
--save_steps=600 \
--logging_steps=600