Skip to main content

shard_paths

Function shard_paths 

Source
pub fn shard_paths(dir: &Path) -> Result<Vec<PathBuf>>
Expand description

The shard files a checkpoint directory holds: the files its index names, else its one model.safetensors, else every *.safetensors file in it. A file the index names that is not there is refused by name.