pub enum ContextSizeSource {
Explicit,
ModelServerDefaults,
GlobalDefault,
FittedToHardware,
BuiltInDefault,
}Expand description
Which rung of the context fallback chain supplied the resolved value.
Exists so a launch can state why it runs at a given context rather than
only what that context is — the number alone cannot distinguish a value
the user asked for from one inherited from the model’s stored defaults or
from the 4096 floor. See crate::domain::LaunchNarration.
Variants§
Explicit
Runtime request or CLI flag (opts.context_size).
ModelServerDefaults
Per-model server defaults from the database (opts.model_server_ctx).
GlobalDefault
Global app setting (opts.global_default_ctx).
FittedToHardware
Computed from the model’s trained context and this machine’s memory.
BuiltInDefault
The hardcoded DEFAULT_CONTEXT_SIZE floor — nothing else was set.
Implementations§
Trait Implementations§
Source§impl Clone for ContextSizeSource
impl Clone for ContextSizeSource
Source§fn clone(&self) -> ContextSizeSource
fn clone(&self) -> ContextSizeSource
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 moreSource§impl Debug for ContextSizeSource
impl Debug for ContextSizeSource
Source§impl PartialEq for ContextSizeSource
impl PartialEq for ContextSizeSource
Source§fn eq(&self, other: &ContextSizeSource) -> bool
fn eq(&self, other: &ContextSizeSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ContextSizeSource
impl Eq for ContextSizeSource
impl StructuralPartialEq for ContextSizeSource
Auto Trait Implementations§
impl Freeze for ContextSizeSource
impl RefUnwindSafe for ContextSizeSource
impl Send for ContextSizeSource
impl Sync for ContextSizeSource
impl Unpin for ContextSizeSource
impl UnsafeUnpin for ContextSizeSource
impl UnwindSafe for ContextSizeSource
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