Skip to content

Commit 2ee8ba4

Browse files
committed
lint fixes
1 parent 6f8baef commit 2ee8ba4

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

.github/workflows/ci-amdsharktank.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,21 +186,21 @@ jobs:
186186
--iree-hal-target-device=hip \
187187
--iree-hip-target=gfx942 \
188188
--iree-device=hip://0 \
189-
--ignore=sharktank/tests/layers \
189+
--ignore=amdsharktank/tests/layers \
190190
--device=cuda:0
191191
192-
- name: Run sharktank layers tests
192+
- name: Run amdsharktank layers tests
193193
if: ${{ !cancelled() }}
194194
run: |
195-
pytest sharktank/tests/layers \
195+
pytest amdsharktank/tests/layers \
196196
--durations=10 \
197197
--capture=no \
198198
--log-cli-level=info \
199199
-v \
200200
--iree-hal-target-device=hip \
201201
--iree-hip-target=gfx942 \
202202
--iree-device=hip://0 \
203-
--parameters=/shark-dev/ossci-models/llama_3_1/405b/fp4/fp4_preshuffled_2025_09_12.irpa \
203+
--parameters=/amdshark-dev/ossci-models/llama_3_1/405b/fp4/fp4_preshuffled_2025_09_12.irpa \
204204
--device=cuda:0 \
205205
-n 4
206206

amdsharktank/amdsharktank/utils/export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,4 +327,4 @@ def _(module, *fn_args):
327327
export_output = aot.export(fxb, import_symbolic_shape_expressions=True)
328328
export_output.save_mlir(mlir_path)
329329

330-
return export_output
330+
return export_output

amdsharktank/amdsharktank/utils/iree.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@
3030
torch_tree_flatten,
3131
)
3232
from amdsharktank.utils import verify_exactly_one_is_not_none
33-
from amdsharktank.utils.export import export_torch_module_to_mlir_file, get_torch_eager_output, _as_tuple
33+
from amdsharktank.utils.export import (
34+
export_torch_module_to_mlir_file,
35+
get_torch_eager_output,
36+
_as_tuple,
37+
)
3438
from .tree import Tree
3539
from iree.runtime import FileHandle
3640
import iree.runtime

amdsharktank/tests/layers/rotary_embedding_hf_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
)
2727
from amdsharktank import ops
2828
from amdsharktank.utils.logging import get_logger
29-
from amdsharktank.utils.testing import TempDirTestBase, assert_tensor_close, is_hip_condition
29+
from amdsharktank.utils.testing import (
30+
TempDirTestBase,
31+
assert_tensor_close,
32+
is_hip_condition,
33+
)
3034
import iree.compiler
3135
from iree.turbine.aot import (
3236
FxProgramsBuilder,

0 commit comments

Comments
 (0)