Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
1ccd2515
Unverified
Commit
1ccd2515
authored
Aug 12, 2022
by
Younes Belkada
Committed by
GitHub
Aug 12, 2022
Browse files
small change (#18584)
parent
b3ff7c68
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/trainer/test_trainer.py
tests/trainer/test_trainer.py
+1
-1
No files found.
tests/trainer/test_trainer.py
View file @
1ccd2515
...
...
@@ -2398,7 +2398,7 @@ class TrainerOptimizerChoiceTest(unittest.TestCase):
# 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"
,
{
"b
nb
.optim"
:
None
}):
with
patch
.
dict
(
"sys.modules"
,
{
"b
itsandbytes
.optim"
:
None
}):
with
self
.
assertRaises
(
ValueError
):
Trainer
.
get_optimizer_cls_and_kwargs
(
args
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment