llama-cpp-bindings 0.11.0

llama.cpp bindings for Rust
Documentation
1
2
3
4
5
6
7
8
9
use crate::error::sampler_apply_error::SamplerApplyError;

#[derive(Debug, Eq, PartialEq, thiserror::Error)]
pub enum TokenSamplingError {
    #[error("No token was selected by the sampler")]
    NoTokenSelected,
    #[error("applying the sampler to the token data array failed: {0}")]
    SamplerApply(#[from] SamplerApplyError),
}