Morizeyao/GPT2-Chinese

_pickle.UnpicklingError: invalid load key, '{'.

SeanChangHC opened this issue · 1 comments

In eval.py magic_number = pickle_module.load(f, **pickle_load_args)
I can't load the config.
I use my own trained model config and pretrained model given by gpt2通用中文模型.
command:
python eval.py --model_config=D:\Sean\GPT2-Chinese-old_gpt_2_chinese_before_2021_4_22\model_6-30\model_epoch50\config.json --raw_data_path=D:\Sean\trainjson\train6.json --num_pieces=30 --pretrained_model=D:\Sean\gpt2通用中文模型\config.json --raw
Can anyone know why it is?

Solved!

Can't use gpt2通用中文模型.
It must be one of gpt2, gpt2-medium, gpt2-large, distilgpt2.