mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-10 21:40:02 +00:00
[hotfix] quick fixes to make legacy tutorials runnable (#5559)
Co-authored-by: Edenzzzz <wtan45@wisc.edu>
This commit is contained in:
4
examples/tutorial/opt/opt/run_clm.py
Executable file → Normal file
4
examples/tutorial/opt/opt/run_clm.py
Executable file → Normal file
@@ -72,7 +72,7 @@ def get_time_stamp():
|
||||
|
||||
|
||||
def parse_args():
|
||||
parser = colossalai.get_default_parser()
|
||||
parser = colossalai.legacy.get_default_parser()
|
||||
parser.add_argument("-s", "--synthetic", action="store_true")
|
||||
parser.add_argument(
|
||||
"--dataset_name",
|
||||
@@ -289,7 +289,7 @@ class DummyDataloader:
|
||||
def main():
|
||||
args = parse_args()
|
||||
disable_existing_loggers()
|
||||
colossalai.launch_from_torch(config=dict())
|
||||
colossalai.legacy.launch_from_torch(config=dict())
|
||||
logger = get_dist_logger()
|
||||
is_main_process = dist.get_rank() == 0
|
||||
|
||||
|
Reference in New Issue
Block a user