Skip to content

Commit

Permalink
Fix MiniCPM-V-2_6 running on NPU (#12486)
Browse files Browse the repository at this point in the history
  • Loading branch information
JinBridger authored Dec 3, 2024
1 parent 598603b commit 5fe7667
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def forward(self, x):

@module_optimization
def replace_with_Layernorm(layer, qtype=None, device='NPU',
modules_to_not_convert=[], group_size=0):
modules_to_not_convert=[], group_size=0, imatrix=None):
if isinstance(layer, torch.nn.LayerNorm):
return MinicpmVLayerNorm(
weight=layer.weight.to(torch.float16),
Expand Down

0 comments on commit 5fe7667

Please sign in to comment.