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
045afa3e
Unverified
Commit
045afa3e
authored
Mar 24, 2023
by
YuliangLiu0306
Committed by
GitHub
Mar 24, 2023
Browse files
[hotfix] skip torchaudio tracing test (#3211)
* [hotfix] skip torchaudio tracing test * fix lazy init test issue
parent
78fd31f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
tests/test_fx/test_tracer/test_torchaudio_model/test_torchaudio_model.py
...est_tracer/test_torchaudio_model/test_torchaudio_model.py
+3
-1
tests/test_utils/test_lazy_init/test_distribute.py
tests/test_utils/test_lazy_init/test_distribute.py
+5
-1
No files found.
tests/test_fx/test_tracer/test_torchaudio_model/test_torchaudio_model.py
View file @
045afa3e
...
...
@@ -6,7 +6,9 @@ from torchaudio_utils import trace_and_compare
from
tests.kit.model_zoo
import
model_zoo
@
pytest
.
mark
.
skipif
(
version
.
parse
(
torch
.
__version__
)
<
version
.
parse
(
'1.12.0'
),
reason
=
'torch version < 12'
)
# We cannot handle the tensors constructed with constant during forward, such as ``torch.empty(0).to(device=Proxy.device)``
# TODO: We could handle this case by hijacking torch.Tensor.to function.
@
pytest
.
mark
.
skip
def
test_torchaudio_models
():
torch
.
backends
.
cudnn
.
deterministic
=
True
...
...
tests/test_utils/test_lazy_init/test_distribute.py
View file @
045afa3e
...
...
@@ -13,7 +13,11 @@ from colossalai.tensor.d_tensor.sharding_spec import ShardingSpec
from
colossalai.testing
import
parameterize
,
rerun_if_address_is_in_use
from
colossalai.utils
import
free_port
from
colossalai.utils.common
import
print_rank_0
from
colossalai.utils.model.experimental
import
LazyInitContext
,
LazyTensor
,
_MyTensor
try
:
from
colossalai.utils.model.experimental
import
LazyInitContext
,
LazyTensor
,
_MyTensor
except
:
pass
from
tests.kit.model_zoo
import
model_zoo
# from utils import assert_dist_model_equal, set_seed
...
...
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