You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wandb: WARNING W&B installed but not logged in. Run wandb login or set the WANDB_API_KEY env variable.
Calling BertTokenizer.from_pretrained() with the path to a single file or url is deprecated
Traceback (most recent call last):
File "generate_title.py", line 210, in
generate_title_GPT2("澳大利亚新闻直播:拜登说普京在乌克兰“背靠墙”;中国东方航空公司坠机调查不排除“犯规”")
File "generate_title.py", line 198, in generate_title_GPT2
model = GPT2LMHeadModel.from_pretrained(args.model_path)
File "/home/user/anaconda3/envs/image_text_match_tf_1.15/lib/python3.6/site-packages/transformers/modeling_utils.py", line 672, in from_pretrained
model = cls(config, *model_args, **model_kwargs)
File "/home/user/wjy/Jiagu-master/标题生成/GPT2-NewsTitle-main/model.py", line 26, in init
super(GPT2LMHeadModel).init(config)
TypeError: super() argument 1 must be type, not GPT2Config
The text was updated successfully, but these errors were encountered:
wandb: WARNING W&B installed but not logged in. Run
wandb login
or set the WANDB_API_KEY env variable.Calling BertTokenizer.from_pretrained() with the path to a single file or url is deprecated
Traceback (most recent call last):
File "generate_title.py", line 210, in
generate_title_GPT2("澳大利亚新闻直播:拜登说普京在乌克兰“背靠墙”;中国东方航空公司坠机调查不排除“犯规”")
File "generate_title.py", line 198, in generate_title_GPT2
model = GPT2LMHeadModel.from_pretrained(args.model_path)
File "/home/user/anaconda3/envs/image_text_match_tf_1.15/lib/python3.6/site-packages/transformers/modeling_utils.py", line 672, in from_pretrained
model = cls(config, *model_args, **model_kwargs)
File "/home/user/wjy/Jiagu-master/标题生成/GPT2-NewsTitle-main/model.py", line 26, in init
super(GPT2LMHeadModel).init(config)
TypeError: super() argument 1 must be type, not GPT2Config
The text was updated successfully, but these errors were encountered: