Skip to main content

RuntimeDescriptor

Struct RuntimeDescriptor 

Source
pub struct RuntimeDescriptor {
Show 26 fields pub runtime_id: String, pub runtime_version: String, pub max_batch: u32, pub max_seqs: u32, pub max_seq_len: u64, pub vocab_size: u32, pub page_size_tokens: u32, pub kv_bytes_per_token: u64, pub cells_total: u64, pub truncate_partial: bool, pub copy_shares_cells: bool, pub takeover_preferred: bool, pub seed_min_tokens: u64, pub cache_resident_cells: u64, pub cache_exported_cells: u64, pub recurrent: bool, pub export_encodings: Vec<u8>, pub engine_sampling: bool, pub engine_draws: bool, pub verify_rows: bool, pub verify_batches: bool, pub prefill_step_tokens: u32, pub weights_identity: [u8; 32], pub architecture: String, pub backend: String, pub sampling_defaults: SamplingDefaults,
}

Fields§

§runtime_id: String§runtime_version: String§max_batch: u32§max_seqs: u32§max_seq_len: u64§vocab_size: u32§page_size_tokens: u32§kv_bytes_per_token: u64§cells_total: u64§truncate_partial: bool§copy_shares_cells: bool§takeover_preferred: bool§seed_min_tokens: u64§cache_resident_cells: u64

Cells the prefix cache may keep in the pool: the state its entries hold that no lane or bare sequence shares. 0 = no bound: an entry at rest costs the other sequences nothing. A runtime whose steps cost by what its pool holds names what it affords (llama.cpp’s unified cache runs every step’s attention over the cells up to the highest one in use, whoever holds them); past it the least recently used entries leave the pool, exported or evicted.

§cache_exported_cells: u64

Tokens of state the prefix cache may hold out of the pool as lossless exports. 0 = none: an entry that leaves the pool is evicted.

§recurrent: bool§export_encodings: Vec<u8>§engine_sampling: bool§engine_draws: bool§verify_rows: bool

step_rows answers a row for every position of a feed: what verifying a draft in one pass needs.

§verify_batches: bool

step_rows runs every lane’s draft in one pass; a runtime that runs them one lane at a time drafts only while one lane decodes.

§prefill_step_tokens: u32

The most prompt tokens one prefill step runs (the runtime’s own micro-batch); a tick asked to yield stops between such steps. 0: a tick’s prefill is one step.

§weights_identity: [u8; 32]§architecture: String§backend: String§sampling_defaults: SamplingDefaults

Trait Implementations§

Source§

impl Clone for RuntimeDescriptor

Source§

fn clone(&self) -> Self

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 RuntimeDescriptor

Source§

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

Formats the value using the given formatter. 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> 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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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, !>

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.