mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-07 09:02:04 +00:00
fix ci build error
This commit is contained in:
parent
e626de2430
commit
81065fd801
1 changed files with 7 additions and 2 deletions
|
|
@ -1,6 +1,5 @@
|
|||
#include "ttscpp.h"
|
||||
#include <mutex>
|
||||
#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<const char *, 5> DURATION_PREDICTOR_QUANTIZATION_COMPATIBLE_PARTS = {
|
||||
|
|
@ -338,6 +337,12 @@ static void zeros(std::ofstream & file, size_t n) {
|
|||
}
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
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<no_init<uint8_t>> work;
|
||||
std::vector<do_no_init<uint8_t>> work;
|
||||
|
||||
std::ofstream fout;
|
||||
auto close_ofstream = [&]() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue