File size: 680 Bytes
dee113c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
LANG=java # set python for py150
DATADIR=../dataset/javaCorpus/token_completion
LITFILE=../dataset/javaCorpus/literals.json
OUTPUTDIR=../model/javaCorpus
PRETRAINDIR=microsoft/CodeGPT-small-java # microsoft/CodeGPT-small-py for py150
LOGFILE=eval_javaCorpus.log
CUDA_VISIBLE_DEVICES=0 python run_lm.py \
--data_dir=$DATADIR \
--lit_file=$LITFILE \
--langs=$LANG \
--output_dir=$OUTPUTDIR \
--pretrain_dir=$OUTPUTDIR \
--log_file=$LOGFILE \
--model_type=gpt2 \
--block_size=512 \
--do_eval \
--per_gpu_eval_batch_size=16 \
--logging_steps=100 \
--seed=42 |