Skip to content

Commit

Permalink
Merge branch 'master' into streaming_stop_strings
Browse files Browse the repository at this point in the history
  • Loading branch information
iefode authored Dec 20, 2024
2 parents c7bc7b8 + 9e612b8 commit e7f8883
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cpp/src/llm_pipeline_static.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,11 @@ EncodedResults StaticLLMPipeline::generate(
m_kvcache_request.get_tensor(output_name).copy_to(kvcache_in_slice);
}
}

if (streamer_ptr) {
streamer_ptr->end();
}

auto stop_time = std::chrono::steady_clock::now();
// If is called without tokenization then that stat will not be reported.
auto& metrics = results.perf_metrics;
Expand Down

0 comments on commit e7f8883

Please sign in to comment.