DeveloperFree to use

Runs in your browser. No file uploads for processing. Privacy details

SafeTensors Header Inspector

Inspect a SafeTensors checkpoint’s tensor types, ranks, and declared byte ranges locally without loading weights.

Loading tool...

Inspecting a separate ONNX export instead? Check its declared inputs and outputs.

How to inspect a SafeTensors checkpoint header

  1. Choose one checkpoint file

    Pick an individual .safetensors file or shard. The browser reads its size prefix and JSON header without opening the weight payload.

  2. Compare declared types and shapes

    A rank-two F32 tensor with shape [2, 3] declares six elements and 24 bytes. An empty [0, 3] tensor contributes no bytes, while a rank-zero scalar contributes one element.

  3. Check coverage and download totals

    The inspector checks that each range matches its declared dtype and shape, then checks whether the ranges cover the payload without gaps. Download aggregate JSON to compare two files without sharing tensor names.

Use cases

  • Check whether a checkpoint uses the precision you expected.
  • Compare size and rank summaries of two checkpoint exports without sharing weights or tensor names.

Limits and privacy

  • One .safetensors file with an 8 MiB maximum header, up to 100,000 tensors, ranks up to 32 and supported dtype tags. Does not combine shards or read index JSON.
  • Checks declared byte spans, not weight values, architecture, tensor semantics, signatures, malware or compatibility with any runtime.

The tool processes inputs in your browser. File processing and site analytics are separate.

Frequently asked questions

Can a SafeTensors header show a model’s inference inputs and outputs?

A checkpoint header describes stored tensors, not the inference interface. Use ONNX Model I/O Inventory for declared inputs and outputs of a separate ONNX export.

Does this load the model or read the weights?

No. It reads only the eight-byte header-size prefix and bounded UTF-8 JSON header, using the browser’s file size to check declared byte ranges.

Can it tell whether the checkpoint is FP16 or BF16?

Its data-type breakdown shows F16, BF16 and other supported tags declared for each tensor group. A single file can contain multiple types.

Does a complete range check mean the checkpoint is safe to run?

No. It only means that this inspector’s header and range checks passed. It cannot verify the source, actual weight values, model behavior, or framework compatibility.

Does the downloaded report contain model names or custom metadata?

No. It contains counts, data-type labels, rank totals and byte totals only. Tensor names, filenames and optional metadata keys or values are omitted.

Related tools