#[repr(C)]pub struct RKLLMPerfStat {
pub prefill_time_ms: f32,
pub prefill_tokens: c_int,
pub generate_time_ms: f32,
pub generate_tokens: c_int,
pub memory_usage_mb: f32,
}
Expand description
@struct RKLLMPerfStat @brief Structure to hold performance statistics for prefill and generate stages.
Fields§
§prefill_time_ms: f32
< Total time taken for the prefill stage in milliseconds.
prefill_tokens: c_int
< Number of tokens processed during the prefill stage.
generate_time_ms: f32
< Total time taken for the generate stage in milliseconds.
generate_tokens: c_int
< Number of tokens processed during the generate stage.
memory_usage_mb: f32
< VmHWM resident memory usage during inference, in megabytes.
Trait Implementations§
Source§impl Clone for RKLLMPerfStat
impl Clone for RKLLMPerfStat
Source§fn clone(&self) -> RKLLMPerfStat
fn clone(&self) -> RKLLMPerfStat
Returns a duplicate 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 RKLLMPerfStat
impl Debug for RKLLMPerfStat
impl Copy for RKLLMPerfStat
Auto Trait Implementations§
impl Freeze for RKLLMPerfStat
impl RefUnwindSafe for RKLLMPerfStat
impl Send for RKLLMPerfStat
impl Sync for RKLLMPerfStat
impl Unpin for RKLLMPerfStat
impl UnwindSafe for RKLLMPerfStat
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