Skip to content

llama_decode + llama_get_logits_ith() JNI android integration , GGML_ABORT("fatal error"); #14245

Answered by ggerganov
code4profite asked this question in Q&A
Discussion options

You must be logged in to vote

Try to replace this line:

float* logits = llama_get_logits_ith(wrapper->ctx, n_cur - 1);

with

float* logits = llama_get_logits_ith(wrapper->ctx, -1);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@code4profite
Comment options

Answer selected by code4profite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants