SIGN IN SIGN UP

llama : fix empty batch causing llama_batch_allocr to crash (#9966)

* llama : fix empty batch cause llama_batch_allocr to crash

* move batch_allocr inside decode/encode_internal

* fix build

* add GGML_ASSERT

* Apply suggestions from code review

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
X
Xuan Son Nguyen committed
c8c07d658a6cefc5a50cfdf6be7d726503612303
Parent: 19d900a
Committed by GitHub <noreply@github.com> on 10/22/2024, 2:59:02 PM