pub struct UpdateWeightFromDiskReqInput {
pub rid: Option<StrOrList>,
pub http_worker_ipc: Option<String>,
pub model_path: String,
pub load_format: Option<String>,
pub weight_version: Option<String>,
pub flush_cache: bool,
}Expand description
Load new weights from a checkpoint on disk.
Fields§
§rid: Option<StrOrList>Request id; control operations rarely set it.
http_worker_ipc: Option<String>In-process HTTP worker address; unused across processes.
model_path: StringThe checkpoint.
load_format: Option<String>Its format.
weight_version: Option<String>The weight version after a successful load.
flush_cache: boolDrop the cached KV first: it was computed under the old weights.
Trait Implementations§
Source§impl Clone for UpdateWeightFromDiskReqInput
impl Clone for UpdateWeightFromDiskReqInput
Source§impl Debug for UpdateWeightFromDiskReqInput
impl Debug for UpdateWeightFromDiskReqInput
impl StructuralPartialEq for UpdateWeightFromDiskReqInput
Auto Trait Implementations§
impl Freeze for UpdateWeightFromDiskReqInput
impl RefUnwindSafe for UpdateWeightFromDiskReqInput
impl Send for UpdateWeightFromDiskReqInput
impl Sync for UpdateWeightFromDiskReqInput
impl Unpin for UpdateWeightFromDiskReqInput
impl UnsafeUnpin for UpdateWeightFromDiskReqInput
impl UnwindSafe for UpdateWeightFromDiskReqInput
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