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

Lower aligment requirements for shallow conv2d #17711

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

Conversation

pavlejosipovic
Copy link
Contributor

Conv2d aligns input channels to 32.
Currently for height sharded convs we user to relax this and to set 16 as alignment for input channels

This changes relaxes this further, and user can set 8 as min channel alignment for height shareded convs.
This was enabled by #17122
Auto-shard codepath now uses 8 as channel alignment for shallow convs.
This enables more pytorch traces to pass as it saves on L1 memory usage.

This change was manually tested on BH as well.

Checklist

@pavlejosipovic pavlejosipovic requested a review from a team as a code owner February 7, 2025 10:50
@pavlejosipovic pavlejosipovic force-pushed the pjosipovic/shallow_conv_8 branch from 21a66d9 to 2af90f1 Compare February 7, 2025 10:51
@@ -11,6 +11,7 @@
#include "conv2d_utils.hpp"
#include <tt-metalium/buffer_constants.hpp>
#include "tt-metalium/hal.hpp"
#include "tt-metalium/math.hpp"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this added on purpose?

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.

2 participants