Skip to content

Commit 48eb64b

Browse files
committed
args
ghstack-source-id: 73725dc Pull Request resolved: #1340
1 parent 9708f36 commit 48eb64b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

distributed/FSDP2/train.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def main(args):
1010
rank = int(os.environ["LOCAL_RANK"])
1111
device = torch.device(f"cuda:{rank}")
1212
torch.cuda.set_device(device)
13-
torch.manual_seed(rank)
13+
torch.manual_seed(args.seed)
1414
vocab_size = 1024
1515
model_args = ModelArgs(
1616
n_layers=3,
@@ -35,10 +35,6 @@ def main(args):
3535

3636
if __name__ == "__main__":
3737
parser = argparse.ArgumentParser(description='PyTorch FSDP2 example')
38-
parser.add_argument('--meta-init', type=int, default=4, metavar='N',
39-
help='input batch size for training (default: 64)')
40-
parser.add_argument('--epochs', type=int, default=2, metavar='N',
41-
help='number of epochs to train (default: 3)')
4238
parser.add_argument('--seed', type=int, default=1, metavar='S',
4339
help='random seed (default: 1)')
4440
args = parser.parse_args()

0 commit comments

Comments
 (0)