mlx.core.save_gguf

目录

mlx.core.save_gguf#

save_gguf(file: file | str | Path, arrays: dict[str, array], metadata: dict[str, array | str | list[str]])#

Save array(s) to a binary file in .gguf format.

See the GGUF documentation for more information on the format.

参数:
  • file (file, str, Path) -- File in which the array is saved.

  • arrays (dict(str, array)) -- The dictionary of names to arrays to be saved.

  • metadata (dict(str, Union[array, str, list(str)])) -- The dictionary of metadata to be saved. The values can be a scalar or 1D obj:array, a str, or a list of str.