Skip to main content

RuntimeCliConfig

Struct RuntimeCliConfig 

Source
pub struct RuntimeCliConfig {
Show 46 fields pub preset: Option<String>, pub kv_dtype: Option<String>, pub kv_max_blocks: Option<usize>, pub kv_capacity: Option<usize>, pub paged_max_seqs: Option<usize>, pub recurrent_state_max_slots: Option<usize>, pub attention_policy: Option<AttentionExecutionPolicy>, pub max_batched_tokens: Option<usize>, pub scheduler_prefill_first_until_active: Option<usize>, pub scheduler_active_decode_prefill_chunk: Option<usize>, pub prefix_cache: Option<bool>, pub layer_split_pipeline_mode: Option<String>, pub moe_graph: Option<bool>, pub batched_graph: Option<bool>, pub reusable_execution: Option<bool>, pub reusable_execution_exact_decode_widths: Option<Vec<usize>>, pub reusable_execution_max_automatic_exact_decode_width: Option<usize>, pub unified_graph: Option<bool>, pub unified_graph_layers_only: Option<bool>, pub unified_graph_lm_head_eager: Option<bool>, pub batch_decode_prof: Option<bool>, pub batch_prefill_prof: Option<bool>, pub next_batch_prof: Option<bool>, pub rbd_prof: Option<bool>, pub unified_post_prof: Option<bool>, pub decode_op_profile: Option<bool>, pub prefill_op_profile: Option<bool>, pub marlin_profile: Option<bool>, pub marlin_trace_shapes: Option<bool>, pub marlin_trace_shapes_max: Option<usize>, pub use_vllm_paged_attn: Option<bool>, pub vllm_paged_attn_v1_short: Option<bool>, pub vllm_moe: Option<bool>, pub vllm_moe_pair_ids: Option<bool>, pub greedy_argmax: Option<bool>, pub fa_layout_varlen: Option<bool>, pub fa2_source: Option<bool>, pub fa2_direct_ffi: Option<bool>, pub fa2_direct_ffi_shim: Option<String>, pub fa2_native_manifest: Option<String>, pub fa2_native_artifact: Option<String>, pub fa2_native_source_sha256: Option<String>, pub fa2_native_inputs_sha256: Option<String>, pub max_model_len: Option<usize>, pub sequence_fit_policy: Option<SequenceFitPolicy>, pub moe_batch_threshold: Option<usize>,
}
Expand description

Runtime knobs that can be sourced from the CLI config file.

Fields§

§preset: Option<String>

Named startup/runtime preset. Presets provide product-owned default bundles and can still be overridden by explicit runtime keys below, environment variables, or CLI flags.

§kv_dtype: Option<String>

KV cache dtype override, equivalent to --kv-dtype or FERRUM_KV_DTYPE.

§kv_max_blocks: Option<usize>

KV block budget, equivalent to FERRUM_KV_MAX_BLOCKS.

§kv_capacity: Option<usize>

Per-sequence KV token capacity, equivalent to FERRUM_KV_CAPACITY.

§paged_max_seqs: Option<usize>

Maximum paged-KV sequence count, equivalent to FERRUM_PAGED_MAX_SEQS.

§recurrent_state_max_slots: Option<usize>

Generic recurrent-state slot-pool size, equivalent to FERRUM_RECURRENT_STATE_MAX_SLOTS.

§attention_policy: Option<AttentionExecutionPolicy>

Attention provider-family policy for the plan runtime. Physical V1/V2/varlen selection remains adaptive inside the compiled provider.

§max_batched_tokens: Option<usize>

Scheduler/model max batched-token budget, equivalent to FERRUM_MAX_BATCHED_TOKENS.

§scheduler_prefill_first_until_active: Option<usize>

Prefer prefilling until this many requests are active, equivalent to FERRUM_SCHED_PREFILL_FIRST_UNTIL_ACTIVE.

§scheduler_active_decode_prefill_chunk: Option<usize>

Cap prefill chunks while decode requests are active, equivalent to FERRUM_ACTIVE_DECODE_PREFILL_CHUNK.

§prefix_cache: Option<bool>

Prefix cache opt-in, equivalent to FERRUM_PREFIX_CACHE.

§layer_split_pipeline_mode: Option<String>

Layer-split decode pipeline mode, equivalent to FERRUM_LAYER_SPLIT_PIPELINE_MODE.

§moe_graph: Option<bool>

MoE CUDA graph policy override, equivalent to FERRUM_MOE_GRAPH.

§batched_graph: Option<bool>

Legacy Llama/Gemma batched decode CUDA graph policy override, equivalent to FERRUM_BATCHED_GRAPH.

§reusable_execution: Option<bool>

vNext reusable device-program policy override, equivalent to FERRUM_REUSABLE_EXECUTION.

§reusable_execution_exact_decode_widths: Option<Vec<usize>>

Exact vNext reusable decode widths prepared at startup. Omitted means automatic exact resolution up to the admission and startup hard bounds.

§reusable_execution_max_automatic_exact_decode_width: Option<usize>

