pub struct InMemoryRings { /* private fields */ }Implementations§
Source§impl InMemoryRings
impl InMemoryRings
Trait Implementations§
Source§impl Debug for InMemoryRings
impl Debug for InMemoryRings
Source§impl Default for InMemoryRings
impl Default for InMemoryRings
Source§impl Rings for InMemoryRings
impl Rings for InMemoryRings
fn read_tokens(&self, r: &TokenRef) -> Result<Vec<u32>, RingError>
fn write_tokens(&mut self, tokens: &[u32]) -> Result<TokenRef, RingError>
fn write_logits_row(&mut self, row: &[f32]) -> RingRef
fn read_logits_row(&self, r: &RingRef) -> Result<Vec<f32>, RingError>
Source§fn yield_requested(&self) -> bool
fn yield_requested(&self) -> bool
The daemon wants the running tick to end at its next step boundary
(a request is waiting to be admitted, or a lane was cancelled).
Source§fn latency_wanted(&self) -> bool
fn latency_wanted(&self) -> bool
Latency-sensitive requests have arrived lately: run prefill in short
steps, so a yield comes soon after it is asked for.
Source§impl StageRings for InMemoryRings
impl StageRings for InMemoryRings
fn stage_prompt(&mut self, tokens: &[u32]) -> TokenRef
Auto Trait Implementations§
impl Freeze for InMemoryRings
impl RefUnwindSafe for InMemoryRings
impl Send for InMemoryRings
impl Sync for InMemoryRings
impl Unpin for InMemoryRings
impl UnsafeUnpin for InMemoryRings
impl UnwindSafe for InMemoryRings
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