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
OpenDAS
ColossalAI
Commits
2b8cddd4
Commit
2b8cddd4
authored
Mar 09, 2022
by
ver217
Committed by
Frank Lee
Mar 11, 2022
Browse files
skip bert in test engine
parent
d41a9f12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
tests/test_engine/test_engine.py
tests/test_engine/test_engine.py
+5
-2
No files found.
tests/test_engine/test_engine.py
View file @
2b8cddd4
...
...
@@ -4,9 +4,9 @@ import colossalai
import
pytest
import
torch.multiprocessing
as
mp
from
colossalai.amp
import
AMP_TYPE
from
colossalai.context
import
Config
from
colossalai.core
import
global_context
as
gpc
from
colossalai.utils
import
free_port
from
colossalai.context
import
Config
from
tests.components_to_test.registry
import
non_distributed_component_funcs
CONFIG
=
dict
(
parallel
=
dict
(
pipeline
=
dict
(
size
=
1
),
tensor
=
dict
(
size
=
1
,
mode
=
None
)),
...
...
@@ -15,7 +15,10 @@ CONFIG = dict(parallel=dict(pipeline=dict(size=1), tensor=dict(size=1, mode=None
def
run_train
():
for
get_components_func
in
non_distributed_component_funcs
:
test_models
=
[
'repeated_computed_layers'
,
'resnet18'
,
'repeated_computed_layers'
]
# FIXME: test bert
for
model_name
in
test_models
:
get_components_func
=
non_distributed_component_funcs
.
get_callable
(
model_name
)
model_builder
,
train_dataloader
,
_
,
optimizer_builder
,
criterion
=
get_components_func
()
model
=
model_builder
(
checkpoint
=
False
)
...
...
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