Move block_sparse_layout to prototype#3276
Merged
jainapurva merged 16 commits intomainfrom Nov 5, 2025
Merged
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/3276
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 5 PendingAs of commit 3c6d09d with merge base 315e9b4 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Removed unused exports from block_sparse_layout.py
…orts - Move torchao/prototype/sparsity/block_sparse_layout.py to torchao/prototype/dtypes/uintx/block_sparse_layout.py - Update all imports to use 'from torchao.prototype.dtypes import BlockSparseLayout' - Update deprecation warning message - Create torchao/prototype/dtypes/__init__.py and torchao/prototype/dtypes/uintx/__init__.py - Remove BlockSparseLayout from torchao/prototype/sparsity/__init__.py - Update documentation
Removed redundant imports of block sparse layout functions.
This was referenced Nov 3, 2025
312bf4c to
8ebbb9c
Compare
vkuzo
reviewed
Nov 5, 2025
| from torchao.dtypes.utils import ( | ||
| Layout, | ||
| PlainLayout, | ||
| warnings.warn( |
Contributor
There was a problem hiding this comment.
also, I'd remove torchao v0.16.0 and just say "in a future release of torchao", just in case the work gets delayed
78f5e4c to
1a75689
Compare
1a75689 to
9bff162
Compare
namgyu-youn
pushed a commit
to namgyu-youn/ao
that referenced
this pull request
Nov 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request moves
BlockSparseLayoutand its implementation fromtorchao.dtypes.uintx.block_sparse_layouttotorchao.prototype.dtypes.uintx.block_sparse_layout, and exposed it viatorchao.prototype.dtypeswhile maintaining BC attorchao.prototype.dtypes.uintxwith a deprecation warning for torchao v0.16.0.Updates API documentation to reflect the changes
Reference Issue: #2752