| 10670 | } |
| 10671 | |
| 10672 | int llama_decode( |
| 10673 | struct llama_context * ctx, |
| 10674 | struct llama_batch batch) { |
| 10675 | const int ret = llama_decode_internal(*ctx, batch); |
| 10676 | if (ret < 0) { |
| 10677 | LLAMA_LOG_ERROR("%s: failed to decode, ret = %d\n", __func__, ret); |
| 10678 | } |
| 10679 | |
| 10680 | return ret; |
| 10681 | } |
| 10682 | |
| 10683 | float * llama_get_logits(struct llama_context * ctx) { |
| 10684 | return ctx->logits.data(); |