Skip to contents

Save MLX arrays to the safetensors format

Usage

mlx_save_safetensors(file, arrays, metadata = character())

Arguments

file

Output path. .safetensors is appended automatically when omitted.

arrays

Named list of objects coercible to mlx.

metadata

Optional named character vector of metadata entries.

Value

Invisibly returns the full path that was written.