google-research / albert

ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
Apache License 2.0
3.25k stars 570 forks source link

invalid load key, '\x12' #217

Open liu-x-p opened 4 years ago

liu-x-p commented 4 years ago

Finetuning on squadv2, when it loading eval features, i got some error, and don't know how to solve it, can you help me? 2020-06-21 11-10-00屏

liu-x-p commented 4 years ago

I0621 10:48:47.149592 139987104491264 run_squad_v2.py:338] Loading eval features from ... Traceback (most recent call last): File "/home/omnisky/anaconda3/envs/squad/lib/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/home/omnisky/anaconda3/envs/squad/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/omnisky/mount/NLP/albert/run_squad_v2.py", line 516, in tf.app.run() File "/home/omnisky/anaconda3/envs/squad/lib/python3.6/site-packages/tensorflow_core/python/platform/app.py", line 40, in run _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef) File "/home/omnisky/anaconda3/envs/squad/lib/python3.6/site-packages/absl/app.py", line 299, in run _run_main(main, args) File "/home/omnisky/anaconda3/envs/squad/lib/python3.6/site-packages/absl/app.py", line 250, in _run_main sys.exit(main(argv)) File "/home/omnisky/mount/NLP/albert/run_squad_v2.py", line 340, in main eval_features = pickle.load(fin) _pickle.UnpicklingError: invalid load key, '\x12'.