pub struct LaunchNarration {
pub model_name: String,
pub quantization: Option<String>,
pub weights_bytes: u64,
pub decisions: Vec<LaunchDecision>,
}Expand description
Everything the runtime decided for one llama-server launch.
Built at spawn by the runtime; consumed by the CLI banner, the proxy status endpoint, and the GUI dashboard. See the module docs for why the decisions are an ordered list rather than named fields: the three consumers all render the same rows in the same order, and a list keeps adding a decision to a single site instead of four.
Fields§
§model_name: StringModel name as the catalog knows it.
quantization: Option<String>Quantization label (Q4_K_M), when the catalog recorded one.
weights_bytes: u64On-disk weight size in bytes, summed across shards. 0 when unknown —
rendered as absent rather than as “0 GB”.
decisions: Vec<LaunchDecision>The decisions, in the order they should be displayed.
Implementations§
Source§impl LaunchNarration
impl LaunchNarration
Sourcepub fn new(
model_name: impl Into<String>,
quantization: Option<String>,
weights_bytes: u64,
) -> Self
pub fn new( model_name: impl Into<String>, quantization: Option<String>, weights_bytes: u64, ) -> Self
Start a narration for a model; decisions are appended by the runtime as each resolution comes into scope.
Sourcepub fn push(&mut self, decision: LaunchDecision)
pub fn push(&mut self, decision: LaunchDecision)
Append a decision, keeping display order.
Sourcepub fn headline(&self) -> String
pub fn headline(&self) -> String
The identity line: qwen3-30b-a3b · Q4_K_M · 17.2 GB.
Unknown quantization and unknown size are dropped rather than rendered
as unknown or 0 GB — a banner that pads itself with non-answers
reads as broken.
Sourcepub fn decision(&self, label: &str) -> Option<&LaunchDecision>
pub fn decision(&self, label: &str) -> Option<&LaunchDecision>
Look up a decision by its stable label.
Trait Implementations§
Source§impl Clone for LaunchNarration
impl Clone for LaunchNarration
Source§fn clone(&self) -> LaunchNarration
fn clone(&self) -> LaunchNarration
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 LaunchNarration
impl Debug for LaunchNarration
Source§impl<'de> Deserialize<'de> for LaunchNarration
impl<'de> Deserialize<'de> for LaunchNarration
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 LaunchNarration
impl PartialEq for LaunchNarration
Source§fn eq(&self, other: &LaunchNarration) -> bool
fn eq(&self, other: &LaunchNarration) -> bool
self and other values to be equal, and is used by ==.