pub struct RdmaWeightLoader {
pub peer_addr: String,
pub model_id: Option<String>,
pub ep_rank: usize,
pub ep_world_size: usize,
pub num_experts: usize,
pub stream_all_experts: bool,
pub peak_memory_multiplier: Option<f64>,
}Expand description
Loads a model’s resident weights from a weight_peer over one-sided RDMA.
Fields§
§peer_addr: Stringhost:port of the weight peer (from $AVAROK_WEIGHT_PEER).
model_id: Option<String>Model id/path to request. When None, the loader sends the model_dir
path passed to load (so the client and peer agree on the local path).
ep_rank: usize§ep_world_size: usize§num_experts: usize§stream_all_experts: boolExpert streaming: skip ALL routed-expert tensors (served from the expert
peer). Set from config.expert_streaming at the call site.
peak_memory_multiplier: Option<f64>Pre-flight OOM multiplier override (advisory; parity with disk loaders).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RdmaWeightLoader
impl RefUnwindSafe for RdmaWeightLoader
impl Send for RdmaWeightLoader
impl Sync for RdmaWeightLoader
impl Unpin for RdmaWeightLoader
impl UnwindSafe for RdmaWeightLoader
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