summaryrefslogtreecommitdiff
path: root/llama.cpp
diff options
context:
space:
mode:
authorStephan Walter <stephan@walter.name>2023-04-12 15:06:16 +0000
committerGitHub <noreply@github.com>2023-04-12 15:06:16 +0000
commite7f6997f897a18b6372a6460e25c5f89e1469f1d (patch)
tree78139653d351b37cd045d951814b3ec7b2ca1412 /llama.cpp
parentf76cb3a34d6a6b03afb96650e39495f201eac042 (diff)
Don't crash on ftype (formerly f16) == 4 (#917)
Diffstat (limited to 'llama.cpp')
-rw-r--r--llama.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llama.cpp b/llama.cpp
index 653558be..6d8b706b 100644
--- a/llama.cpp
+++ b/llama.cpp
@@ -827,7 +827,9 @@ static const char *llama_ftype_name(enum llama_ftype ftype) {
case LLAMA_FTYPE_MOSTLY_F16: return "mostly F16";
case LLAMA_FTYPE_MOSTLY_Q4_0: return "mostly Q4_0";
case LLAMA_FTYPE_MOSTLY_Q4_1: return "mostly Q4_1";
- default: LLAMA_ASSERT(false);
+ case LLAMA_FTYPE_MOSTLY_Q4_1_SOME_F16:
+ return "mostly Q4_1, some F16";
+ default: return "unknown, may not work";
}
}