mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-26 14:20:31 +01:00
llama : add assert about missing llama_encode() call (#8400)
Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>
This commit is contained in:
parent
e4dd31ff89
commit
a8be1e6f59
@ -13200,6 +13200,8 @@ struct llm_build_context {
|
|||||||
LLM_NORM_RMS, cb, -1);
|
LLM_NORM_RMS, cb, -1);
|
||||||
cb(cur, "result_norm", -1);
|
cb(cur, "result_norm", -1);
|
||||||
} else {
|
} else {
|
||||||
|
GGML_ASSERT(n_outputs_enc > 0 && "call llama_encode() first");
|
||||||
|
|
||||||
struct ggml_tensor * embd_enc = llm_build_inp_embd_enc();
|
struct ggml_tensor * embd_enc = llm_build_inp_embd_enc();
|
||||||
struct ggml_tensor * pos_bucket_dec = llm_build_pos_bucket(true);
|
struct ggml_tensor * pos_bucket_dec = llm_build_pos_bucket(true);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user