Skip to content

Commit 68de6c1

Browse files
bug fix
Signed-off-by: cliu-us <[email protected]>
1 parent 774e68e commit 68de6c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fms_mo/custom_ext_kernels/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ def lower_qmodel_triton(
938938
else:
939939
new_lin = LinearFPxAcc.from_nn(
940940
m,
941-
trun_bits=max_acc_bits,
941+
trun_bits=num_lsb_to_truncate,
942942
chunk_size=chunk_size,
943943
dynamic_fp8=linFP_dyn_code,
944944
clamp_acc_to_dl16=clamp_acc_to_dl16,

fms_mo/modules/linear.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2047,7 +2047,7 @@ def from_nn(cls, nnlin, trun_bits=0, **kwargs):
20472047
nnlin.in_features,
20482048
nnlin.out_features,
20492049
bias=nnlin.bias is not None,
2050-
device=target_device,
2050+
device="meta",
20512051
)
20522052

20532053
lin24acc.weight = nnlin.weight

0 commit comments

Comments
 (0)