]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
fix: rpc-server cache may not work in Windows environments (llama/22394)
authorunraido <redacted>
Mon, 27 Apr 2026 14:25:09 +0000 (23:25 +0900)
committerGeorgi Gerganov <redacted>
Thu, 30 Apr 2026 08:29:21 +0000 (11:29 +0300)
* fix: create directory and log cache file name.

* Remove GGML_LOG_INFO conditional compilation.

---------

Co-authored-by: kotaro <redacted>
ggml/src/ggml-rpc/ggml-rpc.cpp

index 2ded73978685e3eb0daf434d28ca58ff882aca06..505bec73d375490ae85ea52cbe6f08b6fee7d9c8 100644 (file)
@@ -1101,7 +1101,7 @@ bool rpc_server::set_tensor(const std::vector<uint8_t> & input) {
         fs::path cache_file = fs::path(cache_dir) / hash_str;
         std::ofstream ofs(cache_file, std::ios::binary);
         ofs.write((const char *)data, size);
-        GGML_LOG_INFO("[%s] saved to '%s'\n", __func__, cache_file.c_str());
+        GGML_LOG_INFO("[%s] saved to '%s'\n", __func__, cache_file.string().c_str());
     }
     ggml_backend_tensor_set(tensor, data, offset, size);
     return true;