pub struct PlanRuntimeDecodeInput {
pub request_id: RequestId,
pub input_token: TokenId,
pub kv_cache: Arc<dyn KvCacheHandle>,
pub logits_policy: LogitsReturnPolicy,
}Expand description
Tensor-free decode input for an executor with plan-runtime resource authority.
The runtime already owns the request’s physical cache and accepts exactly
one token per decode frontier, so materializing a host tensor here adds no
information. Legacy and modality executors continue to use DecodeInput.
Fields§
§request_id: RequestId§input_token: TokenId§kv_cache: Arc<dyn KvCacheHandle>§logits_policy: LogitsReturnPolicyImplementations§
Source§impl PlanRuntimeDecodeInput
impl PlanRuntimeDecodeInput
pub fn new( request_id: RequestId, input_token: TokenId, kv_cache: Arc<dyn KvCacheHandle>, ) -> Self
pub fn with_logits_policy(self, logits_policy: LogitsReturnPolicy) -> Self
Trait Implementations§
Source§impl Clone for PlanRuntimeDecodeInput
impl Clone for PlanRuntimeDecodeInput
Source§fn clone(&self) -> PlanRuntimeDecodeInput
fn clone(&self) -> PlanRuntimeDecodeInput
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for PlanRuntimeDecodeInput
impl !UnwindSafe for PlanRuntimeDecodeInput
impl Freeze for PlanRuntimeDecodeInput
impl Send for PlanRuntimeDecodeInput
impl Sync for PlanRuntimeDecodeInput
impl Unpin for PlanRuntimeDecodeInput
impl UnsafeUnpin for PlanRuntimeDecodeInput
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