pub enum ModelSamplingDefault {
Absent,
Declared(f64),
Unreadable,
}Expand description
What one model’s GGUF says about one sampler field.
Three states rather than Option<f64>, because the two ways of having no
number license opposite conclusions. A model that names nothing leaves the
build’s own default observable in /props; a model that names something
gglib cannot read leaves nothing observable, because llama.cpp’s strtof
and Rust’s f64::from_str need not agree on every string and gglib cannot
tell from here which of them took the value.
Variants§
Absent
The GGUF names no value, so llama.cpp’s build default applies and
/props is a clean read of it.
Declared(f64)
The GGUF names it. llama.cpp overwrites its own default with this for every request that does not set the field.
Unreadable
The GGUF names it and gglib could not read the value as a number.
Trait Implementations§
Source§impl Clone for ModelSamplingDefault
impl Clone for ModelSamplingDefault
Source§fn clone(&self) -> ModelSamplingDefault
fn clone(&self) -> ModelSamplingDefault
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelSamplingDefault
impl Debug for ModelSamplingDefault
Source§impl Default for ModelSamplingDefault
impl Default for ModelSamplingDefault
Source§fn default() -> ModelSamplingDefault
fn default() -> ModelSamplingDefault
Returns the “default value” for a type. Read more
Source§impl PartialEq for ModelSamplingDefault
impl PartialEq for ModelSamplingDefault
Source§fn eq(&self, other: &ModelSamplingDefault) -> bool
fn eq(&self, other: &ModelSamplingDefault) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ModelSamplingDefault
impl StructuralPartialEq for ModelSamplingDefault
Auto Trait Implementations§
impl Freeze for ModelSamplingDefault
impl RefUnwindSafe for ModelSamplingDefault
impl Send for ModelSamplingDefault
impl Sync for ModelSamplingDefault
impl Unpin for ModelSamplingDefault
impl UnsafeUnpin for ModelSamplingDefault
impl UnwindSafe for ModelSamplingDefault
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