Compare two safetensors files
See which tensors were added, removed, reshaped or changed between two checkpoints, with cosine similarity and the largest difference for every tensor. Both files are read locally and never uploaded.
Metadata
What the numbers mean
Cosine similarity
The angle between the two tensors treated as long vectors. 1 means the same direction, so a fine-tune that barely moved a weight shows 0.9999 or higher.
Max |Δ|
The largest absolute difference between matching elements. Useful for spotting a single corrupted or outlier value.
Mean |Δ|
The average absolute difference. Compare it with the tensor’s typical magnitude to judge how much a layer changed.
Identical
The raw bytes match exactly. Tensors with different dtypes are compared by value after decoding both to 64-bit floats.
Questions
How are tensors matched?
By exact name. Tensors that exist in only one file are listed as “Only in A” or “Only in B”. If one file uses different naming, rename its tensors in the viewer with a regex rule first, save, then compare.
Can I compare a float16 file with a bfloat16 one?
Yes. When shapes match, values are decoded from each dtype and compared numerically, which is a quick way to measure quantization or conversion error.
How long does a full comparison take?
Exact mode reads both files once, so speed depends on your disk. Fast mode samples about one million values from each large tensor and finishes in seconds even for multi-gigabyte checkpoints.
Is anything uploaded?
No. Files are read by a background worker in your browser. Pasted URLs are streamed with range requests straight from the host.