Skip to content

Commit

Permalink
small change (huggingface#18584)
Browse files Browse the repository at this point in the history
  • Loading branch information
younesbelkada authored and oneraghavan committed Sep 26, 2022
1 parent fc58b3b commit 1bcdadd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/trainer/test_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2398,7 +2398,7 @@ def test_bnb_adam8bit_no_bnb(self):

# Pretend that bnb does not exist, even if installed. By setting bnb to None, importing
# bnb will fail even if bnb is installed.
with patch.dict("sys.modules", {"bnb.optim": None}):
with patch.dict("sys.modules", {"bitsandbytes.optim": None}):
with self.assertRaises(ValueError):
Trainer.get_optimizer_cls_and_kwargs(args)

Expand Down

0 comments on commit 1bcdadd

Please sign in to comment.