diff --git a/gemma.cc b/gemma.cc index 6f2e664..c9066eb 100644 --- a/gemma.cc +++ b/gemma.cc @@ -797,10 +797,10 @@ void GemmaImpl::Generate( Gemma::Gemma(const Path& tokenizer_path, const Path& compressed_weights_path, const Path& weights_path, Model model_type, hwy::ThreadPool& pool) { + std::unique_ptr tokenizer; { PROFILER_ZONE("Startup.tokenizer"); - std::unique_ptr tokenizer = - std::make_unique(); + tokenizer = std::make_unique(); if (!tokenizer->Load(tokenizer_path.path).ok()) { HWY_ABORT("Failed to load the tokenizer file."); }