Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#11512: Add sweeps for eltwise sharded ops #16003

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bfilipovicTT
Copy link

@bfilipovicTT bfilipovicTT commented Dec 13, 2024

Ticket

#11512

Problem description

Missing sharded sweeps

What's changed

There are now sweeps for sharded version of ops:
unary: clamp, floor, clone, cbrt
binary: add,subtract, div, div_no_nan

Test REsults and statistics

tests/sweep_framework/sweeps/eltwise/unary/clamp/clamp_sharded.py: 261 fail, 891 pass (77.34375%)
tests/sweep_framework/sweeps/eltwise/unary/cbrt/cbrt_sharded.py: 143 fail, 625 pass (81.38020833333334%)
tests/sweep_framework/sweeps/eltwise/unary/floor/floor_sharded.py: 286 fail, 1250 pass (81.38020833333334%)
tests/sweep_framework/sweeps/eltwise/unary/clone/clone_sharded.py: not yet supported in sharded mode
tests/sweep_framework/sweeps/eltwise/binary/subtract/subtract_sharded.py: 348 fail, 1188 pass (77.34375%)
tests/sweep_framework/sweeps/eltwise/binary/add/add_sharded.py: 348 fail, 1188 pass (77.34375%)

Note that all the tests create memory configurations for tensors with create_sharded_memory_config_ method and all of the tests that fail have arguments use_height_and_width_as_shard_shape=false and strategy=ShardStrategy.BLOCK

tests/sweep_framework/sweeps/eltwise/binary/div/div_sharded.py
and tests/sweep_framework/sweeps/eltwise/binary/div_no_nan/div_no_nan_sharded.py
crash on every run because an assert fails:
TT_FATAL @ ../ttnn/cpp/ttnn/operations/eltwise/unary/device/unary_sharded_program_factory.cpp:45: input_tile_size == output_tile_size
info:
Input and output tile size should be same

I have created an issue about it here:
#16054

@bfilipovicTT bfilipovicTT force-pushed the bfilipovicTT/sharded-sweeps-1 branch from 27fe7a4 to f9364b1 Compare December 13, 2024 14:15
@bfilipovicTT bfilipovicTT force-pushed the bfilipovicTT/sharded-sweeps-1 branch from f9364b1 to ba3b27f Compare December 13, 2024 14:19
@bfilipovicTT bfilipovicTT changed the title #11512: Add sweeps for eltwise sharded ops #11512: Add sweeps for eltwise sharded ops 2 Dec 20, 2024
@bfilipovicTT bfilipovicTT force-pushed the bfilipovicTT/sharded-sweeps-1 branch from 48d9f6b to 3b4770a Compare December 23, 2024 13:11
@bfilipovicTT bfilipovicTT changed the title #11512: Add sweeps for eltwise sharded ops 2 #11512: Add sweeps for eltwise sharded ops Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant