GGUF Metadata Comparison Tool
Two model files can both be called "7B Instruct Q4_K_M" and still be different models, or the same model re-wrapped by someone else. Drop two .gguf files in below and this tool diffs every field the GGUF container actually records - architecture family, parameter count, quantization, context metadata, tokenizer configuration and any custom keys - from the real bytes of each file, not from a download page's description.
Load two GGUF files
Drop a file into either slot, or click to browse. File A is the left column of every table below, File B the right. Parsing starts immediately and only touches the metadata section, so even a multi-terabyte file parses in seconds.
Key facts
The fields that decide most download choices, normalized across architectures: the same fact is read from general.*, the architecture-prefixed keys and the tokenizer block regardless of which naming scheme the file uses. Rows that differ are highlighted.
Field-by-field comparison
Every metadata key, flattened with dot notation and grouped by section. Different marks keys present in both files with different values; Only in A/B marks keys one file does not have at all. Large tokenizer arrays are compared by element count plus an FNV-1a content hash, with a short sample shown.
Take the comparison with you
Copy a Markdown report into a doc, issue or pull request; download the full structured metadata of both files plus the diff as JSON (large tokenizer arrays are summarised with their content hash); take the complete diff table as CSV for a spreadsheet; or copy a short plain-text summary.
What this tool does
This is a diff tool for GGUF model files. You load two .gguf files - a base model and a fine-tune, two quants of the same release, or your own file against the original download - and it compares them field by field across everything the container metadata records: the architecture family (llama, qwen2, mistral, ...), the parameter count, the quantization type, the declared context length, the tokenizer model, pre-tokenizer and token counts, the license string, and any custom keys a publisher attached. Because the comparison is computed from the actual bytes of each file rather than from file names or download-page descriptions, it answers the question that matters before you spend an hour on a 4 GB download: are these two files the same model at different quants, different models at the same nominal size, or the same weights re-wrapped with altered metadata?
How GGUF files store metadata
A GGUF file starts with a 24-byte header: the magic string GGUF, a format version (1-3), the tensor count and the number of metadata key-value pairs. Immediately after the header come those key-value pairs - dot-namespaced keys such as general.architecture or tokenizer.ggml.bos_token_id, each with a typed value: 32-bit integers, 64-bit integers, 32-bit floats, booleans, UTF-8 strings (padded to 8-byte boundaries) and arrays of any of those. The tensor data - the actual model weights, which is why these files run to gigabytes - follows only after the metadata section ends.
That layout is what makes this tool fast on huge files: it streams the file in 8 MB chunks through the browser's File API and stops reading as soon as the declared number of key-value pairs is consumed. A 40 GB 70B-parameter model typically has a few megabytes of metadata, so parsing takes well under a second and never loads the weights into memory. One deliberate trade-off: tokenizer token tables can hold hundreds of thousands of entries, so arrays longer than 2,048 elements are not materialised in full - they are hashed with FNV-1a as they stream by, and compared by element count plus hash, which is a reliable equality signal without dumping a 10 MB vocabulary into the page.
How to use it
- Load File A (left) and File B (right) by dragging a
.gguffile into a slot or clicking to browse. Each slot reports its parse status: how many metadata keys were read and in how long. - Read the Key facts table first. It normalizes the fields that decide most download choices - architecture, parameter count, quantization (the raw
general.file_typeenum is decoded to its name, e.g.13 → Q4_K_M), context length and tokenizer profile - so you can see at a glance whether the two files are comparable at all. - Switch the field table to "Differences only" for the short list of what actually changed, or "Present in one file only" to spot metadata one publisher added and the other dropped. Section sorting keeps related keys together; alphabetical is easier for hunting a specific key.
- If you do not have two files handy, click "Load sample comparison" to see the tool working on Qwen2.5-7B-Instruct Q4_K_M versus Mistral-7B-Instruct-v0.3 Q4_K_M - an illustrative pair of realistic metadata sets.
- Export when the answer needs to survive: Markdown report for a doc or issue, JSON for your own tooling, CSV for a spreadsheet, or the plain-text summary for a chat message.
A worked example
Suppose a download page lists two files, both described as "7B instruct model, Q4_K_M quantization". You load them here. The Key facts table shows the quantization row identical (both Q4_K_M, file_type 13) and both declaring a 32,768-token context - but the architecture row differs: one is qwen2, the other llama. The field table then explains why the pages looked so similar: the parameter counts differ (7,615,688,212 versus 7,246,784,512), block count differs (28 versus 32), embedding length differs (3,584 versus 4,096), and the tokenizer rows show different pre-tokenizers with very different vocabularies (151,669 tokens versus 32,768) - meaning the same prompt tokenizes to a different length under each file. Note that the context length appears as two "present in one file only" rows rather than one identical row: each file stores it under its own architecture prefix (qwen2.context_length versus llama.context_length). That is expected GGUF behaviour, not missing data - the Key facts table is where such facts line up. The conclusion you can now state with evidence: same size class and quantization, different model families entirely; picking one over the other is a model choice, not a format choice.
Common mistakes when comparing GGUF files
- Judging by file size alone. Two Q4_K_M files of similar size can have different parameter counts and entirely different architectures. Size is a function of parameters times quantization bits plus overhead - it cannot tell you which model you are getting. Compare the parameter count and architecture rows instead.
- Treating architecture-prefixed keys as missing data. A
qwen2file stores its context length underqwen2.context_length; allamafile usesllama.context_length. The field table will show both as one-sided rows even when the values match. Check the Key facts table before concluding a fact is absent. - Trusting
general.name. Third-party re-wraps keep the original model name but may change the quantization, drop license metadata or add custom keys. The name row matching proves nothing on its own; the file_type, parameter count and tokenizer hash are what identify the weights. - Assuming equal token counts mean equal tokenizers. Two vocabularies can have the same length and still differ in content. This tool hashes the full array (FNV-1a) precisely so that byte-level differences surface as a "Different" row instead of hiding behind a matching count.
- Reading context_length as a guarantee. The declared context is what the publisher recorded at conversion time; running a model well beyond it degrades quality, and most inference servers cap the usable window anyway. Treat it as metadata about the release, not a performance spec.
Privacy
This tool is entirely client-side. Your browser reads each file locally through the File API; the parser streams only the metadata section in 8 MB chunks and discards it after building the key-value map; no request to this page carries any part of your model files, and nothing is stored in your browser - closing the tab discards everything. There is no upload endpoint on this site for model files, by design.
Related tools
For the rest of the local-model workflow around GGUF files:
Suggested
Luke Keam | techgeek.biz