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§takeover_preferred: bool§seed_min_tokens: u64§cache_resident_cells: u64Cells 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: DurationWall time each model step takes, for tests that need ticks to last.
verify_rows: boolServe step_rows (a row after every token of a feed).
copy_model: boolPredict the token that followed the last earlier occurrence of the current one: text that repeats itself, as a prompt lookup drafts.
copy_miss_every: usizeWith copy_model, every this-many positions predict a fresh token
instead (0: never): drafts that are taken in part.
prefill_step_tokens: u32The descriptor’s prefill_step_tokens.
Trait Implementations§
Source§impl Clone for FakeConfig
impl Clone for FakeConfig
Source§impl Debug for FakeConfig
impl Debug for FakeConfig
Auto Trait Implementations§
impl Freeze for FakeConfig
impl RefUnwindSafe for FakeConfig
impl Send for FakeConfig
impl Sync for FakeConfig
impl Unpin for FakeConfig
impl UnsafeUnpin for FakeConfig
impl UnwindSafe for FakeConfig
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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 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> ⓘ
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