Skip to content

Commit b05f5ef

Browse files
authored
bugfix: fix core dump when enabling MTP for GLM4.5. (#302)
1 parent 732edd8 commit b05f5ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xllm/core/runtime/speculative_worker_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ std::optional<ForwardOutput> SpeculativeWorkerImpl::step_prefill(
260260
inputs.micro_inputs[i].input_params.embedding_ids.end());
261261
}
262262

263-
if (!inputs.concated_sampling_params.selected_token_idxes.defined()) {
263+
if (inputs.concated_sampling_params.selected_token_idxes.defined()) {
264264
embeddings = embeddings.index_select(
265265
/*dim=*/0, inputs.concated_sampling_params.selected_token_idxes);
266266
CHECK_EQ(embeddings.size(0), output.sample_output.next_tokens.size(0));

0 commit comments

Comments
 (0)