Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ ov::OutputVector ov::pass::GroupQueryAttentionDecomposition::decompose(
auto past_key = node->input_value(3);
auto past_value = node->input_value(4);
auto seqlens_k = node->input_value(5);
auto cos_cache = node->input_value(6);
auto sin_cache = node->input_value(7);
auto total_sequence_length = node->input_value(6);
auto cos_cache = node->input_value(7);
auto sin_cache = node->input_value(8);

// The length of all tokens (past + current) is `seqlens_k` + 1.
// current = Q.shape[2], past = `seqlens_k` + 1 - current
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ ov::OutputVector group_query_attention(const ov::frontend::onnx::Node& node) {
}

for (int i = 3; i < 9; ++i) {
// skip total_sequence_length
if (i == 6)
continue;
ov_op_inputs.push_back(onnx_op_inputs[i]);
}
return std::make_shared<internal::GroupQueryAttention>(ov_op_inputs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ class GroupQueryAttentionDecomposition : public ov::pass::MatcherPass {
auto past_key = node->input_value(3);
auto past_value = node->input_value(4);
auto seqlens_k = node->input_value(5);
auto cos_cache = node->input_value(6);
auto sin_cache = node->input_value(7);
auto total_sequence_length = node->input_value(6);
auto cos_cache = node->input_value(7);
auto sin_cache = node->input_value(8);

// The length of all tokens (past + current) is `seqlens_k` + 1.
// current = Q.shape[2], past = `seqlens_k` + 1 - current
Expand Down
Loading