pub struct PrefillPeer { /* private fields */ }Expand description
A Prefill rank’s PD transfer peer.
Implementations§
Source§impl PrefillPeer
impl PrefillPeer
Sourcepub fn start(config: PrefillConfig) -> Result<(Self, PrefillOutbox), StartError>
pub fn start(config: PrefillConfig) -> Result<(Self, PrefillOutbox), StartError>
Start the transfer engine, register the cache, open the control socket, start the threads and register with the bootstrap server.
Sourcepub fn embedding_receiver(
&self,
config: ReceiverConfig,
) -> Result<Receiver, StartError>
pub fn embedding_receiver( &self, config: ReceiverConfig, ) -> Result<Receiver, StartError>
EPD, the first stage of a multimodal Prefill node: a receiver of the encode nodes’ embeddings, over this peer’s transfer engine.
Sourcepub fn session_id(&self) -> String
pub fn session_id(&self) -> String
The transfer engine’s session id.
Trait Implementations§
Source§impl Drop for PrefillPeer
impl Drop for PrefillPeer
Source§impl TransferPeer for PrefillPeer
impl TransferPeer for PrefillPeer
Source§fn register(
&mut self,
rid: &str,
bootstrap: &BootstrapInfo,
) -> Result<(), PdError>
fn register( &mut self, rid: &str, bootstrap: &BootstrapInfo, ) -> Result<(), PdError>
Track an admitted request, before the scheduler can plan it.
Source§fn poll(
&mut self,
mesh: &mut Mesh,
replica: &Group,
) -> Result<Vec<PdEvent>, PdError>
fn poll( &mut self, mesh: &mut Mesh, replica: &Group, ) -> Result<Vec<PdEvent>, PdError>
The transfers whose state changed since the last poll, as every
member of
replica sees them: a rank reports the least advanced
state any member holds. Every member calls this in the same rounds.Source§fn has_in_flight(&self) -> bool
fn has_in_flight(&self) -> bool
A transfer is still tracked: it may yet read or write the cache.
Source§fn abort_room(&mut self, rid: &str, room: u64)
fn abort_room(&mut self, rid: &str, room: u64)
EPD, P role: tell the decode node waiting on room
room that the
request failed before it could register (its embeddings never
arrived), so its receiver fails instead of waiting. Best effort.Auto Trait Implementations§
impl Freeze for PrefillPeer
impl RefUnwindSafe for PrefillPeer
impl Send for PrefillPeer
impl Sync for PrefillPeer
impl Unpin for PrefillPeer
impl UnsafeUnpin for PrefillPeer
impl UnwindSafe for PrefillPeer
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