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

转换模型后无法读取 #2

Closed
LemonQC opened this issue Jun 19, 2020 · 5 comments
Closed

转换模型后无法读取 #2

LemonQC opened this issue Jun 19, 2020 · 5 comments

Comments

@LemonQC
Copy link

LemonQC commented Jun 19, 2020

Traceback (most recent call last):
File "run_classifier.py", line 522, in
main()
File "run_classifier.py", line 460, in main
config = config_class.from_pretrained(args.config_name if args.config_name else args.model_name_or_path, num_labels=num_labels, finetuning_task=args.task_name)
File "/home/cirlab1/userdir/liujin/NLP/Read_Bert_Code/bert_read_step_to_step/transformers/configuration_utils.py", line 154, in from_pretrained
config = cls.from_json_file(resolved_config_file)
File "/home/cirlab1/userdir/liujin/NLP/Read_Bert_Code/bert_read_step_to_step/transformers/configuration_utils.py", line 189, in from_json_file
return cls.from_dict(json.loads(text))
File "/home/cirlab1/anaconda3/lib/python3.6/json/init.py", line 349, in loads
s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

@DA-southampton
Copy link
Owner

可以使用Python3

@JaneHobi
Copy link

请问是怎么解决这个问题的呢,我也遇到了相同的问题,我的环境是python3.6

@FightAllDays
Copy link

您好,请问您的问题解决了嘛。。。我使用的是3.7 也会出现这个问题。。。

@FightAllDays
Copy link

请问是怎么解决这个问题的呢,我也遇到了相同的问题,我的环境是python3.6

您好,请问您的问题解决了嘛。。。我使用的是3.7 也会出现这个问题。。。

@XJZhuang
Copy link

怎么解决,我也遇到这个问题,我的环境是python3.7

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

5 participants