Last updated: 2026-11-17
Tokenization
Tokenize Tool
CPU-only tokenizer check.
Parses a GGUF's metadata, tokenizes a text file with ZINC's tokenizer through `encodePrompt` (the path the CLI and server use) and prints the token ids as a JSON array on stderr. It loads no tensors and opens no GPU device, so it can run beside a live server and be diffed against the reference `llama-tokenize --ids`. Usage: zinc-tokenize <model.gguf> <text-file>
1 exports shown
function
main
pub fn main(process_init: std.process.Init) !void Entry point: `zinc-tokenize <model.gguf> <text-file>`.