File size: 536 Bytes
dee113c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CUDA_VISIBLE_DEVICES=0,1 python run.py \
--model_type roberta \
--do_train \
--do_eval \
--eval_all_checkpoints \
--train_file train_codesearchnet_7.json \
--dev_file dev_codesearchnet.json \
--max_seq_length 200 \
--per_gpu_train_batch_size 16 \
--per_gpu_eval_batch_size 16 \
--learning_rate 1e-5 \
--num_train_epochs 3 \
--gradient_accumulation_steps 1 \
--warmup_steps 1000 \
--evaluate_during_training \
--data_dir ../data/CodeSearchNet/ \
--output_dir ../model/model_codesearchnet \
--encoder_name_or_path microsoft/codebert-base