Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xinhaoc committed Oct 12, 2023
1 parent d71cf29 commit 5ee8587
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ops/spec_inc_multihead_self_attention.cu
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ void update_kv_cache_kernel(SpecIncMultiHeadSelfAttentionMeta const *m,
BatchConfig::max_sequence_length(),
BeamSearchBatchConfig::MAX_BEAM_WIDTH,
/*root*/ curr_depth == 0,
m->qSize);
m->num_kv_heads * m->kProjSize);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/ops/tree_inc_multihead_self_attention.cu
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void commit_tokens(TreeIncMultiHeadSelfAttentionMeta const *m,
m->num_q_heads,
m->num_kv_heads,
BatchConfig::max_sequence_length(),
m->qSize);
m->num_kv_heads * m->kProjSize);
}
}
Expand Down Expand Up @@ -270,7 +270,7 @@ void compute_attention_kernel(TreeIncMultiHeadSelfAttentionMeta const *m,
m->num_q_heads,
m->num_kv_heads,
BatchConfig::max_sequence_length(),
m->qSize);
m->num_kv_heads * m->kProjSize);
}
// bc->token_last_available_idx[i] + 1;
Expand Down

0 comments on commit 5ee8587

Please sign in to comment.