llama : add assertion informing about missing llama_encode() call
This commit is contained in:
parent
fd560fe680
commit
f4c3b96050
1 changed files with 2 additions and 0 deletions
|
@ -13200,6 +13200,8 @@ struct llm_build_context {
|
|||
LLM_NORM_RMS, cb, -1);
|
||||
cb(cur, "result_norm", -1);
|
||||
} else {
|
||||
GGML_ASSERT(n_outputs_enc > 0 && "call llama_encode() first");
|
||||
|
||||
struct ggml_tensor * embd_enc = llm_build_inp_embd_enc();
|
||||
struct ggml_tensor * pos_bucket_dec = llm_build_pos_bucket(true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue