Skip to main content

BenchServeCommand

Struct BenchServeCommand 

Source
pub struct BenchServeCommand {
Show 30 fields pub base_url: String, pub model: String, pub tokenizer: PathBuf, pub target_backend: Option<BenchTargetBackend>, pub http_connection_mode: BenchHttpConnectionMode, pub concurrency: u32, pub concurrency_sweep: Vec<u32>, pub request_rate: Option<f64>, pub dataset: String, pub random_input_len: usize, pub random_output_len: usize, pub ignore_eos: bool, pub enable_thinking: Option<bool>, pub sharegpt_path: Option<PathBuf>, pub shared_prefix_len: usize, pub shared_suffix_len: usize, pub num_prompts: u32, pub warmup_requests: u32, pub n_repeats: u32, pub goodput: Option<Slo>, pub timeout: f64, pub fail_on_error: bool, pub max_error_rate: Option<f64>, pub require_ci: bool, pub seed: Option<u64>, pub output: String, pub out: Option<PathBuf>, pub hw_id: Option<String>, pub commit_sha: Option<String>, pub tag: Option<String>,
}

Fields§

§base_url: String

Base URL of the ferrum (or other OpenAI-compatible) server.

§model: String

Model identifier sent in request body’s model field. Use the local path so vllm bench serve numbers compare 1:1.

§tokenizer: PathBuf

Path to the model directory containing tokenizer.json. Used to generate exact-length random token sequences.

§target_backend: Option<BenchTargetBackend>

Backend of the server under test. This is independent of the HTTP client’s own compile-time accelerator features.

§http_connection_mode: BenchHttpConnectionMode

HTTP connection lifecycle used by the benchmark client.

§concurrency: u32

Closed-loop concurrency (single cell). Default when no other mode is given. Alias: --max-concurrency (legacy vLLM naming).

§concurrency_sweep: Vec<u32>

Closed-loop concurrency sweep. Overrides --concurrency. E.g. --concurrency-sweep 1,4,16,32 runs four closed-loop cells.

§request_rate: Option<f64>

Open-loop arrival rate (req/s, Poisson). When set, overrides the closed-loop modes — this is the goodput-relevant scenario.

§dataset: String

Dataset: random (tokenizer-aware), sharegpt (load from JSONL), shared-prefix (1024-tok shared prefix + unique suffix). PLAYBOOK § 2 Scenario A (sharegpt) / Scenario C (shared-prefix).

§random_input_len: usize

Number of tokens per random prompt (--dataset random only).

§random_output_len: usize

Max output tokens per request.

§ignore_eos: bool

Send vLLM-compatible ignore_eos=true so fixed-output benchmark requests run until max_tokens instead of stopping on model EOS.

§enable_thinking: Option<bool>

Typed chat-template thinking control. Omitted from payloads unless set.

§sharegpt_path: Option<PathBuf>

Path to a ShareGPT-format JSONL file (--dataset sharegpt). Each line should be a {"conversations": [{"from": "...", "value": "..."}, ...]} object (HF anon8231489123/ShareGPT_Vicuna format).

§shared_prefix_len: usize

Shared prefix length in tokens (--dataset shared-prefix only).

§shared_suffix_len: usize

Per-request unique suffix length in tokens (--dataset shared-prefix).

§num_prompts: u32

Total prompts sent per run (warmup is counted separately).

§warmup_requests: u32

Warmup requests sent before measurement begins each run. Discarded from the metrics; PLAYBOOK § 0.3 mandates ≥ 10 for committed reports.

§n_repeats: u32

Independent repeats per cell. PLAYBOOK § 0.4: ≥ 3 unlocks stddev + CI95; n < 3 emits mean only.

§goodput: Option<Slo>

SLO triple for goodput. Format: ttft:500 tpot:50 e2el:30000 (or comma-separated). Goodput is reported only when all three are set.

§timeout: f64

Per-request HTTP timeout in seconds.

§fail_on_error: bool

Exit non-zero when any measured request errors. Warmup failures always fail. Release gates must set this.

§max_error_rate: Option<f64>

Maximum measured request error rate allowed when error enforcement is active.

§require_ci: bool

Require n_repeats >= 3 so reports include CI/stddev evidence.

§seed: Option<u64>

Deterministic prompt-generation seed. Repeat i uses a stable derivation.

§output: String

Output format: json (BenchReport), jsonl (append one BenchReport per line — used by scripts/compare-commits.sh), md (human-readable markdown).

§out: Option<PathBuf>

Output file path. For jsonl, the file is opened append-mode so repeated invocations against the same DB accumulate rows. Alias: --result-file (legacy).

§hw_id: Option<String>

Override env.hw_id (defaults to auto-detected).

§commit_sha: Option<String>

Override env.commit_sha (defaults to git rev-parse --short HEAD).

§tag: Option<String>

Tag string written into the report’s model field’s suffix — useful for the bench_vs_vllm.sh script which tags ferrum/vllm.

Trait Implementations§

Source§

impl Args for BenchServeCommand

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 BenchServeCommand

Source§

fn clone(&self) -> BenchServeCommand

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 FromArgMatches for BenchServeCommand

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> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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 = !

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more