mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-22 15:32:08 +00:00
chore(backend): minor formatting
This commit is contained in:
parent
37faeb34b2
commit
f9c248657d
@ -15,10 +15,10 @@
|
||||
#include "backend.hpp"
|
||||
|
||||
namespace huggingface::tgi::backends::llama {
|
||||
|
||||
std::expected<std::unique_ptr<TgiLlamaCppBackend>, TgiLlamaCppBackendError>
|
||||
CreateLlamaCppBackend(const std::filesystem::path& modelPath) {
|
||||
SPDLOG_DEBUG(FMT_STRING("Loading model from {}"), modelPath);
|
||||
|
||||
llama_backend_init();
|
||||
llama_numa_init(ggml_numa_strategy::GGML_NUMA_STRATEGY_NUMACTL);
|
||||
|
||||
|
@ -17,7 +17,6 @@ namespace huggingface::tgi::backends::llama {
|
||||
MODEL_FILE_DOESNT_EXIST = 1
|
||||
};
|
||||
|
||||
|
||||
class TgiLlamaCppBackend {
|
||||
using TokenId = llama_token;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user