You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Check inherited from TE https://github.com/ksivaman/TransformerEngine-1/blob/1af7dd88aae5afb45e82148089038e1d1de9675d/transformer_engine/pytorch/tensor/nvfp4_tensor.py#L176-L184
298
+
return (
299
+
len(shape) >=2
300
+
andshape[0] %NVFP4_BLOCK_SCALING_SIZE==0
301
+
andshape[1] %NVFP4_BLOCK_SCALING_SIZE==0
302
+
)
303
+
304
+
returnFalse
282
305
283
306
# Inputs must be on CUDA and
284
307
# input sizes must satisfy size constraints based on the recipe.
# DTensorConverter converts inputs tensors to DTensor and creates DTensor
242
259
# with possible placements based on the input shapes.
243
260
# See - https://github.com/pytorch/pytorch/blob/eaa5d9d3d3dc642832b269b184f0c3ab8c990274/torch/testing/_internal/distributed/_tensor/common_dtensor.py#L521
0 commit comments