From 356daef9712c67d6bc4acbd5c8137982eec25620 Mon Sep 17 00:00:00 2001 From: Amir Date: Tue, 21 May 2024 12:24:27 +0000 Subject: [PATCH] examples: cache hf model when --model not provided --- common/common.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index 1049d3c0c..ae11650b4 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -2543,10 +2543,6 @@ std::string get_cache_directory() { cache_directory += "llama.cpp"; cache_directory += DIRECTORY_SEPARATOR; } - const bool success = create_directory_with_parents(cache_directory); - if (!success) { - throw std::runtime_error("failed to create cache directory: " + cache_directory); - } return cache_directory; }