pub struct ContextFit {
pub tokens: usize,
pub cap: usize,
pub granularity: usize,
pub capped_by: ContextCap,
pub kv_available_bytes: u64,
pub marginal_per_token_bytes: u64,
pub concurrent_requests: usize,
pub kv_bytes: u64,
pub weights_bytes: u64,
pub activation_headroom_bytes: u64,
pub device_budget_bytes: u64,
}Expand description
The answer --ctx auto produces, with every term that went into it
so the user can check the division by hand.
Fields§
§tokens: usize§cap: usize§granularity: usize§capped_by: ContextCap§kv_available_bytes: u64§marginal_per_token_bytes: u64§concurrent_requests: usize§kv_bytes: u64§weights_bytes: u64§activation_headroom_bytes: u64§device_budget_bytes: u64Trait Implementations§
Source§impl Clone for ContextFit
impl Clone for ContextFit
Source§fn clone(&self) -> ContextFit
fn clone(&self) -> ContextFit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContextFit
Source§impl Debug for ContextFit
impl Debug for ContextFit
Source§impl Display for ContextFit
impl Display for ContextFit
impl Eq for ContextFit
Source§impl PartialEq for ContextFit
impl PartialEq for ContextFit
impl StructuralPartialEq for ContextFit
Auto Trait Implementations§
impl Freeze for ContextFit
impl RefUnwindSafe for ContextFit
impl Send for ContextFit
impl Sync for ContextFit
impl Unpin for ContextFit
impl UnsafeUnpin for ContextFit
impl UnwindSafe for ContextFit
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
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