mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-01 09:07:51 +00:00
[bug] fix get_default_parser in examples (#4764)
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user