Skip to content

Commit c4e5d8e

Browse files
Use larger shape for test
1 parent 42e2d05 commit c4e5d8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_parametrize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def test_moe_parameter_shape(device, dtype):
9595
if device == "hpu" and not is_supported_on_hpu("nf4", dtype):
9696
pytest.skip("This configuration is not supported on HPU.")
9797

98-
param_shape = (8, 64, 32)
98+
param_shape = (8, 64, 64)
9999

100100
# Create module with custom parameter shape directly on target device
101101
class MoEModule(nn.Module):
@@ -364,7 +364,7 @@ def test_parametrization_forward_method():
364364
device = "cpu"
365365

366366
# Create test tensor and manually quantize it
367-
original_tensor = torch.randn(64, 32, dtype=torch.float32, device=device)
367+
original_tensor = torch.randn(64, 64, dtype=torch.float32, device=device)
368368
quantized_data, quant_state = F.quantize_4bit(original_tensor, quant_type="nf4")
369369

370370
# Create parametrization instance

0 commit comments

Comments
 (0)