Skip to main content

FakeConfig

Struct FakeConfig 

Source
pub struct FakeConfig {
Show 23 fields pub vocab: u32, pub eos: u32, pub page: u32, pub max_batch: u32, pub max_seq_len: u64, pub kv_bytes_per_token: u64, pub cells_total: u64, pub truncate_partial: bool, pub max_seqs: u32, pub identity: u8, pub engine_sampling: 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 vocabulary: Option<Vocabulary>, pub sampling_defaults: SamplingDefaults, pub step_delay: Duration, pub verify_rows: bool, pub copy_model: bool, pub copy_miss_every: usize, pub prefill_step_tokens: u32,
}

Fields§

§vocab: u32§eos: u32§page: u32§max_batch: u32§max_seq_len: u64§kv_bytes_per_token: u64§cells_total: u64§truncate_partial: bool§max_seqs: u32§identity: u8§engine_sampling: bool§copy_shares_cells: bool§takeover_preferred: bool§seed_min_tokens: u64§cache_resident_cells: u64

Cells the cache may keep in the pool, and tokens it may hold exported (the descriptor’s limits of the same names); 0 and 0, the default, is a runtime whose resting sequences cost nothing.

§cache_exported_cells: u64§vocabulary: Option<Vocabulary>§sampling_defaults: SamplingDefaults§step_delay: Duration

Wall time each model step takes, for tests that need ticks to last.

§verify_rows: bool

Serve step_rows (a row after every token of a feed).

§copy_model: bool

Predict the token that followed the last earlier occurrence of the current one: text that repeats itself, as a prompt lookup drafts.

§copy_miss_every: usize

With copy_model, every this-many positions predict a fresh token instead (0: never): drafts that are taken in part.

§prefill_step_tokens: u32

The descriptor’s prefill_step_tokens.

Trait Implementations§

Source§

impl Clone for FakeConfig

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 FakeConfig

Source§

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

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

impl Default for FakeConfig

Source§

fn default() -> Self

Returns the “default value” for a type. 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.