Skip to content

Commit

Permalink
revery
Browse files Browse the repository at this point in the history
  • Loading branch information
v-chen_data committed Nov 30, 2024
1 parent 7b69fc3 commit 868a71b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/trainer/test_fsdp_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ def get_trainer(
val_metrics=val_metrics,
)
model.module.to(model_init_device)
dataset = RandomClassificationDataset(shape=(num_features,), num_classes=num_classes, size=8)
dataset = RandomClassificationDataset(shape=(num_features,), num_classes=num_classes, size=128)
dataloader = DataLoader(
dataset,
sampler=dist.get_sampler(dataset),
batch_size=2,
batch_size=8,
)
if optimizer == 'adam':
optim = torch.optim.Adam(params=model.parameters())
Expand Down

0 comments on commit 868a71b

Please sign in to comment.