diff --git a/otherarch/ttscpp/src/ttscpp.cpp b/otherarch/ttscpp/src/ttscpp.cpp index 91c05a271..eb8833794 100644 --- a/otherarch/ttscpp/src/ttscpp.cpp +++ b/otherarch/ttscpp/src/ttscpp.cpp @@ -1,6 +1,5 @@ #include "ttscpp.h" #include -#include "llama-impl.h" // A list of all of the top level GGUF names under kokoro.duration_predictor that have quantization compatible tensors. static constexpr std::array DURATION_PREDICTOR_QUANTIZATION_COMPATIBLE_PARTS = { @@ -338,6 +337,12 @@ static void zeros(std::ofstream & file, size_t n) { } } +template +struct do_no_init { + T value; + do_no_init() { /* do nothing */ } +}; + void quantize_gguf(const std::string & ifile, const std::string & ofile, struct quantization_params * params) { ggml_context * weight_ctx = NULL; struct gguf_init_params gguf_params = { @@ -371,7 +376,7 @@ void quantize_gguf(const std::string & ifile, const std::string & ofile, struct } } - std::vector> work; + std::vector> work; std::ofstream fout; auto close_ofstream = [&]() {