[s2s]: script to convert pl checkpoints to hf checkpoints (#6911)

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
This commit is contained in:
Sam Shleifer
2020-09-03 09:47:00 -04:00
committed by GitHub
parent b8e4906c97
commit 5a318f075a
3 changed files with 77 additions and 1 deletions

View File

@@ -416,7 +416,7 @@ def create_module(args):
def evaluate_checkpoint(ckpt_path: Path, dest_dir=None):
# TODO(SS): DELETE?
# TODO(SS): DELETE? Better to convert_pl_ckpt_to_hf and run_eval.py
exp_dir = ckpt_path.parent
if dest_dir is None:
dest_dir = exp_dir