Some GGUF models are a single file of tens of gigabytes, which is awkward on a small drive, a FAT32 stick, or a slow connection. llama-gguf-split cuts one GGUF file into numbered shards that tools can load as a set. This guide splits a model and checks the shards.
Before you start
- llama.cpp installed, with llama-gguf-split on your PATH.
- A GGUF model file larger than your target shard size, for example a 20 GB file.
- Enough free disk for the original file plus the shards, or a plan to delete the original after.
Check the file size
Look at the size of the model file:
ls -lh qwen3-32b-q4_k_m.gguf
Decide the shard size you want, for example 5 GB per shard for a portable drive.
Run the split
Split the file into shards of at most 5 GB:
llama-gguf-split --split-max-size 5G qwen3-32b-q4_k_m.gguf qwen3-32b-q4_k_m
The tool writes numbered shard files such as qwen3-32b-q4_k_m-00001-of-00004.gguf in the same folder.
Check the shards
List the shards and add up their sizes:
ls -lh qwen3-32b-q4_k_m-*.gguf
The shard sizes should add up to the original file size, and the count should match the number the tool printed.
Worked example
Worked example: split a 19.8 GB model with –split-max-size 5G. The result should be four shards of about 5 GB, 5 GB, 5 GB and 4.8 GB, adding up to 19.8 GB. Point llama-server at the first shard file and it loads the whole set.
Expected result
UNTESTED in this guide: no file was split while writing it. The expected result is that the shards add up to the original size and the server loads the model from the first shard.
Limitations
Splitting does not shrink the model: the total size stays the same. Keep the shards together in one folder, and do not rename them, or the loader cannot find the rest of the set.
