mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-06-01 01:54:00 +00:00
updates
This commit is contained in:
@@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user