From 035b30abba3831ae54be49067621d0aa6d851c3e Mon Sep 17 00:00:00 2001 From: Aaron Po Date: Sun, 12 Apr 2026 01:52:12 -0400 Subject: [PATCH] updates --- pipeline/includes/data_generation/llama_generator.h | 4 ++-- pipeline/src/main.cpp | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/pipeline/includes/data_generation/llama_generator.h b/pipeline/includes/data_generation/llama_generator.h index be9d2f0..5c7271d 100644 --- a/pipeline/includes/data_generation/llama_generator.h +++ b/pipeline/includes/data_generation/llama_generator.h @@ -16,7 +16,7 @@ struct llama_model; struct llama_context; -struct LlamaSampler; +struct llama_sampler; /** * @brief Data generator implementation backed by llama.cpp. @@ -74,7 +74,7 @@ class LlamaGenerator final : public DataGenerator { SamplerState(SamplerState&&) = delete; SamplerState& operator=(SamplerState&&) = delete; - LlamaSampler* chain = nullptr; + llama_sampler* chain = nullptr; }; /** diff --git a/pipeline/src/main.cpp b/pipeline/src/main.cpp index 98d0dd7..778343e 100644 --- a/pipeline/src/main.cpp +++ b/pipeline/src/main.cpp @@ -102,7 +102,7 @@ std::optional ParseArguments(const int argc, char** argv) { const bool has_llm_params = !variables_map["temperature"].defaulted() || !variables_map["top-p"].defaulted() || !variables_map["top-k"].defaulted() || - !variables_map["seed"].defaulted() = false; + !variables_map["seed"].defaulted(); if (use_mocked && has_llm_params) { spdlog::warn( @@ -176,8 +176,5 @@ int main(const int argc, char** argv) { } catch (const std::exception& exception) { spdlog::critical("Unhandled fatal error in main: {}", exception.what()); return 1; - } catch (...) { - spdlog::critical("Unhandled fatal non-standard exception in main"); - return 1; } }