pub enum ModelLimitsError {
NoOutputCap {
choice: String,
model: String,
driver: String,
},
MalformedTable {
driver: String,
reason: String,
},
CompactionCapAboveCeiling {
max_tokens: u32,
ceiling: u32,
model: String,
driver: String,
},
NoInputBudget {
choice: String,
model: String,
driver: String,
window: u32,
window_source: LimitSource,
cap: u32,
cap_source: LimitSource,
ceiling: Option<u32>,
},
CompactionNoInputBudget {
model: String,
driver: String,
window: u32,
window_source: LimitSource,
cap: u32,
ceiling: Option<u32>,
},
}Expand description
Why a launch is refused: E-RUN-052, E-RUN-054 for
ModelLimitsError::CompactionCapAboveCeiling, or E-RUN-055 for
ModelLimitsError::NoInputBudget and ModelLimitsError::CompactionNoInputBudget.
Variants§
NoOutputCap
A choice has no output cap: its driver’s table does not list its model and the manifest
sets no inference.max_tokens.
MalformedTable
A choice’s driver ships a models: table that does not parse.
CompactionCapAboveCeiling
inference.compaction.max_tokens exceeds the primary driver’s max_output_tokens for the
compaction model.
NoInputBudget
A choice’s output cap is at or above its context window, so its calls have no input budget.
CompactionNoInputBudget
inference.compaction.max_tokens is at or above the compaction model’s context window,
so compaction calls have no input budget.
Trait Implementations§
Source§impl Clone for ModelLimitsError
impl Clone for ModelLimitsError
Source§impl Debug for ModelLimitsError
impl Debug for ModelLimitsError
Source§impl Display for ModelLimitsError
impl Display for ModelLimitsError
impl Eq for ModelLimitsError
Source§impl Error for ModelLimitsError
impl Error for ModelLimitsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ModelLimitsError> for RuntimeError
impl From<ModelLimitsError> for RuntimeError
Source§fn from(source: ModelLimitsError) -> Self
fn from(source: ModelLimitsError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ModelLimitsError
impl PartialEq for ModelLimitsError
impl StructuralPartialEq for ModelLimitsError
Auto Trait Implementations§
impl Forget for ModelLimitsError
impl Freeze for ModelLimitsError
impl RefUnwindSafe for ModelLimitsError
impl Send for ModelLimitsError
impl Sync for ModelLimitsError
impl Unpin for ModelLimitsError
impl UnsafeUnpin for ModelLimitsError
impl UnwindSafe for ModelLimitsError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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