Struct llm_base::InferenceStats
source · pub struct InferenceStats {
pub feed_prompt_duration: Duration,
pub prompt_tokens: usize,
pub predict_duration: Duration,
pub predict_tokens: usize,
}Expand description
Statistics about the inference process.
Fields§
§feed_prompt_duration: DurationHow long it took to feed the prompt.
prompt_tokens: usizeHow many tokens the prompt was.
predict_duration: DurationHow long it took to predict new tokens.
predict_tokens: usizeThe number of predicted tokens.
Trait Implementations§
source§impl Clone for InferenceStats
impl Clone for InferenceStats
source§fn clone(&self) -> InferenceStats
fn clone(&self) -> InferenceStats
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for InferenceStats
impl Debug for InferenceStats
source§impl Default for InferenceStats
impl Default for InferenceStats
source§impl Display for InferenceStats
impl Display for InferenceStats
impl Copy for InferenceStats
Auto Trait Implementations§
impl RefUnwindSafe for InferenceStats
impl Send for InferenceStats
impl Sync for InferenceStats
impl Unpin for InferenceStats
impl UnwindSafe for InferenceStats
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