Skip to content

Commit

Permalink
fix: SSM don't use cudaGraph
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzhuofu committed Jul 5, 2024
1 parent 5262af7 commit dfe4bec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ops/fused.cu
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,8 @@ __host__ void
//graph_params.Print();
// int shard_id = task->index_point.point_data[0];

bool use_cuda_graph = (bc->prompt_phase == false && bc->get_mode() == TREE_SEARCH_MODE);
// bool use_cuda_graph = (bc->prompt_phase == false && bc->get_mode() == TREE_SEARCH_MODE);
bool use_cuda_graph = false;
bool captured = false;

if(use_cuda_graph && metas->graph_collections.count(graph_params) != 0) {
Expand Down Expand Up @@ -961,7 +962,7 @@ __host__ void
case OP_SPEC_INC_MULTIHEAD_SELF_ATTENTION: {
assert(fused->op_num_inputs[op] == 1);
assert(fused->op_num_outputs[op] == 1);
SpecIncMultiHeadSelfAttentionMeta const *m =
SpecIncMultiHeadSelfAttentionMeta *m =
(SpecIncMultiHeadSelfAttentionMeta *)metas->meta[op];
// TreeSearchBatchConfig const *search_bc =
// (TreeSearchBatchConfig *)task->args;
Expand Down

0 comments on commit dfe4bec

Please sign in to comment.