Skip to content

Commit

Permalink
Fix #146 (#149)
Browse files Browse the repository at this point in the history
* Fix test

* Add init file

* Style
  • Loading branch information
michaelbenayoun authored Jul 24, 2023
1 parent ae2a7b5 commit c102a95
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/exporters/neuron/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
is_neuronx_available,
)
from ...neuron.utils.version_utils import check_compiler_compatibility_for_stable_diffusion
from ...utils import logging, is_diffusers_available
from ...utils import is_diffusers_available, logging
from ...utils.save_utils import maybe_save_preprocessors
from ..error_utils import AtolError, OutputMatchError, ShapeError
from ..tasks import TasksManager
Expand Down
Empty file added tests/distributed/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions tests/distributed/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
)
from optimum.neuron.utils.patching import patch_everywhere

from ..test_utils import is_trainium_test


def test_load_tensor_for_weight():
with TemporaryDirectory() as tmpdirname:
Expand Down Expand Up @@ -59,6 +61,7 @@ def test_load_tensor_for_weight():
assert loaded_sliced_t1.numel() == loaded_sliced_t1.storage().size()


@is_trainium_test
class ParallelUtilsTestCase(unittest.TestCase):
TP_GROUP = 0
TP_SIZE = 8
Expand Down

0 comments on commit c102a95

Please sign in to comment.