pub struct FieldSources {
pub temperature: ParamSource,
pub top_p: ParamSource,
pub top_k: ParamSource,
pub presence_penalty: ParamSource,
pub repeat_penalty: ParamSource,
pub min_p: ParamSource,
pub max_tokens: ParamSource,
}Expand description
Per-field provenance for one resolved InferenceConfig.
Fields§
§temperature: ParamSourceWhere the resolved temperature came from.
top_p: ParamSourceWhere the resolved top_p came from.
top_k: ParamSourceWhere the resolved top_k came from.
presence_penalty: ParamSourceWhere the resolved presence_penalty came from.
repeat_penalty: ParamSourceWhere the resolved repeat_penalty came from.
min_p: ParamSourceWhere the resolved min_p came from.
max_tokens: ParamSourceWhere the resolved max_tokens came from.
Implementations§
Source§impl FieldSources
impl FieldSources
Sourcepub fn iter(&self) -> impl Iterator<Item = (&'static str, ParamSource)>
pub fn iter(&self) -> impl Iterator<Item = (&'static str, ParamSource)>
(field_name, source) pairs in display order.
The single iteration order every consumer renders, so the CLI’s table and the pipeline’s debug line cannot disagree about which parameter is which. The coupled trio is kept adjacent because it is only interpretable as a group.
Sourcepub fn describe(&self, names: &[&str]) -> String
pub fn describe(&self, names: &[&str]) -> String
Render as field=layer pairs against the ladder’s own layer names.
names is indexed by ParamSource::Layer; an index past its end
renders as ?, which can only happen if a caller passes names for a
different ladder than it resolved.
Trait Implementations§
Source§impl Clone for FieldSources
impl Clone for FieldSources
Source§fn clone(&self) -> FieldSources
fn clone(&self) -> FieldSources
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 FieldSources
impl Debug for FieldSources
Source§impl<'de> Deserialize<'de> for FieldSources
impl<'de> Deserialize<'de> for FieldSources
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 FieldSources
impl PartialEq for FieldSources
Source§fn eq(&self, other: &FieldSources) -> bool
fn eq(&self, other: &FieldSources) -> bool
self and other values to be equal, and is used by ==.