Skip to main content
Ctrl+K
MLX C 0.0.9 documentation - Home

Installation

  • Building and Installing

Overview

  • Overview

Object Reference

  • Object
  • Array
  • Vector of Arrays
  • Vector of Vector of Arrays
  • Stream
  • Device
  • String
  • Map
  • Closures
  • Futures
  • Distributed Group
  • IO Utils

API Reference

  • Operations
  • FFT
  • Linear Algebra
  • Random
  • IO Operations
  • Transforms
  • Distributed Operations
  • Compilation
  • Fast Custom Ops
  • Metal backend API
  • .rst

IO Utils

Contents

  • mlx_safetensors
  • mlx_safetensors_new()
  • mlx_safetensors_data()
  • mlx_safetensors_metadata()

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.

previous

Distributed Group

next

Operations

Contents
  • mlx_safetensors
  • mlx_safetensors_new()
  • mlx_safetensors_data()
  • mlx_safetensors_metadata()

By MLX Contributors

© Copyright 2023-2024, MLX Contributors.