pub struct PerfConfig {
pub model_ids: Vec<i64>,
pub pp_tokens: u32,
pub tg_tokens: u32,
pub repetitions: u32,
}Expand description
Configuration for a performance (llama-bench) run.
Fields§
§model_ids: Vec<i64>Models to benchmark (by database ID), run sequentially.
pp_tokens: u32Number of prompt tokens to use in the benchmark.
tg_tokens: u32Number of generation tokens to use in the benchmark.
repetitions: u32Number of repetitions to average.
Implementations§
Source§impl PerfConfig
impl PerfConfig
const fn default_pp_tokens() -> u32
const fn default_tg_tokens() -> u32
const fn default_repetitions() -> u32
Trait Implementations§
Source§impl Clone for PerfConfig
impl Clone for PerfConfig
Source§fn clone(&self) -> PerfConfig
fn clone(&self) -> PerfConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PerfConfig
impl Debug for PerfConfig
Source§impl Default for PerfConfig
impl Default for PerfConfig
Source§impl<'de> Deserialize<'de> for PerfConfig
impl<'de> Deserialize<'de> for PerfConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PerfConfig
impl RefUnwindSafe for PerfConfig
impl Send for PerfConfig
impl Sync for PerfConfig
impl Unpin for PerfConfig
impl UnsafeUnpin for PerfConfig
impl UnwindSafe for PerfConfig
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