Skip to content

Commit

Permalink
GPT. refine args print. (PaddlePaddle#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZHUI authored Jul 7, 2021
1 parent 7be95b5 commit 7c76b2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/language_model/gpt/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import argparse

import paddle
from paddlenlp.utils.log import logger


Expand Down Expand Up @@ -264,4 +265,8 @@ def parse_args(MODEL_CLASSES):
"The attention_probs_dropout_prob should set to 0 for accuracy checking."
)

logger.info('{:20}:{}'.format("paddle commit id", paddle.version.commit))
for arg in vars(args):
logger.info('{:20}:{}'.format(arg, getattr(args, arg)))

return args

0 comments on commit 7c76b2f

Please sign in to comment.