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: boolPrint 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: boolDisable 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: boolPersist the recommended settings to the local config file.
replace_existing: boolReplace existing writable config fields instead of preserving existing values.
launch_args: boolPrint launch-argument output instead of applying or reporting recommended fields.
throughput_tolerance_pct: f64Treat candidates within this percent of the raw best tok/s as throughput-equivalent.
max_tokens: u32Maximum generated tokens per benchmark request.
startup_timeout_secs: u64Startup wait limit for each benchmark trial.
request_timeout_secs: u64HTTP request timeout for each benchmark request.
debug_telemetry: boolCapture Skippy debug telemetry in each trial log.
prompt: StringPrompt sent during benchmark trials.
Trait Implementations§
Source§impl Args for BenchmarkTuneCommand
impl Args for BenchmarkTuneCommand
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for BenchmarkTuneCommand
impl Clone for BenchmarkTuneCommand
Source§fn clone(&self) -> BenchmarkTuneCommand
fn clone(&self) -> BenchmarkTuneCommand
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BenchmarkTuneCommand
impl Debug for BenchmarkTuneCommand
Source§impl FromArgMatches for BenchmarkTuneCommand
impl FromArgMatches for BenchmarkTuneCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for BenchmarkTuneCommand
impl RefUnwindSafe for BenchmarkTuneCommand
impl Send for BenchmarkTuneCommand
impl Sync for BenchmarkTuneCommand
impl Unpin for BenchmarkTuneCommand
impl UnsafeUnpin for BenchmarkTuneCommand
impl UnwindSafe for BenchmarkTuneCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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