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
63306263
Unverified
Commit
63306263
authored
Feb 23, 2023
by
Stas Bekman
Committed by
GitHub
Feb 23, 2023
Browse files
[deepspeed tests] fix issues introduced by #21700 (#21769)
* [deepspeed tests] fix issues introduced by #21700 * fix * fix
parent
04d90ac4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
tests/deepspeed/test_deepspeed.py
tests/deepspeed/test_deepspeed.py
+5
-1
No files found.
tests/deepspeed/test_deepspeed.py
View file @
63306263
...
...
@@ -19,10 +19,12 @@ import json
import
os
import
unittest
from
copy
import
deepcopy
from
functools
import
partial
import
datasets
from
parameterized
import
parameterized
import
tests.trainer.test_trainer
from
tests.trainer.test_trainer
import
TrainerIntegrationCommon
# noqa
from
transformers
import
AutoModel
,
TrainingArguments
,
is_torch_available
,
logging
from
transformers.deepspeed
import
HfDeepSpeedConfig
,
is_deepspeed_available
,
unset_hf_deepspeed_config
...
...
@@ -49,9 +51,11 @@ if is_torch_available():
from
tests.trainer.test_trainer
import
(
# noqa
RegressionModelConfig
,
RegressionPreTrainedModel
,
get_regression_trainer
,
)
# hack to restore original logging level pre #21700
get_regression_trainer
=
partial
(
tests
.
trainer
.
test_trainer
.
get_regression_trainer
,
log_level
=
"info"
)
set_seed
(
42
)
...
...
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