summaryrefslogtreecommitdiff
path: root/llama.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llama.cpp')
-rw-r--r--llama.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llama.cpp b/llama.cpp
index 40d2ec2c..841be1de 100644
--- a/llama.cpp
+++ b/llama.cpp
@@ -16221,6 +16221,11 @@ struct llama_context * llama_new_context_with_model(
params.flash_attn = false;
}
+ if (params.type_v != GGML_TYPE_F16 && !params.flash_attn) {
+ LLAMA_LOG_ERROR("%s: V cache quantization requires flash_attn\n", __func__);
+ return nullptr;
+ }
+
llama_context * ctx = new llama_context(*model);
const auto & hparams = model->hparams;