We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f737b4 commit 3d8072eCopy full SHA for 3d8072e
__readme__.txt
@@ -1,2 +1,20 @@
1
Offspring for hoivb612
2
https://github.com/hoivb612/llama.cpp
3
+
4
+#include <sys/stat.h>
5
+#include <sys/types.h>
6
+#include <string>
7
+#include <hash>
8
9
+static std::hash<std::string> hasher;
10
+static const char* dir = "./llama_cache";
11
12
+// create the cache dir if it does not exist yet
13
+struct stat info;
14
+if (stat(dir, &info) != 0) {
15
+ mkdir(dir, 0777);
16
+}
17
18
+// default generated file name
19
+std::string pfx_path(dir);
20
+std::string full_file_path = pfx_path + "/" + std::to_string(hasher(pfx));
0 commit comments