pub enum LoadPhase {
CheckingLocal {
path: PathBuf,
},
Download {
downloaded_bytes: u64,
total_bytes: Option<u64>,
source_url: String,
},
Verify {
path: PathBuf,
},
Quarantine {
path: PathBuf,
expected_sha256: String,
actual_sha256: String,
quarantine_path: PathBuf,
},
Mmap {
path: PathBuf,
},
KvCache {
n_ctx: u32,
},
}Expand description
Sub-stage of a model load (or reload).
Variants§
CheckingLocal
Resolving model path on disk and checking SHA-256.
Download
Downloading the GGUF. Progress events emit periodically.
Fields
Verify
Streaming SHA-256 over downloaded bytes for final verification.
Quarantine
Downloaded bytes failed SHA verification; file moved aside.
Daemon will retry or exit per auto_pull config.
Fields
Mmap
Loading the file into the engine via FFI.
KvCache
Allocating the KV cache.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoadPhase
impl RefUnwindSafe for LoadPhase
impl Send for LoadPhase
impl Sync for LoadPhase
impl Unpin for LoadPhase
impl UnsafeUnpin for LoadPhase
impl UnwindSafe for LoadPhase
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