pub struct ModelFiles {
pub config_json: PathBuf,
pub safetensors_shards: Vec<PathBuf>,
}Expand description
Paths to all local files needed for conversion.
Fields§
§config_json: PathBuf§safetensors_shards: Vec<PathBuf>Ordered list of safetensors shard paths, already downloaded locally.
Implementations§
Source§impl ModelFiles
impl ModelFiles
Sourcepub fn cleanup_weights(&self)
pub fn cleanup_weights(&self)
Delete the (potentially large) weight shards once they’ve been converted into a
GGUF, leaving config_json in place — several infer commands read it directly
(architecture parameters not embedded in the GGUF), and it’s tiny, so there’s no
disk-space reason to remove it. Best-effort: a failed delete is not fatal, since
the GGUF conversion has already succeeded by the time this is called.
Auto Trait Implementations§
impl Freeze for ModelFiles
impl RefUnwindSafe for ModelFiles
impl Send for ModelFiles
impl Sync for ModelFiles
impl Unpin for ModelFiles
impl UnsafeUnpin for ModelFiles
impl UnwindSafe for ModelFiles
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