We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea29cf6 commit 2e874f7Copy full SHA for 2e874f7
torchrec/distributed/sharding_plan.py
@@ -257,6 +257,7 @@ def _get_block_size_for_cw_shard(
257
f"Dim of {columns} cannot be evenly divided with column wise shard"
258
"dim {column_wise_shard_dim}, overriding block_size to embedding_dim={columns}",
259
UserWarning,
260
+ stacklevel=2,
261
)
262
block_size = columns
263
return block_size
@@ -281,6 +282,7 @@ def _calculate_cw_shard_sizes_and_offsets(
281
282
283
"dim {col_wise_shard_dim}, overriding block_size to embedding_dim={columns}",
284
285
286
287
288
0 commit comments