mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-11-02 09:12:03 +00:00
gguf : start implementing quantization (WIP)
This commit is contained in:
@@ -123,6 +123,10 @@ struct gguf_file {
|
||||
return fwrite((const char *) &val, sizeof(val), 1, fp);
|
||||
}
|
||||
|
||||
void write_raw(const void * data, size_t size) {
|
||||
fwrite(data, size, 1, fp);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void write_val(const std::string & key, enum gguf_type type, const T & val) {
|
||||
write_str(key);
|
||||
|
||||
Reference in New Issue
Block a user