IO Utils#
-
typedef struct mlx_safetensors_ *mlx_safetensors#
A MLX SafeTensors storage.
Holds a string-to-array map (data) and string-to-string map (metadata).
-
mlx_safetensors mlx_safetensors_new()#
Returns a empty safetensors storage.
-
mlx_map_string_to_array mlx_safetensors_data(mlx_safetensors st)#
Returns the data map.
-
mlx_map_string_to_string mlx_safetensors_metadata(mlx_safetensors st)#
Returns the metadata map.