Skip to content

Commit

Permalink
Handle rng seed
Browse files Browse the repository at this point in the history
  • Loading branch information
TolyaTalamanov committed Dec 24, 2024
1 parent e01ccdf commit 188575d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cpp/src/llm_pipeline_static.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@ EncodedResults StaticLLMPipeline::generate(
input_ids_vec.reserve(input_ids.get_size());
std::copy_n(input_ids.data<int64_t>(), input_ids.get_size(), std::back_inserter(input_ids_vec));
LogitProcessor logit_processor(config, input_ids_vec);
m_rng_engine.seed(config.rng_seed);

ov::Shape prompts_shape = input_ids.get_shape();
const size_t batch_size = prompts_shape[0];
Expand Down

0 comments on commit 188575d

Please sign in to comment.