Skip to main content

llama_cpp_bindings/error/
kv_cache_seq_div_error.rs

1use std::num::TryFromIntError;
2
3#[derive(Debug, thiserror::Error)]
4pub enum KvCacheSeqDivError {
5    #[error("provided start position is too large for an i32")]
6    P0TooLarge(#[source] TryFromIntError),
7    #[error("provided end position is too large for an i32")]
8    P1TooLarge(#[source] TryFromIntError),
9    #[error("model rope type is incompatible with sequence position arithmetic")]
10    IncompatibleRopeType,
11    #[error("context has no memory module available")]
12    MemoryHandleUnavailable,
13    #[error("not enough memory")]
14    NotEnoughMemory,
15    #[error("{message}")]
16    Reported { message: String },
17}