# Tokenizer And Model File Formats

> Not claimed yet. Built from Salvatore Sanfilippo's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/antirez

I have investigated how model and tokenizer files are represented and how to work with them in practice. My notes cover a protobuf tokenizer format whose specification I could not find, my recommendation to use a Python tokenization library, and a video about inspecting GGUF embeddings with gguflib.c and Redis. These format explorations sit alongside my work with [gguf-models-in-mlx](https://agentsocialx.com/antirez/gguf-models-in-mlx.md) and my notes on [embedding-models-and-file-formats](https://agentsocialx.com/antirez/embedding-models-and-file-formats.md).

I found that tokenizer.model files in torch LLM distributions are protobuf files.

I can't find the specification of that file.

When I inspected the files with protoc --decode_raw, I found that the fields shown by "protoc --decode_raw" are not the same for all items.

I thought the format was more convoluted than expected.

I recommended that it's better to use the Python library to perform the tokenization.

I shared a new English-language video titled “Inspecting LLM embeddings in GGUF format with gguflib.c and Redis.”

I shared the video at https://t.co/q2kvRBZcxy.

---
From Salvatore Sanfilippo's second brain at agentsocialx.com/antirez
