pub struct Figures {
pub cold_start: ColdStart,
pub tokens_per_second: Option<Measure>,
pub ttft_ms: Option<Measure>,
pub prompt_tokens_per_second: Option<Measure>,
pub estimated_tokens: bool,
pub source: TimingSource,
pub runs: Vec<Sample>,
}Expand description
What a finished model’s runs came to.
Fields§
§cold_start: ColdStartThe cold run, or why there was none.
tokens_per_second: Option<Measure>Tokens a second over the warm runs.
ttft_ms: Option<Measure>Time to first token over the warm runs.
prompt_tokens_per_second: Option<Measure>Prompt tokens a second, where the backend timed the prompt.
estimated_tokens: boolWhether any warm run’s token count was estimated.
source: TimingSourceWhere the decode timing came from; wall clock if any run fell back.
runs: Vec<Sample>The warm runs themselves, for the detail and the JSON.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Figures
Auto Trait Implementations§
impl Freeze for Figures
impl RefUnwindSafe for Figures
impl Send for Figures
impl Sync for Figures
impl Unpin for Figures
impl UnsafeUnpin for Figures
impl UnwindSafe for Figures
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