MCPcopy Create free account
hub / github.com/InternScience/InternAgent / main

Function main

tasks/AutoChem/code/experiment.py:473–486  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

471
472
473def main(args):
474
475 # world_size = args.world_size
476 print('start training')
477
478
479 # deepspeed.launcher.executable.main(train, args=(world_size, args), nprocs=world_size)
480 # mp.spawn(train, args=(world_size, args), nprocs=world_size, join=True)
481 # os.environ['TOKENIZERS_PARALLELISM='] = "true"
482 # os.environ['RANK'] = os.environ['SLURM_PROCID']
483 # os.environ['WORLD_SIZE'] = os.environ['SLURM_NTASKS']
484 # os.environ['MASTER_PORT'] = str(random.randint(1024, 65535))
485 # os.environ['LOCAL_RANK'] = os.environ['SLURM_LOCALID']
486 train(args)
487
488
489if __name__ == '__main__':

Callers 1

experiment.pyFile · 0.70

Calls 1

trainFunction · 0.70

Tested by

no test coverage detected