Skip to main content

BenchmarkTuneCommand

Struct BenchmarkTuneCommand 

Source
pub struct BenchmarkTuneCommand {
Show 27 fields pub model: Option<String>, pub models: Vec<String>, pub json: bool, pub ctx_sizes: Vec<u32>, pub batch_sizes: Vec<u32>, pub ubatch_sizes: Vec<u32>, pub mmap_values: Vec<BenchmarkBoolOrAuto>, pub mlock_values: Vec<BenchmarkBool>, pub flash_attention: Vec<BenchmarkFlashAttention>, pub speculative_types: Vec<BenchmarkSpeculativeType>, pub no_speculative_tune: bool, pub spec_draft_models: Vec<PathBuf>, pub spec_draft_max_tokens: Vec<u32>, pub spec_draft_min_tokens: Vec<u32>, pub spec_ngram_min: Vec<u32>, pub spec_ngram_max: Vec<u32>, pub spec_draft_acceptance_threshold: Vec<f64>, pub spec_draft_split_probability: Vec<f64>, pub apply: bool, pub replace_existing: bool, pub launch_args: bool, pub throughput_tolerance_pct: f64, pub max_tokens: u32, pub startup_timeout_secs: u64, pub request_timeout_secs: u64, pub debug_telemetry: bool, pub prompt: String,
}

Fields§

§model: Option<String>

Tune exactly one local/configured model target.

§models: Vec<String>

Tune multiple local/configured model targets from a comma-separated list.

§json: bool

Print machine-readable JSON output.

§ctx_sizes: Vec<u32>

Context sizes to benchmark, as a comma-separated token list.

§batch_sizes: Vec<u32>

Batch sizes to benchmark, as a comma-separated list.

§ubatch_sizes: Vec<u32>

Micro-batch sizes to benchmark, as a comma-separated list.

§mmap_values: Vec<BenchmarkBoolOrAuto>

mmap values to benchmark independently: auto, enabled, disabled.

§mlock_values: Vec<BenchmarkBool>

mlock values to benchmark independently: enabled, disabled.

§flash_attention: Vec<BenchmarkFlashAttention>

Flash attention values to benchmark independently: on, off.

§speculative_types: Vec<BenchmarkSpeculativeType>

Speculative decoding types to benchmark: auto, disabled, mtp, draft, mtp-ngram.

§no_speculative_tune: bool

Disable speculative decoding sweeps and only benchmark the disabled baseline.

§spec_draft_models: Vec<PathBuf>

Candidate draft GGUF paths to benchmark for speculative draft mode.

§spec_draft_max_tokens: Vec<u32>

Candidate maximum draft-token windows for MTP and draft speculation.

§spec_draft_min_tokens: Vec<u32>

Candidate minimum draft-token windows for MTP and draft speculation.

§spec_ngram_min: Vec<u32>

Candidate minimum match lengths for MTP + N-gram speculation.

§spec_ngram_max: Vec<u32>

Candidate maximum match lengths for MTP + N-gram speculation.

§spec_draft_acceptance_threshold: Vec<f64>

Candidate draft-acceptance-threshold values for speculative draft sweeps.

§spec_draft_split_probability: Vec<f64>

Candidate draft-split-probability values for speculative draft sweeps.

§apply: bool

Persist the recommended settings to the local config file.

§replace_existing: bool

Replace existing writable config fields instead of preserving existing values.

§launch_args: bool

Print launch-argument output instead of applying or reporting recommended fields.

§throughput_tolerance_pct: f64

Treat candidates within this percent of the raw best tok/s as throughput-equivalent.

§max_tokens: u32

Maximum generated tokens per benchmark request.

§startup_timeout_secs: u64

Startup wait limit for each benchmark trial.

§request_timeout_secs: u64

HTTP request timeout for each benchmark request.

§debug_telemetry: bool

Capture Skippy debug telemetry in each trial log.

§prompt: String

Prompt sent during benchmark trials.

Trait Implementations§

Source§

impl Args for BenchmarkTuneCommand

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

impl Clone for BenchmarkTuneCommand

Source§

fn clone(&self) -> BenchmarkTuneCommand

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BenchmarkTuneCommand

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for BenchmarkTuneCommand

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.