()
| 39 | |
| 40 | |
| 41 | def parse_args(): |
| 42 | parser = argparse.ArgumentParser('', add_help=False) |
| 43 | parser.add_argument('--path', help='path of folder to checkpoints', |
| 44 | type=str) |
| 45 | parser.add_argument('--newtoken', help='number of new tokens in the checkpoint', default=1, |
| 46 | type=int) |
| 47 | return parser.parse_args() |
| 48 | |
| 49 | |
| 50 | if __name__ == "__main__": |