pub struct ImageChunkBatchSizeMismatch {
pub image_tokens: u32,
pub n_batch: u32,
}Expand description
Carried by super::mtmd_eval_error::MtmdEvalError::ImageChunkExceedsBatchSize.
n_batch is the per-decode batch budget enforced by cparams.n_batch in
llama.cpp; image_tokens is the number of tokens this image chunk would
hand to llama_decode. When image_tokens > n_batch the C-side
GGML_ASSERT(n_tokens_all <= cparams.n_batch) would abort the process —
the binding refuses the call instead.
Fields§
§image_tokens: u32§n_batch: u32Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImageChunkBatchSizeMismatch
impl RefUnwindSafe for ImageChunkBatchSizeMismatch
impl Send for ImageChunkBatchSizeMismatch
impl Sync for ImageChunkBatchSizeMismatch
impl Unpin for ImageChunkBatchSizeMismatch
impl UnsafeUnpin for ImageChunkBatchSizeMismatch
impl UnwindSafe for ImageChunkBatchSizeMismatch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more