Move cutlass_int4_packed_layout to prototype#3277
Conversation
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
- Moved cutlass_int4_packed_layout.py from torchao/dtypes/uintx/ to torchao/prototype/dtypes/uintx/ - Created torchao/prototype/dtypes/__init__.py and uintx/__init__.py to export CutlassInt4PackedLayout - Replaced old file with backward compatibility stub that imports from new location - Added deprecation warning for old import path (to be removed in v0.16.0) - Updated torchao/dtypes/__init__.py to re-export from prototype for backward compatibility - Updated internal imports in affine_quantized_tensor_ops.py to use new prototype location - Removed CutlassInt4PackedLayout from torchao/dtypes/uintx/__init__.py to avoid circular imports - Updated documentation to move CutlassInt4PackedLayout to Prototype section All import paths work: - New: from torchao.prototype.dtypes import CutlassInt4PackedLayout - Backward compat: from torchao.dtypes import CutlassInt4PackedLayout - Deprecated: from torchao.dtypes.uintx.cutlass_int4_packed_layout import CutlassInt4PackedLayout
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/3277
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 5 PendingAs of commit 531b07b with merge base 42f28f7 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Removed redundant imports of block sparse layout functions.
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
Removed unused import for CutlassInt4PackedLayout.
Removed __all__ exports from cutlass_int4_packed_layout.py
6c03ed4 to
8c18d4d
Compare
| FloatxTensor | ||
| FloatxTensorCoreLayout | ||
| MarlinSparseLayout | ||
| BlockSparseLayout |
There was a problem hiding this comment.
looks like it's both? maybe try to split would be better, or update the summary to say it's two things
There was a problem hiding this comment.
It's in two separate PRs:
Pr for BlockSparseLayout: #3276
This one is for CutlassInt4PackedLayout
…utlass_int4_packed_layout
| ) | ||
| from torchao.dtypes.uintx.plain_layout import ( | ||
| _aqt_is_int8, | ||
| warnings.warn( |
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
There was a problem hiding this comment.
I would still prefer adding a deprecation timeline, maybe we can add it in the issue description
There was a problem hiding this comment.
yep, add it to the issue! that way it can be modified without a code change.
8ebbb9c to
9cce063
Compare
9cce063 to
78f5e4c
Compare
…utlass_int4_packed_layout
78f5e4c to
1a75689
Compare
…utlass_int4_packed_layout
1a75689 to
9bff162
Compare
Updated deprecation warning message to indicate future removal.
This pull request moves
CutlassInt4PackedLayoutand its implementation fromtorchao/dtypes/uintx/cutlass_int4_packed_layout.pytotorchao/prototype/dtypes/uintx/cutlass_int4_packed_layout.py, 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