pub struct DecodeState {
pub caches: Vec<LayerCache>,
pub pos: usize,
pub cache_bytes: Vec<u64>,
pub ws: Option<Vec<StepWs>>,
}Expand description
Whole-trunk decode state: one LayerCache per trunk layer + the stream position.
pos = tokens consumed so far (the next decode_step processes position pos).
Fields§
§caches: Vec<LayerCache>§pos: usize§cache_bytes: Vec<u64>allocated cache bytes per device index (gate (e): measured vs design math)
ws: Option<Vec<StepWs>>lane 8: per-stage step workspace (Some iff the load-time decode path is Device)
Auto Trait Implementations§
impl Freeze for DecodeState
impl RefUnwindSafe for DecodeState
impl Send for DecodeState
impl Sync for DecodeState
impl Unpin for DecodeState
impl UnsafeUnpin for DecodeState
impl UnwindSafe for DecodeState
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