pub struct Generation {
pub request_defaults: Option<GenerationRequestDefaults>,
pub speculative_decoding: Option<SpeculativeDecoding>,
}Expand description
Generation capability declarations carried as package data.
Describes speculative-decoding capabilities of the source model only. It is never stage-selection or loader policy: which strategy actually runs is resolved from runtime configuration, and layer indices here must never be consulted by a stage selector.
Fields§
§request_defaults: Option<GenerationRequestDefaults>Publisher-reviewed request defaults for the exact source revision. These values are advisory package data and are resolved below explicit request and deployment/operator settings by the serving runtime.
speculative_decoding: Option<SpeculativeDecoding>Trait Implementations§
Source§impl Clone for Generation
impl Clone for Generation
Source§impl Debug for Generation
impl Debug for Generation
Source§impl<'de> Deserialize<'de> for Generation
impl<'de> Deserialize<'de> for Generation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Generation
impl PartialEq for Generation
Source§impl Serialize for Generation
impl Serialize for Generation
impl StructuralPartialEq for Generation
Auto Trait Implementations§
impl Freeze for Generation
impl RefUnwindSafe for Generation
impl Send for Generation
impl Sync for Generation
impl Unpin for Generation
impl UnsafeUnpin for Generation
impl UnwindSafe for Generation
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