R/io.R
mlx_save_safetensors.Rd
Save MLX arrays to the safetensors format
mlx_save_safetensors(file, arrays, metadata = character())
Output path. .safetensors is appended automatically when omitted.
.safetensors
Named list of objects coercible to mlx.
mlx
Optional named character vector of metadata entries.
Invisibly returns the full path that was written.
https://ml-explore.github.io/mlx/build/html/python/io.html#mlx.core.save_safetensors