pub fn serialize_safetensors(
tensors: &HashMap<String, OutputTensor>,
metadata: HashMap<String, String>,
) -> Result<Vec<u8>>Expand description
Serializes tensors plus metadata (embedded as the file’s string-keyed __metadata__
header – e.g. the quantization_config JSON blob, see crate::format) to an in-memory
.safetensors byte buffer.