[bug] fix get_default_parser in examples (#4764)

This commit is contained in:
Baizhou Zhang
2023-09-21 10:42:25 +08:00
committed by GitHub
parent c0a033700c
commit df66741f77
14 changed files with 36 additions and 26 deletions

View File

@@ -1,3 +1,4 @@
import argparse
import contextlib
import os
@@ -29,7 +30,7 @@ VOCAB_SIZE = 50257
def main():
parser = colossalai.get_default_parser()
parser = argparse.ArgumentParser()
parser.add_argument("--from_torch", default=False, action="store_true")
parser.add_argument("--use_dummy_dataset", default=False, action="store_true")
args = parser.parse_args()