Spaces:
Running
Running
Commit ·
3547979
1
Parent(s): e0e73fa
cmake : add sanitizer flags for llama.cpp (llama/11279)
Browse files* cmake : add sanitizer flags for llama.cpp
ggml-ci
* tests : fix compile warnings
ggml-ci
* cmake : move sanitizer flags to llama_add_compile_flags
ggml-ci
* cmake : move llama.cpp compile flags to top level lists
ggml-ci
* cmake : apply only sanitizer flags at top level
ggml-ci
* tests : fix gguf context use in same_tensor_data
* gguf-test: tensor data comparison
* dummy : trigger ggml-ci
* unicode : silence gcc warnings
ggml-ci
* ci : use sanitizer builds only in Debug mode
ggml-ci
* cmake : add status messages [no ci]
---------
Co-authored-by: Johannes Gäßler <johannesg@5d6.de>
- ggml/src/gguf.cpp +4 -0
ggml/src/gguf.cpp
CHANGED
|
@@ -648,6 +648,10 @@ struct gguf_context * gguf_init_from_file_impl(FILE * file, struct gguf_init_par
|
|
| 648 |
|
| 649 |
ok = ok && data != nullptr;
|
| 650 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 651 |
// read the binary blob with the tensor data
|
| 652 |
ok = ok && gr.read(data->data, ctx->size);
|
| 653 |
|
|
|
|
| 648 |
|
| 649 |
ok = ok && data != nullptr;
|
| 650 |
|
| 651 |
+
if (ok) {
|
| 652 |
+
ggml_set_name(data, "GGUF tensor data binary blob");
|
| 653 |
+
}
|
| 654 |
+
|
| 655 |
// read the binary blob with the tensor data
|
| 656 |
ok = ok && gr.read(data->data, ctx->size);
|
| 657 |
|