Configurable automatic ceiling, bounded by the independent hard startup capture limit. It does not cap runtime concurrency.

§unified_graph: Option<bool>

Unified Llama/Gemma decode CUDA graph policy override, equivalent to FERRUM_UNIFIED_GRAPH.

§unified_graph_layers_only: Option<bool>

Diagnostic unified graph scope that captures only transformer layers, equivalent to FERRUM_UNIFIED_GRAPH_LAYERS_ONLY.

§unified_graph_lm_head_eager: Option<bool>

Diagnostic unified graph scope that leaves lm_head eager, equivalent to FERRUM_UNIFIED_GRAPH_LM_HEAD_EAGER.

§batch_decode_prof: Option<bool>

Emit engine batch iteration profile logs, equivalent to FERRUM_BATCH_DECODE_PROF.

§batch_prefill_prof: Option<bool>

Emit executor batch prefill profile logs, equivalent to FERRUM_BATCH_PREFILL_PROF.

§next_batch_prof: Option<bool>

Emit engine next-batch scheduler profile logs, equivalent to FERRUM_NEXT_BATCH_PROF.

§rbd_prof: Option<bool>

Emit route/batched-decode profile logs, equivalent to FERRUM_RBD_PROF.

§unified_post_prof: Option<bool>

Emit unified decode postprocess profile logs, equivalent to FERRUM_UNIFIED_POST_PROF.

§decode_op_profile: Option<bool>

Emit model decode operator profile logs, equivalent to FERRUM_DECODE_OP_PROFILE.

§prefill_op_profile: Option<bool>

Emit model prefill operator profile logs, equivalent to FERRUM_PREFILL_OP_PROFILE.

§marlin_profile: Option<bool>

Emit dense Marlin inner-kernel timing counters, equivalent to FERRUM_MARLIN_PROFILE.

§marlin_trace_shapes: Option<bool>

Emit dense Marlin shape/label trace lines, equivalent to FERRUM_MARLIN_TRACE_SHAPES.

§marlin_trace_shapes_max: Option<usize>

Maximum dense Marlin shape/label trace lines, equivalent to FERRUM_MARLIN_TRACE_SHAPES_MAX.

§use_vllm_paged_attn: Option<bool>

vLLM paged attention policy, equivalent to FERRUM_USE_VLLM_PAGED_ATTN.

§vllm_paged_attn_v1_short: Option<bool>

Short-context vLLM paged-attention v1 policy, equivalent to FERRUM_VLLM_PAGED_ATTN_V1_SHORT.

§vllm_moe: Option<bool>

vLLM-Marlin MoE dispatch policy, equivalent to FERRUM_VLLM_MOE.

§vllm_moe_pair_ids: Option<bool>

vLLM-MoE pair-id route layout policy, equivalent to FERRUM_VLLM_MOE_PAIR_IDS.

§greedy_argmax: Option<bool>

GPU greedy argmax readback policy, equivalent to FERRUM_GREEDY_ARGMAX.

§fa_layout_varlen: Option<bool>

FA-compatible varlen K/V layout policy, equivalent to FERRUM_FA_LAYOUT_VARLEN.

§fa2_source: Option<bool>

Source-linked FA2 policy, equivalent to FERRUM_FA2_SOURCE.

§fa2_direct_ffi: Option<bool>

Runtime-loaded FA2 direct FFI policy, equivalent to FERRUM_FA2_DIRECT_FFI.

§fa2_direct_ffi_shim: Option<String>

Runtime-loaded FA2 direct FFI shim path, equivalent to FERRUM_FA2_DIRECT_FFI_SHIM.

§fa2_native_manifest: Option<String>

Ferrum native FA2 operator manifest path, equivalent to FERRUM_FA2_NATIVE_MANIFEST.

§fa2_native_artifact: Option<String>

Ferrum native FA2 operator artifact path, equivalent to FERRUM_FA2_NATIVE_ARTIFACT.

§fa2_native_source_sha256: Option<String>

Ferrum native FA2 source package sha256 pin, equivalent to FERRUM_FA2_NATIVE_SOURCE_SHA256.

§fa2_native_inputs_sha256: Option<String>

Ferrum native FA2 input tree sha256 pin, equivalent to FERRUM_FA2_NATIVE_INPUTS_SHA256.

§max_model_len: Option<usize>

Requested max model length, equivalent to FERRUM_MAX_MODEL_LEN.

§sequence_fit_policy: Option<SequenceFitPolicy>

Sequence fit gate used before prefill admission.

§moe_batch_threshold: Option<usize>

Minimum MoE batch size for the batched expert path, equivalent to FERRUM_MOE_BATCH_THRESHOLD.

Implementations§

Trait Implementations§

Source§

impl Clone for RuntimeCliConfig

Source§

fn clone(&self) -> RuntimeCliConfig

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 RuntimeCliConfig

Source§

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

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

impl Default for RuntimeCliConfig

Source§

fn default() -> RuntimeCliConfig

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for RuntimeCliConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for RuntimeCliConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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