pub struct PublishedGenerationConfig {
pub config: InferenceConfig,
pub rejected: Vec<String>,
pub requests_greedy: bool,
}Expand description
What one generation_config.json yielded.
Fields§
§config: InferenceConfigThe sampling values gglib could use, ready to occupy a ladder rung.
rejected: Vec<String>Fields that were present but unusable — out of range, or not a number.
Kept rather than dropped silently so an import can say why an author’s published value is not being honoured. A number gglib ignored without saying so is indistinguishable from one it never saw.
requests_greedy: boolWhether the file asked for greedy decoding via do_sample: false.
Reported rather than acted on. gglib has no greedy mode, and the nearest
equivalent — forcing temperature: 0 — is exactly the near-greedy
setting ADR 0004’s addendum bans for reasoning models. So this is
surfaced for a person to decide about, never applied.
Implementations§
Source§impl PublishedGenerationConfig
impl PublishedGenerationConfig
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Whether the file yielded any usable sampling value at all.
A generation_config.json carrying only token ids is the common case,
and it must not be stored as a recipe — an all-None config on the
ladder is indistinguishable from no rung, but it would displace the
reasoning recipe that does carry values.
Trait Implementations§
Source§impl Clone for PublishedGenerationConfig
impl Clone for PublishedGenerationConfig
Source§fn clone(&self) -> PublishedGenerationConfig
fn clone(&self) -> PublishedGenerationConfig
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 PublishedGenerationConfig
impl Debug for PublishedGenerationConfig
Source§impl PartialEq for PublishedGenerationConfig
impl PartialEq for PublishedGenerationConfig
Source§fn eq(&self, other: &PublishedGenerationConfig) -> bool
fn eq(&self, other: &PublishedGenerationConfig) -> bool
self and other values to be equal, and is used by ==.