format line

This commit is contained in:
yangapku
2023-08-24 14:14:30 +08:00
parent 1b6758e157
commit 5c49d35a7e

View File

@@ -202,7 +202,7 @@ def _get_args():
if __name__ == "__main__": if __name__ == "__main__":
args = _get_args() args = _get_args()
tokenizer = AutoTokenizer.from_pretrained( tokenizer = AutoTokenizer.from_pretrained(
args.checkpoint_path, trust_remote_code=True, resume_download=True, args.checkpoint_path, trust_remote_code=True, resume_download=True,
) )
@@ -218,7 +218,7 @@ if __name__ == "__main__":
trust_remote_code=True, trust_remote_code=True,
resume_download=True, resume_download=True,
).eval() ).eval()
model.generation_config = GenerationConfig.from_pretrained( model.generation_config = GenerationConfig.from_pretrained(
args.checkpoint_path, trust_remote_code=True, resume_download=True, args.checkpoint_path, trust_remote_code=True, resume_download=True,
) )