pub struct Layerwise {
pub step_address: usize,
pub fields_by_step: Vec<Vec<String>>,
pub interval: usize,
}Expand description
Layerwise streaming: each prefill chunk’s KV goes out an interval of producer steps at a time, as the forward writes it.
Fields§
§step_address: usizeThe pinned host word the device updates with the last producer step
whose KV landed (StepCounter).
fields_by_step: Vec<Vec<String>>The fields each producer step makes ready, in step order
(CacheProducerSchedule).
interval: usizeProducer steps per transfer interval.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layerwise
impl RefUnwindSafe for Layerwise
impl Send for Layerwise
impl Sync for Layerwise
impl Unpin for Layerwise
impl UnsafeUnpin for Layerwise
impl UnwindSafe for Layerwise
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