Skip to content

args #1340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

args #1340

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions distributed/FSDP2/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def main(args):
rank = int(os.environ["LOCAL_RANK"])
device = torch.device(f"cuda:{rank}")
torch.cuda.set_device(device)
torch.manual_seed(rank)
torch.manual_seed(args.seed)
vocab_size = 1024
model_args = ModelArgs(
n_layers=3,
Expand All @@ -35,10 +35,6 @@ def main(args):

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