Skip to content

Commit

Permalink
add --init_from_ckpt for token cls (PaddlePaddle#1330)
Browse files Browse the repository at this point in the history
  • Loading branch information
joey12300 authored Nov 18, 2021
1 parent 827b18c commit 5b092c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/experimental/faster_ernie/token_cls/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
parser.add_argument("--warmup_proportion", default=0.0, type=float, help="Linear warmup proption over the training process.")
parser.add_argument("--seed", type=int, default=1000, help="random seed for initialization")
parser.add_argument("--device", default="gpu", type=str, choices=["cpu", "gpu", "xpu"] ,help="The device to select to train the model, is must be cpu/gpu/xpu.")
parser.add_argument("--init_from_ckpt", type=str, default=None, help="The path of checkpoint to be loaded.")
parser.add_argument("--use_amp", type=distutils.util.strtobool, default=False, help="Enable mixed precision training.")
parser.add_argument("--scale_loss", type=float, default=2**15, help="The value of scale_loss for fp16.")
args = parser.parse_args()
Expand Down

0 comments on commit 5b092c3

Please sign in to comment.