mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 03:01:07 +06:00
small change (#18584)
This commit is contained in:
parent
b3ff7c680c
commit
1ccd2515ed
@ -2398,7 +2398,7 @@ class TrainerOptimizerChoiceTest(unittest.TestCase):
|
|||||||
|
|
||||||
# Pretend that bnb does not exist, even if installed. By setting bnb to None, importing
|
# Pretend that bnb does not exist, even if installed. By setting bnb to None, importing
|
||||||
# bnb will fail even if bnb is installed.
|
# 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):
|
with self.assertRaises(ValueError):
|
||||||
Trainer.get_optimizer_cls_and_kwargs(args)
|
Trainer.get_optimizer_cls_and_kwargs(args)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user