Skip to content

Commit 590a9be

Browse files
committed
[NPUW] Model builder: name projection MatMuls optimum-style for dynamic LoRA
Append "/MatMul" to the projection MatMul friendly name so GenAI's dynamic-LoRA lora_state_* ids carry "MatMul"; NPUW's ReshapeToStatic only pins the LoRA rank static for those, otherwise NPU compile throws "to_shape was called on a dynamic shape".
1 parent 8379d9b commit 590a9be

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/plugins/intel_npu/tests/functional/behavior/npuw/test_engine/models

src/plugins/intel_npu/tests/functional/behavior/npuw/test_engine/models/model_builder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ ov::Output<ov::Node> make_linear(const ov::Output<ov::Node>& input,
7272
auto weight_output = weight_fn(name + ".weight", ov::Shape{out_features, in_features}, precision);
7373

7474
auto matmul = std::make_shared<ov::opset11::MatMul>(input, weight_output, false, true);
75-
matmul->set_friendly_name(name);
75+
// optimum-style name so GenAI dynamic-LoRA state ids carry "MatMul" (NPUW pins rank static on it).
76+
matmul->set_friendly_name(name + "/MatMul");
7677

7778
ov::Output<ov::Node> result = matmul->output(0);
7879

0 commit comments

Comments
 (0)