When you install llama.cpp using Homebrew on your Mac, the associated command-line tools, including gguf-split, should be available directly in your terminal's PATH.
Here's how you can typically use the gguf-split tool and find out more about its options:
Open your Terminal: Launch the Terminal application on your Mac.
Type the command: You should be able to invoke the tool by simply typing gguf-split.
Get help: To see the available options and how to use the tool, you can usually add the --help flag:
bash
gguf-split --help
This will print the usage instructions, including the commands for splitting (--split) and merging (--merge) GGUF files, and options like --split-max-size to control the size of the split files.
Based on the search results, gguf-split is used for both splitting a large GGUF file into smaller parts (shards) and merging multiple GGUF parts back into a single file.
Example usage (check --help for exact syntax):
Splitting a file: You would specify the input file and likely a maximum size or number of tensors per shard[1].
Merging files: You would specify the first part of the split files and an output filename[2]. The tool should automatically find the other parts if they are named correctly (e.g., model.gguf.part1, model.gguf.part2, or model.gguf-00001-of-0000X).
Remember to always run gguf-split --help in your terminal for the most accurate and up-to-date usage information specific to the version installed via Homebrew.