Skip to content

Commit c513c47

Browse files
author
scavallari
committed
us gesvd as solver
Signed-off-by: scavallari <[email protected]>
1 parent 53a2dde commit c513c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modelopt/torch/quantization/model_calib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ def postprocess(module, name):
10331033
original_device = weight.device
10341034
original_dtype = weight.dtype
10351035
weight_f64 = weight.to(dtype=torch.float64, device=original_device)
1036-
u, s, vt = torch.linalg.svd(weight_f64, full_matrices=False)
1036+
u, s, vt = torch.linalg.svd(weight_f64, driver="gesvd", full_matrices=False)
10371037
if u.shape[1] < lowrank or vt.shape[0] < lowrank:
10381038
warnings.warn(
10391039
"The low-rank dimensions do not match the layer dimensions. "

0 commit comments

Comments
 (0)