Skip to main content

write_safetensors

Function write_safetensors 

Source
pub fn write_safetensors(
    path: &Path,
    tensors: &HashMap<String, OutputTensor>,
    metadata: HashMap<String, String>,
) -> Result<()>
Expand description

Serializes tensors/metadata (see serialize_safetensors) directly to a .safetensors file at path.