Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ROY-SNN opened this issue Apr 7, 2024 · 0 comments

Comments

@ROY-SNN
Copy link

ROY-SNN commented Apr 7, 2024

我在执行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'
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant