Fix a small error in summarization example (#11762)
This commit is contained in:
@@ -338,7 +338,7 @@ def main():
|
|||||||
# In distributed training, the .from_pretrained methods guarantee that only one local process can concurrently
|
# In distributed training, the .from_pretrained methods guarantee that only one local process can concurrently
|
||||||
# download model & vocab.
|
# download model & vocab.
|
||||||
if args.config_name:
|
if args.config_name:
|
||||||
config = AutoConfig.from_pretrained(args.model_name_or_path)
|
config = AutoConfig.from_pretrained(args.config_name)
|
||||||
elif args.model_name_or_path:
|
elif args.model_name_or_path:
|
||||||
config = AutoConfig.from_pretrained(args.model_name_or_path)
|
config = AutoConfig.from_pretrained(args.model_name_or_path)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user