Skip to content

Commit

Permalink
fix the failing test (#2237)
Browse files Browse the repository at this point in the history
  • Loading branch information
pacman100 authored Dec 11, 2023
1 parent 9964f90 commit 694f2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/deepspeed/test_deepspeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def test_prepare_deepspeed(self, optim_type, scheduler_type):
model, optimizer, lr_scheduler = accelerator.prepare(model, optimizer, lr_scheduler)
self.assertTrue(
"When using DeepSpeed `accelerate.prepare()` requires you to pass at least one of training or evaluation dataloaders "
"or alternatively set an integer value in `train_micro_batch_size_per_gpu` in the deepspeed config file"
"or alternatively set an integer value in `train_micro_batch_size_per_gpu` in the deepspeed config file "
"or assign integer value to `AcceleratorState().deepspeed_plugin.deepspeed_config['train_micro_batch_size_per_gpu']`."
in str(cm.exception)
)
Expand Down

0 comments on commit 694f2e2

Please sign in to comment.