pub enum ParamSource {
Layer(usize),
Floor,
FloorCoupled,
Unset,
}Expand description
Which rung of a sampling ladder supplied one resolved parameter.
Layer carries an index into the ladder that was resolved,
rather than a name, because the ladders differ: the request pipeline adds
cli and client rungs above the five that
SamplingLayer describes. Callers map the index back to whatever names
their own ladder used.
Variants§
Layer(usize)
The layer at this index in the resolved ladder named the value.
Floor
The class floor, because no layer named a value at all.
FloorCoupled
The class floor, because a layer claimed temperature and this
parameter is tuned against it, so no layer beneath was eligible to
supply one. Distinct from Floor: here a lower layer
may well have named a value and was deliberately passed over.
Unset
Nothing named it and the floor carries none either — max_tokens is
the only parameter with no floor value, deliberately. See
InferenceConfig::with_hardcoded_defaults.
Implementations§
Trait Implementations§
Source§impl Clone for ParamSource
impl Clone for ParamSource
Source§fn clone(&self) -> ParamSource
fn clone(&self) -> ParamSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParamSource
impl Debug for ParamSource
Source§impl<'de> Deserialize<'de> for ParamSource
impl<'de> Deserialize<'de> for ParamSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ParamSource
impl PartialEq for ParamSource
Source§fn eq(&self, other: &ParamSource) -> bool
fn eq(&self, other: &ParamSource) -> bool
self and other values to be equal, and is used by ==.