Load MLX arrays from the safetensors format
mlx_load_safetensors.RdLoad MLX arrays from the safetensors format
Usage
mlx_load_safetensors(file, device = mlx_default_device())Arguments
- file
- Path to a - .npyfile. The extension is appended automatically when missing.
- device
- Execution target: supply - "gpu",- "cpu", or an- mlx_streamcreated via- mlx_new_stream(). Default:- mlx_default_device().