pub struct BatchRows {
pub request_ids: Vec<String>,
pub request_pool_indices: Vec<i32>,
pub input_lengths: Vec<i32>,
pub prefill_lengths: Vec<i32>,
pub extend_prefix_lens: Vec<i32>,
pub state_prefix_cached: Vec<bool>,
pub decode_input_ids: Vec<i32>,
pub spec_candidate_ids: Vec<Vec<i32>>,
pub num_extends: usize,
pub tables: BlockTables,
}Expand description
A batch’s rows (the scheduler’s TransferBatchView); extend rows first.
Fields§
§request_ids: Vec<String>Request ids.
request_pool_indices: Vec<i32>Each row’s request slot.
input_lengths: Vec<i32>Tokens each row feeds this forward.
prefill_lengths: Vec<i32>Each row’s prompt length.
extend_prefix_lens: Vec<i32>Extend rows: tokens already in the cache ahead of the chunk.
state_prefix_cached: Vec<bool>Extend rows, a Decode admission: every state group’s prompt-end checkpoint was found locally.
decode_input_ids: Vec<i32>Decode rows: on a Prefill node’s remote decode, each request’s first output token.
spec_candidate_ids: Vec<Vec<i32>>Decode rows: the drafter’s candidates, empty for none.
num_extends: usizeExtend rows.
tables: BlockTablesEvery cache group’s table.
Trait Implementations§
impl Eq for BatchRows
impl StructuralPartialEq for BatchRows
Auto Trait Implementations§
impl Freeze for BatchRows
impl RefUnwindSafe for BatchRows
impl Send for BatchRows
impl Sync for BatchRows
impl Unpin for BatchRows
impl UnsafeUnpin for BatchRows
impl UnwindSafe for BatchRows
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self with key and returns true if they are equal.