LEVEN icon indicating copy to clipboard operation
LEVEN copied to clipboard

AttributeError: type object 'BertConfig' has no attribute 'pretrained_config_archive_map'

Open ROY-SNN opened this issue 10 months ago • 0 comments

我在执行Baselines中BERT的时候,运行run_train.sh报错: `$ CUDA_VISIBLE_DEVICES=0,1,2,3 python run_leven.py --data_dir ./data --model_type bert --output_dir ./saved --max_seq_length 512 --per_gpu_train_batch_size 8--per_gpu_eval_batch_size 4--gradient_accumulation_steps 2--learning_rate 5e-5--num_train_epochs 4--save_steps 100--logging_steps 100--seed 100--do_train --do_eval --eval_all_checkpoints --overwrite_output_dir

Traceback (most recent call last): File "/home/lsdx/lys-project/llm/LEVEN-main/Baselines/BERT/run_leven.py", line 50, in ALL_MODELS = sum( ^^^^ File "/home/lsdx/lys-project/llm/LEVEN-main/Baselines/BERT/run_leven.py", line 52, in tuple(conf.pretrained_config_archive_map.keys()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: type object 'BertConfig' has no attribute 'pretrained_config_archive_map' `

ROY-SNN avatar Apr 07 '24 01:04 ROY-SNN