Skip to content

Commit 9dbc554

Browse files
authored
[NF4][FSDP] return contiguous quantization_factor (#298)
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
1 parent 68ce5b8 commit 9dbc554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchao/dtypes/nf4tensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ def double_quantize_scalers(
596596

597597
return (
598598
quantized_scaler_blocks.flatten().to(torch.int8),
599-
quantization_factor.view(n_scaler_blocks),
599+
quantization_factor.view(n_scaler_blocks).contiguous(),
600600
scalers_1_mean,
601601
)
602602

0 commit comments

Comments
 (0)