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
fairscale
Commits
775a0f06
Unverified
Commit
775a0f06
authored
Jun 28, 2022
by
Min Xu
Committed by
GitHub
Jun 28, 2022
Browse files
[test] disable a flaky test (#1020)
Co-authored-by:
Min Xu
<
min.xu.public@gmail.com
>
parent
a5116ecd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
fair_dev/testing/testing.py
fair_dev/testing/testing.py
+4
-0
tests/experimental/nn/test_multiprocess_pipe.py
tests/experimental/nn/test_multiprocess_pipe.py
+2
-1
No files found.
fair_dev/testing/testing.py
View file @
775a0f06
...
...
@@ -81,6 +81,10 @@ skip_if_py39_no_cuda = pytest.mark.skipif(
reason
=
"Python3.9 without CUDA is skipped"
,
)
skip_due_to_flakyness
=
pytest
.
mark
.
skip
(
reason
=
"Flaky test to be fixed or removed"
,
)
available_devices
=
[
"cpu"
]
if
torch
.
cuda
.
is_available
():
available_devices
.
append
(
"cuda"
)
...
...
tests/experimental/nn/test_multiprocess_pipe.py
View file @
775a0f06
...
...
@@ -20,7 +20,7 @@ import torch.distributed.rpc as rpc
import
torch.multiprocessing
as
mp
import
torch.nn
as
nn
from
fair_dev.testing.testing
import
skip_if_single_gpu
from
fair_dev.testing.testing
import
skip_due_to_flakyness
,
skip_if_single_gpu
from
fairscale.experimental.nn.distributed_pipeline
import
DistributedLoss
,
DistributedPipeline
,
PipelineModulesGraph
from
fairscale.internal
import
torch_version
...
...
@@ -113,6 +113,7 @@ def create_multiple_layers():
@
rpc_test
(
world_size
=
2
)
@
pytest
.
mark
.
parametrize
(
"devices"
,
DEVICES
)
@
skip_if_single_gpu
@
skip_due_to_flakyness
def
create_multiple_workers
(
devices
):
model
=
[
RemoteModuleParams
(
nn
.
Linear
,
(
4
,
4
),
{}),
RemoteModuleParams
(
nn
.
ReLU
,
(),
{})]
pipe
=
create_sequence_pipeline
(
model
,
balance
=
[
1
,
1
],
chunks
=
1
,
devices
=
devices
[:
2
])
...
...
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