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 |