This commit is contained in:
Aaron Po
2026-04-12 01:52:12 -04:00
parent 1cd30488eb
commit 035b30abba
2 changed files with 3 additions and 6 deletions

View File

@@ -16,7 +16,7 @@
struct llama_model; struct llama_model;
struct llama_context; struct llama_context;
struct LlamaSampler; struct llama_sampler;
/** /**
* @brief Data generator implementation backed by llama.cpp. * @brief Data generator implementation backed by llama.cpp.
@@ -74,7 +74,7 @@ class LlamaGenerator final : public DataGenerator {
SamplerState(SamplerState&&) = delete; SamplerState(SamplerState&&) = delete;
SamplerState& operator=(SamplerState&&) = delete; SamplerState& operator=(SamplerState&&) = delete;
LlamaSampler* chain = nullptr; llama_sampler* chain = nullptr;
}; };
/** /**

View File

@@ -102,7 +102,7 @@ std::optional<ApplicationOptions> ParseArguments(const int argc, char** argv) {
const bool has_llm_params = !variables_map["temperature"].defaulted() || const bool has_llm_params = !variables_map["temperature"].defaulted() ||
!variables_map["top-p"].defaulted() || !variables_map["top-p"].defaulted() ||
!variables_map["top-k"].defaulted() || !variables_map["top-k"].defaulted() ||
!variables_map["seed"].defaulted() = false; !variables_map["seed"].defaulted();
if (use_mocked && has_llm_params) { if (use_mocked && has_llm_params) {
spdlog::warn( spdlog::warn(
@@ -176,8 +176,5 @@ int main(const int argc, char** argv) {
} catch (const std::exception& exception) { } catch (const std::exception& exception) {
spdlog::critical("Unhandled fatal error in main: {}", exception.what()); spdlog::critical("Unhandled fatal error in main: {}", exception.what());
return 1; return 1;
} catch (...) {
spdlog::critical("Unhandled fatal non-standard exception in main");
return 1;
} }
} }