Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Nov 22, 2024
1 parent cc3308a commit f32b35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/nn/transformer/model_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def run_ngpt_with_fsdp2():
dp_config=TransformerDataParallelConfig(name=DataParallelType.fsdp),
)
model = config.build(init_device="meta", max_seq_len=1024)
optim = torch.optim.Adam(model.params())
optim = torch.optim.Adam(model.parameters())

# Take an optimizer step.
model(input_ids=torch.randint(0, 50257, (2, 128))).sum().backward()
Expand Down

0 comments on commit f32b35b

Please sign in to comment.