llama-cpp-bindings 0.8.0

llama.cpp bindings for Rust
Documentation
use crate::mtmd::image_chunk_batch_size_mismatch::ImageChunkBatchSizeMismatch;

#[derive(thiserror::Error, Debug)]
pub enum MtmdEvalError {
    #[error("batch size {requested} exceeds context batch size {context_max}")]
    BatchSizeExceedsContextLimit { requested: i32, context_max: u32 },
    #[error(
        "image chunk has {} tokens but n_batch is {}",
        .0.image_tokens,
        .0.n_batch,
    )]
    ImageChunkExceedsBatchSize(ImageChunkBatchSizeMismatch),
    #[error("multimodal chunk eval failed with code: {code}")]
    EvalFailed { code: i32 },
    #[error("not enough memory")]
    NotEnoughMemory,
    #[error("{message}")]
    Reported { message: String },
}