llama-cpp-bindings-types 0.34.0

Shared value types for llama-cpp-bindings, free of llama.cpp/FFI dependencies
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::Deserialize;
use serde::Serialize;

#[derive(Clone, Copy, Debug, Deserialize, PartialEq, Serialize)]
#[serde(deny_unknown_fields)]
pub struct SamplingDefaults {
    pub min_p: f32,
    pub penalty_frequency: f32,
    pub penalty_last_n: i32,
    pub penalty_presence: f32,
    pub penalty_repeat: f32,
    pub temperature: f32,
    pub top_k: i32,
    pub top_p: f32,
}