pub struct CheckpointSource {
pub format: CheckpointFormat,
pub kind: SourceKind,
pub path: PathBuf,
pub root: PathBuf,
pub index_file: Option<String>,
pub files: Vec<String>,
}Expand description
Identity of an opened checkpoint: format, input path, and payload files.
Fields§
§format: CheckpointFormatContainer format.
kind: SourceKindInput kind (single file, shard index, directory, in-memory).
path: PathBufPath the checkpoint was opened from, as given by the caller. For in-memory GGUF this is the caller-supplied label.
root: PathBufRoot that TensorLocation::source paths are relative to.
index_file: Option<String>Root-relative index file, when SourceKind::ShardIndex.
files: Vec<String>Sorted, de-duplicated root-relative files that hold tensor payloads.
Trait Implementations§
Source§impl Clone for CheckpointSource
impl Clone for CheckpointSource
Source§impl Debug for CheckpointSource
impl Debug for CheckpointSource
impl Eq for CheckpointSource
Source§impl PartialEq for CheckpointSource
impl PartialEq for CheckpointSource
impl StructuralPartialEq for CheckpointSource
Auto Trait Implementations§
impl Forget for CheckpointSource
impl Freeze for CheckpointSource
impl Move for CheckpointSource
impl RefUnwindSafe for CheckpointSource
impl Send for CheckpointSourcewhere
RawVecInner: Send,
impl Sync for CheckpointSourcewhere
RawVecInner: Sync,
impl Unpin for CheckpointSource
impl UnsafeUnpin for CheckpointSourcewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for CheckpointSourcewhere
RawVecInner: UnwindSafe,
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